-
Notifications
You must be signed in to change notification settings - Fork 673
Update policy forwarding to support global decapsulation policy #1288
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
base: master
Are you sure you want to change the base?
Conversation
I'd like to add more details on the motivation for this addition: Current OpenConfig policy-forwarding decapsulation configuration paths for UDP/GUE do not map well to implementations. OC policies can only be attached to interfaces, but multiple vendor hardware implementations only support:
These constraints could be accommodated implicitly in OC models today. One can know these constraints out of band and generate a policy that meets all these un-modeled constraints. While this small addition does not directly attempt to model all these constraints in detail, it makes the decap to network-instance relationship explicit. This should be "good enough" for a user to observe the constraints in the configuration and provides the hint to a NOS that the decap constraints should be applied to this policy. |
/gcbrun |
No major YANG version changes in commit 64246ae |
Copy/pasting the comments from OC community meeting:
|
In the case of two policies, the global should be processed first. If a match is found the actions should be performed and the second policy should not be processed.
|
release/models/policy-forwarding/openconfig-pf-forwarding-policies.yang
Outdated
Show resolved
Hide resolved
…obal policy Co-authored-by: Darren Loher <[email protected]>
/gcbrun |
Questions:
(reviewed in 2025-06-03 OpenConfig operators group.) |
@danameme please add vendor references for configuring decapsulation Can you also respond to the quesiton from the OC Operator's meeting: It seems like the approach of adding 'global-decap-policy' leaf is equivalent to adding a policy type of "DECAP", but is perhaps more simple and explicit. WDYT? |
|
Yes, I think so. I've updated PR to reflect the proposed approach and updated PR with existing vendor implementations as well. |
Couple of issues that I can think of with this approach:
|
@akalluru1 please see below responses
|
Comparing to the previous option, the new Creation: Deletion: @danameme @dplore Just want to ensure that the above cases and corresponding behaviors make sense, particularly the cases in deletion process. |
A platform which only supports decapsulation policies in the form of a single global policy could require any policy containing a decapsulation action to also set So if a client pushes a configuration containing a policy "A" with decapsulate action and there is no global-decap-policy = "A" to such a device, the configuration could be rejected. To have a successful config push, either the global-decap-policy must be set before the policy with decapsulation action is added , or global-decap-policy must be included in the set. |
Change Scope
Implementations
Tree View
Flatten View