Skip to content

Conversation

@dplore
Copy link
Member

@dplore dplore commented Nov 14, 2025

Change Scope

  • Add a reference for next-hop network-instance for MPLS static LSP's.
  • This change is backwards compatible.

Platform Implementations

  • Arista EOS static LSP supports configuration of a destination network instance
  • Cisco XROS supports this feature but with a different configuration by mapping a static MPLS label to an IP prefix for a specific VRF

Reference operational use case

See featureprofiles#4538

Tree view

pyang -f tree -p release/models/*/* > ~/new-tree.txt 
diff -bU 100 ~/old-tree.txt ~/new-tree.txt
         |           +--rw egress
         |              +--rw config
         |              |  +--rw incoming-label?              oc-mplst:mpls-label
         |              |  x--rw next-hop?                    inet:ip-address
         |              |  x--rw push-label?                  oc-mplst:mpls-label
         |              |  +--rw interface?                   -> /oc-if:interfaces/interface/name
         |              |  +--rw subinterface?                -> /oc-if:interfaces/interface[oc-if:name=current()/../interface]/subinterfaces/subinterface/
index
         |              |  +--rw metric?                      uint8
+        |              |  +--rw oc-mpls-ni:next-hop-group
+        |              |     +--rw oc-mpls-ni:config
+        |              |     |  +--rw oc-mpls-ni:name?   -> ../../../../../../../../../oc-ni:static/next-hop-groups/next-hop-group/config/name
+        |              |     +--ro oc-mpls-ni:state
+        |              |        +--ro oc-mpls-ni:name?   -> ../../../../../../../../../oc-ni:static/next-hop-groups/next-hop-group/config/name
         |              +--ro state
         |              |  +--ro incoming-label?   oc-mplst:mpls-label
         |              |  x--ro next-hop?         inet:ip-address
         |              |  x--ro push-label?       oc-mplst:mpls-label
         |              |  +--ro interface?        -> /oc-if:interfaces/interface/name
         |              |  +--ro subinterface?     -> /oc-if:interfaces/interface[oc-if:name=current()/../interface]/subinterfaces/subinterface/index
         |              |  +--ro metric?           uint8
         |              +--rw lsp-next-hops
         |                 +--rw lsp-next-hop* [index]
         |                    +--rw index     -> ../config/index
         |                    +--rw config
         |                    |  +--rw index?                            uint32
         |                    |  +--rw ip-address?                       inet:ip-address
         |                    |  +--rw push-label?                       oc-mplst:mpls-label
         |                    |  +--rw interface?                        -> /oc-if:interfaces/interface/name
         |                    |  +--rw subinterface?                     -> /oc-if:interfaces/interface[oc-if:name=current()/../interface]/subinterfaces/su
binterface/index
+        |                    |  +--rw oc-mpls-ni:nh-network-instance?   -> /oc-ni:network-instances/network-instance/config/name
         |                    +--ro state
         |                       +--ro index?                            uint32
         |                       +--ro ip-address?                       inet:ip-address
         |                       +--ro push-label?                       oc-mplst:mpls-label
         |                       +--ro interface?                        -> /oc-if:interfaces/interface/name
         |                       +--ro subinterface?                     -> /oc-if:interfaces/interface[oc-if:name=current()/../interface]/subinterfaces/su
binterface/index
+        |                       +--ro oc-mpls-ni:nh-network-instance?   -> /oc-ni:network-instances/network-instance/config/name

@OpenConfigBot
Copy link

OpenConfigBot commented Nov 14, 2025

No major YANG version changes in commit e1b771e

@dplore dplore marked this pull request as draft November 14, 2025 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants