.. _cisco.nxos.nxos_vrf_global_module:
**************************
cisco.nxos.nxos_vrf_global
**************************
**Resource module to configure VRF definitions.**
Version added: 8.1.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
dictionary
|
|
A list containing device configurations for VRF.
|
|
vrfs
list
/ elements=dictionary
|
|
List of VRF definitions.
|
|
|
description
string
|
|
Description of the VRF.
|
|
|
ip
dictionary
|
|
Configure IP features for the specified vrf.
|
|
|
|
auto_discard
boolean
|
|
Auto 0.0.0.0/0 discard route.
|
|
|
|
domain_list
list
/ elements=string
|
|
Add list domain names.
|
|
|
|
domain_name
string
|
|
Specify default domain name.
|
|
|
|
icmp_err
dictionary
|
|
Enable ICMP error message.
|
|
|
|
|
source_interface
dictionary
|
|
Configure source-address for applications.
|
|
|
|
|
|
interface
string
|
Choices:
- loopback
- ethernet
- port-channel
|
Source interface for ICMP error messages.
|
|
|
|
|
|
interface_value
string
|
|
Source interface value for ICMP error messages.
|
|
|
|
igmp
dictionary
|
|
IGMP global configuration commands
|
|
|
|
|
ssm_translate
list
/ elements=dictionary
|
|
Translate IGMPv1/v2 reports to (S,G) route entries.
|
|
|
|
|
|
group
string
|
|
Source address.
|
|
|
|
|
|
source
string
|
|
Group address.
|
|
|
|
mroutes
list
/ elements=dictionary
|
|
Configure multicast routes.
|
|
|
|
|
group
string
|
|
Multicast group address.
|
|
|
|
|
preference
integer
|
|
Preference value.
|
|
|
|
|
source
string
|
|
Source address.
|
|
|
|
|
vrf
string
|
|
VRF name.
|
|
|
|
multicast
dictionary
|
|
Configure IP multicast global parameters.
|
|
|
|
|
group_range_prefix_list
string
|
|
Group range prefix-list policy for multicast boundary.
|
|
|
|
|
multipath
dictionary
|
|
Configure ECMP multicast load splitting.
|
|
|
|
|
|
resilient
boolean
|
|
Configure resilient RPF interface.
|
|
|
|
|
|
splitting_type
dictionary
|
|
Configure multicast load splitting type.
|
|
|
|
|
|
|
legacy
boolean
|
|
Configure hash based on source and group.
|
|
|
|
|
|
|
nbm
boolean
|
|
Configure NBM controlled RPF interface.
|
|
|
|
|
|
|
none
boolean
|
|
Disable multicast load splitting.
|
|
|
|
|
|
|
sg_hash
boolean
|
|
Configure hash based on source and group address.
|
|
|
|
|
|
|
sg_hash_next_hop
boolean
|
|
Configure hash based on source and group address and next-hop.
|
|
|
|
|
rpf
list
/ elements=dictionary
|
|
Configure RPF check.
|
|
|
|
|
|
group_list_range
string
|
|
Group range for RPF select.
|
|
|
|
|
|
vrf_name
string
|
|
VRF for RPF lookup.
|
|
|
|
name_server
dictionary
|
|
Specify nameserver address.
|
|
|
|
|
address_list
list
/ elements=string
|
|
Configure multicast name server address.
|
|
|
|
|
use_vrf
dictionary
|
|
Display per-VRF information.
|
|
|
|
|
|
source_address
string
|
|
source address for configuring name server.
|
|
|
|
|
|
vrf
string
|
|
VRF name.
|
|
|
|
route
list
/ elements=dictionary
|
|
Configure static routes.
|
|
|
|
|
destination
string
|
|
Next-hop address.
|
|
|
|
|
source
string
|
|
Destination prefix.
|
|
|
|
|
tags
dictionary
|
|
Route tag.
|
|
|
|
|
|
route_pref
integer
|
|
Route preference.
|
|
|
|
|
|
tag_value
integer
|
|
Route tag value.
|
|
|
|
|
track
string
|
|
Configure track object.
|
|
|
|
|
vrf
string
|
|
add vrf to the route.
|
|
|
ipv6
dictionary
|
|
Configure IPv6 features for the specified vrf.
|
|
|
|
mld_ssm_translate
list
/ elements=dictionary
|
|
Translate MLDv1/v2 reports to (S,G) route entries.
|
|
|
|
|
group
string
|
|
Source address.
|
|
|
|
|
icmp
boolean
|
|
Configure ICMP parameters with mld.
|
|
|
|
|
source
string
|
|
Group address.
|
|
|
|
multicast
dictionary
|
|
Configure IP multicast global parameters for ipv6.
|
|
|
|
|
group_range_prefix_list
string
|
|
Group range prefix-list policy for multicast boundary.
|
|
|
|
|
multipath
dictionary
|
|
Configure ECMP multicast load splitting.
|
|
|
|
|
|
resilient
boolean
|
|
Configure resilient RPF interface.
|
|
|
|
|
|
splitting_type
dictionary
|
|
Configure multicast load splitting type.
|
|
|
|
|
|
|
none
boolean
|
|
Disable multicast load splitting.
|
|
|
|
|
|
|
sg_hash
boolean
|
|
Configure hash based on source and group address.
|
|
|
|
|
|
|
sg_hash_next_hop
boolean
|
|
Configure hash based on source and group address and next-hop.
|
|
|
multicast
dictionary
|
|
Configure IP multicast options.
|
|
|
|
service_reflect
list
/ elements=dictionary
|
|
Configure service reflect option.
|
|
|
|
|
map_to
string
|
|
Map to interface.
|
|
|
|
|
service_interface
string
|
|
configure service interface.
|
|
|
name
string
/ required
|
|
Name of the VRF..
|
|
|
rd
string
|
|
VPN Route Distinguisher
|
|
|
vni
dictionary
|
|
Virtual Network Identifier.
|
|
|
|
layer_3
boolean
|
|
Configure Layer 3 VNI.
|
|
|
|
vni_number
integer
|
|
VNI number.
|
|
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
merged ←
- replaced
- rendered
- overridden
- purged
|
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.
|