3 .
"${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test
"static routes, custom gateway, multiple transitions"
9 export CTDB_NATGW_STATIC_ROUTES
="10.1.1.0/24 10.1.2.0/24@10.1.1.253"
11 echo "*** Master node..."
13 setup_ctdb_natgw
<<EOF
21 simple_test_event
"ipreallocated"
23 ok_natgw_master_static_routes
24 simple_test_command ip route show
26 ok_natgw_master_ip_addr_show
27 simple_test_command ip addr show
"$CTDB_NATGW_PUBLIC_IFACE"
29 echo "*** Slave node..."
31 setup_ctdb_natgw
<<EOF
39 simple_test_event
"ipreallocated"
41 ok_natgw_slave_static_routes
42 simple_test_command ip route show
44 ok_natgw_slave_ip_addr_show
45 simple_test_command ip addr show
"$CTDB_NATGW_PUBLIC_IFACE"
47 echo "*** Master node again..."
49 setup_ctdb_natgw
<<EOF
57 simple_test_event
"ipreallocated"
59 ok_natgw_master_static_routes
60 simple_test_command ip route show
62 ok_natgw_master_ip_addr_show
63 simple_test_command ip addr show
"$CTDB_NATGW_PUBLIC_IFACE"