From: Wei Liu <wl@xen.org>
To: Steven Haigh <netwiz@crc.id.au>
Cc: xen-devel@lists.xenproject.org,
Ian Jackson <ian.jackson@eu.citrix.com>, Wei Liu <wl@xen.org>
Subject: Re: [Xen-devel] [PATCH 2/2] Use ip for bridge related functions where brctl is not present
Date: Tue, 17 Dec 2019 14:19:55 +0000 [thread overview]
Message-ID: <20191217141955.7mjbspyo647nr6bs@debian> (raw)
In-Reply-To: <8b561c819ecad2bde8601057b34dfcd70e256c4f.1576209614.git.netwiz@crc.id.au>
On Fri, Dec 13, 2019 at 03:08:35PM +1100, Steven Haigh wrote:
> Signed-off-by: Steven Haigh <netwiz@crc.id.au>
> ---
> tools/hotplug/Linux/colo-proxy-setup | 30 +++++++++++++++++------
> tools/hotplug/Linux/vif-bridge | 19 ++++++++------
> tools/hotplug/Linux/vif2 | 12 +++++++--
> tools/hotplug/Linux/xen-network-common.sh | 15 +++++++++---
> 4 files changed, 55 insertions(+), 21 deletions(-)
>
> diff --git a/tools/hotplug/Linux/colo-proxy-setup b/tools/hotplug/Linux/colo-proxy-setup
> index 94e2034452..cbd5b773c6 100755
> --- a/tools/hotplug/Linux/colo-proxy-setup
> +++ b/tools/hotplug/Linux/colo-proxy-setup
> @@ -76,10 +76,17 @@ function teardown_primary()
>
> function setup_secondary()
> {
> - do_without_error brctl delif $bridge $vifname
> - do_without_error brctl addbr $forwardbr
> - do_without_error brctl addif $forwardbr $vifname
> - do_without_error brctl addif $forwardbr $forwarddev
> + if [ -x "/usr/sbin/brctl" ]; then
I agree with the general direction of this patch, thanks for puting
together this patch.
Instead of specifying full path here, please use `which brctl` like we
did in xen-network-common.sh.
Wei.
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
next prev parent reply other threads:[~2019-12-17 14:20 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-13 4:08 [Xen-devel] [PATCH v2 0/2] [PATCH-for-4.13] Work towards removing brctl Steven Haigh
2019-12-13 4:08 ` [Xen-devel] [PATCH 1/2] Tidy up whitespace and formatting in file to be consistent Steven Haigh
2019-12-17 14:13 ` Wei Liu
2019-12-17 14:27 ` Wei Liu
2019-12-17 15:44 ` Steven Haigh
2019-12-17 16:01 ` Wei Liu
2019-12-13 4:08 ` [Xen-devel] [PATCH 2/2] Use ip for bridge related functions where brctl is not present Steven Haigh
2019-12-17 14:19 ` Wei Liu [this message]
2019-12-13 5:42 ` [Xen-devel] [PATCH v2 0/2] [PATCH-for-4.13] Work towards removing brctl Jürgen Groß
-- strict thread matches above, loose matches on Subject: below --
2019-12-13 2:50 [Xen-devel] [PATCH " Steven Haigh
2019-12-13 2:50 ` [Xen-devel] [PATCH 2/2] Use ip for bridge related functions where brctl is not present Steven Haigh
2019-12-13 2:51 ` Steven Haigh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191217141955.7mjbspyo647nr6bs@debian \
--to=wl@xen.org \
--cc=ian.jackson@eu.citrix.com \
--cc=netwiz@crc.id.au \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.