.. _cisco.nxos.nxos_hsrp_interfaces_module:
*******************************
cisco.nxos.nxos_hsrp_interfaces
*******************************
**HSRP interfaces resource module**
Version added: 10.1.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- Resource module to configure HSRP on interfaces.
Parameters
----------
.. raw:: html
| Parameter |
Choices/Defaults |
Comments |
|
config
list
/ elements=dictionary
|
|
A dictionary of HSRP configuration options to add to interface
|
|
bfd
string
|
|
Enable/Disable HSRP Bidirectional Forwarding Detection (BFD) on the interface.
Deprecated, Use standby.bfd instead, the facts would always render bfd information as a part of standby configuration
This option has been deprecated and will be removed in a release after 2028-06-01.
|
|
name
string
|
|
The name of the interface.
|
|
standby
dictionary
|
|
Standby options generic, not idempotent when version 1 (HSRP)
|
|
|
bfd
boolean
|
|
Enable HSRP BFD
|
|
|
delay
dictionary
|
|
HSRP initialization delay
|
|
|
|
minimum
integer
|
|
Delay at least this long
|
|
|
|
reload
integer
|
|
Delay after reload
|
|
|
mac_refresh
integer
|
|
Refresh MAC cache on switch by periodically sending packet from virtual mac address
|
|
|
use_bia
dictionary
|
|
HSRP uses interface's burned in address (does not work with mac address)
|
|
|
|
scope
boolean
|
|
Scope interface option (hsrp use-bia scope interface)
|
|
|
|
set
boolean
|
|
Set use-bia only
|
|
|
version
integer
|
|
HSRP version
|
|
standby_options
list
/ elements=dictionary
|
|
Group number and group options for standby (HSRP)
|
|
|
authentication
dictionary
|
|
Authentication configuration
|
|
|
|
key_chain
string
|
|
Set key chain
|
|
|
|
key_string
string
|
|
Set key string
|
|
|
|
password_text
string
|
|
Password text valid for plain text and and key-string
|
|
|
follow
string
|
|
Groups to be followed
|
|
|
group_name
string
|
|
Redundancy name string
|
|
|
group_no
integer
|
|
Group number
|
|
|
ip
list
/ elements=dictionary
|
|
Enable HSRP IPv4 and set the virtual IP address
|
|
|
|
secondary
boolean
|
|
Make this IP address a secondary virtual IP address
|
|
|
|
virtual_ip
string
|
|
Virtual IP address
|
|
|
mac_address
string
|
|
Virtual MAC address
|
|
|
preempt
dictionary
|
|
Overthrow lower priority Active routers
|
|
|
|
minimum
integer
|
|
Delay at least this long
|
|
|
|
reload
integer
|
|
Delay after reload
|
|
|
|
sync
integer
|
|
Wait for IP redundancy clients
|
|
|
priority
dictionary
|
|
Priority level
|
|
|
|
level
integer
|
Default:
100
|
Priority level value
|
|
|
|
lower
integer
|
|
Set lower threshold value (forwarding-threshold)
|
|
|
|
upper
integer
|
|
Set upper threshold value (forwarding-threshold)
|
|
|
timer
dictionary
|
|
Overthrow lower priority Active routers
|
|
|
|
hello_interval
integer
|
|
Hello interval in seconds
|
|
|
|
hold_time
integer
|
|
Hold time in seconds
|
|
|
|
msec
boolean
|
|
Specify hello interval in milliseconds
|
|
|
track
list
/ elements=dictionary
|
|
Priority tracking
|
|
|
|
decrement
integer
|
|
Priority decrement
|
|
|
|
object_no
integer
|
|
Track object number
|
|
running_config
string
|
|
This option is used only with state parsed.
The value of this option should be the output received from the NX-OS device by executing the command show running-config | section '^interface'.
The state parsed reads the configuration from running_config option and transforms it into Ansible structured data as per the resource module's argspec and the value is then returned in the parsed key within the result.
|
|
state
string
|
Choices:
merged ←
- replaced
- overridden
- deleted
- rendered
- gathered
- parsed
|
The state the configuration should be left in
The states rendered, gathered and parsed does not perform any change on the device.
The state rendered will transform the configuration in config option to platform specific CLI commands which will be returned in the rendered key within the result. For state rendered active connection to remote host is not required.
The state gathered will fetch the running configuration from device and transform it into structured data in the format as per the resource module argspec and the value is returned in the gathered key within the result.
The state parsed reads the configuration from running_config option and transforms it into JSON format as per the resource module parameters and the value is returned in the parsed key within the result. The value of running_config option should be the same format as the output of command show running-config | section ^interface executed on device. For state parsed active connection to remote host is not required.
|