ansible.builtin.nxos_vrf_interface (v2.8.11) — module

Manages interface specific VRF configuration.

| "added in version" 2.1 of ansible.builtin"

Authors: Jason Edelman (@jedelman8), Gabriele Gerbino (@GGabriele)

preview | supported by network

Install Ansible via pip

Install with pip install ansible==2.8.11

Description

Manages interface specific VRF configuration.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Ensure vrf ntc exists on Eth1/1
  nxos_vrf_interface:
    vrf: ntc
    interface: Ethernet1/1
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Ensure ntc VRF does not exist on Eth1/1
  nxos_vrf_interface:
    vrf: ntc
    interface: Ethernet1/1
    state: absent

Inputs

    
vrf:
    description:
    - Name of VRF to be managed.
    required: true

state:
    choices:
    - present
    - absent
    default: present
    description:
    - Manages desired state of the resource.
    required: false

interface:
    description:
    - Full name of interface to be managed, i.e. Ethernet1/1.
    required: true

Outputs

commands:
  description: commands sent to the device
  returned: always
  sample:
  - interface loopback16
  - vrf member ntc
  type: list