ctdb-tests: 11.natgw event script setup modularisation
[metze/samba/wip.git] / ctdb / tests / eventscripts / 11.natgw.013.sh
1 #!/bin/sh
2
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
4
5 define_test "master node, no gateway"
6
7 setup
8
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
15
16 CTDB_NATGW_DEFAULT_GATEWAY=""
17
18 ok_null
19 simple_test_event "ipreallocated"
20
21 ok_null
22 simple_test_command ip route show
23
24 ok_natgw_master_ip_addr_show
25 simple_test_command ip addr show "$CTDB_NATGW_PUBLIC_IFACE"