Correct missing netmask with by-id

This commit is contained in:
Joshua Boniface 2019-03-16 23:27:51 -04:00
parent 0bf5455d12
commit 2782120f94
1 changed files with 1 additions and 1 deletions

View File

@ -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