101
- The
evpn
keyword for route-target is not currently supported by the Ansible module. You will need to use NxosConfig module to configure this.
NxosVrfAf() generates Ansible task instances conformant with its identically-named Ansible module. These task instances can then be passed to Playbook().add_task()
Properties / Methods | Description |
---|---|
add_rt() | Append the currently-configured route-target to
the RT list, and clear all RT-related properties
so that another RT can be configured. See
- Type: method - Example: task = NxosVrfAf(log_instance) task.rt = '300:2000' task.rt_direction = 'export' task.rt_state = 'present' task.add_rt() task.rt = '300:2001' task.rt_direction = 'import' task.rt_state = 'present' task.add_rt() etc... |
afi | Address Family: - Type: str() - Valid values: - ipv4 - ipv6 - Example: task.afi = 'ipv4' |
route_target_both_auto_evpn | Enable/Disable the EVPN route-target 'auto' setting for both import and export target communities: - Type: bool() - Valid values: - False - True - Example: task.route_target_both_auto_evpn = False |
rt | route-target: - Type: str() - Example: task.rt = '300:2000' |
rt_direction | Indicates the direction of the route-target: - Type: str() - Valid values: - both - export - import - Default: both - Example: task.rt_direction = 'import' |
rt_state | The state of this route-target: - Type: str() - Valid values: - absent - present - Default: present - Examples: task.rt_state = 'present' |
state | Manages desired state of the resource: - Type: str() - Valid values: - absent - present - Examples: task.state = 'present' |
task_name | Freeform name for the task (ansible-playbook will print this when the task is run): - Type: str() - Examples: task.task_name = 'configure route targets' |
vrf | Name of the VRF to be managed: - Type: str() - Examples: - task.vrf = 'my_vrf' |
- Allen Robel (@PacketCalc)