Ensure scope is not used for ip6 routes removal
Change-Id: I51ec8c19bb31ca25d6b677aeaace4f220d9371d2
This commit is contained in:
parent
73a90f6177
commit
255e59180e
|
@ -576,7 +576,6 @@ class TestLinuxNet(test_base.TestCase):
|
|||
'family': AF_INET6,
|
||||
'oif': mock.ANY,
|
||||
'proto': 3,
|
||||
'scope': 253,
|
||||
'table': 7},
|
||||
'vlan': None}]}
|
||||
route = copy.deepcopy(routes[self.dev][0]['route'])
|
||||
|
|
|
@ -543,6 +543,7 @@ def del_ip_route(ovn_routing_tables_routes, ip_address, route_table, dev,
|
|||
route['scope'] = 253
|
||||
if get_ip_version(net_ip) == constants.IP_VERSION_6:
|
||||
route['family'] = AF_INET6
|
||||
del route['scope']
|
||||
|
||||
LOG.debug("Deleting route at table %s: %s", route_table, route)
|
||||
ovn_bgp_agent.privileged.linux_net.route_delete(route)
|
||||
|
|
Loading…
Reference in New Issue