Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

Mapping OpenConfig MPLS Commands to Junos Configuration

 Note

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/

members-list/config/from-address

/mpls/te-global-attributes/srlg/srlg/static-srlg-members/

members-list/config/to-address

set routing-options fate-sharing group name from address to address

Admin Groups

/mpls/te-global-attributes/mpls-admin-groups/admin-group/

config/admin-group-name

/mpls/te-global-attributes/mpls-admin-groups/admin-group/

config/bit-position

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/

graceful-restart/config/enable

/mpls/signaling-protocols/rsvp-te/global/

graceful-restart/config/restart-time

/mpls/signaling-protocols/rsvp-te/global/

graceful-restart/config/recovery-time

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/

soft-preemption/config/enable

/mpls/signaling-protocols/rsvp-te/global/

soft-preemption/config/soft-preemption-timeout

set protocols rsvp preemption soft-preemption cleanup-timer timer

Hello Interval (All Interfaces)

/mpls/signaling-protocols/rsvp-te/global/

hellos/config/hello-interval

/mpls/signaling-protocols/rsvp-te/global/

hellos/config/refresh-reduction

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/

interface/config/interface-id

/mpls/signaling-protocols/rsvp-te/interface-attributes/

interface/interface-ref/config/interface

/mpls/signaling-protocols/rsvp-te/interface-attributes/

interface/config/interface-name

/mpls/signaling-protocols/rsvp-te/interface-attributes/

interface/hellos/config/hello-interval

/mpls/signaling-protocols/rsvp-te/interface-attributes/

interface/hellos/config/refresh-reduction

set protocols rsvp interface name hello-interval interval

set protocols rsvp interface name no-reliable

Authentication Key

/mpls/signaling-protocols/rsvp-te/interface-attributes/

interface/config/interface-id

/mpls/signaling-protocols/rsvp-te/interface-attributes/

interface/interface-ref/config/interface

/mpls/signaling-protocols/rsvp-te/interface-attributes/

interface/interface-ref/config/subinterface

/mpls/signaling-protocols/rsvp-te/interface-attributes/

interface/authentication/config/enable

/mpls/signaling-protocols/rsvp-te/interface-attributes/

interface/authentication/config/authentication-key

set protocols rsvp interface name authentication-key key

Subscription

/mpls/signaling-protocols/rsvp-te/interface-attributes/

interface/config/interface-id

/mpls/signaling-protocols/rsvp-te/interface-attributes/

interface/interface-ref/config/interface

/mpls/signaling-protocols/rsvp-te/interface-attributes/

interface/interface-ref/config/subinterface

/mpls/signaling-protocols/rsvp-te/interface-attributes/

interface/subscription/config/subscription

set protocols rsvp interface name subscription subscription

Link Protection

/mpls/signaling-protocols/rsvp-te/interface-attributes/

interface/config/interface-id

/mpls/signaling-protocols/rsvp-te/interface-attributes/

interface/interface-ref/config/interface

/mpls/signaling-protocols/rsvp-te/interface-attributes/

interface/interface-ref/config/subinterface

/mpls/signaling-protocols/rsvp-te/interface-attributes/interface/

protection/config/link-protection-style-requested/unprotected

/mpls/signaling-protocols/rsvp-te/interface-attributes/interface/protection/

config/link-protection-style-requested/link-protection-requested

/mpls/signaling-protocols/rsvp-te/interface-attributes/interface/protection/

config/link-protection-style-requested/link-node-protection-requested

/mpls/signaling-protocols/rsvp-te/interface-attributes/interface/protection/

config/bypass-optimize-interval

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/

config/address

/mpls/lsps/constrained-path/named-explicit-paths/explicit-route-objects/

config/hop-type

/mpls/lsps/constrained-path/named-explicit-paths/explicit-route-objects/

config/index

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/

signaling-protocol/path-setup-rsvp

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/

protection-style-requested/unprotected

/mpls/lsps/constrained-path/tunnel/config/

protection-style-requested/link-protection-requested

/mpls/lsps/constrained-path/tunnel/config/

protection-style-requested/link-node-protection-requested

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/

specification-type/specified

/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/

specification-type/auto

/mpls/lsps/constrained-path/tunnel/bandwidth/auto-bandwidth/

config/enabled

/mpls/lsps/constrained-path/tunnel/bandwidth/auto-bandwidth/

config/min-bw

/mpls/lsps/constrained-path/tunnel/bandwidth/auto-bandwidth/

config/max-bw

/mpls/lsps/constrained-path/tunnel/bandwidth/auto-bandwidth/

config/adjust-interval

