Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Mapping OpenConfig VLAN 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 EX Series and QFX Series.

Table 1 to Table 4 show the mapping of OpenConfig VLAN commands with the relevant configuration in Junos.

Table 1: Top Level Group VLAN Configuration

Command Name

OpenConfig Command Path

Junos Configuration

Interface VLAN ID

vlans/vlan/vlan-id

set vlans vlan-name vlan-id vid

Interface VLAN Name

vlans/vlan/name

VLAN Admin State

vlans/vlan/status

deactivate vlans vlan-name

Table 2: VLAN Tagged IFL Configuration

Command Name

OpenConfig Command Path

Junos Configuration

Command path prefix:

/ocif:interfaces/ocif:interface/ocif:subinterfaces/ocif:subinterface/vlan

VLAN ID

/config/vlan-id

set interfaces interface unit subinterface index vlan-id vid

set interfaces interface vlan-tagging

Table 3: VLAN Membership Configuration

Command Name

OpenConfig Command Path

Junos Configuration

Command path prefix:

/oc-if:interfaces/oc-if:interface/oc-eth:ethernet/switched-vlan

Interface Mode

/config/interface-mode

set interfaces ge-0/0/0 unit 0 family ethernet-switching interface-mode trunk (l2ng)

Native VLAN

/config/native-vlan

set interfaces ge-0/0/0 native-vlan-id vid (for a trunk port)

set interface ge-0/0/0 unit 0 family ethernet-switching interface-mode trunk

Trunk VLANs

/config/trunk-vlans

set interfaces ge-0/0/0 unit 0 family ethernet-switching vlan members 600

set interfaces ge-0/0/0 unit 0 family ethernet-switching vlan members [10-200]

Interface-mode = TRUNK

Access VLAN

/config/access-vlan

set interfaces ge-0/0/0 unit 0 family ethernet-switching vlan members 600

Interface-mode = ACCESS

Table 4: Routed VLAN Interfaces Configuration

Command Name

OpenConfig Command Path

Junos Configuration

Command path prefix:

/oc-if:interfaces/oc-if:interface/routed-vlan

VLAN

/config/vlan

Set vlans vlan-name l3-interface irb.vid

Note:

To create IRB IFL, configure IPv4/IPv6 under routed VLAN hierarchy.