Skip to content
Ask AI

VLAN

Virtual LAN.

URLGETPOSTPATCHPUTDELETE
/rest/v1/rpc/clear-counters-vlanNYNNN
/rest/v1/running/interfaces/{name}/vlan-config/{vlan-id}YYYNY
/rest/v1/rpc/show-vlanNYNNN
/rest/v1/rpc/show-vlan-summaryNYNNN
/rest/v1/running/vlans/{vlanid}YYYNY
/rest/v1/rpc/batch-create-vlanNYNNN
/rest/v1/rpc/batch-create-vlan-memberNYNNN
/rest/v1/rpc/batch-delete-vlanNYNNN
/rest/v1/rpc/batch-delete-vlan-memberNYNNN
POST HTTPS://{switch IP}/rest/v1/rpc/batch-create-vlan
{
"vlan-ranges": "300-305,307"
}
POST HTTPS://{switch IP}/rest/v1/rpc/batch-create-vlan-member
{
"interface-name": "Ethernet1",
"vlan-ranges": "300-305,307"
}
POST HTTPS://{switch IP}/rest/v1/rpc/batch-delete-vlan
{
"vlan-ranges": "300,305-307"
}
POST HTTPS://{switch IP}/rest/v1/rpc/batch-delete-vlan-member
{
"interface-name": "Ethernet1",
"vlan-ranges": "300-305,307"
}
POST HTTPS://{switch IP}/rest/v1/rpc/show-vlan-summary

response:

{
"vlan": [
{
"vlan-id": 10,
"ip-address": [],
"proxy-arp": "disable",
"description": "",
"dhcp-helper-address": [],
"member": [
{
"port": "Ethernet53:1",
"tagging-mode": "untagged"
}
]
},
{
"vlan-id": 200,
"ip-address": [],
"proxy-arp": "disable",
"description": "",
"dhcp-helper-address": [],
"member": []
}
]
}
GET HTTPS://{switch IP}/rest/v1/running/vlans

response:

{
"result": [
{
"vlanid": 10,
"name": "Vlan10",
"mac-limit": 100
},
{
"vlanid": 200,
"name": "Vlan200"
}
]
}
POST HTTPS://{switch IP}/rest/v1/running/vlans/300
{"description": "vlan 300"}
PATCH HTTPS://{switch IP}/rest/v1/running/vlans/300
{"mac-limit": 12345}
DELETE HTTPS://{switch IP}/rest/v1/running/vlans/100
POST HTTPS://{switch IP}/rest/v1/running/interfaces/Ethernet2/vlan-config
{
"vlan-id": "101",
"tagging-mode": "tagged"
}
DELETE HTTPS://{switch IP}/rest/v1/running/interfaces/Ethernet1/vlan-config/100

Tree Diagrams

+--rw vlans
+--rw vlan* [vlanid]
+--rw vlanid
+--ro name?
+--rw mac-limit?
+--rw mac-learning?
+--rw description?
+--rw unknown-unicast-action?
+--rw unknown-multicast-action?
+--rw broadcast-action?

Table of Properties

NameRequiredType/RangeDescription
vlansMPath-only node, has no configurable value.
vlanidM1..4094(sub-property of vlans)
VLAN identity
nameROVlan1-4094(sub-property of vlans)
mac-limitO1..131072(sub-property of vlans)
Limit the number of dynamic MAC addresses to be learned: when the mac number reaches the threshold, dynamic MAC addresses are no longer learned
mac-learningO”true"
"false”(sub-property of vlans)
Set mac-learning mode for vlan, if disable, vlan will not learn mac
Default value: “true”
descriptionOstring(sub-property of vlans)
Set textual description of the vlan
unknown-unicast-actionO”flood"
"drop”(sub-property of vlans)
Set the unknown unicast packets forwarding action
unknown-multicast-actionO”flood"
"drop”(sub-property of vlans)
Set the unknown multicast packets forwarding action
broadcast-actionO”flood"
"drop”(sub-property of vlans)
Set the broadcast packets forwarding action

Tree Diagrams

+--rw interfaces
+--rw interface* [name]
+--rw name
+--rw vlan-config
+--rw vlan* [vlan-id]
+--rw vlan-id
+--rw tagging-mode?

Table of Properties

