-
Notifications
You must be signed in to change notification settings - Fork 93
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
[ptftest] Add p4_dash_utils #640
base: main
Are you sure you want to change the base?
Conversation
Author used P4 runtime directly to add a fixture to add underlay routing |
stub.Write(req) | ||
|
||
|
||
def use_flow(cls): |
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.
better make it more generic.
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.
Add general function set_internal_config
.
@@ -0,0 +1,115 @@ | |||
import grpc |
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.
better add 1 example to show how to use it.
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.
Demo the use of set_internal_config
in saidashvnet_sanity.py
.
This PR adds a module p4_dash_utils to include helper functions for p4 pipeline.
set_internal_config
aims to update pipeline internal configuration, neighbor mac, data port mac, cpu port mac, etc.use_flow
aims to enable flow lookup stage in p4 pipeline. It wrappers method setUp/tearDown of test class.