Revision 714ff97c lib/backend.py
b/lib/backend.py | ||
---|---|---|
265 | 265 |
err_msg = "Someone else has the master ip, not activating" |
266 | 266 |
logging.error(err_msg) |
267 | 267 |
else: |
268 |
ipcls = netutils.IP4Address |
|
269 |
if family == netutils.IP6Address.family: |
|
270 |
ipcls = netutils.IP6Address |
|
268 |
ipcls = netutils.IPAddress.GetClassFromIpFamily(family) |
|
271 | 269 |
|
272 | 270 |
result = utils.RunCmd([constants.IP_COMMAND_PATH, "address", "add", |
273 | 271 |
"%s/%s" % (master_ip, master_netmask), |
Also available in: Unified diff