From patchwork Wed May 4 03:01:17 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amos Kong X-Patchwork-Id: 752492 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 p4431lTa014809 for ; Wed, 4 May 2011 03:01:47 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754843Ab1EDDBp (ORCPT ); Tue, 3 May 2011 23:01:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:61312 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754742Ab1EDDBo (ORCPT ); Tue, 3 May 2011 23:01:44 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p4431hAV021639 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 3 May 2011 23:01:43 -0400 Received: from [127.0.0.1] (dhcp-8-167.nay.redhat.com [10.66.8.167]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p4431fNw021733; Tue, 3 May 2011 23:01:42 -0400 Subject: [PATCH v2 1/2] KVM-test: Add qemu-ifup-atbr0 To: autotest@test.kernel.org From: Amos Kong Cc: lmr@redhat.com, kvm@vger.kernel.org Date: Wed, 04 May 2011 11:01:17 +0800 Message-ID: <20110504030117.16383.32625.stgit@t> In-Reply-To: <1303184574.2088.4.camel@freedom> References: <1303184574.2088.4.camel@freedom> User-Agent: StGit/0.15 MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 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 03:01:48 +0000 (UTC) 'atbr0' is a private bridge. This script is used to setup tap device. 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..82c7efa --- /dev/null +++ b/client/tests/kvm/scripts/qemu-ifup-atbr0 @@ -0,0 +1,6 @@ +#!/bin/sh +switch=atbr0 +/sbin/ifconfig $1 0.0.0.0 up +/usr/sbin/brctl addif ${switch} $1 +/usr/sbin/brctl setfd ${switch} 0 +/usr/sbin/brctl stp ${switch} off