Manages VRF AF.
Version added: 1.0.0
- Manages VRF AF
Note
- Tested against NXOSv 7.3.(0)D1(1) on VIRL
- Unsupported for Cisco MDS
- Default, where supported, restores params default value.
- In case of
state=absent
the address-family configuration will be absent. Therefore the optionsroute_target_both_auto_evpn
androute_targets
are ignored. - For information on using CLI and NX-API see the :ref:`NXOS Platform Options guide <nxos_platform_options>`
- For more information on using Ansible to manage network devices see the :ref:`Ansible Network Guide <network_guide>`
- For more information on using Ansible to manage Cisco devices see the Cisco integration page.
- cisco.nxos.nxos_vrf_af:
vrf: ntc
afi: ipv4
route_target_both_auto_evpn: true
state: present
- cisco.nxos.nxos_vrf_af:
vrf: ntc
afi: ipv4
route_targets:
- rt: '65000:1000'
direction: import
- rt: '65001:1000'
direction: import
- cisco.nxos.nxos_vrf_af:
vrf: ntc
afi: ipv4
route_targets:
- rt: '65000:1000'
direction: import
- rt: '65001:1000'
state: absent
- cisco.nxos.nxos_vrf_af:
vrf: ntc
afi: ipv4
route_targets:
- rt: '65000:1000'
direction: export
- rt: '65001:1000'
direction: export
- cisco.nxos.nxos_vrf_af:
vrf: ntc
afi: ipv4
route_targets:
- rt: '65000:1000'
direction: export
state: absent
- cisco.nxos.nxos_vrf_af:
vrf: ntc
afi: ipv4
route_targets:
- rt: '65000:1000'
direction: both
state: present
- rt: '65001:1000'
direction: import
state: present
- rt: '65002:1000'
direction: both
state: absent
Common return values are documented here, the following are the fields unique to this module:
Key | Returned | Description |
---|---|---|
commands
list
|
always |
commands sent to the device
Sample:
['vrf context ntc', 'address-family ipv4 unicast']
|
- Gabriele Gerbino (@GGabriele)