Commit 8493ed67 by Bach Dániel

firewall: unused code removed

parent 2d520ecb
...@@ -214,9 +214,6 @@ class Host(models.Model): ...@@ -214,9 +214,6 @@ class Host(models.Model):
'private': rule.nat_dport}) 'private': rule.nat_dport})
return retval return retval
def del_rules(self):
self.rules.filter(owner=self.owner).delete()
def get_fqdn(self): def get_fqdn(self):
return self.hostname + u'.' + unicode(self.vlan.domain) return self.hostname + u'.' + unicode(self.vlan.domain)
......
...@@ -78,7 +78,6 @@ def firewall_api(request): ...@@ -78,7 +78,6 @@ def firewall_api(request):
host = models.Host.objects.get(hostname=data["hostname"], host = models.Host.objects.get(hostname=data["hostname"],
owner=owner) owner=owner)
host.del_rules()
host.delete() host.delete()
else: else:
raise Exception(_("Unknown command.")) raise Exception(_("Unknown command."))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment