# Multiprotocol Label Switching - Tunnel

# URL

frinx-openconfig-network-instance:network-instances/network-instance=default/mpls/lsps/constrained-path/tunnels/tunnel=

# OPENCONFIG YANG

YANG models

extensions to MPLS YANG model

{
    "tunnel": [
        {
            "name": "",
            "config": {
                "name": "",
                "shortcut-eligible": ,
                "metric-type": "frinx-openconfig-mpls-types:LSP_METRIC_ABSOLUTE",
                "metric": ,
                "type": "frinx-openconfig-mpls-types:P2P"
            },
            "p2p-tunnel-attributes": {
                "config": {
                    "destination": ""
                }
            },
            "frinx-cisco-mpls-te-extension:cisco-mpls-te-extension": {
                "config": {
                    "load-share": 
                }
            }
        }
    ]
}

# OS Configuration Commands

# Cisco IOS XR 5.3.4

# CLI

interface tunnel-te 
 load-share 
 autoroute announce | no autoroute announce
  metric absolute 
 destination 

autoroute announce is a conversion of set true
no autoroute announce is a conversion of set false
load-share is not supported on virtual platform CISCO IOS-XR
mpls_tunnel_destination is optional parameter
metric absolute command is only valid if autoroute announce is set

# Unit

Link to github : xr-unit

# Junos 17.3R1.10

# CLI

set protocols mpls label-switched-path  to 
set protocols mpls label-switched-path  to  metric 

*set protocols mpls label-switched-path * is a conversion of set true
mpls_tunnel_destination is mandatory parameter

# Unit

Link to github : junos-unit