Mapping OpenConfig Interface 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.
The following tables show the mapping of OpenConfig interface commands to the relevant configuration in Junos:
- Table 1: Ethernet Configuration
- Table 2: GRE Tunnel Interface Configuration
- Table 3: IPv4 and IPV6 Address Configuration
- Table 4: Interface AE Configuration
- Table 5: IFD Configuration
- Table 6: IFL Configuration
- Table 7: LACP Configuration
- Table 8: Member Interface Configuration
- Table 9: Optical Transport Configuration
- Table 10: P4Runtime (P4RT) Configuration
- Table 11: Proxy ARP Configuration
- Table 12: VRRP Configuration
Command Name |
OpenConfig Command Path |
Junos Configuration |
---|---|---|
Auto-negotiate |
|
|
MAC Address |
|
|
Duplex Mode |
|
|
Port Speed |
|
|
Flow Control |
|
|
Command Name |
OpenConfig configuration |
Junos Configuration |
---|---|---|
Source |
openconfig-interfaces { interfaces { interface[name] { subinterfaces { subinterface[index] { jnx-aug-openconfig-if-tunnel:tunnel { config { src <>; } } } } } } } |
interfaces { gr-<> { unit <> { tunnel { source <>; } } } } |
The augmented OpenConfig tunnel |
||
Destination |
openconfig-interfaces { interfaces { interface[name] { subinterfaces { subinterface[index] { jnx-aug-openconfig-if-tunnel:tunnel { config { dst <>; } } } } } } } |
interfaces { gr-<> { unit <> { tunnel { destination <>; } } } } |
The augmented OpenConfig tunnel |
||
TTL |
openconfig-interfaces { interfaces { interface[name] { subinterfaces { subinterface[index] { jnx-aug-openconfig-if-tunnel:tunnel { config { ttl <>; } } } } } } } |
interfaces { gr-<> { unit <> { tunnel { ttl <>; } } } } |
The augmented OpenConfig tunnel |
||
Key |
openconfig-interfaces { interfaces { interface[name] { subinterfaces { subinterface[index] { jnx-aug-openconfig-if-tunnel:tunnel { config { gre-key <>; } } } } } } } |
interfaces { gr-<> { unit <> { tunnel { key <>; } } } } |
The
augmented OpenConfig tunnel |
Command Name |
OpenConfig Command Path |
Junos Configuration |
---|---|---|
Configuration Address |
|
|
Neighbor Address |
|
|
Link Layer Address |
|
|
Neighbor solicitation messages to send for duplicate address detection dup-addr-detect-transmits 0 |
openconfig-interfaces:interfaces { interface <interface_name> { subinterfaces { subinterface <unit> { openconfig-if-ip:ipv6 { config { dup-addr-detect-transmits 0; } } } } } } |
interfaces { <interface_name> { unit <unit> { family inet6 { dad-disable; } } } } |
Neighbor solicitation messages to send for duplicate address detection dup-addr-detect-transmits <non_zero_value> |
openconfig-interfaces:interfaces { interface <interface_name>{ subinterfaces { subinterface <unit> { openconfig-if-ip:ipv6 { config { dup-addr-detect-transmits <non_zero_value>; } } } } } } |
system { internet-options { ipv6-duplicate-addr-detection-transmits <non_zero_value>; } } interfaces { <interface_name> { unit <unit> { family inet6 { no-dad-disable; } } } } Note:
Junos OS has no equivalent configuration under the
|
Command Name |
OpenConfig Command Path |
Junos Configuration |
---|---|---|
LAG Type |
|
|
Minimum Links |
|
|
Command Name |
OpenConfig Command Path |
Junos Configuration |
---|---|---|
Interface Type |
|
Not supported. Type is derived from the interface name. |
Interface MTU |
|
|
Interface Name |
|
|
Interface Description |
|
|
Interface Enabled/Disabled |
|
|
Hold Time Up |
|
|
Hold Time Down |
|
|
VLAN tag protocol identifier (TPID) |
openconfig-interfaces:interfaces { interfaces <interface_name> { config { openconfig-vlan:tpid <tpid>; } } } |
interfaces { <interface_name> { gigether-options { ethernet-switch-profile { tag-protocol-id <tpid>; } } } } |
Command Name |
OpenConfig Command Path |
Junos Configuration |
---|---|---|
Unit Name |
|
|
Unnumbered Address |
|
|
Unit Description |
|
|
Unit Enabled/Disabled |
|
|
Interface Alias |
|
|
Command Name |
OpenConfig Command Path |
Junos Configuration |
---|---|---|
LACP Interval |
|
|
LACP Mode |
|
|
System ID |
|
|
System Priority |
|
|
Ethernet Options |
|
|
Command Name |
OpenConfig Command Path |
Junos Configuration |
---|---|---|
Aggregate ID |
|
|
Command Name |
OpenConfig configuration |
Junos Configuration |
---|---|---|
Frequency |
openconfig-platform:components { component <> { openconfig-terminal-device:optical-channel { config { frequency <>; } } } } |
interfaces <> { optics-options { wavelength <>; } } |
The formula to calculate the wavelength from frequency, or
vice-versa, is |
Command Name |
OpenConfig configuration |
Junos Configuration |
---|---|---|
id |
openconfig-interfaces:interfaces { interface <> { config { openconfig-p4rt:id <>; } } } |
interfaces { < > { p4rt { Id <>; } } } |
id |
openconfig-interfaces:interfaces { interface <> { config { type <> { openconfig-if-sdn-ext:forwarding-viable <>; } } } } |
interfaces { < > { no-forwarding-viable; } } |
Command Name |
OpenConfig configuration |
Junos Configuration |
---|---|---|
proxy-arp |
openconfig-interfaces:interfaces { interface <> { subinterfaces { subinterface <> { openconfig-if-ip:ipv4 { proxy-arp { config { mode <>; } } } } } } } |
interfaces { <> { unit <> { proxy-arp <>; } } } |
OpenConfig has three
|
Command Name |
OpenConfig Command Path |
Junos Configuration |
---|---|---|
Virtual Router ID |
|
|
Virtual Address |
|
|
VRRP Priority |
|
|
VRRP Preempt |
|
|
VRRP Preempt Hold Time |
|
|
Accept Data |
|
|
Advertise Interval |
|
|
Track Interface |
|
|
Priority Cost |
|
|
Virtual Link Local Address |
|
|