1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
samba-mirror/ctdb/tests/eventscripts/10.interface.monitor.015.sh
Martin Schwenke df39a671db tests/eventscripts - Restructure according to new convention
Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit eb13507713ba6732271b7c3024bfddbda6da5ffc)
2012-04-16 16:24:12 +10:00

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