[ovn] Ensure all routes are deleted when deleting ExtGw
The current DeleteLRouterExtGwCommand stops iterating over static
routes once the first route with a ovn_const.OVN_ROUTER_IS_EXT_GW
external_id is found.
There can be multiple static routes with this external ID, so
this patch continues iteration until all external routes are
removed and adds a unit test for this condition.
Reviewed: https:/ /review. opendev. org/c/openstack /neutron/ +/910332 /opendev. org/openstack/ neutron/ commit/ ae9749a5e3118fd 5b69fd483705848 328ab03211
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit ae9749a5e3118fd 5b69fd483705848 328ab03211
Author: Frode Nordahl <email address hidden>
Date: Tue Feb 27 08:45:34 2024 +0100
[ovn] Ensure all routes are deleted when deleting ExtGw
The current DeleteLRouterEx tGwCommand stops iterating over static OVN_ROUTER_ IS_EXT_ GW
routes once the first route with a ovn_const.
external_id is found.
There can be multiple static routes with this external ID, so
this patch continues iteration until all external routes are
removed and adds a unit test for this condition.
Trivial-Fix 2a0f64c10bafeaa fc0823a2076
Partial-Bug: #2002687
Change-Id: Ie43abd8bf511e1
Signed-off-by: Frode Nordahl <email address hidden>