remove origin in ipv6 subnet zones
This commit is contained in:
1 parent
f4e54820c6
commit
90230ffd39
1 file changed
+2
-2
+2
-2
@@ -239,8 +239,8 @@ class Ip6Subnet(models.Model):
|
||||
content += ";\n"
|
||||
|
||||
# find the network
|
||||
network = ipaddr.IPv6Address("%s::" % self.network)
|
||||
content += "$ORIGIN " + ".".join(network.exploded.replace(":","")[:16])[::-1] + ".ip6.arpa.\n"
|
||||
# network = ipaddr.IPv6Address("%s::" % self.network)
|
||||
# content += "$ORIGIN " + ".".join(network.exploded.replace(":","")[:16])[::-1] + ".ip6.arpa.\n"
|
||||
|
||||
for addr in self.ip6address_set.all():
|
||||
# if addr.interface_set.count() == 0: continue
|
||||
|
||||
Reference in new issue
Block a user