blob: 8af31d7f618d2c1d894a2fb4d9f62ae3c6a22d41 (
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 leader"
setup "10.1.1.201" "eth0" <<EOF
192.168.1.1 leader
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
|