i think this should be better
This commit is contained in:
parent
375a8c8427
commit
6248422962
@ -165,6 +165,7 @@ class Tunnel(object):
|
||||
self._creds()
|
||||
self._client()
|
||||
self._server()
|
||||
self._endpoint()
|
||||
self._allocations()
|
||||
self._assignments()
|
||||
self._radvd()
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user