mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
6471541d6d
Add checking to "releaseip" and "updateip" to ensure that the given IP address is really on the given interface with the given netmask. If reality doesn't match the given arguments then believe reality. Use new function iptables_wrapper() instead of calling iptables() directly. Use new function flush_route_cache() instead of doing IPv4-specific /proc magic. Remove setting of otherwise unused variable "failed". Fix a test for which the error message has changed. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
15 lines
290 B
Bash
Executable File
15 lines
290 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. "${TEST_SCRIPTS_DIR}/unit.sh"
|
|
|
|
define_test "error - remove a non-existent ip"
|
|
|
|
setup_ctdb
|
|
|
|
public_address=$(ctdb_get_1_public_address)
|
|
ip="${public_address% *}" ; ip="${ip#* }"
|
|
|
|
required_result 1 "ERROR: Unable to determine interface for IP ${ip}"
|
|
|
|
simple_test $public_address
|