summaryrefslogtreecommitdiff
path: root/ctdb/tests/UNIT/eventscripts/91.lvs.ipreallocated.014.sh
blob: 19788d7bc8c0ea691225622a26d0f29e1500eef1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh

. "${TEST_SCRIPTS_DIR}/unit.sh"

define_test "nodes in config, this is master"

setup "10.1.1.201" "eth0" <<EOF
192.168.1.1	master
192.168.1.2
192.168.1.3
EOF

ok_null
simple_test

check_ipvsadm <<EOF
TCP  10.1.1.201:0 lc persistent 1999999
  -> 127.0.0.1:0                  Local   1      0          0         
  -> 192.168.1.2:0                Route   1      0          0         
  -> 192.168.1.3:0                Route   1      0          0         
UDP  10.1.1.201:0 lc persistent 1999999
  -> 127.0.0.1:0                  Local   1      0          0         
  -> 192.168.1.2:0                Route   1      0          0         
  -> 192.168.1.3:0                Route   1      0          0         
EOF

check_lvs_ip global