Commit 2f79b226 by Dudás Ádám

firewall: sorry, my bad

parent 5a892e40
...@@ -165,8 +165,10 @@ class Host(models.Model): ...@@ -165,8 +165,10 @@ class Host(models.Model):
self.full_clean() self.full_clean()
super(Host, self).save(*args, **kwargs) super(Host, self).save(*args, **kwargs)
if id is None: if id is None:
t = 'A' if self.ipv6 else 'AAAA' Record(domain=self.vlan.domain, host=self, type='A',
Record(domain=self.vlan.domain, host=self, type=t, owner=self.owner).save()
if self.ipv6:
Record(domain=self.vlan.domain, host=self, type='AAAA',
owner=self.owner).save() owner=self.owner).save()
def enable_net(self): def enable_net(self):
......
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