cisco.nxos.nxos_vrf_interface (7.0.0) — module

Manages interface specific VRF configuration.

| "added in version" 1.0.0 of cisco.nxos"

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

Install collection

Install with ansible-galaxy collection install cisco.nxos:==7.0.0


Add to requirements.yml

  collections:
    - name: cisco.nxos
      version: 7.0.0

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
  cisco.nxos.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
  cisco.nxos.nxos_vrf_interface:
    vrf: ntc
    interface: Ethernet1/1
    state: absent

Inputs

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

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

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

Outputs

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