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.

The following tables show the mapping of OpenConfig interface commands to the relevant configuration in Junos:

Table 1: 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 2: GRE Tunnel Interface Configuration

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 src node value maps to the Junos source parameter.

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 dst node value maps to the Junos destination parameter.

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 ttl node value maps to the Junos ttl parameter.

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 gre-key node value maps to the Junos key parameter.

Table 3: 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

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 interfaces hierarchy to map the number of neighbor solicitation messages to send for duplicate address detection. Consequently, this is mapped to the parameter ipv6-duplicate-addr-detection-transmits at the system hierarchy. When there are multiple instances of OpenConfig dup-addr-detect-transmits at the interfaces stanza, the Junos OS parameter takes the maximum value configured among them.

Table 4: 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 5: 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

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>;
            }
        }
    }
}
Table 6: 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

Table 7: 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 8: 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 9: Optical Transport Configuration

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 C = (wavelength x frequency) where C = the speed of light in vacuum (299792458 m/s).

Table 10: P4Runtime (P4RT) Configuration

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;
         }
}
Table 11: Proxy ARP Configuration

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 proxy-arp and Junos has two modes:

  • OC maps to Junos (native)
  • REMOTE_ONLY maps to restricted
  • ALL maps to Unrestricted
  • DISABLE deletes the configured proxy-arp configuration
Table 12: 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