nxos_hsrp_interfaces – Manages HSRP attributes of NXOS interfaces

Synopsis

  • Manages Hot Standby Router Protocol (HSRP) interface attributes.

Parameters

Parameter Choices/Defaults Comments
config
list / elements=dictionary
The provided configuration
bfd
string
    Choices:
  • enable
  • disable
Enable/Disable HSRP Bidirectional Forwarding Detection (BFD) on the interface.
name
string
The name of the interface.
state
string
    Choices:
  • merged ←
  • replaced
  • overridden
  • deleted
The state the configuration should be left in

Examples

# Using deleted

- name: Configure hsrp attributes on interfaces
  nxos_hsrp_interfaces:
    config:
      - name: Ethernet1/1
      - name: Ethernet1/2
    operation: deleted


# Using merged

- name: Configure hsrp attributes on interfaces
  nxos_hsrp_interfaces:
    config:
      - name: Ethernet1/1
        bfd: enable
      - name: Ethernet1/2
        bfd: disable
    operation: merged


# Using overridden

- name: Configure hsrp attributes on interfaces
  nxos_hsrp_interfaces:
    config:
      - name: Ethernet1/1
        bfd: enable
      - name: Ethernet1/2
        bfd: disable
    operation: overridden


# Using replaced

- name: Configure hsrp attributes on interfaces
  nxos_hsrp_interfaces:
    config:
      - name: Ethernet1/1
        bfd: enable
      - name: Ethernet1/2
        bfd: disable
    operation: replaced

Return Values

Common return values are documented here, the following are the fields unique to this module:

Key Returned Description
after
list
when changed
The resulting configuration model invocation.

Sample:
The configuration returned will always be in the same format of the parameters above.
before
list
always
The configuration prior to the model invocation.

Sample:
The configuration returned will always be in the same format of the parameters above.
commands
list
always
The set of commands pushed to the remote device.

Sample:
['interface Ethernet1/1', 'hsrp bfd']


Status

Red Hat Support

More information about Red Hat’s support of this module is available from this Red Hat Knowledge Base article.

Authors

  • Chris Van Heuveln (@chrisvanheuveln)

Hint

If you notice any issues in this documentation, you can edit this document to improve it.