.. _cisco.ios.ios_vrf_global_module:
************************
cisco.ios.ios_vrf_global
************************
**Resource module to configure global VRF definitions.**
Version added: 8.0.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module provides declarative management of VRF definitions on Cisco IOS.
Parameters
----------
.. raw:: html
| Parameter |
Choices/Defaults |
Comments |
|
config
dictionary
|
|
A dictionary containing device configurations for VRF, including a list of VRF definitions.
|
|
vrfs
list
/ elements=dictionary
|
|
List of VRF definitions.
|
|
|
description
string
|
|
VRF specific description
|
|
|
ipv4
dictionary
|
|
VRF IPv4 configuration
|
|
|
|
multicast
dictionary
|
|
IPv4 multicast configuration
|
|
|
|
|
multitopology
boolean
|
|
Enable multicast-specific topology
|
|
|
ipv6
dictionary
|
|
VRF IPv6 configuration
|
|
|
|
multicast
dictionary
|
|
IPv6 multicast configuration
|
|
|
|
|
multitopology
boolean
|
|
Enable multicast-specific topology
|
|
|
name
string
/ required
|
|
Name of the VRF.
|
|
|
rd
string
|
|
Specify route distinguisher (RD).
|
|
|
route_target
dictionary
|
|
Specify target VPN extended configurations.
|
|
|
|
both
string
|
|
This option is DEPRECATED and is replaced with both_options which accepts list as input.
|
|
|
|
both_options
list
/ elements=string
|
|
Both export and import target-VPN configuration.
|
|
|
|
export
string
|
|
This option is DEPRECATED and is replaced with exports which accepts list as input.
|
|
|
|
exports
list
/ elements=string
|
|
Export target-VPN configuration.
|
|
|
|
import_config
string
|
|
This option is DEPRECATED and is replaced with imports which accepts list as input.
|
|
|
|
imports
list
/ elements=string
|
|
Import target-VPN configuration.
|
|
|
vnet
dictionary
|
|
Virtual networking configuration.
|
|
|
|
tag
integer
|
|
Identifier used to tag packets associated with this VNET.
|
|
|
vpn
dictionary
|
|
Configure vpn-id for the VRF as specified in RFC 2685.
|
|
|
|
id
string
|
|
Configure vpn-id in RFC 2685 format.
|
|
running_config
string
|
|
This option is used only with state parsed.
The value of this option should be the output received from the IOS 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 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.
The state deleted only removes the VRF attributes that this module manages and does not negate the VRF completely. Thereby, preserving address-family related configurations under VRF context.
The state purged removes all the VRF definitions from the target device. Use caution with this state.
Refer to examples for more details.
|