i think this should be better

This commit is contained in:
brent s. 2020-05-15 02:48:55 -04:00
parent 375a8c8427
commit 6248422962
Signed by: bts
GPG Key ID: 8C004C2F93481F6B
2 changed files with 3 additions and 2 deletions

View File

@ -165,6 +165,7 @@ class Tunnel(object):
self._creds()
self._client()
self._server()
self._endpoint()
self._allocations()
self._assignments()
self._radvd()

View File

@ -90,14 +90,14 @@ class TunnelBroker(object):
ifname = self.iface_name,
kind = 'sit',
sit_local = self.my_ip.str,
sit_remote = self.tun.server.str,
sit_remote = self.tun.endpoint.str,
sit_ttl = 255)
logger.debug('Added link {0} successfully.'.format(self.iface_name))
except Exception as e:
logger.error('Could not create link for link {0} '
'(maybe it already exists?) with local {1} and remote {2}: {3}'.format(self.iface_name,
self.my_ip.str,
self.tun.server.str,
self.tun.endpoint.str,
e))
ipr.close()
raise e