[prev in list] [next in list] [prev in thread] [next in thread]
List: lxc-devel
Subject: [lxc-devel] [lxc-ci/master] bin/test-lxd-ovn: Fix tests in environments with multiple bridges
From: tomponline on Github <lxc-bot () linuxcontainers ! org>
Date: 2020-12-17 23:33:23
Message-ID: 5fdbeac3.1c69fb81.41dff.5c5fSMTPIN_ADDED_MISSING () mx ! google ! com
[Download RAW message or body]
[Attachment #2 (text/x-mailbox)]
The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxc-ci/pull/225
This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.
=== Description (from pull-request) ===
Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
[Attachment #3 (text/plain)]
From 1ae71ffa80b1dc5fd59e598ee9b67f50db69b620 Mon Sep 17 00:00:00 2001
From: Thomas Parrott <thomas.parrott@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@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.
[Attachment #4 (text/plain)]
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic