From c17d1b926a4469031fbd3004486a873b24415c29 Mon Sep 17 00:00:00 2001 From: amitarista Date: Mon, 20 Jul 2026 14:56:50 +0000 Subject: [PATCH 1/4] Add recurse action to the policy-forwarding rules --- .../openconfig-pf-forwarding-policies.yang | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/release/models/policy-forwarding/openconfig-pf-forwarding-policies.yang b/release/models/policy-forwarding/openconfig-pf-forwarding-policies.yang index fafc47f85..6f35233d7 100644 --- a/release/models/policy-forwarding/openconfig-pf-forwarding-policies.yang +++ b/release/models/policy-forwarding/openconfig-pf-forwarding-policies.yang @@ -756,6 +756,25 @@ 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."; + } + } + description + "Determines if the next-hop can be resolved recursively + via longest prefix match in FIB. If not enabled, 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 { From 2033aa93879df413dd88a99d02e08c23503ab12c Mon Sep 17 00:00:00 2001 From: amitarista Date: Mon, 20 Jul 2026 15:13:44 +0000 Subject: [PATCH 2/4] update revision --- .../openconfig-pf-forwarding-policies.yang | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/release/models/policy-forwarding/openconfig-pf-forwarding-policies.yang b/release/models/policy-forwarding/openconfig-pf-forwarding-policies.yang index 6f35233d7..cec555629 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."; From 6f7b33310a967393250c869e16167803a7868ba6 Mon Sep 17 00:00:00 2001 From: amitarista Date: Mon, 20 Jul 2026 16:36:32 +0000 Subject: [PATCH 3/4] update leaf dependency --- .../policy-forwarding/openconfig-pf-forwarding-policies.yang | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/release/models/policy-forwarding/openconfig-pf-forwarding-policies.yang b/release/models/policy-forwarding/openconfig-pf-forwarding-policies.yang index cec555629..23c617264 100644 --- a/release/models/policy-forwarding/openconfig-pf-forwarding-policies.yang +++ b/release/models/policy-forwarding/openconfig-pf-forwarding-policies.yang @@ -775,6 +775,10 @@ grouping pf-forwarding-policy-action-forwarding-config { 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 not enabled, only directly From c605bc348c420b9b80baeffbecb8a762eb80b5cf Mon Sep 17 00:00:00 2001 From: amitarista Date: Mon, 20 Jul 2026 16:43:41 +0000 Subject: [PATCH 4/4] fixing description ambiguity --- .../policy-forwarding/openconfig-pf-forwarding-policies.yang | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/release/models/policy-forwarding/openconfig-pf-forwarding-policies.yang b/release/models/policy-forwarding/openconfig-pf-forwarding-policies.yang index 23c617264..4b0f81938 100644 --- a/release/models/policy-forwarding/openconfig-pf-forwarding-policies.yang +++ b/release/models/policy-forwarding/openconfig-pf-forwarding-policies.yang @@ -781,8 +781,8 @@ grouping pf-forwarding-policy-action-forwarding-config { } description "Determines if the next-hop can be resolved recursively - via longest prefix match in FIB. If not enabled, only directly - connected routes can resolve the next-hop."; + 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 {