IPI-MPLS-RIB
Configure route prefix
Use this attribute to specify the route prefix for which FEC mapping needs to be added
Attribute Name: route-prefix
Attribute Type: string
Attribute Name: mapped-fec
Attribute Type: string
Netconf edit-config payload
<mpls xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-mpls">
<rib xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-mpls-rib">
<map-route>
<static-ipv4-map-routes>
<static-ipv4-map-route> <!-- operation="delete"-->
<route-prefix>A.B.C.D/M|A.B.C.D A.B.C.D</route-prefix>
<config>
<route-prefix>A.B.C.D/M|A.B.C.D A.B.C.D</route-prefix>
<mapped-fec>A.B.C.D/M|A.B.C.D A.B.C.D</mapped-fec>
</config>
</static-ipv4-map-route>
</static-ipv4-map-routes>
</map-route>
</rib>
</mpls>
Command Syntax
mpls map-route (A.B.C.D/M|A.B.C.D A.B.C.D) (A.B.C.D/M|A.B.C.D A.B.C.D)
Configure out interface name
Outgoing interface name
Attribute Name: out-interface-name
Attribute Type: string
Netconf edit-config payload
<mpls xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-mpls">
<rib xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-mpls-rib">
<static-lsps>
<ipv4-static-ftn-entries>
<ipv4-static-ftn-entry>
<out-interface-name>IFNAME</out-interface-name>
<config>
<out-interface-name>IFNAME</out-interface-name>
<nexthop-ip-address>A.B.C.D</nexthop-ip-address>
<pushed-label>16</pushed-label>
<fec-prefix>A.B.C.D/M|A.B.C.D A.B.C.D</fec-prefix>
</config>
<nexthop-ip-address>A.B.C.D</nexthop-ip-address>
<pushed-label>16</pushed-label>
<fec-prefix>A.B.C.D/M|A.B.C.D A.B.C.D</fec-prefix>
</ipv4-static-ftn-entry>
</ipv4-static-ftn-entries>
</static-lsps>
</rib>
</mpls>
Command Syntax
mpls ftn-entry (A.B.C.D/M|A.B.C.D A.B.C.D) <16-1048575> A.B.C.D IFNAME
Configure tunnel id
FTN tunnel-id value
Attribute Name: tunnel-id
Attribute Type: uint32
Attribute Range: 1-5000
Netconf edit-config payload
<mpls xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-mpls">
<rib xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-mpls-rib">
<static-lsps>
<static-ftn-tunnels>
<static-ftn-tunnel> <!-- operation="delete"-->
<is-primary>primary</is-primary>
<config>
<is-primary>primary</is-primary>
<out-interface-name>IFNAME</out-interface-name>
<nexthop-ip-address>CML_IP_ADDR_T</nexthop-ip-address>
<pushed-label>16</pushed-label>
<fec-prefix>CML_IP_PREFIX_T</fec-prefix>
<tunnel-id>1</tunnel-id>
</config>
<out-interface-name>IFNAME</out-interface-name>
<nexthop-ip-address>CML_IP_ADDR_T</nexthop-ip-address>
<pushed-label>16</pushed-label>
<fec-prefix>CML_IP_PREFIX_T</fec-prefix>
<tunnel-id>1</tunnel-id>
</static-ftn-tunnel>
</static-ftn-tunnels>
</static-lsps>
</rib>
</mpls>
Command Syntax
mpls ftn-entry tunnel-id <1-5000> (A.B.C.D/M|A.B.C.D A.B.C.D) <16-1048575> A.B.C.D IFNAME ((secondary|primary)|)
Configure fec prefix
FTN tunnel-id value
Attribute Name: tunnel-id
Attribute Type: uint32
Attribute Range: 1-5000
Netconf edit-config payload
<mpls xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-mpls">
<rib xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-mpls-rib">
<static-lsps>
<static-ftn-tunnels>
<static-ftn-tunnel> <!-- operation="delete"-->
<is-primary>primary</is-primary>
<config>
<is-primary>primary</is-primary>
<out-interface-name>IFNAME</out-interface-name>
<nexthop-ip-address>CML_IP_ADDR_T</nexthop-ip-address>
<pushed-label>16</pushed-label>
<fec-prefix>CML_IP_PREFIX_T</fec-prefix>
<tunnel-id>1</tunnel-id>
</config>
<out-interface-name>IFNAME</out-interface-name>
<nexthop-ip-address>CML_IP_ADDR_T</nexthop-ip-address>
<pushed-label>16</pushed-label>
<fec-prefix>CML_IP_PREFIX_T</fec-prefix>
<tunnel-id>1</tunnel-id>
</static-ftn-tunnel>
</static-ftn-tunnels>
</static-lsps>
</rib>
</mpls>
Command Syntax
mpls ftn-entry tunnel-id <1-5000> X:X::X:X/M <16-1048575> X:X::X:X IFNAME ((secondary|primary)|)
Configure enable pop label
Use this attribute to create an ILM entry in the ILM table to which a POP incoming interface is bound. Upon receipt of a labeled packet on an MPLS-enabled router, a lookup is done based on the incoming label in the ILM table. If a match is found, the packet may either be label-switched downstream, or popped and passed over IP. In a pop operation, an outgoing label is not needed as is either accepted or forwarded over IP. The nexthop option is also not mandatory because the FEC IP address could be a local IP address
Attribute Name: enable-pop-label
Attribute Type: uint8
Netconf edit-config payload
<mpls xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-mpls">
<rib xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-mpls-rib">
<static-lsps>
<static-ilm-entries>
<static-ilm-entry>
<incoming-label>16</incoming-label>
<config>
<incoming-label>16</incoming-label>
</config>
<pop>
<config>
</enable-pop-label>
</config>
</pop>
</static-ilm-entry>
</static-ilm-entries>
</static-lsps>
</rib>
</mpls>
Command Syntax
mpls ilm-entry <16-1048575> pop
Configure incoming label
Incoming Label
Attribute Name: incoming-label
Attribute Type: uint32
Attribute Range: 16-1048575
Attribute Name: in-interface-name
Attribute Type: string
Attribute Name: swapped-label
Attribute Type: uint32
Attribute Range: 16-1048575
Attribute Name: out-interface-name
Attribute Type: string
Attribute Name: nexthop-ip-address
Attribute Type: inet:ip-address
Attribute Name: fec-prefix
Attribute Type: union
Netconf edit-config payload
<mpls xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-mpls">
<rib xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-mpls-rib">
<static-lsps>
<static-ilm-entries>
<static-ilm-entry> <!-- operation="delete"-->
<incoming-label>16</incoming-label>
<config>
<incoming-label>16</incoming-label>
</config>
<swaps>
<swap>
<in-interface-name>IFNAME</in-interface-name>
<swapped-label>16</swapped-label>
<out-interface-name>IFNAME</out-interface-name>
<nexthop-ip-address>CML_IP_ADDR_T</nexthop-ip-address>
<fec-prefix>CML_IP_PREFIX_T</fec-prefix>
</swap>
</swaps>
</static-ilm-entry>
</static-ilm-entries>
</static-lsps>
</rib>
</mpls>
Command Syntax
mpls ilm-entry <16-1048575> swap <16-1048575> IFNAME A.B.C.D (A.B.C.D/M|A.B.C.D A.B.C.D)
Configure in interface name
Incoming Label
Attribute Name: incoming-label
Attribute Type: uint32
Attribute Range: 16-1048575
Attribute Name: in-interface-name
Attribute Type: string
Attribute Name: swapped-label
Attribute Type: uint32
Attribute Range: 16-1048575
Attribute Name: out-interface-name
Attribute Type: string
Attribute Name: nexthop-ip-address
Attribute Type: inet:ipv4-address
Attribute Name: fec-prefix
Attribute Type: string
Netconf edit-config payload
<mpls xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-mpls">
<rib xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-mpls-rib">
<static-lsps>
<static-ilm-entries>
<static-ilm-entry> <!-- operation="delete"-->
<incoming-label>16</incoming-label>
<config>
<incoming-label>16</incoming-label>
</config>
<swaps>
<swap>
<in-interface-name>IFNAME</in-interface-name>
<swapped-label>16</swapped-label>
<out-interface-name>IFNAME</out-interface-name>
<nexthop-ip-address>CML_IP_ADDR_T</nexthop-ip-address>
<fec-prefix>CML_IP_PREFIX_T</fec-prefix>
</swap>
</swaps>
</static-ilm-entry>
</static-ilm-entries>
</static-lsps>
</rib>
</mpls>
Command Syntax
mpls ilm-entry <16-1048575> IFNAME swap <16-1048575> IFNAME A.B.C.D (A.B.C.D/M|A.B.C.D A.B.C.D)
Configure swapped label
Incoming Label
Attribute Name: incoming-label
Attribute Type: uint32
Attribute Range: 16-1048575
Attribute Name: in-interface-name
Attribute Type: string
Attribute Name: swapped-label
Attribute Type: uint32
Attribute Range: 16-1048575
Attribute Name: out-interface-name
Attribute Type: string
Attribute Name: nexthop-ip-address
Attribute Type: inet:ipv4-address
Attribute Name: fec-prefix
Attribute Type: string
Netconf edit-config payload
<mpls xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-mpls">
<rib xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-mpls-rib">
<static-lsps>
<static-ilm-entries>
<static-ilm-entry> <!-- operation="delete"-->
<incoming-label>16</incoming-label>
<config>
<incoming-label>16</incoming-label>
</config>
<swaps>
<swap>
<in-interface-name>IFNAME</in-interface-name>
<swapped-label>16</swapped-label>
<out-interface-name>IFNAME</out-interface-name>
<nexthop-ip-address>CML_IP_ADDR_T</nexthop-ip-address>
<fec-prefix>CML_IP_PREFIX_T</fec-prefix>
</swap>
</swaps>
</static-ilm-entry>
</static-ilm-entries>
</static-lsps>
</rib>
</mpls>
Command Syntax
mpls ilm-entry <16-1048575> swap <16-1048575> IFNAME X:X::X:X X:X::X:X/M
Configure nexthop ip address
Incoming Label
Attribute Name: incoming-label
Attribute Type: uint32
Attribute Range: 16-1048575
Attribute Name: in-interface-name
Attribute Type: string
Attribute Name: swapped-label
Attribute Type: uint32
Attribute Range: 16-1048575
Attribute Name: out-interface-name
Attribute Type: string
Attribute Name: nexthop-ip-address
Attribute Type: inet:ipv4-address
Attribute Name: fec-prefix
Attribute Type: string
Netconf edit-config payload
<mpls xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-mpls">
<rib xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-mpls-rib">
<static-lsps>
<static-ilm-entries>
<static-ilm-entry> <!-- operation="delete"-->
<incoming-label>16</incoming-label>
<config>
<incoming-label>16</incoming-label>
</config>
<swaps>
<swap>
<in-interface-name>IFNAME</in-interface-name>
<swapped-label>16</swapped-label>
<out-interface-name>IFNAME</out-interface-name>
<nexthop-ip-address>CML_IP_ADDR_T</nexthop-ip-address>
<fec-prefix>CML_IP_PREFIX_T</fec-prefix>
</swap>
</swaps>
</static-ilm-entry>
</static-ilm-entries>
</static-lsps>
</rib>
</mpls>
Command Syntax
mpls ilm-entry <16-1048575> IFNAME swap <16-1048575> IFNAME X:X::X:X X:X::X:X/M
Last modified date: 07-14-2023