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._creds()
|
||||||
self._client()
|
self._client()
|
||||||
self._server()
|
self._server()
|
||||||
|
self._endpoint()
|
||||||
self._allocations()
|
self._allocations()
|
||||||
self._assignments()
|
self._assignments()
|
||||||
self._radvd()
|
self._radvd()
|
||||||
|
@ -90,14 +90,14 @@ class TunnelBroker(object):
|
|||||||
ifname = self.iface_name,
|
ifname = self.iface_name,
|
||||||
kind = 'sit',
|
kind = 'sit',
|
||||||
sit_local = self.my_ip.str,
|
sit_local = self.my_ip.str,
|
||||||
sit_remote = self.tun.server.str,
|
sit_remote = self.tun.endpoint.str,
|
||||||
sit_ttl = 255)
|
sit_ttl = 255)
|
||||||
logger.debug('Added link {0} successfully.'.format(self.iface_name))
|
logger.debug('Added link {0} successfully.'.format(self.iface_name))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error('Could not create link for link {0} '
|
logger.error('Could not create link for link {0} '
|
||||||
'(maybe it already exists?) with local {1} and remote {2}: {3}'.format(self.iface_name,
|
'(maybe it already exists?) with local {1} and remote {2}: {3}'.format(self.iface_name,
|
||||||
self.my_ip.str,
|
self.my_ip.str,
|
||||||
self.tun.server.str,
|
self.tun.endpoint.str,
|
||||||
e))
|
e))
|
||||||
ipr.close()
|
ipr.close()
|
||||||
raise e
|
raise e
|
||||||
|
Loading…
Reference in New Issue
Block a user