Trees | Indices | Help |
|
---|
|
Ganeti network utility module.
This module holds functions that can be used in both daemons (all) and the command line scripts.
|
|||
HostInfo Class implementing resolver and hostname functionality |
|
|||
tuple; (number, number, number) |
|
||
|
|||
boolean |
|
||
boolean |
|
||
boolean |
|
||
boolean |
|
||
int |
|
||
|
|||
bool |
|
||
int |
|
|
|||
_STRUCT_UCRED = "iII"
|
|||
_STRUCT_UCRED_SIZE = struct.calcsize(_STRUCT_UCRED)
|
Imports: errno, re, socket, struct, IN, constants, errors
|
Returns the credentials of the foreign process connected to a socket.
|
Generic internal version of ip validation.
|
Verifies an IPv4 address. This function checks if the given address is a valid IPv4 address.
|
Verifies an IPv6 address. This function checks if the given address is a valid IPv6 address.
|
Verifies an IP address. This function checks if the given IP address (both IPv4 and IPv6) is valid.
|
Get the address family of the given address.
|
Simple ping implementation using TCP connect(2). Check if the given IP is reachable by doing attempting a TCP connect to it.
|
Check if the current host has the the given IP address. This is done by trying to bind the given address. We return True if we succeed or false if a socket.error is raised.
|
Get the daemon port for this cluster. Note that this routine does not read a ganeti-specific file, but
instead uses
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Dec 9 15:55:22 2010 | http://epydoc.sourceforge.net |