community.network.pn_vlan – CLI command to create/delete a VLAN.¶
This plugin is part of the community.network collection.
To install it use:
ansible-galaxy collection install community.network.
To use it in a playbook, specify:
- Removed in
Doesn’t support latest Pluribus Networks netvisor
Latest modules will be pushed in Ansible future versions.
Execute vlan-create or vlan-delete command.
VLANs are used to isolate network traffic at Layer 2.The VLAN identifiers 0 and 4095 are reserved and cannot be used per the IEEE 802.1Q standard. The range of configurable VLAN identifiers is 2 through 4092.
- name: Create a VLAN community.network.pn_vlan: state: 'present' pn_vlanid: 1854 pn_scope: fabric - name: Delete VLANs community.network.pn_vlan: state: 'absent' pn_vlanid: 1854
Common return values are documented here, the following are the fields unique to this module: