setup () { _ip="$1" _iface="$2" export FAKE_LVS_STATE_DIR="${FAKE_NETWORK_STATE}/lvs" mkdir -p "$FAKE_LVS_STATE_DIR" lvs_header=$(ipvsadm -l -n) [ -n "$_ip" ] || return 0 [ -n "$_iface" ] || return 0 setup_script_options <"$CTDB_LVS_NODES" } check_ipvsadm () { if [ "$1" = "NULL" ] ; then required_result 0 < mtu 65536 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 EOF else required_result 0 < mtu 65536 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet ${CTDB_LVS_PUBLIC_IP}/32 scope ${_scope} lo valid_lft forever preferred_lft forever EOF fi simple_test_command ip addr show dev lo }