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

Manages global VPC configuration

| "added in version" 2.2 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 global VPC configuration

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: configure a simple asn
  nxos_vpc:
    domain: 100
    role_priority: 1000
    system_priority: 2000
    pkl_dest: 192.168.100.4
    pkl_src: 10.1.100.20
    peer_gw: true
    auto_recovery: true
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: configure
  nxos_vpc:
    domain: 100
    role_priority: 32667
    system_priority: 2000
    peer_gw: true
    pkl_src: 10.1.100.2
    pkl_dest: 192.168.100.4
    auto_recovery: true
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Configure VPC with delay restore and existing keepalive VRF
  nxos_vpc:
    domain: 10
    role_priority: 28672
    system_priority: 2000
    delay_restore: 180
    peer_gw: true
    pkl_src: 1.1.1.2
    pkl_dest: 1.1.1.1
    pkl_vrf: vpckeepalive
    auto_recovery: true

Inputs

    
state:
    choices:
    - present
    - absent
    description:
    - Manages desired state of the resource
    required: true

domain:
    description:
    - VPC domain
    required: true

peer_gw:
    description:
    - Enables/Disables peer gateway
    type: bool

pkl_src:
    description:
    - Source IP address used for peer keepalive link

pkl_vrf:
    default: management
    description:
    - VRF used for peer keepalive link

pkl_dest:
    description:
    - Destination (remote) IP address used for peer keepalive link

auto_recovery:
    description:
    - Enables/Disables auto recovery
    type: bool

delay_restore:
    description:
    - manages delay restore command and config value in seconds
    type: str

role_priority:
    description:
    - Role priority for device. Remember lower is better.

system_priority:
    description:
    - System priority device.  Remember they must match between peers.

Outputs

commands:
  description: commands sent to the device
  returned: always
  sample:
  - vpc domain 100
  - peer-keepalive destination 192.168.100.4 source 10.1.100.20 vrf management
  - auto-recovery
  - peer-gateway
  type: list