From 1d27ee0556d9501e29ccf6d467d8700f89aee76d Mon Sep 17 00:00:00 2001 From: brent s Date: Fri, 15 May 2020 03:14:41 -0400 Subject: [PATCH] even moar logging --- utils/he_ipv6/tunnel.py | 1 + utils/he_ipv6/tunnelbroker.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/utils/he_ipv6/tunnel.py b/utils/he_ipv6/tunnel.py index 2786ab6..6a9d8c1 100644 --- a/utils/he_ipv6/tunnel.py +++ b/utils/he_ipv6/tunnel.py @@ -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)) diff --git a/utils/he_ipv6/tunnelbroker.py b/utils/he_ipv6/tunnelbroker.py index f28cf97..2677aa6 100644 --- a/utils/he_ipv6/tunnelbroker.py +++ b/utils/he_ipv6/tunnelbroker.py @@ -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))