ctdb-scripts: add new 48.netbios script for starting nmbd
[vlendec/samba-autobuild/.git] / ctdb / tests / UNIT / eventscripts / 13.per_ip_routing.008.sh
1 #!/bin/sh
2
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
4
5 define_test "1 IP configured, takeip twice"
6
7 setup
8
9 # create config for 1 IP
10 create_policy_routing_config 1 default
11
12 ctdb_get_1_public_address |
13 while read dev ip bits ; do
14     ok_null
15     simple_test_event "takeip" $dev $ip $bits
16
17     # 2nd takeip event for the same IP should be a no-op
18     ok_null
19     simple_test_event "takeip" $dev $ip $bits
20 done
21
22 # should be routes for 1 IP
23 check_routes 1 default