Commit 8493ed67 by Bach Dániel

firewall: unused code removed

parent 2d520ecb
......@@ -214,9 +214,6 @@ class Host(models.Model):
'private': rule.nat_dport})
return retval
def del_rules(self):
self.rules.filter(owner=self.owner).delete()
def get_fqdn(self):
return self.hostname + u'.' + unicode(self.vlan.domain)
......
......@@ -78,7 +78,6 @@ def firewall_api(request):
host = models.Host.objects.get(hostname=data["hostname"],
owner=owner)
host.del_rules()
host.delete()
else:
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