.. _arista.eos.eos_l2_interfaces_module:
****************************
arista.eos.eos_l2_interfaces
****************************
**L2 interfaces resource module**
Version added: 1.0.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module provides declarative management of Layer-2 interface on Arista EOS devices.
Parameters
----------
.. raw:: html
Parameter |
Choices/Defaults |
Comments |
config
list
/ elements=dictionary
|
|
A dictionary of Layer-2 interface options
|
|
access
dictionary
|
|
Switchport mode access command to configure the interface as a layer 2 access.
|
|
|
vlan
integer
|
|
Configure given VLAN in access port. It's used as the access VLAN ID.
|
|
mode
string
|
|
Mode in which interface needs to be configured.
Access mode is not shown in interface facts, so idempotency will not be maintained for switchport mode access and every time the output will come as changed=True.
|
|
name
string
/ required
|
|
Full name of interface, e.g. Ethernet1.
|
|
trunk
dictionary
|
|
Switchport mode trunk command to configure the interface as a Layer 2 trunk.
|
|
|
native_vlan
integer
|
|
Native VLAN to be configured in trunk port. It is used as the trunk native VLAN ID.
|
|
|
trunk_allowed_vlans
list
/ elements=string
|
|
List of allowed VLANs in a given trunk port. These are the only VLANs that will be configured on the trunk.
|
running_config
string
|
|
This option is used only with state parsed.
The value of this option should be the output received from the EOS device by executing the command show running-config | section ^interface.
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
- parsed
- rendered
- gathered
|
The state of the configuration after module completion
|