smbd: Simplify validate_lock_entries
[Samba.git] / ctdb / tests / eventscripts / 13.per_ip_routing.006.sh
blobb93b6cdea1e422c9bd3ee0c4fa5029c900eea60c
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "1 IP configured, takeip, releaseip"
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 # takeip adds routes
16 ok_null
17 simple_test_event "takeip" $dev $ip $bits
19 # releaseip removes routes
20 ok_null
21 simple_test_event "releaseip" $dev $ip $bits
22 done
24 # should have no routes
25 check_routes 0