[lxc-devel] [lxc-ci/master] bin/test-lxd-ovn: Fix tests in environments with multiple bridges

tomponline on Github lxc-bot at linuxcontainers.org
Thu Dec 17 23:33:23 UTC 2020


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 363 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20201217/aeeeeb6c/attachment.bin>
-------------- next part --------------
From 1ae71ffa80b1dc5fd59e598ee9b67f50db69b620 Mon Sep 17 00:00:00 2001
From: Thomas Parrott <thomas.parrott at canonical.com>
Date: Thu, 17 Dec 2020 23:32:28 +0000
Subject: [PATCH] bin/test-lxd-ovn: Fix tests in environments with multiple
 bridges

Signed-off-by: Thomas Parrott <thomas.parrott at canonical.com>
---
 bin/test-lxd-ovn | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/test-lxd-ovn b/bin/test-lxd-ovn
index 1788d7f..e254c4c 100755
--- a/bin/test-lxd-ovn
+++ b/bin/test-lxd-ovn
@@ -397,7 +397,7 @@ lxc network create dummy --type=physical \
     ipv6.gateway=2001:db8:1:1::1/64 \
     ipv4.ovn.ranges=192.0.2.10-192.0.2.19
 lxc network create ovn-virtual-network --type=ovn network=dummy
-bridge link show dev dummybr0 | wc -l | grep 1 # Check we have one port connected to the uplink bridge.
+bridge link show | grep dummybr0 | wc -l | grep 1 # Check we have one port connected to the uplink bridge.
 ovs-vsctl list-br | grep ovn | wc  -l | grep 1 # Check we have one OVS bridge.
 ovnIPv4="$(lxc network get ovn-virtual-network volatile.network.ipv4.address)"
 ovnIPv6="$(lxc network get ovn-virtual-network volatile.network.ipv6.address)"
@@ -405,7 +405,7 @@ ping -c1 -4 "${ovnIPv4}" # Check IPv4 connectivity over dummy bridge to OVN rout
 ping -c1 -6 "${ovnIPv6}" # Check IPv6 connectivity over dummy bridge to OVN router.
 lxc network delete ovn-virtual-network
 lxc network delete dummy
-bridge link show dev dummybr0 | wc -l | grep 0 # Check the port is removed from the uplink bridge.
+bridge link show | grep dummybr0 | wc -l | grep 0 # Check the port is removed from the uplink bridge.
 ovs-vsctl list-br | grep ovn | wc  -l | grep 0 # Check the OVS bridge is removed.
 ip link delete dummybr0 # Remove dummy uplink bridge.
 


More information about the lxc-devel mailing list