Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

Mapping OpenConfig Interface 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 8 shows the mapping of OpenConfig interface commands to the relevant configuration in Junos.

Table 1: VRRP Configuration

Command Name

OpenConfig Command Path

Junos Configuration

Virtual Router ID

ifa/vrrp/vrrp-group/config/virtual-router-id

set interfaces interface-name unit unit-number family inet address address vrrp-group virtual-router-id

set interfaces interface-name unit unit-number family inet6 address address vrrp-inet6-group virtual-router-id

Virtual Address

ifa/vrrp/vrrp-group/config/virtual-address

set interfaces interface-name unit unit-number family inet address address vrrp-group virtual-router-id virtual-address address

set interfaces interface-name unit unit-number family inet6 address address vrrp-inet6-group virtual-router-id virtual-inet6-address

VRRP Priority

ifa/vrrp/vrrp-group/config/priority

set interfaces interface-name unit unit-number family inet address address vrrp-group virtual-router-id priority

set interfaces interface-name unit unit-number family inet6 address address vrrp-inet6-group virtual-router-id priority

VRRP Preempt

ifa/vrrp/vrrp-group/config/preempt

set interfaces interface-name unit unit-number family inet address address vrrp-group virtual-router-id preempt

set interfaces interface-name unit unit-number family inet6 address address vrrp-inet6-group virtual-router-id preempt

VRRP Preempt Hold Time

ifa/vrrp/vrrp-group/config/preempt-delay

set interfaces interface-name unit unit-number family inet address address vrrp-group virtual-router-id preempt hold-time time

set interfaces interface-name unit unit-number family inet6 address address vrrp-inet6-group virtual-router-id preempt hold-time time

Accept Data

ifa/vrrp/vrrp-group/config/accept_mode

set interfaces interface-name unit unit-number family inet address address vrrp-group virtual-router-id accept-data

set interfaces interface-name unit unit-number family inet6 address address vrrp-inet6-group virtual-router-id accept-data

Advertise Interval

ifa/vrrp/vrrp-group/config/advertisement_interval

set interfaces interface-name unit unit-number family inet address address vrrp-group virtual-router-id advertise-interval

set interfaces interface-name unit unit-number family inet6 address address vrrp-inet6-group virtual-router-id inet6-advertise-interval

Track Interface

ifa/vrrp/vrrp-group/interface-tracking/config/track-interface

set interfaces interface-name unit unit-number family inet address address vrrp-group virtual-router-id track interface interface-name

set interfaces interface-name unit unit-number family inet6 address address vrrp-inet6-group virtual-router-id track interface interface-name

Priority Cost

ifa/vrrp/vrrp-group/interface-tracking/config/priority-decrement

set interfaces interface-name unit unit-number family inet address address vrrp-group virtual-router-id track interface interface-name priority-cost cost

set interfaces interface-name unit unit-number family inet6 address address vrrp-inet6-group virtual-router-id track interface interface-name priority-cost cost

Virtual Link Local Address

ifa/vrrp/vrrp-group/config/virtual-link-local

set interfaces interface-name unit unit-number family inet6 address address vrrp-inet6-group virtual-router-id virtual-link-local-address

Table 2: IPv4 and IPv6 Address Configuration

Command Name

OpenConfig Command Path

Junos Configuration

Configuration Address

ipv4/addresses/address/ip

ipv4/addresses/address/prefix-length

set interfaces interface-name unit unit-number family inet address address

set interfaces interface-name unit unit-number family inet6 address address

Neighbor Address

ipv4/neighbors/neighbor/ip

ipv6/neighbors/neighbor/ip

set interfaces interface-name unit unit-number family inet address address arp address

set interfaces interface-name unit unit-number family inet6 address address ndp address

Link Layer Address

ip4/neighbors/neighbor/ip/link-layer-address

ip6/neighbors/neighbor/ip/link-layer-address

set interfaces interface-name unit unit-number family inet address address arp address mac address

set interfaces interface-name unit unit-number family inet6 address address ndp address mac address

Table 3: Interface AE Configuration

Command Name

OpenConfig Command Path

Junos Configuration

LAG Type

/aggregation/config/lag-type/lacp

/aggregation/config/lag-type/static

set interfaces ae-name aggregated-ether-options lacp

Minimum Links

/aggregation/config/min-links

set interfaces ae-name aggregated-ether-options minimum-links

Table 4: LACP Configuration

Command Name

OpenConfig Command Path

Junos Configuration

LACP Interval

/lacp/interfaces/interface/config/interval

set interfaces ae-name aggregated-ether-options lacp periodic fast

set interfaces ae-name aggregated-ether-options lacp periodic slow

LACP Mode

/lacp/interfaces/interface/config/lacp-mode

set interfaces ae-name aggregated-ether-options lacp active

set interfaces ae-name aggregated-ether-options lacp passive

System ID

/lacp/interfaces/interface/config/system-id-mac

set interfaces ae-name aggregated-ether-options lacp system-id address

System Priority

/lacp/interfaces/interface/config/system-priority

set interfaces ae-name aggregated-ether-options lacp system-priority system-priority

Ethernet Options

/lacp/interfaces/interface/members/member

set interface interface gigether-options 802.3ad

set interface interface fastether-options 802.3ad

set interface interface ether-options 802.3ad

Table 5: Member Interface Configuration

Command Name

OpenConfig Command Path

Junos Configuration

Aggregate ID

/interface/aggregate-id

set interface interface gigether-options 802.3ad aggregate-id

set interface interface fastether-options 802.3ad aggregate-id

set interface interface ether-options 802.3ad aggregate-id

Table 6: Ethernet Configuration

Command Name

OpenConfig Command Path

Junos Configuration

Auto-negotiate

/ethernet/config/auto-negotiate

set interfaces interface gigether-options auto-negotiation/no-auto-negotiation

MAC Address

/ethernet/config/mac-address

set interfaces interface mac

Duplex Mode

/ethernet/config/duplex-mode

set interfaces interface link-mode

Port Speed

/ethernet/config/port-speed

set interface interface speed

Flow Control

/ethernet/config/enable-flow-control

set interface interface gigether-options flow-control

Table 7: IFD Configuration

Command Name

OpenConfig Command Path

Junos Configuration

Interface Type

/interfaces/interface/config/type

Not supported.

Type is derived from the interface name.

Interface MTU

/interfaces/interface/config/mtu

set interface interface mtu

Interface Name

/interfaces/interface/config/name

set interface interface

Interface Description

/interfaces/interface/config/description

set interface interface description

Interface Enabled/Disabled

/interfaces/interface/config/enabled

set interface interface disabled

set interface interface enabled

Hold Time Up

/interfaces/interface/config/hold-time/config/up

set interface interface hold-time up

Hold Time Down

/interfaces/interface/config/hold-time/config/down

set interface interface hold-time down

Table 8: IFL Configuration

Command Name

OpenConfig Command Path

Junos Configuration

Unit Name

/interfaces/interface/subinterfaces/subinterface/config/index

set interfaces interface unit unit

Unnumbered Address

/interfaces/interface/config/subinterfaces/subinterface/config/unnumbered

set interfaces interface unit unit family family unnumbered-address source ifl

Unit Description

/interfaces/interface/subinterfaces/subinterface/config/description

set interfaces interface unit unit description

Unit Enabled/Disabled

/interfaces/interface/subinterfaces/subinterface/config/enabled

set interfaces interface unit unit enabled

set interfaces interface unit unit disabled

Interface Alias

/interfaces/interface/subinterfaces/subinterface/config/name

set interfaces interface alias