All of lore.kernel.org
 help / color / mirror / Atom feed
From: Amos Kong <akong@redhat.com>
To: Lucas Meneghel Rodrigues <lmr@redhat.com>
Cc: Asias He <asias.hejun@gmail.com>,
	autotest@test.kernel.org, kvm@vger.kernel.org
Subject: [PATCH v3 1/2] KVM-test: Add qemu-ifup-atbr0
Date: Wed, 4 May 2011 14:08:54 +0800	[thread overview]
Message-ID: <20110504060853.GA3966@t400> (raw)
In-Reply-To: <1304479397.9850.22.camel@freedom>


'atbr0' is a private bridge.
This script is used to setup tap device.

Changes from v2:
- drop the absolute path of brctl and ifconfig

Signed-off-by: Amos Kong <akong@redhat.com>
---
 client/tests/kvm/scripts/qemu-ifup-atbr0 |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
 create mode 100755 client/tests/kvm/scripts/qemu-ifup-atbr0

diff --git a/client/tests/kvm/scripts/qemu-ifup-atbr0 b/client/tests/kvm/scripts/qemu-ifup-atbr0
new file mode 100755
index 0000000..59f91b5
--- /dev/null
+++ b/client/tests/kvm/scripts/qemu-ifup-atbr0
@@ -0,0 +1,6 @@
+#!/bin/sh
+switch=atbr0
+ifconfig $1 0.0.0.0 up
+brctl addif ${switch} $1
+brctl setfd ${switch} 0
+brctl stp ${switch} off

  reply	other threads:[~2011-05-04  6:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1303184574.2088.4.camel@freedom>
2011-05-04  3:01 ` [PATCH v2 1/2] KVM-test: Add qemu-ifup-atbr0 Amos Kong
2011-05-04  3:11   ` Asias He
2011-05-04  3:23     ` Lucas Meneghel Rodrigues
2011-05-04  6:08       ` Amos Kong [this message]
2011-05-04  6:10       ` [PATCH] KVM-test: Drop the absolute path of brctl/ifconfig Amos Kong
2011-05-04  3:01 ` [PATCH v2 2/2] KVM-test: Setup private bridge in framework Amos Kong

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=20110504060853.GA3966@t400 \
    --to=akong@redhat.com \
    --cc=asias.hejun@gmail.com \
    --cc=autotest@test.kernel.org \
    --cc=kvm@vger.kernel.org \
    --cc=lmr@redhat.com \
    /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.