Since the VLAN model
augments the interface model, each of the VLANs appears when you
do a get call to the /interfaces path. The snippet below shows that
the only one with a VLAN type is l3ipvlan is the routed VLAN.
{
"config": {
"description": "",
"enabled": true,
"loopback-mode": false,
"name": "ethernet1/7",
"tpid": "openconfig-vlan-types:TPID_0X8100",
"type": "iana-if-type:ethernetCsmacd"
},
"openconfig-if-ethernet:ethernet": {
"config": {
"auto-negotiate": true,
"port-speed": "openconfig-if-ethernet:SPEED_UNKNOWN"
},
"openconfig-vlan:switched-vlan": {
"config": {
"native-vlan": 17,
"trunk-vlans": [
15,
16
]
}
}
},
"openconfig-interfaces:name": "ethernet1/7"
},
{
"config": {
"description": "",
"enabled": true,
"loopback-mode": false,
"name": "vlan.17",
"type": "iana-if-type:l3ipvlan"
},
"openconfig-interfaces:name": "vlan.17",
"openconfig-vlan:routed-vlan": {
"config": {
"vlan": 17
},
"openconfig-if-ip:ipv4": {
"config": {
"dhcp-client": false,
"mtu": 1500
}
},
"openconfig-if-ip:ipv6": {
"config": {
"dup-addr-detect-transmits": 0,
"enabled": false
},
"router-advertisement": {
"config": {
"interval": 600,
"lifetime": 1800,
"suppress": true
}
}
}