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 flag to disable "Non-zero priority for non-ternary match" check in BMv2 #642

Open
ghost opened this issue Aug 17, 2018 · 0 comments
Open

Comments

@ghost
Copy link

ghost commented Aug 17, 2018

It's hard for us right now to only set priorities for ternary matches (we should be able to be compliant eventually though). Could you add a flag to Bmv2 that disables the check which validates that priorities are only set for ternary matches? The line you would have to modify is:

//depot/google3/third_party/p4lang_PI/proto/frontend/src/device_mgr.cpp:1740
RETURN_ERROR_STATUS(Code::INVALID_ARGUMENT, "Non-zero priority for non-ternary match");

I would send you a pull request, but I don't quite know how flags work in BMv2.

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

No branches or pull requests

0 participants