.. _cisco.nxos.nxos_vrf_address_family_module:
**********************************
cisco.nxos.nxos_vrf_address_family
**********************************
**Resource module to configure VRF address family definitions.**
Version added: 9.3.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module provides declarative management of VRF definitions on Cisco NXOS.
Parameters
----------
.. raw:: html
| Parameter |
Choices/Defaults |
Comments |
|
config
list
/ elements=dictionary
|
|
A list of device configurations for VRF address family.
|
|
address_families
list
/ elements=dictionary
|
|
Enable address family and enter its config mode - AFI/SAFI configuration
|
|
|
afi
string
|
|
Address Family Identifier (AFI)
|
|
|
export
list
/ elements=dictionary
|
|
VRF export
|
|
|
|
map
string
|
|
Route-map based VRF export
|
|
|
|
vrf
dictionary
|
|
Virtual Router Context
|
|
|
|
|
allow_vpn
boolean
|
|
Allow re-importation of VPN imported routes
|
|
|
|
|
map_import
string
|
|
Route-map based VRF import
|
|
|
|
|
max_prefix
integer
|
|
Maximum prefix limit
|
|
|
import
list
/ elements=dictionary
|
|
VRF import
|
|
|
|
map
string
|
|
Route-map based VRF export
|
|
|
|
vrf
dictionary
|
|
Virtual Router Context
|
|
|
|
|
advertise_vpn
boolean
|
|
Allow leaked routes to be advertised to VPN
|
|
|
|
|
map_import
string
|
|
Route-map based VRF import
|
|
|
|
|
max_prefix
integer
|
|
Maximum prefix limit
|
|
|
maximum
dictionary
|
|
Set a limit of routes
|
|
|
|
max_route_options
dictionary
|
|
Configure the options for maximum routes
|
|
|
|
|
threshold
dictionary
|
|
Configure threshold & its options
|
|
|
|
|
|
reinstall_threshold
integer
|
|
Threshold value (%) at which to reinstall routes back to VRF
|
|
|
|
|
|
threshold_value
integer
|
|
Threshold value (%) at which to generate a warning msg
|
|
|
|
|
warning_only
boolean
|
|
Configure only give a warning message if limit is exceeded
|
|
|
|
max_routes
integer
|
|
Maximum number of routes allowed
|
|
|
route_target
list
/ elements=dictionary
|
|
Specify Target VPN Extended Communities
|
|
|
|
export
string
|
|
Export Target-VPN community
|
|
|
|
import
string
|
|
Import Target-VPN community
|
|
|
safi
string
|
Choices:
- multicast
- unicast
|
Address Family modifier
|
|
name
string
/ required
|
|
Name of the VRF.
|
|
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 ^vrf.
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:
- parsed
- gathered
- deleted
- purged
merged ←
- replaced
- rendered
- overridden
|
The state the configuration should be left in
The states rendered, gathered and parsed does not perform any change on the device.
The state rendered will transform the configuration in config option to platform specific CLI commands which will be returned in the rendered key within the result. For state rendered active connection to remote host is not required.
The state gathered will fetch the running configuration from device and transform it into structured data in the format as per the resource module argspec and the value is returned in the gathered key within the result.
The state parsed reads the configuration from running_config option and transforms it into JSON format as per the resource module parameters and the value is returned in the parsed key within the result. The value of running_config option should be the same format as the output of command show running-config | section ^vrf. connection to remote host is not required.
|