smbd: Simplify validate_lock_entries
[Samba.git] / ctdb / tests / eventscripts / 13.per_ip_routing.013.sh
blob567622edd93aae911c4fcc91293f6abf677b5792
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "1 IP configured, releaseip of unassigned"
7 setup_ctdb
8 setup_ctdb_policy_routing
10 create_policy_routing_config 1 default
12 ctdb_get_1_public_address |
13 while read dev ip bits ; do
14 ok <<EOF
15 WARNING: Failed to delete policy routing rule
16 Command "ip rule del from $ip pref $CTDB_PER_IP_ROUTING_RULE_PREF table ctdb.$ip" failed:
17 RTNETLINK answers: No such file or directory
18 EOF
20 simple_test_event "releaseip" $dev $ip $bits
21 done
23 # there should be no routes
24 check_routes 0