Revision 95a39a77
b/lib/backend.py | ||
---|---|---|
310 | 310 |
@param family: the IP family |
311 | 311 |
|
312 | 312 |
""" |
313 |
# GetMasterInfo will raise an exception if not able to return data |
|
314 |
master_netdev, master_ip, _, family, master_netmask = GetMasterInfo() |
|
315 |
|
|
316 | 313 |
err_msg = None |
317 | 314 |
if netutils.TcpPing(master_ip, constants.DEFAULT_NODED_PORT): |
318 | 315 |
if netutils.IPAddress.Own(master_ip): |
Also available in: Unified diff