[vstest]VS test for VOQ System ports #5862
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
- Why I did it
To add VS test cases to test VOQ system ports feature implemented by PRs:
sonic-net/sonic-swss-common#380
sonic-net/sonic-sairedis#657
sonic-net/sonic-swss#1431
- How I did it
This PR is an enabler of the SAI emulation for VOQ switch objects implemented by sonic-sairedis PRs
sonic-net/sonic-sairedis#698
sonic-net/sonic-sairedis#699
sonic-net/sonic-sairedis#700
sonic-net/sonic-sairedis#701
sonic-net/sonic-sairedis#702
sonic-net/sonic-sairedis#703
and swss virtual chassis tests for VOQ switch objects
This is done by loading SYSTEM_PORT configs during bootup and providing correct core port index mapping
for local ports.
- How to verify it
sonic-swss/tests/pytest test_virtual_chassis.py will pass.
- Which release branch to backport (provide reason below if selected)
- Description for the changelog
Changes for supporting vstest for VOQ system ports. The changes include:
(1)Use of chassis_db.json is avoided since the SYSTEM_PORT is made
available in virtual chassis linecard's default_config.json which will
be loaded during bootup
(2)Core port index map file is introduced and is copied from virtual chassis
directory to hwsku direcory by start.sh
(3)vs sai profile is modified to include core port index map file name
- A picture of a cute animal (not mandatory but encouraged)