forked from sonic-net/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the issue when persistent DVS is used to run pytest which has num…
…ber of front-panel ports < 32 (sonic-net#1373) * Fix the issue where persistent DVS is used to run pytest and ports are created dynamically (ref pr: sonic-net#4499). There were two issues: a) since number of dynamic front port can be < 32 test case fails as it expect always 32. Make sure to udpate persitent DVS to always have 32 ports/server link as part of test run and save the current config db b) after test is done persistent DVS need to be moved to original state. Make dure to remove extra port/server link and restore back config db Signed-off-by: Abhishek Dosi <abdosi@microsoft.com> * Review Comments fix Signed-off-by: Abhishek Dosi <abdosi@microsoft.com> * Added option for force persitent dvs if port < 32 Updated Readme Signed-off-by: Abhishek Dosi <abdosi@microsoft.com> * Fix LGTM Signed-off-by: Abhishek Dosi <abdosi@microsoft.com> * Fix LGTM and compile error Signed-off-by: Abhishek Dosi <abdosi@microsoft.com> * Update tests/conftest.py Co-authored-by: Danny Allen <daall@microsoft.com> Co-authored-by: Danny Allen <daall@microsoft.com>
- Loading branch information
Showing
2 changed files
with
54 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters