Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[vs]: dynamically create front panel ports in vs docker #4499

Merged
merged 4 commits into from
Apr 30, 2020

Conversation

lguohan
Copy link
Collaborator

@lguohan lguohan commented Apr 29, 2020

currently, vs docker always create 32 front panel ports.

when vs docker starts, it first detects the peer links
in the namespace and then setup equal number of front panel
interfaces as the peer links.

Signed-off-by: Guohan Lu [email protected]

- Why I did it
currently, vs docker always create 32 front panel ports.

when vs docker starts, it first detects the peer links
in the namespace and then setup equal number of front panel
interfaces as the peer links.

- How I did it
see the pr

- How to verify it
follow the instruction to create vs docker.

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

currently, vs docker always create 32 front panel ports.

when vs docker starts, it first detects the peer links
in the namespace and then setup equal number of front panel
interfaces as the peer links.

Signed-off-by: Guohan Lu <[email protected]>
@lguohan lguohan requested a review from daall April 29, 2020 09:57
Signed-off-by: Guohan Lu <[email protected]>
@lguohan lguohan marked this pull request as ready for review April 29, 2020 18:34
platform/vs/docker-sonic-vs/start.sh Outdated Show resolved Hide resolved
platform/vs/create_vnet.sh Show resolved Hide resolved
Signed-off-by: Guohan Lu <[email protected]>
@lguohan
Copy link
Collaborator Author

lguohan commented Apr 30, 2020

retest vs please

@lguohan
Copy link
Collaborator Author

lguohan commented Apr 30, 2020

retest vsimage please

@lguohan lguohan merged commit 86bc8ae into sonic-net:master Apr 30, 2020
@lguohan lguohan deleted the vs branch April 30, 2020 19:51
abdosi added a commit to abdosi/sonic-swss that referenced this pull request Jul 31, 2020
and ports are created dynamically (ref pr:
sonic-net/sonic-buildimage#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 <[email protected]>
abdosi added a commit to sonic-net/sonic-swss that referenced this pull request Aug 18, 2020
…ber of front-panel ports < 32 (#1373)

* Fix the issue where persistent DVS is used to run pytest
and ports are created dynamically (ref pr:
sonic-net/sonic-buildimage#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 <[email protected]>

* Review Comments fix

Signed-off-by: Abhishek Dosi <[email protected]>

* Added option for force persitent dvs if port < 32
Updated Readme

Signed-off-by: Abhishek Dosi <[email protected]>

* Fix LGTM

Signed-off-by: Abhishek Dosi <[email protected]>

* Fix LGTM and compile error

Signed-off-by: Abhishek Dosi <[email protected]>

* Update tests/conftest.py

Co-authored-by: Danny Allen <[email protected]>

Co-authored-by: Danny Allen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants