public
public copied to clipboard
Add MPLS static LDP nh-network-instance
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
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
No major YANG version changes in commit e1b771e0b5093894bafee67a81d3222f2c41c5a0