ldb: Release ldb 1.3.0
[Samba.git] / ctdb / tests / eventscripts / 11.natgw.023.sh
blobcf71c084797ee69fab80f13ec9de6ece7d49c7b0
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "master node, static routes, custom gateway"
7 setup_ctdb
9 setup_ctdb_natgw <<EOF
10 192.168.1.21 master
11 192.168.1.22
12 192.168.1.23
13 192.168.1.24
14 EOF
16 export CTDB_NATGW_STATIC_ROUTES="10.1.1.0/24 10.1.2.0/24@10.1.1.253"
18 ok_null
19 simple_test_event "ipreallocated"
21 ok_natgw_master_static_routes
22 simple_test_command ip route show
24 ok_natgw_master_ip_addr_show
25 simple_test_command ip addr show "$CTDB_NATGW_PUBLIC_IFACE"