Skip to content

Commit ebf9b49

Browse files
niteshsardarohityadavcloud
authored andcommitted
CLOUDSTACK-9017 : VPC VR DHCP broken for multihomed guest VMs
1 parent a875355 commit ebf9b49

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

systemvm/patches/debian/config/etc/vpcdnsmasq.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,3 +460,5 @@ log-facility=/var/log/dnsmasq.log
460460
# Include a another lot of configuration options.
461461
#conf-file=/etc/dnsmasq.more.conf
462462
conf-dir=/etc/dnsmasq.d
463+
464+
dhcp-optsfile=/etc/dhcpopts.txt

systemvm/patches/debian/config/opt/cloud/bin/cs_dhcp.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
def merge(dbag, data):
2323

24-
search(dbag, data['host_name'])
2524
# A duplicate ip address wil clobber the old value
2625
# This seems desirable ....
2726
if "add" in data and data['add'] is False and \
@@ -33,17 +32,3 @@ def merge(dbag, data):
3332
dbag[data['ipv4_adress']] = data
3433
return dbag
3534

36-
37-
def search(dbag, name):
38-
"""
39-
Dirty hack because CS does not deprovision hosts
40-
"""
41-
hosts = []
42-
for o in dbag:
43-
if o == 'id':
44-
continue
45-
print "%s %s" % (dbag[o]['host_name'], name)
46-
if dbag[o]['host_name'] == name:
47-
hosts.append(o)
48-
for o in hosts:
49-
del(dbag[o])

0 commit comments

Comments
 (0)