1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/ctdb/tests/eventscripts/91.lvs.ipreallocated.014.sh
Martin Schwenke 8ee51d2f2d ctdb-tests: 91.lvs event script setup modularisation
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2018-03-28 02:57:19 +02:00

28 lines
743 B
Bash
Executable File

#!/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