.. _cisco.ios.ios_hsrp_interfaces_module:
*****************************
cisco.ios.ios_hsrp_interfaces
*****************************
**Resource module to configure HSRP on interfaces.**
Version added: 10.1.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module provides declarative management of HSRP configuration on interface for Cisco IOS devices.
Parameters
----------
.. raw:: html
| Parameter |
Choices/Defaults |
Comments |
|
config
list
/ elements=dictionary
|
|
A list of HSP configuration options to add to interface
|
|
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
|
|
name
string
/ required
|
|
Full name of the interface excluding any logical unit number, i.e. GigabitEthernet0/1.
|
|
redirect
dictionary
|
|
Redirect configuration
|
|
|
advertisement
dictionary
|
|
Redirect advertisement messages (standby redirect advertisement authentication md5)
|
|
|
|
authentication
dictionary
|
|
Authentication configuration
|
|
|
|
|
encryption
string
|
|
Set encryption 0 (unencrypted/default) or 7 (hidden)
|
|
|
|
|
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
|
|
|
|
|
time_out
integer
|
|
Set timeout
|
|
|
timers
dictionary
|
|
Adjust redirect timers
|
|
|
|
adv_timer
integer
|
|
Passive router advertisement interval in seconds
|
|
|
|
holddown_timer
integer
|
|
Passive router holddown interval in seconds
|
|
standby_options
list
/ elements=dictionary
|
|
Group number and group options for standby (HSRP)
aliases: standby_groups
|
|
|
authentication
dictionary
|
|
Authentication configuration
|
|
|
|
encryption
integer
|
|
Set encryption 0 (unencrypted/default) or 7 (hidden)
|
|
|
|
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
|
|
|
|
time_out
integer
|
|
Set timeout
|
|
|
follow
string
|
|
Enable HSRP BFD
|
|
|
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
|
|
|
ipv6
dictionary
|
|
Enable HSRP IPv6 and set the IP address
|
|
|
|
addresses
list
/ elements=string
|
|
IPv6 link-local address or IPv6 prefix
|
|
|
|
autoconfig
boolean
|
|
Obtain address using autoconfiguration
|
|
|
mac_address
string
|
|
Virtual MAC address
|
|
|
preempt
dictionary
|
|
Overthrow lower priority Active routers
|
|
|
|
delay
boolean
|
|
Wait before preempting
|
|
|
|
enabled
boolean
|
|
Enables preempt, drives the lone `standby <grp_no> preempt` command
|
|
|
|
minimum
integer
|
|
Delay at least this long
|
|
|
|
reload
integer
|
|
Delay after reload
|
|
|
|
sync
integer
|
|
Wait for IP redundancy clients
|
|
|
priority
integer
|
Default:
100
|
Priority level (defaults to 100)
|
|
|
timers
dictionary
|
|
Overthrow lower priority Active routers
|
|
|
|
hello_interval
integer
|
|
Hello interval in seconds
|
|
|
|
hold_time
integer
|
|
Hold time in seconds
|
|
|
|
msec
dictionary
|
|
Specify hello interval in milliseconds
|
|
|
|
|
hello_interval
integer
|
|
<15-999> Hello interval in milliseconds
|
|
|
|
|
hold_time
integer
|
|
<60-3000> Hold time in milliseconds
|
|
|
track
list
/ elements=dictionary
|
|
Priority tracking
|
|
|
|
decrement
integer
|
|
Priority decrement
|
|
|
|
shutdown
boolean
|
|
Shutdown Group
|
|
|
|
track_no
integer
|
|
Track object number
|
|
use_bia
dictionary
|
|
HSRP uses interface's burned in address (does not work with mac address)
|
|
|
scope
boolean
|
|
Use-bia applies to all groups on this interface or sub-interface
|
|
|
set
boolean
|
|
Set use-bia
|
|
version
integer
|
|
HSRP version (Defaults to 1 when standby_options is present)
|
|
running_config
string
|
|
This option is used only with state parsed.
The value of this option should be the output received from the IOS 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.
|