heh erm. whoop
This commit is contained in:
parent
01acb18f5f
commit
e589e00100
@ -137,7 +137,7 @@ class Assignment(object):
|
|||||||
# We need to do some funky things here. Netaddr doesn't have an .exploded().
|
# We need to do some funky things here. Netaddr doesn't have an .exploded().
|
||||||
_base = ipaddress.IPv6Address(str(i.ip))
|
_base = ipaddress.IPv6Address(str(i.ip))
|
||||||
_base = ipaddress.IPv6Address(re.sub(r'(:0000){4}$', r':dead:beef:cafe::', str(_base.exploded)))
|
_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))
|
logger.debug('Base prefix for {0}: {1}'.format(str(i), _base))
|
||||||
start = '{0}:0'.format(_base)
|
start = '{0}:0'.format(_base)
|
||||||
stop = '{0}:ffff'.format(_base)
|
stop = '{0}:ffff'.format(_base)
|
||||||
|
Loading…
Reference in New Issue
Block a user