Revision 17f7fd27
b/lib/netutils.py | ||
---|---|---|
71 | 71 |
@param family: AF_INET | AF_INET6 | None |
72 | 72 |
@rtype: L{Hostname} |
73 | 73 |
@return: Hostname object |
74 |
@raise: errors.OpPrereqError
|
|
74 |
@raise errors.OpPrereqError: in case of errors in resolving
|
|
75 | 75 |
|
76 | 76 |
""" |
77 | 77 |
try: |
... | ... | |
425 | 425 |
"""Get integer value of IPv4 address. |
426 | 426 |
|
427 | 427 |
@type address: str |
428 |
@param: IPv6 address |
|
428 |
@param address: IPv6 address
|
|
429 | 429 |
@rtype: int |
430 | 430 |
@return: integer value of given IP address |
431 | 431 |
|
... | ... | |
465 | 465 |
"""Get integer value of IPv6 address. |
466 | 466 |
|
467 | 467 |
@type address: str |
468 |
@param: IPv6 address |
|
468 |
@param address: IPv6 address
|
|
469 | 469 |
@rtype: int |
470 | 470 |
@return: integer value of given IP address |
471 | 471 |
|
b/lib/rpc.py | ||
---|---|---|
266 | 266 |
@param node_list: List of node names |
267 | 267 |
@type ssc: class |
268 | 268 |
@param ssc: SimpleStore class that is used to obtain node->ip mappings |
269 |
@type lookup_fn: callable |
|
270 |
@param lookup_fn: function use to do NS lookup |
|
269 |
@type nslookup_fn: callable
|
|
270 |
@param nslookup_fn: function use to do NS lookup
|
|
271 | 271 |
@rtype: list of addresses and/or None's |
272 | 272 |
@returns: List of corresponding addresses, if found |
273 | 273 |
|
Also available in: Unified diff