summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/eventscripts/00.ctdb.init.022.sh
blob: 6e594280a3a7aedab28aebbbaf073968da832715 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

. "${TEST_SCRIPTS_DIR}/unit.sh"

define_test "Check public IP dropping, 1 assigned"

setup_ctdb

ctdb_get_1_public_address |
while read dev ip bits ; do
    ip addr add "${ip}/${bits}" dev "$dev"

    ok <<EOF
Removing public address ${ip}/${bits} from device ${dev}
EOF

    simple_test
done