From d6fd35dfd56c983f0c37538664a7290b9f714b8a Mon Sep 17 00:00:00 2001 From: rdujardin Date: Fri, 22 Jul 2016 16:53:09 +0200 Subject: [PATCH] Fix bug in ipv6 reverse dns (bis) --- netbox/ipam/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/ipam/models.py b/netbox/ipam/models.py index 7ee53ad4a..e3959a9a0 100644 --- a/netbox/ipam/models.py +++ b/netbox/ipam/models.py @@ -381,7 +381,7 @@ class Prefix(CreatedUpdatedModel): ztype = pslash if pslash % 16 == 0 else pslash/16+16 for ip in ipaddresses: - ifull = str(ipaddress.IPv6Address(str(ip.address).split('/')[0]).exploded) + ifull = str(ipaddress.IPv6Address(unicode(str(ip.address).split('/')[0])).exploded) inibbles = ifull.split(':') idigits = ifull.replace(':','').reverse islash = int(str(ip.address).split('/')[1])