mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
ctdb-tests: Use setup_script_options() in 10.interface tests
Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
parent
45de2b1d9b
commit
87cd76e0c6
@ -8,7 +8,9 @@ setup
|
||||
|
||||
iface=$(ctdb_get_1_interface)
|
||||
|
||||
setup_script_options <<EOF
|
||||
CTDB_PARTIALLY_ONLINE_INTERFACES=yes
|
||||
EOF
|
||||
|
||||
ethtool_interfaces_down "$iface"
|
||||
|
||||
|
@ -8,7 +8,9 @@ setup
|
||||
|
||||
ifaces=$(ctdb_get_interfaces)
|
||||
|
||||
setup_script_options <<EOF
|
||||
CTDB_PARTIALLY_ONLINE_INTERFACES=yes
|
||||
EOF
|
||||
|
||||
ethtool_interfaces_down $ifaces
|
||||
|
||||
|
@ -10,7 +10,9 @@ iface=$(ctdb_get_1_interface)
|
||||
|
||||
setup_bond $iface "None"
|
||||
|
||||
setup_script_options <<EOF
|
||||
CTDB_PARTIALLY_ONLINE_INTERFACES=yes
|
||||
EOF
|
||||
|
||||
ethtool_interfaces_down "$iface"
|
||||
|
||||
|
@ -12,7 +12,9 @@ for i in $ifaces ; do
|
||||
setup_bond $i "None"
|
||||
done
|
||||
|
||||
setup_script_options <<EOF
|
||||
CTDB_PARTIALLY_ONLINE_INTERFACES=yes
|
||||
EOF
|
||||
|
||||
ethtool_interfaces_down $ifaces
|
||||
|
||||
|
@ -6,7 +6,9 @@ define_test "Missing interface, CTDB_PARTIALLY_ONLINE_INTERFACES=yes, warn"
|
||||
|
||||
setup
|
||||
|
||||
setup_script_options <<EOF
|
||||
CTDB_PARTIALLY_ONLINE_INTERFACES=yes
|
||||
EOF
|
||||
|
||||
iface=$(ctdb_get_1_interface)
|
||||
ip link delete "$iface"
|
||||
|
@ -1,8 +1,6 @@
|
||||
setup ()
|
||||
{
|
||||
setup_public_addresses
|
||||
|
||||
export CTDB_PARTIALLY_ONLINE_INTERFACES=""
|
||||
}
|
||||
|
||||
_tcp_connections ()
|
||||
|
Loading…
x
Reference in New Issue
Block a user