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

[dvs/chassis] Bring up SONiC interfaces in virtual chassis #1410

Merged
merged 3 commits into from
Aug 20, 2020

Conversation

daall
Copy link
Contributor

@daall daall commented Aug 19, 2020

Signed-off-by: Danny Allen daall@microsoft.com

What I did/why I did it
While testing sonic-net/sonic-buildimage#5192 we figured out that the port config that is generated from port_config.ini does not include any information about the admin status of the ports on the virtual switch.

However, with this PR, ports are set to DOWN by default in the DVS. This causes the connectivity checks in test_virtual_chassis.py to fail indefinitely.

This PR ensures that the necessary ports in the chassis are admin UP so that pings can be sent from the LC instances to the neighboring servers.

I kept mixing up which interface was which while working on this PR, so I also refactored some of the variable names to be more descriptive.

How I verified it
Ran the chassis tests against the current master docker-sonic-vs as well as the one from sonic-net/sonic-buildimage#5192. Both are successful on all chassis topologies.

Details if related

Signed-off-by: Danny Allen <daall@microsoft.com>
@daall
Copy link
Contributor Author

daall commented Aug 19, 2020

@saravanansv can you help check too?

zhenggen-xu
zhenggen-xu previously approved these changes Aug 20, 2020
tests/conftest.py Show resolved Hide resolved
tests/conftest.py Outdated Show resolved Hide resolved
tests/conftest.py Outdated Show resolved Hide resolved
tests/conftest.py Outdated Show resolved Hide resolved
tests/conftest.py Show resolved Hide resolved
@daall daall merged commit d5ddb82 into sonic-net:master Aug 20, 2020
@daall daall deleted the chassis_fix branch August 20, 2020 04:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants