community.network.slxos_vlan – Manage VLANs on Extreme Networks SLX-OS network devices¶
Note
This plugin is part of the community.network collection (version 1.3.2).
To install it use: ansible-galaxy collection install community.network
.
To use it in a playbook, specify: community.network.slxos_vlan
.
Parameters¶
Examples¶
- name: Create vlan
community.network.slxos_vlan:
vlan_id: 100
name: test-vlan
state: present
- name: Add interfaces to VLAN
community.network.slxos_vlan:
vlan_id: 100
interfaces:
- Ethernet 0/1
- Ethernet 0/2
- name: Delete vlan
community.network.slxos_vlan:
vlan_id: 100
state: absent
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Key | Returned | Description |
---|---|---|
commands
list
/ elements=string
|
always |
The list of configuration mode commands to send to the device
Sample:
['vlan 100', 'name test-vlan']
|
Authors¶
Lindsay Hill (@lindsayhill)