.. _cisco.nxos.nxos_route_maps_module:
**************************
cisco.nxos.nxos_route_maps
**************************
**Route Maps resource module.**
Version added: 2.2.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module manages route maps configuration on devices running Cisco NX-OS.
Parameters
----------
.. raw:: html
| Parameter |
Choices/Defaults |
Comments |
|
config
list
/ elements=dictionary
|
|
A list of route-map configuration.
|
|
entries
list
/ elements=dictionary
|
|
List of entries (identified by sequence number) for this route-map.
|
|
|
action
string
|
|
Route map denies or permits set operations.
|
|
|
continue_sequence
integer
|
|
Continue on a different entry within the route-map.
|
|
|
description
string
|
|
Description of the route-map.
|
|
|
match
dictionary
|
|
Match values from routing table.
|
|
|
|
as_number
dictionary
|
|
Match BGP peer AS number.
|
|
|
|
|
as_path_list
list
/ elements=string
|
|
AS path access list name.
|
|
|
|
|
asn
list
/ elements=string
|
|
AS number.
|
|
|
|
as_path
list
/ elements=string
|
|
Match BGP AS path access-list.
|
|
|
|
community
dictionary
|
|
Match BGP community list.
|
|
|
|
|
community_list
list
/ elements=string
|
|
Community list.
|
|
|
|
|
exact_match
boolean
|
|
Do exact matching of communities.
|
|
|
|
evpn
dictionary
|
|
Match BGP EVPN Routes.
|
|
|
|
|
route_types
list
/ elements=string
|
|
Match route type for evpn route.
|
|
|
|
extcommunity
dictionary
|
|
Match BGP community list.
|
|
|
|
|
exact_match
boolean
|
|
Do exact matching of extended communities.
|
|
|
|
|
extcommunity_list
list
/ elements=string
|
|
Extended Community list.
|
|
|
|
interfaces
list
/ elements=string
|
|
Match first hop interface of route.
|
|
|
|
ip
dictionary
|
|
Configure IP specific information.
|
|
|
|
|
address
dictionary
|
|
Match address of route or match packet.
|
|
|
|
|
|
access_list
string
|
|
IP access-list name (for use in route-maps for PBR only).
|
|
|
|
|
|
prefix_lists
list
/ elements=string
|
|
Match entries of prefix-lists.
|
|
|
|
|
multicast
dictionary
|
|
Match multicast attributes.
|
|
|
|
|
|
group
dictionary
|
|
Multicast Group prefix.
Mutually exclusive with group_range.
|
|
|
|
|
|
|
prefix
string
|
|
IPv4 group prefix.
|
|
|
|
|
|
group_range
dictionary
|
|
Multicast Group address range.
Mutually exclusive with group.
|
|
|
|
|
|
|
first
string
|
|
First Group address.
|
|
|
|
|
|
|
last
string
|
|
Last Group address.
|
|
|
|
|
|
rp
dictionary
|
|
Rendezvous point.
|
|
|
|
|
|
|
prefix
string
|
|
IPv4 rendezvous prefix.
|
|
|
|
|
|
|
rp_type
string
|
|
Multicast rendezvous point type.
|
|
|
|
|
|
source
string
|
|
Multicast source address.
|
|
|
|
|
next_hop
dictionary
|
|
Match next-hop address of route.
|
|
|
|
|
|
prefix_lists
list
/ elements=string
|
|
Match entries of prefix-lists.
|
|
|
|
|
route_source
dictionary
|
|
Match advertising source address of route.
|
|
|
|
|
|
prefix_lists
list
/ elements=string
|
|
Match entries of prefix-lists.
|
|
|
|
ipv6
dictionary
|
|
Configure IPv6 specific information.
|
|
|
|
|
address
dictionary
|
|
Match address of route or match packet.
|
|
|
|
|
|
access_list
string
|
|
IP access-list name (for use in route-maps for PBR only).
|
|
|
|
|
|
prefix_lists
list
/ elements=string
|
|
Match entries of prefix-lists.
|
|
|
|
|
multicast
dictionary
|
|
Match multicast attributes.
|
|
|
|
|
|
group
dictionary
|
|
Multicast Group prefix.
Mutually exclusive with group_range.
|
|
|
|
|
|
|
prefix
string
|
|
IPv4 group prefix.
|
|
|
|
|
|
group_range
dictionary
|
|
Multicast Group address range.
Mutually exclusive with group.
|
|
|
|
|
|
|
first
string
|
|
First Group address.
|
|
|
|
|
|
|
last
string
|
|
Last Group address.
|
|
|
|
|
|
rp
dictionary
|
|
Rendezvous point.
|
|
|
|
|
|
|
prefix
string
|
|
IPv4 rendezvous prefix.
|
|
|
|
|
|
|
rp_type
string
|
|
Multicast rendezvous point type.
|
|
|
|
|
|
source
string
|
|
Multicast source address.
|
|
|
|
|
next_hop
dictionary
|
|
Match next-hop address of route.
|
|
|
|
|
|
prefix_lists
list
/ elements=string
|
|
Match entries of prefix-lists.
|
|
|
|
|
route_source
dictionary
|
|
Match advertising source address of route.
|
|
|
|
|
|
prefix_lists
list
/ elements=string
|
|
Match entries of prefix-lists.
|
|
|
|
mac_list
list
/ elements=string
|
|
Match entries of mac-lists.
|
|
|
|
metric
list
/ elements=integer
|
|
Match metric of route.
|
|
|
|
ospf_area
list
/ elements=integer
|
|
Match ospf area.
|
|
|
|
route_types
list
/ elements=string
|
Choices:
- external
- inter-area
- internal
- intra-area
- level-1
- level-2
- local
- nssa-external
- type-1
- type-2
|
Match route-type of route.
|
|
|
|
source_protocol
list
/ elements=string
|
|
Match source protocol.
|
|
|
|
tags
list
/ elements=integer
|
|
Match tag of route.
|
|
|
sequence
integer
|
|
Sequence to insert to/delete from existing route-map entry.
|
|
|
set
dictionary
|
|
Set values in destination routing protocol.
|
|
|
|
as_path
dictionary
|
|
Prepend string for a BGP AS-path attribute.
|
|
|
|
|
prepend
dictionary
|
|
Prepend to the AS-Path.
|
|
|
|
|
|
as_number
list
/ elements=string
|
|
AS number.
|
|
|
|
|
|
last_as
integer
|
|
Number of last-AS prepends.
|
|
|
|
|
tag
boolean
|
|
Set the tag as an AS-path attribute.
|
|
|
|
comm_list
string
|
|
Set BGP community list (for deletion).
|
|
|
|
community
dictionary
|
|
Set BGP community attribute.
|
|
|
|
|
additive
boolean
|
|
Add to existing community.
|
|
|
|
|
graceful_shutdown
boolean
|
|
Graceful Shutdown (well-known community).
|
|
|
|
|
internet
boolean
|
|
Internet (well-known community).
|
|
|
|
|
local_as
boolean
|
|
Do not send outside local AS (well-known community).
|
|
|
|
|
no_advertise
boolean
|
|
Do not advertise to any peer (well-known community).
|
|
|
|
|
no_export
boolean
|
|
Do not export to next AS (well-known community).
|
|
|
|
|
number
list
/ elements=string
|
|
Community number aa:nn format
|
|
|
|
dampening
dictionary
|
|
Set BGP route flap dampening parameters.
|
|
|
|
|
half_life
integer
|
|
Half-life time for the penalty.
|
|
|
|
|
max_suppress_time
integer
|
|
Maximum suppress time for stable route.
|
|
|
|
|
start_reuse_route
integer
|
|
Value to start reusing a route.
|
|
|
|
|
start_suppress_route
integer
|
|
Value to start suppressing a route.
|
|
|
|
distance
dictionary
|
|
Configure administrative distance.
|
|
|
|
|
igp_ebgp_routes
integer
|
|
Administrative distance for IGP or EBGP routes
|
|
|
|
|
internal_routes
integer
|
|
Distance for internal routes.
|
|
|
|
|
local_routes
integer
|
|
Distance for local routes.
|
|
|
|
evpn
dictionary
|
|
Set BGP EVPN Routes.
|
|
|
|
|
gateway_ip
dictionary
|
|
Set gateway IP for type 5 EVPN routes.
Cannot set ip and use-nexthop in the same route-map sequence.
|
|
|
|
|
|
ip
string
|
|
Gateway IP address.
|
|
|
|
|
|
use_nexthop
boolean
|
|
Use nexthop address as gateway IP.
|
|
|
|
extcomm_list
string
|
|
Set BGP extcommunity list (for deletion).
|
|
|
|
extcommunity
dictionary
|
|
Set BGP extcommunity attribute.
|
|
|
|
|
rt
dictionary
|
|
Route-Target.
|
|
|
|
|
|
additive
boolean
|
|
Add to existing rt extcommunity.
|
|
|
|
|
|
extcommunity_numbers
list
/ elements=string
|
|
Extcommunity number.
Supported formats are ASN2:NN, ASN4:NN, IPV4:NN.
|
|
|
|
forwarding_address
boolean
|
|
Set the forwarding address.
|
|
|
|
ip
dictionary
|
|
Configure IP features.
|
|
|
|
|
address
dictionary
|
|
Specify IP address.
|
|
|
|
|
|
prefix_list
string
|
|
Name of prefix list (Max Size 63).
|
|
|
|
|
next_hop
dictionary
|
|
Set next-hop IP address (for policy-based routing)
|
|
|
|
|
|
address
string
|
|
Set space-separated list of next-hop IP addresses. Address ordering is important. Also don`t use unnecessary spaces.
|
|
|
|
|
|
drop_on_fail
boolean
|
|
Drop packets instead of using default routing when the configured next hop becomes unreachable
|
|
|
|
|
|
force_order
boolean
|
|
Enable next-hop ordering as specified in the address parameter.
|
|
|
|
|
|
load_share
boolean
|
|
Enable traffic load balancing across a maximum of 32 next-hop addresses
|
|
|
|
|
|
peer_address
boolean
|
|
BGP prefix next hop is set to the local address of the peer.
If no next hop is set in the route map, the next hop is set to the one stored in the path.
|
|
|
|
|
|
redist_unchanged
boolean
|
|
Set for next-hop address conservation for non-local generated routes.
Used with redistribute command. Available to maintain BGP routing compliant with RFC 4271 on Nexus OS.
|
|
|
|
|
|
unchanged
boolean
|
|
Set for next-hop address conservation in eBGP outgoing updates
|
|
|
|
|
|
verify_availability
list
/ elements=dictionary
|
|
Set next-hop ip address tracking with IP SLA
|
|
|
|
|
|
|
address
string
/ required
|
|
Set one next-hop address
|
|
|
|
|
|
|
drop_on_fail
boolean
|
|
Drop packets instead of using default routing when the configured next hop becomes unreachable
|
|
|
|
|
|
|
force_order
boolean
|
|
Enable next-hop ordering as specified in the address parameter.
|
|
|
|
|
|
|
load_share
boolean
|
|
Enable traffic load balancing across a maximum of 32 next-hop addresses
|
|
|
|
|
|
|
track
integer
/ required
|
|
Set track number
|
|
|
|
|
precedence
string
|
|
Set precedence field.
|
|
|
|
ipv6
dictionary
|
|
Configure IPv6 features.
|
|
|
|
|
address
dictionary
|
|
Specify IP address.
|
|
|
|
|
|
prefix_list
string
|
|
Name of prefix list (Max Size 63).
|
|
|
|
|
precedence
string
|
|
Set precedence field.
|
|
|
|
label_index
integer
|
|
Set Segment Routing (SR) label index of route.
|
|
|
|
level
string
|
Choices:
- level-1
- level-1-2
- level-2
|
Where to import route.
|
|
|
|
local_preference
integer
|
|
BGP local preference path attribute.
|
|
|
|
metric
dictionary
|
|
Set metric for destination routing protocol.
|
|
|
|
|
bandwidth
integer
|
|
Metric value or Bandwidth in Kbits per second (Max Size 11).
|
|
|
|
|
igrp_delay_metric
integer
|
|
IGRP delay metric.
|
|
|
|
|
igrp_effective_bandwidth_metric
integer
|
|
IGRP Effective bandwidth metric (Loading) 255 is 100%.
|
|
|
|
|
igrp_mtu
integer
|
|
IGRP MTU of the path.
|
|
|
|
|
igrp_reliability_metric
integer
|
|
IGRP reliability metric where 255 is 100 percent reliable.
|
|
|
|
metric_type
string
|
Choices:
- external
- internal
- type-1
- type-2
|
Type of metric for destination routing protocol.
|
|
|
|
nssa_only
boolean
|
|
OSPF NSSA Areas.
|
|
|
|
null_interface
string
|
|
Output Null interface.
|
|
|
|
origin
string
|
Choices:
- egp
- igp
- incomplete
|
BGP origin code.
|
|
|
|
path_selection
string
|
Choices:
- all
- backup
- best2
- multipaths
|
Path selection criteria for BGP.
|
|
|
|
tag
integer
|
|
Tag value for destination routing protocol.
|
|
|
|
weight
integer
|
|
BGP weight for routing table.
|
|
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 NX-OS device by executing the command show running-config | section '^route-map'.
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 the configuration should be left in.
With state replaced, for the listed route-maps, sequences that are in running-config but not in the task are negated.
With state overridden, all route-maps that are in running-config but not in the task are negated.
Please refer to examples for more details.
|