Skip to content

Commit 33a6ea0

Browse files
Rene Diepstratenyadvr
authored andcommitted
router: Use network based netmask for dnsmasq (#2792)
Without this patch, the VR uses the netmask of the primary network for all assigned cidrs. This patch correctly applies the corresponding netmask.
1 parent 4f49bf6 commit 33a6ea0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

systemvm/debian/opt/cloud/bin/cs/CsDhcp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def configure_server(self):
107107
if self.config.is_vpc():
108108
netmask = gn.get_netmask()
109109
else:
110-
netmask = self.config.address().get_guest_netmask()
110+
netmask = str(i['network'].netmask)
111111
sline = "dhcp-option=tag:interface-%s-%s,1," % (device, idx)
112112
line = "dhcp-option=tag:interface-%s-%s,1,%s" % (device, idx, netmask)
113113
self.conf.search(sline, line)

0 commit comments

Comments
 (0)