CVE-2016-0771: tests/dns: Remove dependencies on env variables
[Samba.git] / ctdb / tests / eventscripts / 13.per_ip_routing.005.sh
blob9495cc54ce7690d04100a3c8750928e3a9ceb281
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "1 IP configured, takeip"
7 setup_ctdb
8 setup_ctdb_policy_routing
10 # Configuration for 1 IP
11 create_policy_routing_config 1 default
13 # takeip should add routes for the given address
14 ctdb_get_1_public_address |
15 while read dev ip bits ; do
16 ok_null
17 simple_test_event "takeip" $dev $ip $bits
18 done
20 # Should have routes for 1 IP
21 check_routes 1 default