Модуль cisco.nxos.nxos_hsrp_interfaces – модуль ресурсов для интерфейсов HSRP
Примечание
Этот модуль входит в коллекцию cisco.nxos (версия 11.2.0).
Возможно, эта коллекция уже установлена, если вы используете пакет ansible. Она не входит в ansible-core. Чтобы проверить, установлена ли она, выполните ansible-galaxy collection list.
Для установки используйте: ansible-galaxy collection install cisco.nxos.
Чтобы использовать коллекцию в плейбуке, укажите: cisco.nxos.nxos_hsrp_interfaces.
Добавлено в cisco.nxos 10.1.0
Краткое описание
- Модуль ресурсов для настройки HSRP на интерфейсах.
Примечание
У этого модуля есть соответствующий модуль действий.
Псевдонимы: hsrp_interfaces
Параметры
Параметр | Комментарии |
|---|---|
config list / elements=dictionary | Словарь параметров конфигурации HSRP для добавления к интерфейсу |
|
bfd string |
Включить или отключить двунаправленное обнаружение перенаправления (BFD) HSRP на интерфейсе. Устарел. Используйте вместо него standby.bfd; сведения о BFD всегда отображаются в фактах как часть конфигурации standby. Этот параметр устарел и будет удалён в одном из выпусков после 2028-06-01. Варианты:
|
|
name string |
Имя интерфейса. |
|
standby dictionary |
Общие параметры режима ожидания; при использовании версии 1 (HSRP) идемпотентность не гарантируется |
|
bfd boolean |
Включить BFD для HSRP Варианты:
|
|
delay dictionary |
Задержка инициализации HSRP |
|
minimum integer |
Задержка не менее указанного времени |
|
reload integer |
Задержка после перезагрузки |
|
mac_refresh integer |
Обновлять кэш MAC-адресов на коммутаторе, периодически отправляя пакет с виртуального MAC-адреса |
|
use_bia dictionary |
HSRP использует встроенный MAC-адрес интерфейса (не работает с MAC-адресом) |
|
scope boolean |
Параметр области действия интерфейса (hsrp use-bia scope interface) Варианты:
|
|
set boolean |
Только установить use-bia Варианты:
|
|
version integer |
Версия HSRP Варианты:
|
|
standby_options list / elements=dictionary |
Номер группы и параметры группы режима ожидания (HSRP) |
|
authentication dictionary |
Настройка аутентификации |
|
key_chain string |
Задать цепочку ключей |
|
key_string string |
Задать строку ключа |
|
password_text string |
Текст пароля, допустимый для открытого текста и строки ключа |
|
follow string |
Группы, за которыми следует следовать |
|
group_name string |
Строковое имя резервирования |
|
group_no integer |
Номер группы |
|
ip list / elements=dictionary |
Включить IPv4 для HSRP и задать виртуальный IP-адрес |
|
secondary boolean |
Сделать этот IP-адрес вторичным виртуальным IP-адресом Варианты:
|
|
virtual_ip string |
Виртуальный IP-адрес |
|
mac_address string |
Виртуальный MAC-адрес |
|
preempt dictionary |
Вытеснять активные маршрутизаторы с более низким приоритетом |
|
minimum integer |
Задержка не менее указанного времени |
|
reload integer |
Задержка после перезагрузки |
|
sync integer |
Ожидать клиентов резервирования IP |
|
priority dictionary |
Уровень приоритета |
|
level integer |
Значение уровня приоритета По умолчанию: |
|
lower integer |
Задать нижнее пороговое значение (порог пересылки) |
|
upper integer |
Задать верхнее пороговое значение (порог пересылки) |
|
timer dictionary |
Вытеснять активные маршрутизаторы с более низким приоритетом |
|
hello_interval integer |
Интервал hello в секундах |
|
hold_time integer |
Время удержания в секундах |
|
msec boolean |
Задать интервал hello в миллисекундах Варианты:
|
|
track list / elements=dictionary |
Отслеживание приоритета |
|
decrement integer |
Уменьшение приоритета |
|
object_no integer |
Номер отслеживаемого объекта |
running_config string | Этот параметр используется только со значением состояния parsed. Значением этого параметра должен быть вывод, полученный с устройства NX-OS при выполнении команды show running-config | section ‘^interface’. Состояние parsed считывает конфигурацию из параметра |
state string | Состояние, в котором должна остаться конфигурация Состояния rendered, gathered и parsed не вносят изменений на устройстве. Состояние rendered преобразует конфигурацию из параметра Состояние gathered получает текущую конфигурацию устройства и преобразует её в структурированные данные в формате, соответствующем спецификации аргументов модуля ресурсов; значение возвращается в ключе gathered результата. Состояние parsed считывает конфигурацию из параметра Варианты:
|
Примечания
Примечание
- Проверено на NX-OS 10.4(2) Nexus 9000v.
- Для работы этого модуля должны быть включены функции bfd и hsrp.
- Не поддерживается на Cisco MDS
Примеры
# Using merged
# Before state:
# -------------
#
# switch# show running-config | section interface
# interface Vlan1
# interface Vlan10
# interface Vlan14
# bandwidth 99999
# interface Vlan1000
# interface Ethernet1/1
# interface Ethernet1/2
# interface Ethernet1/3
# interface Ethernet1/4
# interface Ethernet1/5
# interface Ethernet1/6
# interface Ethernet1/7
- name: Merge provided configuration with device configuration
cisco.nxos.nxos_hsrp_interfaces:
config:
- name: Ethernet1/1
standby:
bfd: true
mac_refresh: 400
version: 2
standby_options:
- authentication:
key_string: SECUREKEY10
group_name: VLAN10-GROUP
group_no: 10
ip:
- secondary: true
virtual_ip: 10.10.10.2
mac_address: 00CC.10DD.10EE
state: merged
# Task Output
# -----------
#
# before:
# - name: Vlan1
# - name: Vlan10
# - name: Vlan14
# - name: Vlan1000
# - name: Ethernet1/1
# standby:
# bfd: true
# - name: Ethernet1/2
# - name: Ethernet1/3
# - name: Ethernet1/4
# - name: Ethernet1/5
# - name: Ethernet1/6
# - name: Ethernet1/7
# commands:
# - interface Ethernet1/1
# - hsrp version 2
# - hsrp mac-refresh 400
# - hsrp 10
# - mac-address 00CC.10DD.10EE
# - name VLAN10-GROUP
# - authentication md5 key-string SECUREKEY10
# - ip 10.10.10.2 secondary
# - interface Ethernet1/2
# - hsrp bfd
# - hsrp version 2
# - hsrp mac-refresh 400
# - hsrp 20
# - mac-address 00CC.10DD.10EF
# - name VLAN20-GROUP
# - authentication md5 key-chain SECUREKEY20
# - ip 10.10.10.3 secondary
# after:
# - name: Vlan1
# - name: Vlan10
# - name: Vlan14
# - name: Vlan1000
# - name: Ethernet1/1
# standby:
# bfd: true
# mac_refresh: 400
# version: 2
# standby_options:
# - authentication:
# key_string: SECUREKEY10
# group_name: VLAN10-GROUP
# group_no: 10
# ip:
# - secondary: true
# virtual_ip: 10.10.10.2
# mac_address: 00CC.10DD.10EE
# - name: Ethernet1/2
# standby:
# bfd: true
# mac_refresh: 400
# version: 2
# standby_options:
# - authentication:
# key_chain: SECUREKEY20
# group_name: VLAN20-GROUP
# group_no: 20
# ip:
# - secondary: true
# virtual_ip: 10.10.10.3
# mac_address: 00CC.10DD.10EF
# - name: Ethernet1/3
# - name: Ethernet1/4
# - name: Ethernet1/5
# - name: Ethernet1/6
# - name: Ethernet1/7
# After state:
# ------------
#
# switch# show running-config | section interface
# interface Vlan1
# interface Vlan10
# interface Vlan14
# bandwidth 99999
# interface Vlan1000
# interface Ethernet1/1
# no switchport
# hsrp bfd
# hsrp version 2
# hsrp mac-refresh 400
# hsrp 10
# authentication md5 key-string SECUREKEY10
# name VLAN10-GROUP
# mac-address 00CC.10DD.10EE
# ip 10.10.10.2 secondary
# interface Ethernet1/2
# no switchport
# hsrp bfd
# hsrp version 2
# hsrp mac-refresh 400
# hsrp 20
# authentication md5 key-chain SECUREKEY20
# name VLAN20-GROUP
# mac-address 00CC.10DD.10EF
# ip 10.10.10.3 secondary
# interface Ethernet1/3
# interface Ethernet1/4
# interface Ethernet1/5
# interface Ethernet1/6
# interface Ethernet1/7
# Using replaced
# Before state:
# -------------
#
# switch# show running-config | section interface
# interface Vlan1
# interface Vlan10
# interface Vlan14
# bandwidth 99999
# interface Vlan1000
# interface Ethernet1/1
# no switchport
# hsrp bfd
# hsrp version 2
# hsrp mac-refresh 400
# hsrp 10
# authentication md5 key-string SECUREKEY10
# name VLAN10-GROUP
# mac-address 00CC.10DD.10EE
# ip 10.10.10.2 secondary
# interface Ethernet1/2
# no switchport
# hsrp bfd
# hsrp version 2
# hsrp mac-refresh 400
# hsrp 20
# authentication md5 key-chain SECUREKEY20
# name VLAN20-GROUP
# mac-address 00CC.10DD.10EF
# ip 10.10.10.3 secondary
# interface Ethernet1/3
# interface Ethernet1/4
# interface Ethernet1/5
# interface Ethernet1/6
# interface Ethernet1/7
- name: Replaces device configuration of listed interfaces with provided configuration
cisco.nxos.nxos_hsrp_interfaces:
config:
- name: Ethernet1/1
standby:
bfd: true
mac_refresh: 400
version: 2
standby_options:
- authentication:
key_string: SECUREKEY10
group_name: VLAN11-GROUP
group_no: 11
mac_address: 00CC.10DD.10EE
- name: Ethernet1/2
standby:
bfd: true
mac_refresh: 400
version: 2
standby_options:
- authentication:
key_chain: SECUREKEY20
group_name: VLAN20-GROUP
group_no: 20
mac_address: 00CC.10DD.10EF
state: replaced
# Task Output
# -----------
#
# before:
# - name: Vlan1
# - name: Vlan10
# - name: Vlan14
# - name: Vlan1000
# - name: Ethernet1/1
# standby:
# bfd: true
# mac_refresh: 400
# version: 2
# standby_options:
# - authentication:
# key_string: SECUREKEY10
# group_name: VLAN10-GROUP
# group_no: 10
# ip:
# - secondary: true
# virtual_ip: 10.10.10.2
# mac_address: 00CC.10DD.10EE
# - name: Ethernet1/2
# standby:
# bfd: true
# mac_refresh: 400
# version: 2
# standby_options:
# - authentication:
# key_chain: SECUREKEY20
# group_name: VLAN20-GROUP
# group_no: 20
# ip:
# - secondary: true
# virtual_ip: 10.10.10.3
# mac_address: 00CC.10DD.10EF
# - name: Ethernet1/3
# - name: Ethernet1/4
# - name: Ethernet1/5
# - name: Ethernet1/6
# - name: Ethernet1/7
# commands:
# - interface Ethernet1/1
# - hsrp 11
# - mac-address 00CC.10DD.10EE
# - name VLAN11-GROUP
# - authentication md5 key-string SECUREKEY10
# - no hsrp 10
# - interface Ethernet1/2
# - hsrp 20
# - no ip 10.10.10.3 secondary
# after:
# - name: Vlan1
# - name: Vlan10
# - name: Vlan14
# - name: Vlan1000
# - name: Ethernet1/1
# standby:
# bfd: true
# mac_refresh: 400
# version: 2
# standby_options:
# - authentication:
# key_string: SECUREKEY10
# group_name: VLAN11-GROUP
# group_no: 11
# mac_address: 00CC.10DD.10EE
# - name: Ethernet1/2
# standby:
# bfd: true
# mac_refresh: 400
# version: 2
# standby_options:
# - authentication:
# key_chain: SECUREKEY20
# group_name: VLAN20-GROUP
# group_no: 20
# mac_address: 00CC.10DD.10EF
# - name: Ethernet1/3
# - name: Ethernet1/4
# - name: Ethernet1/5
# - name: Ethernet1/6
# - name: Ethernet1/7
# After state:
# ------------
#
# switch# show running-config | section interface
# interface Vlan1
# interface Vlan10
# interface Vlan14
# bandwidth 99999
# interface Vlan1000
# interface Ethernet1/1
# no switchport
# hsrp bfd
# hsrp version 2
# hsrp mac-refresh 400
# hsrp 11
# authentication md5 key-string SECUREKEY10
# name VLAN11-GROUP
# mac-address 00CC.10DD.10EE
# interface Ethernet1/2
# no switchport
# hsrp bfd
# hsrp version 2
# hsrp mac-refresh 400
# hsrp 20
# authentication md5 key-chain SECUREKEY20
# name VLAN20-GROUP
# mac-address 00CC.10DD.10EF
# interface Ethernet1/3
# interface Ethernet1/4
# interface Ethernet1/5
# interface Ethernet1/6
# interface Ethernet1/7
# Using overridden
# Before state:
# -------------
#
# switch# show running-config | section interface
# interface Vlan1
# interface Vlan10
# interface Vlan14
# bandwidth 99999
# interface Vlan1000
# interface Ethernet1/1
# no switchport
# hsrp bfd
# hsrp version 2
# hsrp mac-refresh 400
# hsrp 10
# authentication md5 key-string SECUREKEY10
# name VLAN10-GROUP
# mac-address 00CC.10DD.10EE
# ip 10.10.10.2 secondary
# interface Ethernet1/2
# no switchport
# hsrp bfd
# hsrp version 2
# hsrp mac-refresh 400
# hsrp 20
# authentication md5 key-chain SECUREKEY20
# name VLAN20-GROUP
# mac-address 00CC.10DD.10EF
# ip 10.10.10.3 secondary
- name: Override device configuration of all interfaces with provided configuration
cisco.nxos.nxos_hsrp_interfaces:
config:
- name: Ethernet1/1
standby:
bfd: true
mac_refresh: 400
version: 2
standby_options:
- authentication:
key_string: SECUREKEY10
group_name: VLAN11-GROUP
group_no: 11
mac_address: 00CC.10DD.10EE
- name: Ethernet1/2
standby:
bfd: true
mac_refresh: 400
version: 2
standby_options:
- authentication:
key_chain: SECUREKEY20
group_name: VLAN20-GROUP
group_no: 20
mac_address: 00CC.10DD.10EF
state: overridden
# Task Output
# -----------
#
# before:
# - name: Vlan1
# - name: Vlan10
# - name: Vlan14
# - name: Vlan1000
# - name: Ethernet1/1
# standby:
# bfd: true
# mac_refresh: 400
# version: 2
# standby_options:
# - authentication:
# key_string: SECUREKEY10
# group_name: VLAN10-GROUP
# group_no: 10
# ip:
# - secondary: true
# virtual_ip: 10.10.10.2
# mac_address: 00CC.10DD.10EE
# - name: Ethernet1/2
# standby:
# bfd: true
# mac_refresh: 400
# version: 2
# standby_options:
# - authentication:
# key_chain: SECUREKEY20
# group_name: VLAN20-GROUP
# group_no: 20
# ip:
# - secondary: true
# virtual_ip: 10.10.10.3
# mac_address: 00CC.10DD.10EF
# - name: Ethernet1/3
# - name: Ethernet1/4
# - name: Ethernet1/5
# - name: Ethernet1/6
# - name: Ethernet1/7
# commands:
# - interface Ethernet1/1
# - hsrp 11
# - mac-address 00CC.10DD.10EE
# - name VLAN11-GROUP
# - authentication md5 key-string SECUREKEY10
# - no hsrp 10
# - interface Ethernet1/2
# - hsrp 20
# - no ip 10.10.10.3 secondary
# after:
# - name: Vlan1
# - name: Vlan10
# - name: Vlan14
# - name: Vlan1000
# - name: Ethernet1/1
# standby:
# bfd: true
# mac_refresh: 400
# version: 2
# standby_options:
# - authentication:
# key_string: SECUREKEY10
# group_name: VLAN11-GROUP
# group_no: 11
# mac_address: 00CC.10DD.10EE
# - name: Ethernet1/2
# standby:
# bfd: true
# mac_refresh: 400
# version: 2
# standby_options:
# - authentication:
# key_chain: SECUREKEY20
# group_name: VLAN20-GROUP
# group_no: 20
# mac_address: 00CC.10DD.10EF
# - name: Ethernet1/3
# - name: Ethernet1/4
# - name: Ethernet1/5
# - name: Ethernet1/6
# - name: Ethernet1/7
# After state:
# ------------
#
# switch# show running-config | section interface
# interface Vlan1
# interface Vlan10
# interface Vlan14
# bandwidth 99999
# interface Vlan1000
# interface Ethernet1/1
# no switchport
# hsrp bfd
# hsrp version 2
# hsrp mac-refresh 400
# hsrp 11
# authentication md5 key-string SECUREKEY10
# name VLAN11-GROUP
# mac-address 00CC.10DD.10EE
# interface Ethernet1/2
# no switchport
# hsrp bfd
# hsrp version 2
# hsrp mac-refresh 400
# hsrp 20
# authentication md5 key-chain SECUREKEY20
# name VLAN20-GROUP
# mac-address 00CC.10DD.10EF
# interface Ethernet1/3
# interface Ethernet1/4
# interface Ethernet1/5
# interface Ethernet1/6
# interface Ethernet1/7
# Using deleted
# Before state:
# -------------
#
# switch# show running-config | section interface
# interface Vlan1
# interface Vlan10
# interface Vlan14
# bandwidth 99999
# interface Vlan1000
# interface Ethernet1/1
# no switchport
# hsrp bfd
# hsrp version 2
# hsrp mac-refresh 400
# hsrp 10
# authentication md5 key-string SECUREKEY10
# name VLAN10-GROUP
# mac-address 00CC.10DD.10EE
# ip 10.10.10.2 secondary
# interface Ethernet1/2
# no switchport
# hsrp bfd
# hsrp version 2
# hsrp mac-refresh 400
# hsrp 20
# authentication md5 key-chain SECUREKEY20
# name VLAN20-GROUP
# mac-address 00CC.10DD.10EF
# ip 10.10.10.3 secondary
# interface Ethernet1/3
# interface Ethernet1/4
# interface Ethernet1/5
# interface Ethernet1/6
# interface Ethernet1/7
- name: Delete or return interface parameters to default settings
cisco.nxos.nxos_hsrp_interfaces:
config:
- name: Ethernet1/1
standby:
bfd: true
mac_refresh: 400
version: 2
standby_options:
- authentication:
key_string: SECUREKEY10
group_name: VLAN11-GROUP
group_no: 11
mac_address: 00CC.10DD.10EE
- name: Ethernet1/2
standby:
bfd: true
mac_refresh: 400
version: 2
standby_options:
- authentication:
key_chain: SECUREKEY20
group_name: VLAN20-GROUP
group_no: 20
mac_address: 00CC.10DD.10EF
state: deleted
# Task Output
# -----------
#
# before:
# - name: Vlan1
# - name: Vlan10
# - name: Vlan14
# - name: Vlan1000
# - name: Ethernet1/1
# standby:
# bfd: true
# mac_refresh: 400
# version: 2
# standby_options:
# - authentication:
# key_string: SECUREKEY10
# group_name: VLAN10-GROUP
# group_no: 10
# ip:
# - secondary: true
# virtual_ip: 10.10.10.2
# mac_address: 00CC.10DD.10EE
# - name: Ethernet1/2
# standby:
# bfd: true
# mac_refresh: 400
# version: 2
# standby_options:
# - authentication:
# key_chain: SECUREKEY20
# group_name: VLAN20-GROUP
# group_no: 20
# ip:
# - secondary: true
# virtual_ip: 10.10.10.3
# mac_address: 00CC.10DD.10EF
# - name: Ethernet1/3
# - name: Ethernet1/4
# - name: Ethernet1/5
# - name: Ethernet1/6
# - name: Ethernet1/7
# commands:
# - interface Ethernet1/1
# - no hsrp bfd
# - no hsrp version 2
# - no hsrp mac-refresh 400
# - no hsrp 10
# - interface Ethernet1/2
# - no hsrp bfd
# - no hsrp version 2
# - no hsrp mac-refresh 400
# - no hsrp 20
# after:
# - name: Vlan1
# - name: Vlan10
# - name: Vlan14
# - name: Vlan1000
# - name: Ethernet1/1
# - name: Ethernet1/2
# - name: Ethernet1/3
# - name: Ethernet1/4
# - name: Ethernet1/5
# - name: Ethernet1/6
# After state:
# ------------
#
# switch# show running-config | section interface
# interface Vlan1
# interface Vlan10
# interface Vlan14
# bandwidth 99999
# interface Vlan1000
# interface Ethernet1/1
# no switchport
# interface Ethernet1/2
# no switchport
# interface Ethernet1/3
# interface Ethernet1/4
# interface Ethernet1/5
# interface Ethernet1/6
# interface Ethernet1/7
# Using rendered
- name: Use rendered state to convert task input to device specific commands
cisco.nxos.nxos_hsrp_interfaces:
config:
- name: Ethernet1/1
description: outbound-intf
mode: layer3
speed: 100
- name: Ethernet1/2
mode: layer2
enabled: true
duplex: full
state: rendered
# Task Output
# -----------
#
# rendered:
# - interface Vlan1
# - hsrp version 2
# - hsrp 10
# - timers msec 250 255
# - authentication md5 key-chain test
# - interface Vlan10
# - hsrp bfd
# - hsrp version 2
# - hsrp mac-refresh 400
# - hsrp 10
# - mac-address 00CC.10DD.10EE
# - name VLAN10-GROUP
# - preempt delay minimum 15 reload 120 sync 10
# - authentication md5 key-string SECUREKEY10
# - ip 10.10.10.2 secondary
# - interface Vlan14
# - hsrp bfd
# - hsrp version 2
# - hsrp delay 22 123
# - hsrp mac-refresh 300
# - hsrp 14
# - follow VLAN14-GROUP
# - mac-address 00AA.14BB.14CC
# - ip 192.168.14.1 secondary
# - ip 192.168.14.2 secondary
# - hsrp 15
# - mac-address 00BB.14CC.15DD
# - preempt delay minimum 10 reload 100 sync 5
# - priority 22 forwarding-threshold lower 12 upper 22
# - timers msec 456 33
# - authentication md5 key-string SECUREKEY14
# - interface Vlan1000
# - hsrp 10
# - mac-address 0423.4567.89AB
# - name testhsr
# - preempt delay minimum 33 reload 23 sync 22
# - priority 22 forwarding-threshold lower 12 upper 22
# - timers msec 456 33
# - authentication md5 key-string testmesecurte
# - ip 10.15.8.1 secondary
# Using parsed
# parsed.cfg
# ------------
#
# interface Vlan1
# hsrp version 2
# hsrp 10
# authentication md5 key-chain test
# timers msec 250 255
# interface Vlan10
# hsrp bfd
# hsrp version 2
# hsrp mac-refresh 400
# hsrp 10
# authentication md5 key-string SECUREKEY10
# name VLAN10-GROUP
# mac-address 00CC.10DD.10EE
# preempt delay minimum 15 reload 120 sync 10
# ip 10.10.10.2 secondary
# interface Vlan14
# bandwidth 99999
# hsrp bfd
# hsrp version 2
# hsrp delay minimum 22 reload 123
# hsrp mac-refresh 300
# hsrp 14
# follow VLAN14-GROUP
# mac-address 00AA.14BB.14CC
# ip 192.168.14.1 secondary
# ip 192.168.14.2 secondary
# hsrp 15
# authentication md5 key-string SECUREKEY14
# mac-address 00BB.14CC.15DD
# preempt delay minimum 10 reload 100 sync 5
# priority 22 forwarding-threshold lower 12 upper 22
# timers msec 456 33
# interface Vlan1000
# hsrp 10
# authentication md5 key-string testmesecurte
# name testhsr
# mac-address 0423.4567.89AB
# preempt delay minimum 33 reload 23 sync 22
# priority 22 forwarding-threshold lower 12 upper 22
# timers msec 456 33
# ip 10.15.8.1 secondary
- name: Use parsed state to convert externally supplied config to structured format
cisco.nxos.nxos_hsrp_interfaces:
running_config: "{{ lookup('file', 'parsed.cfg') }}"
state: parsed
# Task output
# -----------
#
# {"parsed": [
# {
# "name": "Vlan1",
# "standby": {
# "version": 2
# },
# "standby_options": [
# {
# "authentication": {
# "key_chain": "test"
# },
# "group_no": 10,
# "timer": {
# "hello_interval": 250,
# "hold_time": 255,
# "msec": true
# }
# }
# ]
# },
# {
# "name": "Vlan10",
# "standby": {
# "bfd": true,
# "mac_refresh": 400,
# "version": 2
# },
# "standby_options": [
# {
# "authentication": {
# "key_string": "SECUREKEY10"
# },
# "group_name": "VLAN10-GROUP",
# "group_no": 10,
# "ip": [
# {
# "secondary": true,
# "virtual_ip": "10.10.10.2"
# }
# ],
# "mac_address": "00CC.10DD.10EE",
# "preempt": {
# "minimum": 15,
# "reload": 120,
# "sync": 10
# }
# }
# ]
# },
# {
# "name": "Vlan14",
# "standby": {
# "bfd": true,
# "delay": {
# "minimum": 22,
# "reload": 123
# },
# "mac_refresh": 300,
# "version": 2
# },
# "standby_options": [
# {
# "follow": "VLAN14-GROUP",
# "group_no": 14,
# "ip": [
# {
# "secondary": true,
# "virtual_ip": "192.168.14.1"
# },
# {
# "secondary": true,
# "virtual_ip": "192.168.14.2"
# }
# ],
# "mac_address": "00AA.14BB.14CC"
# },
# {
# "authentication": {
# "key_string": "SECUREKEY14"
# },
# "group_no": 15,
# "mac_address": "00BB.14CC.15DD",
# "preempt": {
# "minimum": 10,
# "reload": 100,
# "sync": 5
# },
# "priority": {
# "level": 22,
# "lower": 12,
# "upper": 22
# },
# "timer": {
# "hello_interval": 456,
# "hold_time": 33,
# "msec": true
# }
# }
# ]
# },
# {
# "name": "Vlan1000",
# "standby_options": [
# {
# "authentication": {
# "key_string": "testmesecurte"
# },
# "group_name": "testhsr",
# "group_no": 10,
# "ip": [
# {
# "secondary": true,
# "virtual_ip": "10.15.8.1"
# }
# ],
# "mac_address": "0423.4567.89AB",
# "preempt": {
# "minimum": 33,
# "reload": 23,
# "sync": 22
# },
# "priority": {
# "level": 22,
# "lower": 12,
# "upper": 22
# },
# "timer": {
# "hello_interval": 456,
# "hold_time": 33,
# "msec": true
# }
# }
# ]}
Возвращаемые значения
Общие возвращаемые значения описаны здесь; ниже перечислены поля, уникальные для этого модуля:
Ключ | Описание |
|---|---|
after dictionary | Итоговая конфигурация после выполнения модуля. Возвращается: если конфигурация изменилась Пример: |
before dictionary | Конфигурация до выполнения модуля. Возвращается: если значение state равно Пример: |
commands list / elements=string | Набор команд, отправленных на удалённое устройство. Возвращается: если значение state равно Пример: |
gathered list / elements=string | Сведения о сетевом ресурсе, полученные с удалённого устройства в виде структурированных данных. Возвращается: если значение state равно Пример: |
parsed list / elements=string | Исходная конфигурация устройства, переданная в параметре running_config и разобранная в структурированные данные согласно спецификации аргументов модуля. Возвращается: если значение state равно Пример: |
rendered list / elements=string | Конфигурация из задачи, преобразованная в собственный формат устройства (без подключения к устройству). Возвращается: если значение state равно Пример: |
Ссылки на коллекцию
© 2012–2018 Michael DeHaan
© 2018–2025 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/projects/ansible/latest/collections/cisco/nxos/nxos_hsrp_interfaces_module.html