.. _vyos.vyos.vyos_route_maps_module:
*************************
vyos.vyos.vyos_route_maps
*************************
**Route Map Resource Module.**
Version added: 2.3.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module manages route map configurations on devices running VYOS.
Parameters
----------
.. raw:: html
Parameter |
Choices/Defaults |
Comments |
config
list
/ elements=dictionary
|
|
A list of route-map configuration.
|
|
entries
list
/ elements=dictionary
|
|
Route Map rules.
aliases: rules
|
|
|
action
string
|
|
Action for matching routes
|
|
|
call
string
|
|
Route map name
|
|
|
continue_sequence
integer
|
|
Continue on a different entry within the route-map.
|
|
|
description
string
|
|
Description for the rule.
|
|
|
match
dictionary
|
|
Route parameters to match.
|
|
|
|
as_path
string
|
|
Set as-path.
|
|
|
|
community
dictionary
|
|
BGP community attribute.
|
|
|
|
|
community_list
string
|
|
BGP community-list to match
|
|
|
|
|
exact_match
boolean
|
|
BGP community-list to match
|
|
|
|
extcommunity
string
|
|
Extended community name.
|
|
|
|
interface
string
|
|
First hop interface of a route to match.
|
|
|
|
ip
dictionary
|
|
IP prefix parameters to match.
|
|
|
|
|
address
dictionary
|
|
IP address of route to match.
|
|
|
|
|
|
list_type
string
|
Choices:
- access-list
- prefix-list
|
type of list
|
|
|
|
|
|
value
string
|
|
value of access-list and prefix list
|
|
|
|
|
next_hop
dictionary
|
|
next hop prefix list.
|
|
|
|
|
|
list_type
string
|
Choices:
- access-list
- prefix-list
|
type of list
|
|
|
|
|
|
value
string
|
|
value of access-list and prefix list
|
|
|
|
|
route_source
dictionary
|
|
IP route-source to match
|
|
|
|
|
|
list_type
string
|
Choices:
- access-list
- prefix-list
|
type of list
|
|
|
|
|
|
value
string
|
|
value of access-list and prefix list
|
|
|
|
ipv6
dictionary
|
|
IPv6 prefix parameters to match.
|
|
|
|
|
address
dictionary
|
|
IPv6 address of route to match.
|
|
|
|
|
|
list_type
string
|
Choices:
- access-list
- prefix-list
|
type of list
|
|
|
|
|
|
value
string
|
|
value of access-list and prefix list
|
|
|
|
|
next_hop
string
|
|
next-hop ipv6 address IPv6 <h:h:h:h:h:h:h:h>.
|
|
|
|
large_community_large_community_list
string
|
|
BGP large-community-list to match.
|
|
|
|
metric
integer
|
|
Route metric <1-65535>.
|
|
|
|
origin
string
|
Choices:
- ebgp
- ibgp
- incomplete
|
bgp origin.
|
|
|
|
peer
string
|
|
Peer IP address <x.x.x.x>.
|
|
|
|
rpki
string
|
Choices:
- notfound
- invalid
- valid
|
RPKI validation value.
|
|
|
on_match
dictionary
|
|
Exit policy on matches.
|
|
|
|
goto
integer
|
|
Rule number to goto on match <1-65535>.
|
|
|
|
next
boolean
|
|
Next sequence number to goto on match.
|
|
|
sequence
integer
|
|
Route map rule number <1-65535>.
|
|
|
set
dictionary
|
|
Route parameters.
|
|
|
|
aggregator
dictionary
|
|
Border Gateway Protocol (BGP) aggregator attribute.
|
|
|
|
|
as
string
|
|
AS number of an aggregation.
|
|
|
|
|
ip
string
|
|
IP address.
|
|
|
|
as_path_exclude
string
|
|
BGP AS path exclude string ex "456 64500 45001"
|
|
|
|
as_path_prepend
string
|
|
Prepend string for a Border Gateway Protocol (BGP) AS-path attribute.
|
|
|
|
atomic_aggregate
boolean
|
|
Border Gateway Protocol (BGP) atomic aggregate attribute.
|
|
|
|
bgp_extcommunity_rt
string
|
|
ExtCommunity in format AS:value
|
|
|
|
comm_list
dictionary
|
|
Border Gateway Protocol (BGP) communities matching a community-list.
|
|
|
|
|
comm_list
string
|
|
BGP communities with a community-list.
|
|
|
|
|
delete
boolean
|
|
Delete BGP communities matching the community-list.
|
|
|
|
community
dictionary
|
|
Border Gateway Protocol (BGP) community attribute.
|
|
|
|
|
value
string
|
|
Community in 4 octet AS:value format or it can be from local-AS, no-advertise,no-expert,internet,additive,none.
|
|
|
|
extcommunity_rt
string
|
|
Set route target value.ASN:nn_or_IP_address:nn VPN extended community.
|
|
|
|
extcommunity_soo
string
|
|
Set Site of Origin value. ASN:nn_or_IP_address:nn VPN extended community
|
|
|
|
ip_next_hop
string
|
|
IP address.
|
|
|
|
ipv6_next_hop
dictionary
|
|
Nexthop IPv6 address.
|
|
|
|
|
ip_type
string
|
|
Global or Local
|
|
|
|
|
value
string
|
|
ipv6 address
|
|
|
|
large_community
string
|
|
Set BGP large community value.
|
|
|
|
local_preference
string
|
|
Border Gateway Protocol (BGP) local preference attribute.Example <0-4294967295>.
|
|
|
|
metric
string
|
|
Destination routing protocol metric. Example <0-4294967295>.
|
|
|
|
metric_type
string
|
|
Open Shortest Path First (OSPF) external metric-type.
|
|
|
|
origin
string
|
Choices:
- egp
- igp
- incomplete
|
Set bgp origin.
|
|
|
|
originator_id
string
|
|
Border Gateway Protocol (BGP) originator ID attribute. Originator IP address.
|
|
|
|
src
string
|
|
Source address for route. Example <x.x.x.x> IP address.
|
|
|
|
tag
string
|
|
Tag value for routing protocol. Example <1-65535>
|
|
|
|
weight
string
|
|
Border Gateway Protocol (BGP) weight attribute. Example <0-4294967295>
|
|
route_map
string
|
|
Route map name.
|
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 route-map.
The state parsed reads the configuration from show configuration commands | grep route-map 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:
- deleted
merged ←
- overridden
- replaced
- gathered
- rendered
- parsed
|
The state the configuration should be left in.
|