.. _vyos.rest.vyos_l3_interfaces_module:
****************************
vyos.rest.vyos_l3_interfaces
****************************
**Manage L3 interface configuration on VyOS devices via REST API.**
Version added: 1.0.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- Manages IPv4 and IPv6 address configuration on VyOS interfaces using the HTTPS REST API.
- Mirrors ``vyos.vyos.vyos_l3_interfaces`` but uses the HTTP API instead of CLI.
Parameters
----------
.. raw:: html
| Parameter |
Choices/Defaults |
Comments |
|
config
list
/ elements=dictionary
|
|
List of L3 interface configurations.
|
|
ipv4
list
/ elements=dictionary
|
|
List of IPv4 addresses of the interface.
|
|
|
address
string
|
|
IPv4 address in CIDR notation or dhcp.
|
|
ipv6
list
/ elements=dictionary
|
|
List of IPv6 addresses of the interface.
|
|
|
address
string
|
|
IPv6 address in CIDR notation, dhcpv6, or auto-config.
|
|
name
string
/ required
|
|
Full name of the interface, e.g. eth0, lo.
|
|
vifs
list
/ elements=dictionary
|
|
List of virtual sub-interfaces (VLANs).
|
|
|
ipv4
list
/ elements=dictionary
|
|
List of IPv4 addresses of the VIF.
|
|
|
|
address
string
|
|
IPv4 address in CIDR notation or dhcp.
|
|
|
ipv6
list
/ elements=dictionary
|
|
List of IPv6 addresses of the VIF.
|
|
|
|
address
string
|
|
IPv6 address in CIDR notation, dhcpv6, or auto-config.
|
|
|
vlan_id
integer
/ required
|
|
VLAN identifier.
|
|
running_config
string
|
|
Used only with state parsed.
|
|
state
string
|
Choices:
merged ←
- replaced
- overridden
- deleted
- gathered
- rendered
- parsed
|
merged - Add addresses without removing existing ones.
replaced - Replace addresses for listed interfaces.
overridden - Replace addresses for all interfaces.
deleted - Remove listed or all interface addresses.
gathered - Read interface addresses from device without changes.
rendered - Return commands for provided config without connecting.
parsed - Parse running_config into structured data.
|