mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-27 10:58:37 -06:00
Fix bug in ipv6 reverse dns (bis)
This commit is contained in:
parent
0a39945afb
commit
d6fd35dfd5
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user