heh erm. whoop

This commit is contained in:
brent s. 2020-05-18 08:15:40 -04:00
parent 01acb18f5f
commit e589e00100
Signed by: bts
GPG Key ID: 8C004C2F93481F6B

View File

@ -137,7 +137,7 @@ class Assignment(object):
# We need to do some funky things here. Netaddr doesn't have an .exploded().
_base = ipaddress.IPv6Address(str(i.ip))
_base = ipaddress.IPv6Address(re.sub(r'(:0000){4}$', r':dead:beef:cafe::', str(_base.exploded)))
_base = re.sub(r':0$', r'', _base)
_base = re.sub(r':0$', r'', str(_base))
logger.debug('Base prefix for {0}: {1}'.format(str(i), _base))
start = '{0}:0'.format(_base)
stop = '{0}:ffff'.format(_base)