Debian Codegraph @

ctdb/tests/UNIT/eventscripts/11.natgw.012.sh

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
4
5 define_test "follower node, basic configuration"
6
7 setup
8
9 setup_ctdb_natgw <<EOF
10 192.168.1.21
11 192.168.1.22 leader
12 192.168.1.23
13 192.168.1.24
14 EOF
15
16 ok_null
17 simple_test_event "ipreallocated"
18
19 ok "default via ${FAKE_CTDB_NATGW_LEADER} dev ethXXX metric 10 "
20 simple_test_command ip route show
21
22 ok_natgw_follower_ip_addr_show
23 simple_test_command ip addr show "$CTDB_NATGW_PUBLIC_IFACE"