NameRequiredType/RangeDescription
interfacesMPath-only node, has no configurable value.
Interface parameters.
nameMEthernet name
Lag name(sub-property of interfaces)
The name of the interface.
vlan-configCM(sub-property of interfaces)
Path-only node, has no configurable value.
Only applicable when {interface} is a Ethernet or PortChannel name.
VLAN related configuration that is part of the physical Ethernet interface.
vlanM(sub-property of vlan-config)
Path-only node, has no configurable value.
vlan-idM1..4094(sub-property of vlan)
VLAN identity
tagging-modeO”tagged"
"untagged”(sub-property of vlan)
Specifies the type of interface as a vlan member
Default value: “tagged”

Tree Diagrams

+---x batch-create-vlan
| +---w input
| +---w vlan-ranges?

Table of Properties

NameRequiredType/RangeDescription
batch-create-vlanMPath-only node, has no configurable value.
vlan-rangesOa comma-separated list of Vlans (1..4094), optionally in ranges (e.g., 10-50,52)(sub-property of input)
Ranges of VLAN IDs, e.g. 100-200,300-400

Tree Diagrams

+---x batch-delete-vlan
| +---w input
| +---w vlan-ranges?

Table of Properties

NameRequiredType/RangeDescription
batch-delete-vlanMPath-only node, has no configurable value.
vlan-rangesOa comma-separated list of Vlans (1..4094), optionally in ranges (e.g., 10-50,52)(sub-property of input)
Ranges of VLAN IDs, e.g. 100-200,300-400

Tree Diagrams

+---x batch-create-vlan-member
| +---w input
| +---w interface-name?
| +---w vlan-ranges?

Table of Properties

NameRequiredType/RangeDescription
batch-create-vlan-memberMPath-only node, has no configurable value.
interface-nameOEthernet name
Lag name(sub-property of input)
The name of the interface.
vlan-rangesOa comma-separated list of Vlans (1..4094), optionally in ranges (e.g., 10-50,52)(sub-property of input)
Ranges of VLAN IDs, e.g. 100-200,300-400

Tree Diagrams

+---x batch-delete-vlan-member
| +---w input
| +---w interface-name?
| +---w vlan-ranges?
| +--ro output
| +--ro result?

Table of Properties

NameRequiredType/RangeDescription
batch-delete-vlan-memberMPath-only node, has no configurable value.
interface-nameOEthernet name
Lag name(sub-property of input)
The name of the interface.
vlan-rangesOa comma-separated list of Vlans (1..4094), optionally in ranges (e.g., 10-50,52)(sub-property of input)
Ranges of VLAN IDs, e.g. 100-200,300-400

Tree Diagrams

+---x show-vlan-summary
| +---w input
| | +---w vlan-id?
| +--ro output
| +--ro vlan* [vlan-id]
| +--ro vlan-id
| +--ro ip-address*
| +--ro member* [port]
| | +--ro port
| | +--ro tagging-mode?
| +--ro proxy-arp?
| +--ro description?
| +--ro dhcp-helper-address*

Table of Properties

NameRequiredType/RangeDescription
show-vlan-summaryMPath-only node, has no configurable value.
|

| vlan-id | O | 1..4094 | (sub-property of input) The specified VLAN ID to show | | vlan | RO | | (sub-property of output) Path-only node, has no configurable value. | | vlan-id | RO | 1..4094 | (sub-property of vlan) | | ip-address | RO | string | (sub-property of vlan) | | member | RO | | (sub-property of vlan) Path-only node, has no configurable value. | | port | RO | string | (sub-property of member) | | tagging-mode | RO | string | (sub-property of member) | | proxy-arp | RO | string | (sub-property of vlan) | | description | RO | string | (sub-property of vlan) | | dhcp-helper-address | RO | string | (sub-property of vlan) |

Tree Diagrams

+---x show-vlan
| +---w input
| | +---w vlan-id
| +--ro output
| +--ro result?

Table of Properties

NameRequiredType/RangeDescription
show-vlanMPath-only node, has no configurable value.
vlan-idM1..4094
”all”(sub-property of input)
The VLAN ID to show
resultROstring(sub-property of output)
A table that shows information of the specified vlan

Tree Diagrams

+---x clear-counters-vlan
+--ro output
+--ro data?

Table of Properties

NameRequiredType/RangeDescription
clear-counters-vlanMPath-only node, has no configurable value.
RPC for clearing vlan counters
dataROstring(sub-property of output)
the result of clear counters vlan.