diff mbox

[v3,1/2] KVM-test: Add qemu-ifup-atbr0

Message ID 20110504060853.GA3966@t400 (mailing list archive)
State New, archived
Headers show

Commit Message

Amos Kong May 4, 2011, 6:08 a.m. 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 <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

--
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 mbox

Patch

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