Skip to content

Commit 13fcd65

Browse files
author
Ronald van Zantvoort
committed
Virtual Router fixes cleanup
1 parent b216821 commit 13fcd65

File tree

4 files changed

+2
-24
lines changed

4 files changed

+2
-24
lines changed

systemvm/patches/debian/config/opt/cloud/bin/cs/CsAddress.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -501,10 +501,6 @@ def fw_vpcrouter(self):
501501
self.fw.append(["filter", "", "-P FORWARD DROP"])
502502

503503
def post_config_change(self, method):
504-
logging.warn('PCONF: {}'.format(method))
505-
logging.warn('ME: {}'.format(self))
506-
logging.warn('GT: {}'.format(self.get_type()))
507-
508504
route = CsRoute()
509505
if method == "add":
510506
route.add_table(self.dev)

systemvm/patches/debian/config/opt/cloud/bin/cs/CsConfig.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -81,24 +81,12 @@ def use_extdns(self):
8181
def get_dns(self):
8282
conf = self.cmdline().idata()
8383
dns = []
84-
<<<<<<< e09480728f4ed77d0bd0bdc6a6c0966d90f7ee26
85-
if not self.cl.get_use_ext_dns():
86-
if not self.is_vpc() and self.cl.is_redundant():
87-
dns.append(self.cl.get_guest_gw())
88-
else:
89-
dns.append(self.address().get_guest_ip())
90-
names = ["dns1", "dns2"]
91-
for name in names:
92-
if name in self.cmdline().idata():
93-
dns.append(self.cmdline().idata()[name])
94-
=======
9584
if not self.use_extdns():
9685
dns.append(self.address().get_guest_ip())
9786

9887
for name in ('dns1', 'dns2'):
9988
if name in conf:
10089
dns.append(conf[name])
101-
>>>>>>> Virtual Router fixes:
10290
return dns
10391

10492
def get_format(self):

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ def process(self):
5959

6060
def configure_server(self):
6161
# self.conf.addeq("dhcp-hostsfile=%s" % DHCP_HOSTS)
62-
logging.warning('DEVINFO: {}'.format(self.devinfo))
6362
idx = 0
6463
for i in self.devinfo:
6564
if not i['dnsmasq']:

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

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ def process(self):
134134
self.db.load()
135135
dbag = self.process_ipaliases(self.db.getDataBag())
136136
elif self.qFile.type == 'dhcpconfig':
137-
logging.warn('RECEIVED: {}'.format(self.db.getDataBag()))
138-
dbag = self.process_dhcpconfig(self.db.getDataBag())
137+
logging.error("I don't think I need %s anymore", self.qFile.type)
138+
return
139139
else:
140140
logging.error("Error I do not know what to do with file of type %s", self.qFile.type)
141141
return
@@ -239,7 +239,6 @@ def processVmData(self, dbag):
239239
return dbag
240240

241241
def process_ipaliases(self, dbag):
242-
logging.warn('DOUCHEBAGS: {}'.format(dbag))
243242
nic_dev = None
244243
# Should be a way to deal with this better
245244
for intf, data in dbag.items():
@@ -264,10 +263,6 @@ def process_ipaliases(self, dbag):
264263
dbag = cs_ip.merge(dbag, ip)
265264
return dbag
266265

267-
def process_dhcpconfig(self, dbag):
268-
logging.error('STUBBED!!!')
269-
return dbag
270-
271266
class QueueFile:
272267

273268
fileName = ''

0 commit comments

Comments
 (0)