.. _vyos.vyos.vyos_static_routes_module:
****************************
vyos.vyos.vyos_static_routes
****************************
**Static routes resource module**
Version added: 1.0.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module manages attributes of static routes on VyOS network devices.
Parameters
----------
.. raw:: html
Parameter |
Choices/Defaults |
Comments |
config
list
/ elements=dictionary
|
|
A provided static route configuration.
|
|
address_families
list
/ elements=dictionary
|
|
A dictionary specifying the address family to which the static route(s) belong.
|
|
|
afi
string
/ required
|
|
Specifies the type of route.
|
|
|
routes
list
/ elements=dictionary
|
|
A ditionary that specify the static route configurations.
|
|
|
|
blackhole_config
dictionary
|
|
Configured to silently discard packets.
|
|
|
|
|
distance
integer
|
|
Distance for the route.
|
|
|
|
|
type
string
|
|
This is to configure only blackhole.
|
|
|
|
dest
string
/ required
|
|
An IPv4/v6 address in CIDR notation that specifies the destination network for the static route.
|
|
|
|
next_hops
list
/ elements=dictionary
|
|
Next hops to the specified destination.
|
|
|
|
|
admin_distance
integer
|
|
Distance value for the route.
|
|
|
|
|
enabled
boolean
|
|
Disable IPv4/v6 next-hop static route.
|
|
|
|
|
forward_router_address
string
/ required
|
|
The IP address of the next hop that can be used to reach the destination network.
|
|
|
|
|
interface
string
|
|
Name of the outgoing 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 static route.
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 of the configuration after module completion.
|