Mapping OpenConfig MPLS Commands to Junos Configuration
See OpenConfig Data Model Version topic to understand the data models supported version and its Junos OS release for Juniper Networks MX Series, PTX Series, and QFX Series.
Table 1 to Table 6 show the mapping of OpenConfig MPLS commands with the relevant configuration in Junos.
Table 1: Global MPLS Configuration
Command Name | OpenConfig Command Path | Junos Configuration |
---|---|---|
Explicit Null | /mpls/global/config/null-label/explicit /mpls/global/config/null-label/implicit | set protocols mpls explicit-null |
Interface | /mpls/global/interface-attributes/interface/config/interface-id /mpls/global/interface-attributes/interface/config/mpls-enabled /mpls/global/interface-attributes/interface/interface-ref/config/interface /mpls/global/interface-attributes/interface/interface-ref/config/subinterface | set protocols mpls interface interface set protocols mpls interface interface disable |
Table 2: TE Global Attributes
Command Name | OpenConfig Command Path | Junos Configuration |
---|---|---|
SRLGs | /mpls/te-global-attributes/srlg/srlg/config/name | Flooded: set routing-options srlg name Static: set routing-options fate-sharing group name |
SRLG Value | /mpls/te-global-attributes/srlg/srlg/config/value | set routing-options fate-sharing group name srlg-value value |
SRLG Cost | /mpls/te-global-attributes/srlg/srlg/config/cost | Flooded: set routing-options srlg name srlg-cost cost Static: set routing-options fate-sharing group name cost cost |
Address | /mpls/te-global-attributes/srlg/srlg/static-srlg-members/ /mpls/te-global-attributes/srlg/srlg/static-srlg-members/ | set routing-options fate-sharing group name from address to address |
Admin Groups | /mpls/te-global-attributes/mpls-admin-groups/admin-group/ /mpls/te-global-attributes/mpls-admin-groups/admin-group/ | Bit position (group-value) 0-31: set protocols mpls admin-groups group-name group-value Bit position (group-value) 32-4294967295: set routing-options admin-groups-extended group-name group-value group-value |
Delay | /mpls/te-global-attributes/te-lsp-timers/config/install-delay /mpls/te-global-attributes/te-lsp-timers/config/cleanup-delay /mpls/te-global-attributes/te-lsp-timers/config/reoptimize-timer | set protocols mpls optimize-switchover-delay delay set protocols mpls optimize-hold-dead-delay delay set protocols mpls optimize-timer timer |
Table 3: TE Interface Attributes
Command Name | OpenConfig Command Path | Junos Configuration |
---|---|---|
TE Interface | /mpls/te-interface-attributes/interface/config/interface-id /mpls/te-interface-attributes/interface/interface-ref/config/interface /mpls/te-interface-attributes/interface/interface-ref/config/subinterface | set protocols ospf area id interface interface |
TE Metric | /mpls/te-interface-attributes/interface/config/te-metric | set protocols ospf area id interface interface te-metric te-metric set protocols isis interface interface level level te-metric te-metric |
SRLG Membership | /mpls/te-interface-attributes/interface/config/srlg-membership | set protocols mpls interface name srlg name |
Admin Groups | /mpls/te-interface-attributes/interface/config/admin-group | If protocols mpls admin-groups name is configured: set protocols mpls interface name admin-group name If routing-options admin-groups-extended name is configured: set protocols mpls interface name admin-group-extended name |
IGP Flooding Bandwidth | /mpls/te-interface-attributes/interface/igp-flooding-bandwidth/config/threshold-type /mpls/te-interface-attributes/interface/igp-flooding-bandwidth/config/delta-percentage | set protocols rsvp interface name update-threshold threshold |
/mpls/te-interface-attributes/interface/igp-flooding-bandwidth/config/threshold-specification /mpls/te-interface-attributes/interface/igp-flooding-bandwidth/config/up-thresholds /mpls/te-interface-attributes/interface/igp-flooding-bandwidth/config/down-thresholds /mpls/te-interface-attributes/interface/igp-flooding-bandwidth/config/up-down-thresholds | Not supported |
Table 4: RSVP Signaling Protocols
Command Name | OpenConfig Command Path | Junos Configuration |
---|---|---|
Graceful Restart | /mpls/signaling-protocols/rsvp-te/global/ /mpls/signaling-protocols/rsvp-te/global/ /mpls/signaling-protocols/rsvp-te/global/ | set protocols rsvp graceful-restart enable set protocols rsvp graceful-restart maximum-helper-recovery-time time set protocols rsvp graceful-restart maximum-helper-restart-time time |
Cleanup Timer | /mpls/signaling-protocols/rsvp-te/global/ /mpls/signaling-protocols/rsvp-te/global/ | set protocols rsvp preemption soft-preemption cleanup-timer timer |
Hello Interval (All Interfaces) | /mpls/signaling-protocols/rsvp-te/global/ /mpls/signaling-protocols/rsvp-te/global/ | set protocols rsvp interface all hello-interval interval set protocols rsvp interface all no-reliable |
Hello Interval (Single Interface) | /mpls/signaling-protocols/rsvp-te/interface-attributes/ /mpls/signaling-protocols/rsvp-te/interface-attributes/ /mpls/signaling-protocols/rsvp-te/interface-attributes/ /mpls/signaling-protocols/rsvp-te/interface-attributes/ /mpls/signaling-protocols/rsvp-te/interface-attributes/ | set protocols rsvp interface name hello-interval interval set protocols rsvp interface name no-reliable |
Authentication Key | /mpls/signaling-protocols/rsvp-te/interface-attributes/ /mpls/signaling-protocols/rsvp-te/interface-attributes/ /mpls/signaling-protocols/rsvp-te/interface-attributes/ /mpls/signaling-protocols/rsvp-te/interface-attributes/ /mpls/signaling-protocols/rsvp-te/interface-attributes/ | set protocols rsvp interface name authentication-key key |
Subscription | /mpls/signaling-protocols/rsvp-te/interface-attributes/ /mpls/signaling-protocols/rsvp-te/interface-attributes/ /mpls/signaling-protocols/rsvp-te/interface-attributes/ /mpls/signaling-protocols/rsvp-te/interface-attributes/ | set protocols rsvp interface name subscription subscription |
Link Protection | /mpls/signaling-protocols/rsvp-te/interface-attributes/ /mpls/signaling-protocols/rsvp-te/interface-attributes/ /mpls/signaling-protocols/rsvp-te/interface-attributes/ /mpls/signaling-protocols/rsvp-te/interface-attributes/interface/ /mpls/signaling-protocols/rsvp-te/interface-attributes/interface/protection/ /mpls/signaling-protocols/rsvp-te/interface-attributes/interface/protection/ /mpls/signaling-protocols/rsvp-te/interface-attributes/interface/protection/ | set protocols rsvp interface name link-protection To disable node-protection: set protocols rsvp interface name link-protection no-node-protection set protocols rsvp interface name link-protection optimize-timer timer |
Table 5: Label Switched Paths
Command Name | OpenConfig Command Path | Junos Configuration |
---|---|---|
Path | /mpls/lsps/constrained-path/named-explicit-paths/config/name /mpls/lsps/constrained-path/named-explicit-paths/explicit-route-objects/ /mpls/lsps/constrained-path/named-explicit-paths/explicit-route-objects/ /mpls/lsps/constrained-path/named-explicit-paths/explicit-route-objects/ | set protocols mpls path name address hop-type |
Name | /mpls/lsps/constrained-path/tunnel/config/name /mpls/lsps/constrained-path/tunnel/config/type/P2P /mpls/lsps/constrained-path/tunnel/config/ | set protocols mpls label-switched-path name |
Description | /mpls/lsps/constrained-path/tunnel/config/description | set protocols mpls label-switched-path name description description |
Admin-Status | /mpls/lsps/constrained-path/tunnel/config/admin-status | set protocols mpls label-switched-path name disable |
Preference | /mpls/lsps/constrained-path/tunnel/config/preference | set protocols mpls label-switched-path name preference preference |
Metric | /mpls/lsps/constrained-path/tunnels/tunnel/config/metric-type /mpls/lsps/constrained-path/tunnels/tunnel/config/shortcut-eligible /mpls/lsps/constrained-path/tunnel/config/metric | set protocols mpls label-switched-path name metric metric |
Link Protection | /mpls/lsps/constrained-path/tunnel/config/ /mpls/lsps/constrained-path/tunnel/config/ /mpls/lsps/constrained-path/tunnel/config/ | set protocols mpls label-switched-path name link-protection set protocols mpls label-switched-path name node-link-protection |
Optimize Timer | /mpls/lsps/constrained-path/tunnel/config/reoptimize-timer | set protocols mpls label-switched-path name optimize-timer timer |
Source | /mpls/lsps/constrained-path/tunnel/config/source | set protocols mpls label-switched-path name from from |
Soft Preemption | /mpls/lsps/constrained-path/tunnel/config/soft-preemption | set protocols mpls label-switched-path name soft-preemption |
Priority | /mpls/lsps/constrained-path/tunnel/config/setup-priority /mpls/lsps/constrained-path/tunnel/config/hold-priority | set protocols mpls label-switched-path name priority setup reservation |
Bandwidth | /mpls/lsps/constrained-path/tunnel/bandwidth/config/ /mpls/lsps/constrained-path/tunnel/bandwidth/config/set-bandwidth | set protocols mpls label-switched-path name bandwidth bandwidth |
Min/Max Bandwidth | /mpls/lsps/constrained-path/tunnel/bandwidth/config/ /mpls/lsps/constrained-path/tunnel/bandwidth/auto-bandwidth/ /mpls/lsps/constrained-path/tunnel/bandwidth/auto-bandwidth/ /mpls/lsps/constrained-path/tunnel/bandwidth/auto-bandwidth/ /mpls/lsps/constrained-path/tunnel/bandwidth/auto-bandwidth/ /mpls/lsps/constrained-path/tunnel/bandwidth/auto-bandwidth/ | set protocols mpls label-switched-path name minimum-bandwidth minimum set protocols mpls label-switched-path name maximum-bandwidth maximum set protocols mpls label-switched-path name adjust-interval interval set protocols mpls label-switched-path name adjust-threshold threshold |
Overflow Bandwidth | /mpls/lsps/constrained-path/tunnel/bandwidth/ /mpls/lsps/constrained-path/tunnel/auto-bandwidth/overflow/ /mpls/lsps/constrained-path/tunnel/bandwidth/auto-bandwidth/ /mpls/lsps/constrained-path/tunnel/bandwidth/auto-bandwidth/ | set protocols mpls label-switched-path name auto-bandwidth adjust-threshold-overflow-limit |
Underflow Bandwidth | /mpls/lsps/constrained-path/tunnel/bandwidth/config/ /mpls/lsps/constrained-path/tunnel/auto-bandwidth/underflow/ /mpls/lsps/constrained-path/tunnel/bandwidth/auto-bandwidth/ /mpls/lsps/constrained-path/tunnel/bandwidth/auto-bandwidth/ | set protocols mpls label-switched-path name auto-bandwidth adjust-threshold-underflow-limit |
Table 6: RSVP P2P Tunnel
Command Name | OpenConfig Command Path | Junos Configuration |
---|---|---|
Destination | /mpls/lsps/constrained-path/tunnel/ | set protocols mpls label-switched-path name to to |
Primary Path | /mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/ | set protocols mpls label-switched-path name |
Primary Path - Locally-Computed | /mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/ /mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/ /mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/ /mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/ /mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/ | set protocols mpls label-switched-path name no-cspf set protocols mpls label-switched-path name random set protocols mpls label-switched-path name least-fill set protocols mpls label-switched-path name most-fill |
Primary Path - Externally Queried | /mpls/lsps/constrained-path/tunnel/ | set protocols mpls label-switched-path name lsp-external-controller pccd set protocols pcep pce name destination-ipv4-address address set protocols pcep pce name destination-port 4189 |
Primary Path - Explicitly Defined | /mpls/lsps/constrained-path/tunnel/ /mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/ | set protocols mpls label-switched-path name primary path |
Primary Path - Preference | /mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/ | set protocols mpls label-switched-path name primary path preference preference |
Primary Path - Priorities | /mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/ /mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/ | set protocols mpls label-switched-path name primary path priority setup reservation |
Primary Path - Retry Timer | /mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/ | set protocols mpls label-switched-path name retry-timer |
Primary Path - Candidate Secondary Paths | /mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/ | Not supported |
Primary Path – Admin-Groups | /mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/ /mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/ /mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/ | set protocols mpls label-switched-path name primary path admin-group exclude group set protocols mpls label-switched-path name primary path admin-group exclude group set protocols mpls label-switched-path name primary path admin-group include-any group |
Secondary Path | /mpls/lsps/constrained-path/tunnel/config/name /mpls/lsps/constrained-path/tunnel/config/type/P2P /mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/ | set protocols mpls label-switched-path name |
Secondary Path - Locally-Computed | /mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/ /mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/ /mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/ /mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/ /mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/ | set protocols mpls label-switched-path name secondary path name no-cspf |
Secondary Path - Externally Queried | /mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/ | Not supported |
Secondary Path - Explicitly Defined | /mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/ /mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/ | set protocols mpls label-switched-path name secondary path |
Secondary Path - Preference | /mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/ | set protocols mpls label-switched-path name secondary path preference preference |
Secondary Path - Priorities | /mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/ /mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/ | set protocols mpls label-switched-path name secondary path priority setup reservation |
Secondary Path - Retry Timer | /mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/ | set protocols mpls label-switched-path name secondary path retry-timer |
Secondary Path - Admin-Groups | /mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/ /mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/ /mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/ | set protocols mpls label-switched-path name secondary path admin-group exclude group set protocols mpls label-switched-path name secondary path admin-group include-all group set protocols mpls label-switched-path name secondary path admin-group include-any group |