.. _cisco.nxos.nxos_vlans_module:
*********************
cisco.nxos.nxos_vlans
*********************
**VLANs resource module**
Version added: 1.0.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module creates and manages VLAN configurations on Cisco NX-OS.
Parameters
----------
.. raw:: html
Parameter |
Choices/Defaults |
Comments |
config
list
/ elements=dictionary
|
|
A dictionary of Vlan options
|
|
enabled
boolean
|
|
Manage administrative state of the vlan.
|
|
mapped_vni
integer
|
|
The Virtual Network Identifier (VNI) ID that is mapped to the VLAN.
|
|
mode
string
|
|
Set vlan mode to classical ethernet or fabricpath. This is a valid option for Nexus 5000, 6000 and 7000 series.
|
|
name
string
|
|
Name of VLAN.
|
|
state
string
|
|
Manage operational state of the vlan.
|
|
vlan_id
integer
/ required
|
|
Vlan ID.
|
running_config
string
|
|
This option is used only with state parsed.
The value of this option should be the output received from the NX-OS device by executing the commands show vlans | json-pretty and show running-config | section ^vlan in order and delimited by a line.
The state parsed reads the configuration from running_config option and transforms it into Ansible structured data as per the resource module's argspec and the value is then returned in the parsed key within the result.
|
state
string
|
Choices:
merged ←
- replaced
- overridden
- deleted
- gathered
- rendered
- parsed
|
The state of the configuration after module completion.
The state overridden would override the configuration of all the VLANs on the device (including VLAN 1) with the provided configuration in the task. Use caution with this state.
|