Create/Delete a VLAN
- Last Updated: October 14, 2024
- 1 minute read
- LoadMaster
- Multi-Tenant LoadMaster
- Documentation
These commands can be used to add/delete a VLAN.
Example Command
curl -k "https://<Username>:<Password>@<MTIPAddress>/mtaccess/addvlan?interface=<InterfaceID>&vlanId=<VLANID>"curl -k "https://<Username>:<Password>@<MTIPAddress>/mtaccess/delvlan?interface=<InterfaceID>"Available Parameters
|
Parameter |
Parameter Type |
Parameter Description |
Mandatory |
|---|---|---|---|
|
interface |
Integer |
If creating - this should be the ID number of the relevant interface. If deleting - this should be the VLAN ID. |
Yes |
|
vlanid |
Integer |
The ID number of the VLAN. |
Yes if creating. No if deleting. |
Example Output
Create:
<Response stat="200" code="ok"><Success>Created VLAN Interface id 2</Success></Response>Delete:
<Response stat="200" code="ok"><Success>Command completed ok</Success></Response>