From 7b48e6813cc40d39371d341da00bd3e519257213 Mon Sep 17 00:00:00 2001 From: brent s Date: Mon, 18 May 2020 05:33:57 -0400 Subject: [PATCH] bites you in the ass. every time. --- utils/he_ipv6/ra.py | 2 +- utils/he_ipv6/tunnel.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/he_ipv6/ra.py b/utils/he_ipv6/ra.py index 62240e0..86e2a65 100644 --- a/utils/he_ipv6/ra.py +++ b/utils/he_ipv6/ra.py @@ -25,7 +25,7 @@ class RAConf(object): for k in ('name', 'dir'): n = 'tpl_{0}'.format(k) d = 'def_tpl_{0}'.format(k) - v = locals()[k] + v = locals()[n] if not v: setattr(self, n, getattr(self, d)) else: diff --git a/utils/he_ipv6/tunnel.py b/utils/he_ipv6/tunnel.py index 6b90486..b871e3d 100644 --- a/utils/he_ipv6/tunnel.py +++ b/utils/he_ipv6/tunnel.py @@ -101,7 +101,7 @@ class Assignment(object): family = socket.AF_INET6, scope = 253)[0]['attrs'] addrs = dict(ll)['IFA_ADDRESS'] - logger.debug('Link-Local address for {0}: {1}'.format(addrs, addrs)) + logger.debug('Link-Local address for {0}: {1}'.format(self.iface, addrs)) if isinstance(addrs, (list, tuple)): addr = addrs[0] else: