Skip to content

Commit 08b1267

Browse files
committed
remove completely if not used
1 parent dbcd26c commit 08b1267

File tree

2 files changed

+1
-26
lines changed

2 files changed

+1
-26
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import time
2222
import CsHelper
2323
from CsDatabag import CsDataBag
24-
from CsApp import CsApache, CsDnsmasq, CsPasswdSvc
24+
from CsApp import CsApache, CsPasswdSvc
2525
from CsRoute import CsRoute
2626
from CsRule import CsRule
2727

@@ -566,10 +566,6 @@ def post_config_change(self, method):
566566
logging.error(
567567
"Not able to setup source-nat for a regular router yet")
568568

569-
if self.config.has_dns() or self.config.is_dhcp():
570-
dns = CsDnsmasq(self)
571-
dns.add_firewall_rules()
572-
573569
if self.config.has_metadata():
574570
app = CsApache(self)
575571
app.setup()

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

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -81,24 +81,3 @@ def stop(self):
8181
def restart(self):
8282
CsHelper.service("cloud-password-server@%s" % self.ip, "restart")
8383

84-
85-
class CsDnsmasq(CsApp):
86-
""" Set up dnsmasq """
87-
88-
def add_firewall_rules(self):
89-
""" Add the necessary firewall rules
90-
"""
91-
# self.fw.append(["", "front",
92-
# "-A INPUT -i %s -p udp -m udp --dport 67 -j ACCEPT" % self.dev
93-
# ])
94-
#
95-
# if self.config.has_dns():
96-
# self.fw.append([
97-
# "", "front",
98-
# "-A INPUT -i %s -d %s/32 -p udp -m udp --dport 53 -j ACCEPT" % (self.dev, self.ip)
99-
# ])
100-
#
101-
# self.fw.append([
102-
# "", "front",
103-
# "-A INPUT -i %s -d %s/32 -p tcp -m tcp --dport 53 -j ACCEPT" % (self.dev, self.ip)
104-
# ])

0 commit comments

Comments
 (0)