VlanPortAssociation
¶
Bases: BaseEndpoint
Endpoint for managing VLAN-port associations via the AOS CLI API.
create(port_id, vlan_id, mode='untagged')
¶
Add a port to a VLAN with the specified tagging mode via MIB POST API.
| Parameters: |
|
|---|
| Returns: |
|
|---|
delete(port_id, vlan_id)
¶
Remove a port from a VLAN.
| Parameters: |
|
|---|
| Returns: |
|
|---|
edit(port_id, vlan_id, mode='untagged')
¶
Modify a port’s tagging mode in a VLAN.
| Parameters: |
|
|---|
| Returns: |
|
|---|
list_by_vlan(vlan_id)
¶
Retrieve all port associations for a given VLAN using a GET request.
| Parameters: |
|
|---|
| Returns: |
|
|---|