Modify utils.TcpPing to make source address optional
authorIustin Pop <iustin@google.com>
Mon, 10 Mar 2008 16:29:10 +0000 (16:29 +0000)
committerIustin Pop <iustin@google.com>
Mon, 10 Mar 2008 16:29:10 +0000 (16:29 +0000)
commitfc490dbe206e4c89b75d0f3e96ff4418242bac34
tree351680fd6af9d40da133e50029b63ab7c7c24787
parentebb58904297e59dab44d637b8fa02b5ef7e47168
Modify utils.TcpPing to make source address optional

This patch modifies TcpPing and its callers to make the source address
selection optional. Usually, the kernel will know better what
source address to use, just in some cases we want to enforce a given
source address so it makes sense to make this optional.

Reviewed-by: ultrotter
daemons/ganeti-master
daemons/ganeti-noded
lib/cmdlib.py
lib/utils.py
test/ganeti.utils_unittest.py