-
Notifications
You must be signed in to change notification settings - Fork 657
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
Clarify policy-forwarding and routing-policy if no rules are present #1223
base: master
Are you sure you want to change the base?
Conversation
Related to discussion on #1150 |
No major YANG version changes in commit def87eb |
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 - updated clarification reads well.
We discussed this a second time in the OC Operators meeting on Nov 26, 2024. For routing-policy, vendor native implementations widely support policies which have no 'conditions' matching all packets. Example native routing policy configuration: https://gist.github.com/dplore/cff9a4c782f68734adaafff8952fc3cb (Kudos to @oscargdd for sharing this investigation) So I am updating this description to assert that no rules means match all packets. |
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 for BGP routing policies. Thanks Darren.
After a bit more discussion, there was a request to also clarify what happens if there is a routing-policy statement with no condition AND no action, as well as a policy-definition without any statements. These should be treated as errors (grpc error: Note that policy-result is an action. So one may write a valid OC routing-policy which has for example, one statement which as no condition (matching all routes) and a I will update this pull request accordingly. |
Change Scope