To retrieve details of all configured VLANs:
openconfig-vlan data
model.
GET /rest/restconf/data/openconfig-vlan:vlans/
HTTP/1.1
Host: 10.68.13.192
{
"openconfig-vlan:vlans": {
"vlan": [
{
"config": {
"name": "Default",
"status": "ACTIVE",
"tpid": "oc-vlan-types:TPID_0x8100",
"vlan-id": 1
},
"members": {
"member": [
{
"interface-ref": {
"state": {
"interface": "1"
}
}
},
{
"interface-ref": {
"state": {
"interface": "2"
}
}
},
{
"interface-ref": {
"state": {
"interface": "3"
}
}
},
{
"interface-ref": {
"state": {
"interface": "4"
}
}
},
]
},
"state": {
"name": "Default",
"status": "ACTIVE",
"tpid": "oc-vlan-types:TPID_0x8100",
"vlan-id": 1
},
"vlan-id": "1"
}
]
}
}