Ensure IP family is used to obtain the existing routes
Change-Id: I9d0dcbf21c256ab6e164701d6557566ab4444eec
This commit is contained in:
parent
ee0fa1f32b
commit
268f301391
@ -186,10 +186,18 @@ def ensure_routing_table_for_bridge(ovn_routing_tables, bridge):
|
|||||||
except KeyError:
|
except KeyError:
|
||||||
pass # no ipv6 default rule
|
pass # no ipv6 default rule
|
||||||
else:
|
else:
|
||||||
extra_routes.append(
|
if get_ip_version(dst) == constants.IP_VERSION_6:
|
||||||
ndb.routes[{'table': ovn_routing_tables[bridge],
|
extra_routes.append(
|
||||||
'dst': dst}]
|
ndb.routes[{'table': ovn_routing_tables[bridge],
|
||||||
)
|
'dst': dst,
|
||||||
|
'family': AF_INET6}]
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
extra_routes.append(
|
||||||
|
ndb.routes[{'table': ovn_routing_tables[bridge],
|
||||||
|
'dst': dst,
|
||||||
|
'family': AF_INET}]
|
||||||
|
)
|
||||||
|
|
||||||
if route_missing:
|
if route_missing:
|
||||||
r = {'dst': 'default', 'oif': ndb.interfaces[bridge]['index'],
|
r = {'dst': 'default', 'oif': ndb.interfaces[bridge]['index'],
|
||||||
|
Loading…
Reference in New Issue
Block a user