Trunk VLAN and Access VLAN
Configures, modifies, and retrieves VLAN member ports configurations. The URI to configure data for tagged and untagged ports for the VLAN is:
openconfig-interfaces:interfaces/interface/interface-name/ethernet/switched-vlan
Supported HTTP Operations
PATCH method (Tagged and untagged ports)
URL: https://<host>/restconf/data/openconfig-interfaces:interfaces/interface/ethernet1%2F1%2F8/ethernet
Request body: {
"ethernet": {
"openconfig-vlan:switched-vlan": {
"config": {
"access-vlan": 41,
"trunk-vlans": [
115
]
}
}
}
}
Response body: None
URL: https://<host>/restconf/data/openconfig-interfaces:interfaces/interface/ethernet1%2F1%2F24/ethernet
Request body:
{
"ethernet":{
"openconfig-vlan:switched-vlan": {
"config": {
"trunk-vlans" : [
111,
114
]
}
}
}
}
Response body: None
URL: https://<host>/restconf/data/openconfig-interfaces:interfaces/interface/ethernet1%2F1%2F22/ethernet
Request body:
{
"ethernet":{
"openconfig-vlan:switched-vlan": {
"config": {
"access-vlan": 74
}
}
}
}
Response body: NoneGET
methodURL: https://<host>/restconf/data/openconfig-interfaces:interfaces/interface/ethernet1%2F1%2F8/ethernet/switched-vlan
Request body: None
Response body: {
"openconfig-vlan:switched-vlan": {
"config": {
"access-vlan": 41,
"trunk-vlans": [
115
]
},
"state": {}
}
}
DELETE method
URL: https://<host>/restconf/data/openconfig-interfaces:interfaces/interface/ethernet1%2F1%2F24/ethernet/switched-vlan/config/trunk-vlans/114
Request body: None Response body: None
URL: https://<host>/restconf/data/openconfig-interfaces:interfaces/interface/ethernet1%2F1%2F22/ethernet/switched-vlan/config/access-vlan
Request body: None Response body: None