ldb: Release ldb 1.3.0
[Samba.git] / ctdb / tests / eventscripts / 13.per_ip_routing.008.sh
blob9bb0c195fddd5cccd06e09507ec8d6bac31513a5
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "1 IP configured, takeip twice"
7 setup_ctdb
8 setup_ctdb_policy_routing
10 # create config for 1 IP
11 create_policy_routing_config 1 default
13 ctdb_get_1_public_address |
14 while read dev ip bits ; do
15 ok_null
16 simple_test_event "takeip" $dev $ip $bits
18 # 2nd takeip event for the same IP should be a no-op
19 ok_null
20 simple_test_event "takeip" $dev $ip $bits
21 done
23 # should be routes for 1 IP
24 check_routes 1 default