-
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
[sai-gen] Deprecate name attribute for all match keys and action parameters, remove type guessing heuristics on object parent names. #480
Conversation
Please ignore this PR for review until #479 is checked in. |
looks like in certain cases, |
That's fine, there's nothing wrong with the @name annotation, it is widely used and guides P4 artifact generation. The only objection in the past was using the pipe symbol to signify SAI code generation; annotations are preferred. |
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.
LGTM, thanks for this contribution.
43e92f5
to
689b48b
Compare
Rebased on top of #479 without any code changes. |
Yep, makes sense! |
This change is based on #479 , hence including all changes in the PR.
No update on SAI headers after this change:
2 comments are updated in lib file, but looks like the previous result is wrong:
Take route_vnet as an example, it indeed only take 4 parameters, as ip_is_v6 field doesn't count: