ansible / ansible.builtin / v2.4.0.0-1 / module / eos_vrf Manage VRFs on Arista EOS network devices | "added in version" 2.4 of ansible.builtin" Authors: Ricardo Carrillo Cruz (@rcarrillocruz) preview | supported by networkansible.builtin.eos_vrf (v2.4.0.0-1) — module
pip
Install with pip install ansible==2.4.0.0.post1
This module provides declarative management of VRFs on Arista EOS network devices.
- name: Create vrf eos_vrf: name: test rd: 1:200 interfaces: - Ethernet2 state: present
- name: Delete VRFs eos_vrf: name: test state: absent
- name: Create aggregate of VRFs with purge eos_vrf: aggregate: - { name: test4, rd: "1:204" } - { name: test5, rd: "1:205" } state: present purge: yes
- name: Delete aggregate of VRFs eos_vrf: aggregate: - name: test2 - name: test3 - name: test4 - name: test5 state: absent
rd: description: - Route distinguisher of the VRF name: description: - Name of the VRF. required: true delay: default: 10 description: - Time in seconds to wait before checking for the operational state on remote device. This wait is applicable for operational state arguments. purge: default: false description: - Purge VRFs not defined in the I(aggregate) parameter. state: choices: - present - absent default: present description: - State of the VRF configuration. aggregate: description: List of VRFs definitions interfaces: description: - List of interfaces to check the VRF has been configured correctly.
commands: description: The list of configuration mode commands to send to the device returned: always sample: - vrf definition test - rd 1:100 - interface Ethernet1 - vrf forwarding test type: list