rhtyd closed pull request #2792: Fix issue when multiple cidrs with different 
sizes are assigned on a VR
URL: https://github.com/apache/cloudstack/pull/2792
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/systemvm/debian/opt/cloud/bin/cs/CsDhcp.py 
b/systemvm/debian/opt/cloud/bin/cs/CsDhcp.py
index 30fb38e016a..ecbc12f5a6f 100755
--- a/systemvm/debian/opt/cloud/bin/cs/CsDhcp.py
+++ b/systemvm/debian/opt/cloud/bin/cs/CsDhcp.py
@@ -107,7 +107,7 @@ def configure_server(self):
             if self.config.is_vpc():
                 netmask = gn.get_netmask()
             else:
-                netmask = self.config.address().get_guest_netmask()
+                netmask = str(i['network'].netmask)
             sline = "dhcp-option=tag:interface-%s-%s,1," % (device, idx)
             line = "dhcp-option=tag:interface-%s-%s,1,%s" % (device, idx, 
netmask)
             self.conf.search(sline, line)


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to