diff --git a/release/models/policy-forwarding/openconfig-pf-forwarding-policies.yang b/release/models/policy-forwarding/openconfig-pf-forwarding-policies.yang index fafc47f85..4b0f81938 100644 --- a/release/models/policy-forwarding/openconfig-pf-forwarding-policies.yang +++ b/release/models/policy-forwarding/openconfig-pf-forwarding-policies.yang @@ -27,6 +27,12 @@ submodule openconfig-pf-forwarding-policies { oc-ext:openconfig-version "1.2.0"; + revision "2026-07-20" { + description + "Add recurse as a policy-forwarding action."; + reference "1.3.0"; + } + revision "2026-03-13" { description "Add count as a policy-forwarding action."; @@ -756,6 +762,29 @@ grouping pf-forwarding-policy-action-forwarding-config { lookup on the local system."; } + leaf recurse { + type enumeration { + enum INCLUDE_DEFAULT_RT { + description + "Default route (0.0.0.0/0 or ::/0) is considered a + valid longest prefix."; + } + enum EXCLUDE_DEFAULT_RT { + description + "Default route (0.0.0.0/0 or ::/0) is NOT considered a + valid longest prefix."; + } + } + must "../next-hop" { + description + "The recurse leaf is valid only when next-hop is specified."; + } + description + "Determines if the next-hop can be resolved recursively + via longest prefix match in FIB. If this leaf is not configured, + only directly connected routes can resolve the next-hop."; + } + leaf next-hop-group { // we are at /network-instances/network-instance/policy-forwarding/policies/policy/rules/rule/action/config/next-hop-group type leafref {