Correct missing netmask with by-id
This commit is contained in:
parent
0bf5455d12
commit
2782120f94
|
@ -208,7 +208,7 @@ def readConfig(pvcd_config_file, myhostname):
|
|||
# The NodeID starts at 1, but indexes start at 0
|
||||
address_id = int(mynodeid) - 1
|
||||
# Grab the nth address from the network
|
||||
config[address_key] = list(network.hosts())[address_id]
|
||||
config[address_key] = '{}/{}'.format(list(network.hosts())[address_id], network.prefixlen)
|
||||
|
||||
# Verify that the floating IP is valid
|
||||
|
||||
|
|
Loading…
Reference in New Issue