-
Notifications
You must be signed in to change notification settings - Fork 444
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
Use a version of simple switch that uses nanomsg instead of virtual interfaces for PTF tests. #3951
Conversation
dad6f54
to
2099f15
Compare
2099f15
to
950855c
Compare
What is the motivation for such a change? Is it that since veth interfaces are no longer required for packets into and out of simple_switch, that PTF tests can be run without root privileges? |
There are three advantages to this approach.
The downside is that we are not "emulating" real network conditions anymore. However, for testing the tool chain I would say nanomsg is sufficient. And we can make this a toggle option for the script (either run veth or nanomsg). |
fd31b1f
to
6d1b610
Compare
62651ed
to
fc278c4
Compare
fc278c4
to
137f7d1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approve!
This PR adds support for nanomsg to the
run-bmv2-ptf-test.py
script. It does not yet add support to create a large number of ports. The behavior of the script is the same as the veth interfaces for now.