kayobe/dev/overcloud-test-bounce-interface.sh
Will Szumski 81961a5f35 Bump version of MichaelRigart.interfaces
The newer version sets the connection.autoconnect-slaves=1 config
option[1]. This will ensure that slave interfaces will also reconnect
after bouncing the parent.

[1] https://github.com/michaelrigart/ansible-role-interfaces/releases/tag/v1.15.1

Closes-Bug: #2072340
Change-Id: I2d7a8f1368d4f0e02d199029c15c453a56582b41
(cherry picked from commit 447635ac5448e0d5d6c6f34a7e5a44f298e266aa)
2025-01-14 16:39:50 +00:00

22 lines
370 B
Bash
Executable File

#!/bin/bash
set -eu
set -o pipefail
# Bounces a given interface on hosts matching the supplied limit.
# Positional arguments:
# arg0: Ansible limit
# arg1: Interface to bounce
PARENT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "${PARENT}/functions"
function main {
config_init
overcloud_test_bounce_interface controllers "${@}"
}
main "${@:1}"