cisco.nxos.nxos_vrrp (7.0.0) — module

Manages VRRP configuration on NX-OS switches.

| "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 VRRP configuration on NX-OS switches.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Ensure vrrp group 100 and vip 10.1.100.1 is on vlan10
  cisco.nxos.nxos_vrrp:
    interface: vlan10
    group: 100
    vip: 10.1.100.1
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Ensure removal of the vrrp group config
  cisco.nxos.nxos_vrrp:
    interface: vlan10
    group: 100
    vip: 10.1.100.1
    state: absent
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Re-config with more params
  cisco.nxos.nxos_vrrp:
    interface: vlan10
    group: 100
    vip: 10.1.100.1
    preempt: false
    priority: 130
    authentication: AUTHKEY

Inputs

    
vip:
    description:
    - VRRP virtual IP address or 'default' keyword
    type: str

group:
    description:
    - VRRP group number.
    required: true
    type: str

state:
    choices:
    - present
    - absent
    default: present
    description:
    - Specify desired state of the resource.
    type: str

preempt:
    description:
    - Enable/Disable preempt.
    type: bool

interval:
    description:
    - Time interval between advertisement or 'default' keyword
    required: false
    type: str

priority:
    description:
    - VRRP priority or 'default' keyword
    type: str

interface:
    description:
    - Full name of interface that is being managed for VRRP.
    required: true
    type: str

admin_state:
    choices:
    - shutdown
    - no shutdown
    - default
    default: shutdown
    description:
    - Used to enable or disable the VRRP process.
    type: str

authentication:
    description:
    - Clear text authentication string or 'default' keyword
    type: str

Outputs

commands:
  description: commands sent to the device
  returned: always
  sample:
  - interface vlan10
  - vrrp 150
  - address 10.1.15.1
  - authentication text testing
  - no shutdown
  type: list