Nothing checks it anymore.
This means that the NAT gateway capability in the daemon is now
unused.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
return 0
}
-natgw_set_capability ()
-{
- # Set NATGW capability depending on configuration
- if ctdb_natgw_slave_only ; then
- ctdb setnatgwstate off
- else
- ctdb setnatgwstate on
- fi
-}
-
_natgw_clear ()
{
_ip="${CTDB_NATGW_PUBLIC_IP%/*}"
}
-case "$1" in
+case "$1" in
setup)
natgw_check_config
- natgw_set_capability
;;
startup)
ctdb_get_pnn
- natgw_set_capability
natgw_ensure_master
natgw_config_has_changed || natgw_master_has_changed || exit 0
192.168.1.24
EOF
-ctdb setnatgwstate on
-
ok_null
simple_test_event "monitor"
192.168.1.24
EOF
-ctdb setnatgwstate on
-
ethtool_interfaces_down "$CTDB_NATGW_PUBLIC_IFACE"
required_result 1 <<EOF