mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
df39a671db
Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit eb13507713ba6732271b7c3024bfddbda6da5ffc)
23 lines
520 B
Bash
Executable File
23 lines
520 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. "${TEST_SCRIPTS_DIR}/unit.sh"
|
|
|
|
define_test "spurious addresses on interface, delete them"
|
|
|
|
setup_ctdb
|
|
|
|
iface=$(ctdb_get_1_interface)
|
|
|
|
ip addr add 192.168.253.253/24 dev $iface
|
|
ip addr add 192.168.254.254/24 dev $iface
|
|
|
|
export CTDB_DELETE_UNEXPECTED_IPS="yes"
|
|
|
|
ok <<EOF
|
|
WARNING: Removing unmanaged IP address 192.168.253.253/24 from interface dev123
|
|
Re-adding secondary address 192.168.254.254/24 to dev dev123
|
|
WARNING: Removing unmanaged IP address 192.168.254.254/24 from interface dev123
|
|
EOF
|
|
|
|
simple_test
|