The DPDK has a different way of setting up interfaces, it uses a tap
interface instead of veth pair. The test was removing the ovs-be0
which is fine for veth pairs, but breaks for DPDK. Change the
iface-id instead to keep the interface intact, that will achieve
the same result.

Fixes: 3c488ba9a2f4 ("northd: Emit per-backend Advertised_Route for LB 
redistribution.")
Signed-off-by: Ales Musil <[email protected]>
---
 tests/system-ovn.at | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/tests/system-ovn.at b/tests/system-ovn.at
index ee5c2b810..d4f2ce69e 100644
--- a/tests/system-ovn.at
+++ b/tests/system-ovn.at
@@ -23790,9 +23790,9 @@ wait_row_count sb:Advertised_Route 1 
ip_prefix='"172.16.1.10"'
 OVS_WAIT_UNTIL([
     ip route list vrf ovnvrf1342 | grep -q "blackhole 172.16.1.10"])
 
-# Move the backend to a simulated hv2 by removing the OVS port so hv1
-# drops the claim, then bind be0 to hv2.
-check ovs-vsctl del-port br-int ovs-be0
+# Move the backend to a simulated hv2 by changing the iface-id of the OVS port
+# so hv1 drops the claim, then bind be0 to hv2.
+check ovs-vsctl set Interface ovs-be0 external_ids:iface-id="not-be0"
 wait_column "" Port_Binding chassis logical_port=be0
 check ovn-sbctl chassis-add hv2 geneve 169.0.0.2
 hv2=$(fetch_column Chassis _uuid name=hv2)
@@ -23812,8 +23812,7 @@ wait_row_count sb:Advertised_Route_Status 0 \
 # Return the backend to hv1.
 check ovn-sbctl clear Port_Binding be0 chassis
 check ovn-sbctl destroy Chassis $hv2
-check ovs-vsctl add-port br-int ovs-be0 \
-    -- set Interface ovs-be0 external_ids:iface-id=be0
+check ovs-vsctl set Interface ovs-be0 external_ids:iface-id=be0
 hv1_uuid=$(fetch_column Chassis _uuid name=hv1)
 wait_row_count Port_Binding 1 logical_port=be0 chassis=$hv1_uuid
 
@@ -23831,7 +23830,7 @@ wait_row_count sb:Advertised_Route_Status 1 \
 check ovn-nbctl --wait=hv set Logical_Router_Port lr-origin-share \
     options:dynamic-routing-redistribute-local-only=false
 
-check ovs-vsctl del-port br-int ovs-be0
+check ovs-vsctl set Interface ovs-be0 external_ids:iface-id="not-be0"
 wait_column "" Port_Binding chassis logical_port=be0
 check ovn-sbctl chassis-add hv2 geneve 169.0.0.2
 hv2=$(fetch_column Chassis _uuid name=hv2)
-- 
2.55.0

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to