/mpls/lsps/constrained-path/tunnel/bandwidth/auto-bandwidth/

config/adjust-threshold

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/

config/specification-type/auto

/mpls/lsps/constrained-path/tunnel/auto-bandwidth/overflow/

config/enabled

/mpls/lsps/constrained-path/tunnel/bandwidth/auto-bandwidth/

overflow/config/overflow-threshold

/mpls/lsps/constrained-path/tunnel/bandwidth/auto-bandwidth/

overflow/config/trigger-event-count

set protocols mpls label-switched-path name auto-bandwidth adjust-threshold-overflow-limit

Underflow Bandwidth

/mpls/lsps/constrained-path/tunnel/bandwidth/config/

specification-type/auto

/mpls/lsps/constrained-path/tunnel/auto-bandwidth/underflow/

config/enabled

/mpls/lsps/constrained-path/tunnel/bandwidth/auto-bandwidth/

underflow/config/underflow-threshold

/mpls/lsps/constrained-path/tunnel/bandwidth/auto-bandwidth/

underflowflow/config/trigger-event-count

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/

p2p-tunnel-attributes/config/destination

set protocols mpls label-switched-path name to to

Primary Path

/mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/

p2p-primary-paths/config/name

set protocols mpls label-switched-path name

Primary Path - Locally-Computed

/mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/

p2p-primary-paths/config/path-computation-method/

locally-computed

/mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/

p2p-primary-paths/config/use-cspf

/mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/

p2p-primary-paths/config/cspf-tiebreaker/random

/mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/

p2p-primary-paths/config/cspf-tiebreaker/least-fill

/mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/

p2p-primary-paths/config/cspf-tiebreaker/most-fill

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/

p2p-tunnel-attributes/p2p-primary-paths/config/

path-computation-method/externally-queried

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/

p2p-tunnel-attributes/p2p-primary-paths/config/

path-computation-method/explicitly-defined

/mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/

p2p-primary-paths/config/explicit-path-name

set protocols mpls label-switched-path name primary path

Primary Path - Preference

/mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/

p2p-primary-paths/config/preference

set protocols mpls label-switched-path name primary path preference preference

Primary Path - Priorities

/mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/

p2p-primary-paths/config/setup-priority

/mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/

p2p-primary-paths/config/hold-priority

set protocols mpls label-switched-path name primary path priority setup reservation

Primary Path - Retry Timer

/mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/

p2p-primary-paths/config/retry-timer

set protocols mpls label-switched-path name retry-timer

Primary Path - Candidate Secondary Paths

/mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/

p2p-primary-paths/candidate-secondary-paths

Not supported

Primary Path – Admin-Groups

/mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/

p2p-primary-paths/admin-groups/config/exclude-group

/mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/

p2p-primary-paths/admin-groups/config/include-all-group

/mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/

p2p-primary-paths/admin-groups/config/include-any-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 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/

p2p-secondary-paths/config/name

set protocols mpls label-switched-path name

Secondary Path - Locally-Computed

/mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/

p2p-secondary-paths/config/

path-computation-method/locally-computed

/mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/

p2p-secondary-paths/config/use-cspf

/mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/

p2p-secondary-paths/config/cspf-tiebreaker/random

/mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/

p2p-secondary-paths/config/cspf-tiebreaker/least-fill

/mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/

p2p-secondary-paths/config/cspf-tiebreaker/most-fill

set protocols mpls label-switched-path name secondary path name no-cspf

Secondary Path - Externally Queried

/mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/

p2p-secondary-paths/config/

path-computation-method/externally-queried

Not supported

Secondary Path - Explicitly Defined

/mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/

p2p-secondary-paths/config/

path-computation-method/explicitly-defined

/mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/

p2p-secondary-paths/config/explicit-path-name

set protocols mpls label-switched-path name secondary path

Secondary Path - Preference

/mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/

p2p-secondary-paths/config/preference

set protocols mpls label-switched-path name secondary path preference preference

Secondary Path - Priorities

/mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/

p2p-secondary-paths/config/setup-priority

/mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/

p2p-secondary-paths/config/hold-priority

set protocols mpls label-switched-path name secondary path priority setup reservation

Secondary Path - Retry Timer

/mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/

p2p-secondary-paths/config/retry-timer

set protocols mpls label-switched-path name secondary path retry-timer

Secondary Path - Admin-Groups

/mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/

p2p-secondary-paths/admin-groups/config/exclude-group

/mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/

p2p-secondary-paths/admin-groups/config/include-all-group

/mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/

p2p-secondary-paths/admin-groups/config/include-any-group

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