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

Add support for new ActionRef message in p4runtime #521

Merged
merged 2 commits into from
Apr 26, 2017

Conversation

antoninbas
Copy link
Member

In reaction to the following PI update: p4lang/PI#135

Copy link
Contributor

@sethfowler sethfowler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. (I'm guessing that nobody has a use-case for annotations on the actions themselves...)

action_ref->set_id(id);
addAnnotations(action_ref, action.annotations);
// XXX(antonin): This is temporary for backward-compatibility; can be removed when all
// consummers gave moved from action_ids to action_refs.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/consummers gave/consumers get

@antoninbas antoninbas force-pushed the p4Runtime-p4info-update-action-refs branch from 74417b9 to 7048188 Compare April 26, 2017 00:22
@antoninbas
Copy link
Member Author

annotations on actions show up in the Action message

@sethfowler
Copy link
Contributor

Ah yes, that's a good point. We now have both sets of annotations exposed, which is a good thing.

@antoninbas antoninbas merged commit 25f8a15 into master Apr 26, 2017
@antoninbas antoninbas deleted the p4Runtime-p4info-update-action-refs branch April 26, 2017 01:30
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