ansible / ansible.netcommon / 3.1.3 / module / net_vrf
Removed in None
Reason:Updated modules released with more functionality | Alternative:Use platform-specific "[netos]_vrf" module
(deprecated, removed after 2022-06-01) Manage VRFs on network devices
| "added in version" 1.0.0 of ansible.netcommon"
Authors: Ricardo Carrillo Cruz (@rcarrillocruz)
This plugin has a corresponding action plugin.
Install with ansible-galaxy collection install ansible.netcommon:==3.1.3
collections: - name: ansible.netcommon version: 3.1.3
This module provides declarative management of VRFs on network devices.
- name: Create VRF named MANAGEMENT ansible.netcommon.net_vrf: name: MANAGEMENT
- name: remove VRF named MANAGEMENT ansible.netcommon.net_vrf: name: MANAGEMENT state: absent
- name: Create aggregate of VRFs with purge ansible.netcommon.net_vrf: aggregate: - name: test4 rd: 1:204 - name: test5 rd: 1:205 state: present purge: yes
- name: Delete aggregate of VRFs ansible.netcommon.net_vrf: aggregate: - name: test2 - name: test3 - name: test4 - name: test5 state: absent
name: description: - Name of the VRF. 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 the VRF should be configured on.
commands: description: The list of configuration mode commands to send to the device returned: always, except for the platforms that use Netconf transport to manage the device. sample: - vrf definition MANAGEMENT type: list