Cisco Vios L2
Note
This plugin is part of the cisco.ios collection (version 1.3.0).
Cisco Routing VPN lab set Lab 1. IP SEC VPN Site to Site IKEv1 Lab 2. IP SEC VPN Site to Multisite IKEv1 Lab 3. IP SEC VPN Site to Full mesh IKEv1 Lab 4. IP SEC VPN Site to Site IKEv2 Lab 5. IP SEC VPN Site to Multisite IKEv2 Lab 6. IP SEC VPN Site to Full mesh IKEv2 Lab 7. IP SEC VPN DMVPN Hub and Spoke Lab 8. IP SEC VPN DMVPN Hub and Spoke. Jan 15, 2021 Using the GNS3 program, you can use the vIOS-L2 IOS image for Cisco CCNA and Cisco CCNP exams. X system, be aware of the following limitations: Images being used in the imported topology may not be available on the CML 2.
Iosvl2 Version 15.2.1
Download vIOS-L2 By using the vIOS-L2 image, you can use many switching features such as Etherchannel, DTP, HSRP, Port Security, VLAN Routing, Switchport, 802.1Q, Trunk Port, Access Port, Spanning Tree Protocol, Port-Channel (Pagp Lacp).
To install it use: ansible-galaxycollectioninstallcisco.ios
.

To use it in a playbook, specify: cisco.ios.ios_vlans
.
This module provides declarative management of VLANs on Cisco IOS network devices.
Note
This module has a corresponding action plugin.
Cisco Vios L2 Qemu
Parameter | Choices/Defaults | Comments | |
---|---|---|---|
config list / elements=dictionary | |||
mtu | VLAN Maximum Transmission Unit. | ||
name | Ascii name of the VLAN. NOTE, name should not be named/appended with default as it is reserved for device default vlans. | ||
remote_span boolean |
| ||
shutdown |
| Shutdown VLAN switching. | |
state string |
| ||
vlan_id | ID of the VLAN. Range 1-4094 | ||
running_config string | The value of this option should be the output received from the IOS device by executing the command show vlan. 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 |
| The state the configuration should be left in The states rendered, gathered and parsed does not perform any change on the device. The state rendered will transform the configuration in config option to platform specific CLI commands which will be returned in the rendered key within the result. For state rendered active connection to remote host is not required.The state gathered will fetch the running configuration from device and transform it into structured data in the format as per the resource module argspec and the value is returned in the gathered key within the result. The state parsed reads the configuration from running_config option and transforms it into JSON format as per the resource module parameters and the value is returned in the parsed key within the result. The value of running_config option should be the same format as the output of command show running-config include ip route ipv6 route executed on device. For state parsed active connection to remote host is not required. |
Note

Tested against Cisco IOSl2 device with Version 15.2 on VIRL.
Common return values are documented here, the following are the fields unique to this module:

Cisco Iosvl2 Gns3 Images
Key | Returned | Description |
---|---|---|
after list / elements=string | when changed | The configuration as structured data after module completion. The configuration returned will always be in the same format of the parameters above. |
before list / elements=string | always | The configuration as structured data prior to module invocation. The configuration returned will always be in the same format of the parameters above. |
commands list / elements=string | always | Sample: ['vlan 20', 'name vlan_20', 'mtu 600', 'remote-span'] |
