.. _vyos.vyos.vyos_prefix_lists_module:
***************************
vyos.vyos.vyos_prefix_lists
***************************
**Prefix-Lists resource module for VyOS**
Version added: 2.4.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module manages prefix-lists configuration on devices running VyOS
Parameters
----------
.. raw:: html
Parameter |
Choices/Defaults |
Comments |
config
list
/ elements=dictionary
|
|
A list of prefix-list options
|
|
afi
string
/ required
|
|
The Address Family Indicator (AFI) for the prefix-lists
|
|
prefix_lists
list
/ elements=dictionary
|
|
A list of prefix-list configurations
|
|
|
description
string
|
|
A brief text description for the prefix-list
|
|
|
entries
list
/ elements=dictionary
|
|
Rule configurations for the prefix-list
|
|
|
|
action
string
|
|
The action to be taken for packets matching a prefix list rule
|
|
|
|
description
string
|
|
A brief text description for the prefix list rule
|
|
|
|
ge
integer
|
|
Minimum prefix length to be matched
|
|
|
|
le
integer
|
|
Maximum prefix list length to be matched
|
|
|
|
prefix
string
|
|
IPv4 or IPv6 prefix in A.B.C.D/LEN or A:B::C:D/LEN format
|
|
|
|
sequence
integer
/ required
|
|
A numeric identifier for the rule
|
|
|
name
string
/ required
|
|
The name of a defined prefix-list
|
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 prefix-list.
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
- gathered
- rendered
- parsed
|
The state the configuration should be left in
|