From 2782120f9411888850e87a7d8b65b0eada6eac56 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Sat, 16 Mar 2019 23:27:51 -0400 Subject: [PATCH] Correct missing netmask with by-id --- node-daemon/pvcd/Daemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node-daemon/pvcd/Daemon.py b/node-daemon/pvcd/Daemon.py index 02829f24..fa3bc93d 100644 --- a/node-daemon/pvcd/Daemon.py +++ b/node-daemon/pvcd/Daemon.py @@ -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