X-Git-Url: https://code.grnet.gr/git/ganeti-local/blobdiff_plain/981732fbc3f81a108bc4e083b5dfd592f5287149..2492231f7381ce33f2164322f799c84b2d7cceef:/lib/netutils.py diff --git a/lib/netutils.py b/lib/netutils.py index a763fad..fc864eb 100644 --- a/lib/netutils.py +++ b/lib/netutils.py @@ -71,7 +71,7 @@ def GetHostname(name=None, family=None): @param family: AF_INET | AF_INET6 | None @rtype: L{Hostname} @return: Hostname object - @raise: errors.OpPrereqError + @raise errors.OpPrereqError: in case of errors in resolving """ try: @@ -187,7 +187,7 @@ def TcpPing(target, port, timeout=10, live_port_needed=False, source=None): to it. @type target: str - @param target: the IP or hostname to ping + @param target: the IP to ping @type port: int @param port: the port to connect to @type timeout: int @@ -425,7 +425,7 @@ class IP4Address(IPAddress): """Get integer value of IPv4 address. @type address: str - @param: IPv6 address + @param address: IPv6 address @rtype: int @return: integer value of given IP address @@ -465,7 +465,7 @@ class IP6Address(IPAddress): """Get integer value of IPv6 address. @type address: str - @param: IPv6 address + @param address: IPv6 address @rtype: int @return: integer value of given IP address