ctdb-tests: Conditionally use temporary config file for local daemons
[vlendec/samba-autobuild/.git] / ctdb / tests / eventscripts / 13.per_ip_routing.011.sh
1 #!/bin/sh
2
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
4
5 define_test "__auto_link_local__, takeip all on node"
6
7 setup_ctdb
8 setup_ctdb_policy_routing
9
10 # do link local fu instead of creating configuration
11 export CTDB_PER_IP_ROUTING_CONF="__auto_link_local__"
12
13 # add routes for all addresses
14 ctdb_get_my_public_addresses |
15 while read dev ip bits ; do
16     ok_null
17     simple_test_event "takeip" $dev $ip $bits
18 done
19
20 check_routes all