Introduce recurse action in policy-forwarding - #1520
Open
amitarista wants to merge 4 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces a new recurse leaf to the policy-forwarding action configuration, allowing recursive next-hop resolution via longest prefix match in the FIB. Feedback was provided to clarify the description of the recurse leaf, suggesting to replace 'If not enabled' with 'If this leaf is not configured' to avoid ambiguity since it is an optional enumeration rather than a boolean.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change Scope
recursewithin /network-instances/network-instance/policy-forwarding/policies/policy/rules/rule/action/Platform Implementations
Arista implementation document - https://www.arista.com/en/support/toi/eos-4-20-5f/14550#redirect-next-hop
Example config:
Tree View
+--rw policy-forwarding | +--rw policies | | +--rw policy* [policy-id] | | +--rw rules | | +--rw rule* [sequence-id] | | +--rw action | | | +--rw config | | | +--rw log? boolean | | | +--rw post-decap-network-instance? -> /network-instances/network-instance/config/name | | | +--rw network-instance? -> /network-instances/network-instance/config/name | | | +--rw path-selection-group? -> ../../../../../../../path-selection-groups/path-selection-group/config/group-id | | | +--rw next-hop? oc-inet:ip-address + | | | +--rw recurse? enumeration | | | +--rw next-hop-group? -> ../../../../../../../../static/next-hop-groups/next-hop-group/config/name | | | +--rw decapsulate-mpls-in-udp? boolean | | | +--rw decapsulate-gue? boolean | | | x--rw ip-ttl? uint8 | | +--ro state @@ -1569,10 +1570,11 @@ | | | +--ro log? boolean | | | +--ro post-decap-network-instance? -> /network-instances/network-instance/config/name | | | +--ro network-instance? -> /network-instances/network-instance/config/name | | | +--ro path-selection-group? -> ../../../../../../../path-selection-groups/path-selection-group/config/group-id | | | +--ro next-hop? oc-inet:ip-address + | | | +--ro recurse? enumeration | | | +--ro next-hop-group? -> ../../../../../../../../static/next-hop-groups/next-hop-group/config/name | | | +--ro decapsulate-mpls-in-udp? boolean | | | +--ro decapsulate-gue? boolean | | | x--ro ip-ttl? uint8 | | +--rw encapsulate-gre