.. _cisco.iosxr.iosxr_static_routes_module:
*******************************
cisco.iosxr.iosxr_static_routes
*******************************
**Resource module to configure static routes.**
Version added: 1.0.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module manages static routes on devices running Cisco IOS-XR.
Parameters
----------
.. raw:: html
| Parameter |
Choices/Defaults |
Comments |
|
config
list
/ elements=dictionary
|
|
A dictionary of static route options.
|
|
address_families
list
/ elements=dictionary
|
|
A dictionary specifying the address family to which the static route(s) belong.
|
|
|
afi
string
/ required
|
|
Specifies the top level address family indicator.
|
|
|
routes
list
/ elements=dictionary
|
|
A dictionary that specifies the static route configurations.
|
|
|
|
dest
string
/ required
|
|
An IPv4 or IPv6 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
|
|
The administrative distance for this static route.
Refer to vendor documentation for valid values.
|
|
|
|
|
description
string
|
|
Specifies the description for this static route.
|
|
|
|
|
dest_vrf
string
|
|
The destination VRF.
|
|
|
|
|
forward_router_address
string
|
|
The IP address of the next hop that can be used to reach the destination network.
|
|
|
|
|
interface
string
|
|
The interface to use to reach the destination.
|
|
|
|
|
metric
integer
|
|
Specifes the metric for this static route.
Refer to vendor documentation for valid values.
|
|
|
|
|
tag
integer
|
|
Specifies a numeric tag for this static route.
Refer to vendor documentation for valid values.
|
|
|
|
|
track
string
|
|
Specifies the object to be tracked.
This enables object tracking for static routes.
|
|
|
|
|
tunnel_id
integer
|
|
Specifies a tunnel id for the route.
Refer to vendor documentation for valid values.
|
|
|
|
|
vrflabel
integer
|
|
Specifies the VRF label for this static route.
Refer to vendor documentation for valid values.
|
|
|
safi
string
/ required
|
Choices:
- unicast
- multicast
|
Specifies the subsequent address family indicator.
|
|
vrf
string
|
|
The VRF to which the static route(s) belong.
|
|
running_config
string
|
|
This option is used only with state parsed.
The value of this option should be the output received from the IOS-XR device by executing the command show running-config router static.
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.
|