Commit 9fee2104 by Őry Máté

firewall: move default_host_groups to settings

parent b11894c1
......@@ -471,7 +471,8 @@ class Host(models.Model):
type='AAAA').save()
def enable_net(self):
self.groups.add(Group.objects.get(name="netezhet"))
for i in settings.get('default_host_groups', []):
self.groups.add(Group.objects.get(name=i))
def _get_ports_used(self, proto):
"""
......
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