community.network.pn_vlan – CLI command to create/delete a VLAN.¶
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.pn_vlan
.
DEPRECATED¶
- Removed in
version 2.0.0
- Why
Doesn’t support latest Pluribus Networks netvisor
- Alternative
Latest modules will be pushed in Ansible future versions.
Synopsis¶
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.
Parameters¶
Examples¶
- 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
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Status¶
This module will be removed in version 2.0.0. [deprecated]
For more information see DEPRECATED.
Authors¶
Pluribus Networks (@amitsi)