.. _vyos.vyos.vyos_interfaces_module:
*************************
vyos.vyos.vyos_interfaces
*************************
**Interfaces resource module**
Version added: 1.0.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module manages the interface attributes on VyOS network devices.
- This module supports managing base attributes of Ethernet, Bonding, VXLAN, Loopback and Virtual Tunnel Interfaces.
Parameters
----------
.. raw:: html
Parameter |
Choices/Defaults |
Comments |
config
list
/ elements=dictionary
|
|
The provided interfaces configuration.
|
|
description
string
|
|
Interface description.
|
|
duplex
string
|
|
Interface duplex mode.
Applicable for Ethernet interfaces only.
|
|
enabled
boolean
|
|
Administrative state of the interface.
Set the value to true to administratively enable the interface or false to disable it.
|
|
mtu
integer
|
|
MTU for a specific interface. Refer to vendor documentation for valid values.
Applicable for Ethernet, Bonding, VXLAN and Virtual Tunnel interfaces.
|
|
name
string
/ required
|
|
Full name of the interface, e.g. eth0, eth1, bond0, vti1, vxlan2.
|
|
speed
string
|
Choices:
- auto
- 10
- 100
- 1000
- 2500
- 10000
|
Interface link speed.
Applicable for Ethernet interfaces only.
|
|
vifs
list
/ elements=dictionary
|
|
Virtual sub-interfaces related configuration.
802.1Q VLAN interfaces are represented as virtual sub-interfaces in VyOS.
|
|
|
description
string
|
|
Virtual sub-interface description.
|
|
|
enabled
boolean
|
|
Administrative state of the virtual sub-interface.
Set the value to true to administratively enable the interface or false to disable it.
|
|
|
mtu
integer
|
|
MTU for the virtual sub-interface.
Refer to vendor documentation for valid values.
|
|
|
vlan_id
integer
|
|
Identifier for the virtual sub-interface.
|
running_config
string
|
|
This option is used only with state parsed.
The value of this option should be the output received from the VyOS device by executing the command show configuration commands | grep interfaces.
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
- rendered
- gathered
- parsed
|
The state of the configuration after module completion.
|