even moar logging
This commit is contained in:
parent
754fa3eb25
commit
1d27ee0556
@ -89,6 +89,7 @@ class Assignment(object):
|
||||
|
||||
def parse_alloc(self):
|
||||
self.alloc_block = self.alloc.ip.alloc_block
|
||||
# NOT AN IP6 OBJECT!
|
||||
self.iface_blocks = self.alloc_block.extract_subnet(self.prefix, count = 1)
|
||||
for i in self.iface_blocks:
|
||||
self.iface_addrs.append(IP6(str(next(i.iter_hosts())), 128))
|
||||
|
@ -151,6 +151,7 @@ class TunnelBroker(object):
|
||||
address = a.str,
|
||||
mask = a.prefix,
|
||||
family = socket.AF_INET6)
|
||||
logger.debug('Added {0} with prefix {1} to {2}.'.format(a.str, a.prefix, assignment.iface))
|
||||
except Exception as e:
|
||||
logger.error(('Could not add address {0} on link {1}: '
|
||||
'{2}').format(a.str, assignment.iface_idx, e))
|
||||
@ -164,6 +165,7 @@ class TunnelBroker(object):
|
||||
address = b.str,
|
||||
mask = b.prefixlen,
|
||||
family = socket.AF_INET6)
|
||||
logger.debug('Added {0} with prefix {1} to {2}.'.format(b.str, b.prefixlen, assignment.iface))
|
||||
except Exception as e:
|
||||
logger.error(('Could not add address block {0} on link {1}: '
|
||||
'{2}').format(b.str, assignment.iface_idx, e))
|
||||
|
Loading…
Reference in New Issue
Block a user