cisco.nxos.nxos_vpc (7.0.0) — module

Manages global VPC 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 global VPC configuration

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: configure a simple asn
  cisco.nxos.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
  cisco.nxos.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
  cisco.nxos.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
    default: present
    description:
    - Manages desired state of the resource
    type: str

domain:
    description:
    - VPC domain
    required: true
    type: str

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

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

pkl_vrf:
    description:
    - VRF used for peer keepalive link
    - The VRF must exist on the device before using pkl_vrf.
    - '(Note) ''default'' is an overloaded term: Default vrf context for pkl_vrf is ''management'';
      ''pkl_vrf: default'' refers to the literal ''default'' rib.'
    type: str

pkl_dest:
    description:
    - Destination (remote) IP address used for peer keepalive link
    - pkl_dest is required whenever pkl options are used.
    type: str

auto_recovery:
    description:
    - Enables/Disables auto recovery on platforms that support disable
    - timers are not modifiable with this attribute
    - mutually exclusive with auto_recovery_reload_delay
    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.
    type: str

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

delay_restore_orphan_port:
    description:
    - manages delay restore orphan-port command and config value in seconds
    - not supported on all platforms
    type: str

auto_recovery_reload_delay:
    description:
    - Manages auto-recovery reload-delay timer in seconds
    - mutually exclusive with auto_recovery
    type: str

delay_restore_interface_vlan:
    description:
    - manages delay restore interface-vlan command and config value in seconds
    - not supported on all platforms
    type: str

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