ansible / ansible.netcommon / 3.1.3 / module / net_vlan
Removed in None
Reason:Updated modules released with more functionality | Alternative:Use platform-specific "[netos]_vlans" module
(deprecated, removed after 2022-06-01) Manage VLANs on network devices
| "added in version" 1.0.0 of ansible.netcommon"
Authors: Ricardo Carrillo Cruz (@rcarrillocruz)
This plugin has a corresponding action plugin.
Install with ansible-galaxy collection install ansible.netcommon:==3.1.3
collections: - name: ansible.netcommon version: 3.1.3
This module provides declarative management of VLANs on network devices.
- name: configure VLAN ID and name ansible.netcommon.net_vlan: vlan_id: 20 name: test-vlan
- name: remove configuration ansible.netcommon.net_vlan: state: absent
- name: configure VLAN state ansible.netcommon.net_vlan: vlan_id: state: suspend
name: description: - Name of the VLAN. purge: default: false description: - Purge VLANs not defined in the I(aggregate) parameter. state: choices: - present - absent - active - suspend default: present description: - State of the VLAN configuration. vlan_id: description: - ID of the VLAN. aggregate: description: List of VLANs definitions. interfaces: description: - List of interfaces the VLAN should be configured on.
commands: description: The list of configuration mode commands to send to the device returned: always, except for the platforms that use Netconf transport to manage the device. sample: - vlan 20 - name test-vlan type: list