To create a VLAN:
openconfig:vlans/vlan datasource.
POST /rest/restconf/data/openconfig-vlan:vlans/
HTTP/1.1
Host: 10.68.13.192
Body:
{
"openconfig-vlan:vlan":[
{
"config": {
"name": "vlan_10",
"status": "ACTIVE",
"tpid": "oc-vlan-types:TPID_0x8100",
"vlan-id": 10
}
}
]
}
If
the request is successful, the server responds with a 201
CREATED status message.