Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

将 OpenConfig MPLS 命令映射到 Junos 配置

注意:

请参阅 OpenConfig 数据 模型版本主题,了解瞻博网络 MX 系列、PTX 系列和 QFX 系列的数据模型支持的版本及其 Junos OS 版本。

1表 6 显示了 OpenConfig MPLS 命令与 Junos 中相关配置的映射。

表 1:全局 MPLS 配置

命令名称

OpenConfig 命令路径

Junos 配置

显式空值

/mpls/global/config/null-label/explicit

/mpls/global/config/null-label/implicit

set protocols mpls explicit-null

接口

/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

表 2:TE 全局属性

命令名称

OpenConfig 命令路径

Junos 配置

SRLG

/mpls/te-global-attributes/srlg/srlg/config/name

淹没:

set routing-options srlg name

静态:

set routing-options fate-sharing group name

SRLG 值

/mpls/te-global-attributes/srlg/srlg/config/value

set routing-options fate-sharing group name srlg-value value

SRLG 成本

/mpls/te-global-attributes/srlg/srlg/config/cost

淹没:

set routing-options srlg name srlg-cost cost

静态:

set routing-options fate-sharing group name cost cost

地址

/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

管理员组

/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

位位置(组值)0-31:

set protocols mpls admin-groups group-name group-value

位位置(组值)32-4294967295:

set routing-options admin-groups-extended group-name group-value group-value

延迟

/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

表 3:TE 接口属性

命令名称

OpenConfig 命令路径

Junos 配置

TE 接口

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

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

/mpls/te-interface-attributes/interface/config/srlg-membership

set protocols mpls interface name srlg name

管理员组

/mpls/te-interface-attributes/interface/config/admin-group

如果 protocols mpls admin-groups name 已配置:

set protocols mpls interface name admin-group name

如果 routing-options admin-groups-extended name 已配置:

set protocols mpls interface name admin-group-extended name

IGP 泛洪带宽

/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

不支持

表 4:RSVP 信令协议

命令名称

OpenConfig 命令路径

Junos 配置

平稳重启

/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

清理计时器

/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

呼叫间隔(所有接口)

/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

呼叫间隔(单接口)

/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

认证密钥

/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

订阅

/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

链路保护

/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

要禁用节点保护:

set protocols rsvp interface name link-protection no-node-protection

set protocols rsvp interface name link-protection optimize-timer timer

表 5:标签交换路径

命令名称

OpenConfig 命令路径

Junos 配置

路径

/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

名字

/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

描述

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

set protocols mpls label-switched-path name description description

管理员状态

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

set protocols mpls label-switched-path name disable

偏好

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

set protocols mpls label-switched-path name preference preference

度量

/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

链路保护

/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

优化计时器

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

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

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

set protocols mpls label-switched-path name from from

软抢占

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

set protocols mpls label-switched-path name soft-preemption

优先

/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

带宽

/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

最小/最大带宽

/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

溢出带宽

/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

下溢带宽

/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

表 6:RSVP P2P 隧道

命令名称

OpenConfig 命令路径

Junos 配置

目的地

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

set protocols mpls label-switched-path name to to

主路径

/mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/ p2p-primary-paths/config/name

set protocols mpls label-switched-path name

主路径 - 本地计算

/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

主路径 - 外部查询

/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

主路径 - 显式定义

/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

主路径 - 首选项

/mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/ p2p-primary-paths/config/preference

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

主路径 - 优先级

/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

主路径 - 重试计时器

/mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/ p2p-primary-paths/config/retry-timer

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

主路径 - 候选辅助路径

/mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/ p2p-primary-paths/candidate-secondary-paths

不支持

主路径 – 管理员组

/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

辅助路径

/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

辅助路径 - 本地计算

/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

辅助路径 - 外部查询

/mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/ p2p-secondary-paths/config/ path-computation-method/externally-queried

不支持

辅助路径 - 显式定义

/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

辅助路径 - 首选项

/mpls/lsps/constrained-path/tunnel/p2p-tunnel-attributes/ p2p-secondary-paths/config/preference

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

辅助路径 - 优先级

/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

辅助路径 - 重试计时器

/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

辅助路径 - 管理员组

/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