From 9560e34c04a0abeae403c32f61697bcd8f565fa1 Mon Sep 17 00:00:00 2001 From: brent s Date: Tue, 12 May 2020 20:56:57 -0400 Subject: [PATCH] hrmmmm --- utils/he_ipv6/tunnelbroker.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/utils/he_ipv6/tunnelbroker.py b/utils/he_ipv6/tunnelbroker.py index 6dff0af..b77d08c 100644 --- a/utils/he_ipv6/tunnelbroker.py +++ b/utils/he_ipv6/tunnelbroker.py @@ -118,16 +118,19 @@ class TunnelBroker(object): gateway = self.def_rt_ip, oif = self.iface_idx, family = socket.AF_INET6) - ipr.route('add', - dst = '::/96', - gateway = '::', - oif = self.iface_idx, - family = socket.AF_INET6) logger.debug('Added default route for link {0}.'.format(self.iface_name)) except Exception as e: logger.error(('Could not add default IPv6 route on link {0}: {1}').format(self.iface_name, e)) ipr.close() raise e + try: + ipr.route('add', + dst = '::/96', + gateway = '::', + oif = self.iface_idx, + family = socket.AF_INET6) + except Exception as e: + logger.error(('Could not add ::/96 on link {0}: {1}'.format(self.iface_name, e))) ipr.close() return(None)