Ensure IP family is used to obtain the existing routes
Change-Id: I9d0dcbf21c256ab6e164701d6557566ab4444eec
This commit is contained in:
parent
ee0fa1f32b
commit
268f301391
@ -186,9 +186,17 @@ 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:
|
||||||
|
if get_ip_version(dst) == constants.IP_VERSION_6:
|
||||||
extra_routes.append(
|
extra_routes.append(
|
||||||
ndb.routes[{'table': ovn_routing_tables[bridge],
|
ndb.routes[{'table': ovn_routing_tables[bridge],
|
||||||
'dst': dst}]
|
'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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user