This commit is contained in:
brent s. 2020-05-12 20:56:57 -04:00
parent b95ed24743
commit 9560e34c04
Signed by: bts
GPG Key ID: 8C004C2F93481F6B

View File

@ -118,16 +118,19 @@ class TunnelBroker(object):
gateway = self.def_rt_ip, gateway = self.def_rt_ip,
oif = self.iface_idx, oif = self.iface_idx,
family = socket.AF_INET6) 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)) logger.debug('Added default route for link {0}.'.format(self.iface_name))
except Exception as e: except Exception as e:
logger.error(('Could not add default IPv6 route on link {0}: {1}').format(self.iface_name, e)) logger.error(('Could not add default IPv6 route on link {0}: {1}').format(self.iface_name, e))
ipr.close() ipr.close()
raise e 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() ipr.close()
return(None) return(None)