Skip to content

Add policy-forwarding action next-hop-group #1333

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

dplore
Copy link
Member

@dplore dplore commented Jul 9, 2025

Change Scope

  • This adds a policy-forwarding action to set the next-hop-group
  • In this use case, a next-hop-group is a statically defined with one or more next-hops
  • If a packet matches the policy-forwarding rule, then the system resolves the next-hops using the referenced next-hop group.

Tree view

        +--rw policy-forwarding
        |  +--rw policies
        |  |  +--rw policy* [policy-id]
        |  |     +--rw rules
        |  |        +--rw rule* [sequence-id]
         |  |           +--rw action
         |  |           |  +--rw config
         |  |           |  |  +--rw discard?                           boolean
         |  |           |  |  +--rw decapsulate-gre?                   boolean
         |  |           |  |  +--rw decap-network-instance?            -> /network-instances/network-instance/config/name
         |  |           |  |  +--rw decap-fallback-network-instance?   -> /network-instances/network-instance/config/name
         |  |           |  |  +--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 next-hop-group?                    -> ../../../../../../../../static/next-hop-groups/next-hop-group/config/name
         |  |           |  |  +--rw decapsulate-mpls-in-udp?           boolean
         |  |           |  |  +--rw decapsulate-gue?                   boolean
         |  |           |  +--ro state
         |  |           |  |  +--ro discard?                           boolean
         |  |           |  |  +--ro decapsulate-gre?                   boolean
         |  |           |  |  +--ro decap-network-instance?            -> /network-instances/network-instance/config/name
         |  |           |  |  +--ro decap-fallback-network-instance?   -> /network-instances/network-instance/config/name
         |  |           |  |  +--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 next-hop-group?                    -> ../../../../../../../../static/next-hop-groups/next-hop-group/config/name
         |  |           |  |  +--ro decapsulate-mpls-in-udp?           boolean
         |  |           |  |  +--ro decapsulate-gue?                   boolean

Platform Implementations

traffic-policies
  traffic-policy samplePolicy
    match v6-dscp3 ipv6
      dscp 3
      !
      actions
        redirect next-hop group MY_NHG
    !
Router(config)# ipv4 access-list TEST
Router(config-ipv4-acl)# 10 permit tcp any any

/* Configure an ACE to match on the dont-fragment flag (indicates a non-fragmented packet)
 and forward the packet to the default (pre-configured) next hop  */
Router(config-ipv4-acl)# 20 permit tcp any any fragment-type dont-fragment nexthop1 ipv4 192.0.2.1 
  • JunOS supports filter based forwarding and configuring next-hop-groups. We are working with Juniper to extend this for next-hop-group and add OpenConfig policy-forwarding to a next-hop-group.

  • Nokia SR Linux supports configuration of next-hop-group. We are working with Nokia to extend this for next-hop-group and add OpenConfig policy-forwarding to a next-hop-group.

@OpenConfigBot
Copy link

OpenConfigBot commented Jul 9, 2025

No major YANG version changes in commit de63d24

@dplore dplore moved this to Ready to discuss in OC Operator Review Jul 9, 2025
@dplore dplore marked this pull request as ready for review July 9, 2025 02:53
@dplore dplore requested a review from a team as a code owner July 9, 2025 02:53
@dplore
Copy link
Member Author

dplore commented Jul 17, 2025

Setting last call for July 29, 2025

@ElodinLaarz
Copy link
Contributor

Reviewed at the OC Operators Meeting on July 22nd; moving to last-call on August 5th (2 weeks).

@ElodinLaarz ElodinLaarz moved this from Ready to discuss to last-call in OC Operator Review Jul 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: last-call
Development

Successfully merging this pull request may close these issues.

3 participants