From patchwork Wed May 4 06:08:54 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amos Kong X-Patchwork-Id: 752692 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p446917F022335 for ; Wed, 4 May 2011 06:09:01 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752496Ab1EDGI6 (ORCPT ); Wed, 4 May 2011 02:08:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33497 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752195Ab1EDGI6 (ORCPT ); Wed, 4 May 2011 02:08:58 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p4468uMf019568 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 4 May 2011 02:08:56 -0400 Received: from localhost ([10.66.9.169]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p4468sRA023150; Wed, 4 May 2011 02:08:55 -0400 Date: Wed, 4 May 2011 14:08:54 +0800 From: Amos Kong To: Lucas Meneghel Rodrigues Cc: Asias He , autotest@test.kernel.org, kvm@vger.kernel.org Subject: [PATCH v3 1/2] KVM-test: Add qemu-ifup-atbr0 Message-ID: <20110504060853.GA3966@t400> Reply-To: Amos Kong References: <1303184574.2088.4.camel@freedom> <20110504030117.16383.32625.stgit@t> <4DC0C3CE.8090109@gmail.com> <1304479397.9850.22.camel@freedom> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1304479397.9850.22.camel@freedom> User-Agent: Mutt/1.5.20 (2009-06-14) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Wed, 04 May 2011 06:09:01 +0000 (UTC) '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 --- 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 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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