.. _vyos.vyos.vyos_l3_interfaces_module:
****************************
vyos.vyos.vyos_l3_interfaces
****************************
**L3 interfaces resource module**
Version added: 1.0.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module manages the L3 interface attributes on VyOS network devices.
Parameters
----------
.. raw:: html
Parameter |
Choices/Defaults |
Comments |
config
list
/ elements=dictionary
|
|
The provided L3 interfaces configuration.
|
|
ipv4
list
/ elements=dictionary
|
|
List of IPv4 addresses of the interface.
|
|
|
address
string
|
|
IPv4 address of the interface.
|
|
ipv6
list
/ elements=dictionary
|
|
List of IPv6 addresses of the interface.
|
|
|
address
string
|
|
IPv6 address of the interface.
|
|
name
string
/ required
|
|
Full name of the interface, e.g. eth0, eth1.
|
|
vifs
list
/ elements=dictionary
|
|
Virtual sub-interfaces L3 configurations.
|
|
|
ipv4
list
/ elements=dictionary
|
|
List of IPv4 addresses of the virtual interface.
|
|
|
|
address
string
|
|
IPv4 address of the virtual interface.
|
|
|
ipv6
list
/ elements=dictionary
|
|
List of IPv6 addresses of the virtual interface.
|
|
|
|
address
string
|
|
IPv6 address of the virtual interface.
|
|
|
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 -e eth[2,3].
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
- gathered
- rendered
|
The state of the configuration after module completion.
|