Skip to content

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

Merged
lguohan merged 4 commits intosonic-net:masterfrom
lguohan:vs
Apr 30, 2020
Merged

[vs]: dynamically create front panel ports in vs docker#4499
lguohan merged 4 commits intosonic-net:masterfrom
lguohan:vs

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 lguohan@gmail.com

- 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 <lguohan@gmail.com>
@lguohan lguohan requested a review from daall April 29, 2020 09:57
Signed-off-by: Guohan Lu <lguohan@gmail.com>
@lguohan lguohan marked this pull request as ready for review April 29, 2020 18:34
Signed-off-by: Guohan Lu <lguohan@gmail.com>
@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 <abdosi@microsoft.com>
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 <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>
Janetxxx pushed a commit to Janetxxx/sonic-swss that referenced this pull request Nov 10, 2025
…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/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 <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>
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