From b5b47e92fdd63686a4f8d29304f70e501c97f8d3 Mon Sep 17 00:00:00 2001 From: brent s Date: Fri, 15 May 2020 03:23:53 -0400 Subject: [PATCH] forgot these don't have .str attrs --- utils/he_ipv6/tunnelbroker.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/utils/he_ipv6/tunnelbroker.py b/utils/he_ipv6/tunnelbroker.py index 762f8e6..9d8da6d 100644 --- a/utils/he_ipv6/tunnelbroker.py +++ b/utils/he_ipv6/tunnelbroker.py @@ -173,7 +173,7 @@ class TunnelBroker(object): try: ipr.addr('del', index = assignment.iface_idx, - address = str(b), + address = str(b.ip), mask = b.prefixlen, family = socket.AF_INET6) logger.debug('Removed {0} with prefix {1} from {2}.'.format(str(b), b.prefixlen, assignment.iface)) @@ -182,13 +182,13 @@ class TunnelBroker(object): try: ipr.addr('add', index = assignment.iface_idx, - address = str(b), + address = str(b.ip), mask = b.prefixlen, family = socket.AF_INET6) - logger.debug('Added {0} with prefix {1} to {2}.'.format(str(b), b.prefixlen, assignment.iface)) + logger.debug('Added {0} with prefix {1} to {2}.'.format(str(b.ip), b.prefixlen, assignment.iface)) except Exception as e: - logger.error(('Could not add address block {0} on {1}: ' - '{2}').format(str(b), assignment.iface, e)) + logger.error(('Could not add address block {0} with prefix {1} on {2}: ' + '{3}').format(str(b.ip), b.prefixlen, assignment.iface, e)) ipr.close() raise e ipr.close()