Debian Codegraph @

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

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
4
5 define_test "follower node, static routes, custom gateway"
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 setup_script_options <<EOF
17 CTDB_NATGW_STATIC_ROUTES="10.1.1.0/24 10.1.2.0/[email protected]"
18 EOF
19
20 ok_null
21 simple_test_event "ipreallocated"
22
23 ok_natgw_follower_static_routes
24 simple_test_command ip route show
25
26 ok_natgw_follower_ip_addr_show
27 simple_test_command ip addr show "$CTDB_NATGW_PUBLIC_IFACE"