X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-xen-config.git/blobdiff_plain/abc436409129673795718be55765d575033e2586..refs/heads/precise-dev:/qemu-ifup.invirt diff --git a/qemu-ifup.invirt b/qemu-ifup.invirt index 588bb92..756006d 100755 --- a/qemu-ifup.invirt +++ b/qemu-ifup.invirt @@ -1,17 +1,17 @@ #!/bin/sh -echo "config qemu network with xen bridge for $@" +echo "config qemu network with invirtroute for $@" if [ -z "$domid" ]; then echo "domid is not set!!!" >&2 exit 1 fi -dev=$1 +INTERFACE=$1 +type_if=tap ifnum=${1##*.} qemu_online=yes -XENBUS_PATH=/local/domain/0/backend/vif/${domid}/${ifnum} vif=vif${domid}.${ifnum} -export vif qemu_online XENBUS_PATH dev +export vif qemu_online INTERFACE type_if -exec /etc/xen/scripts/vif-invirtroute online +exec /etc/xen/scripts/vif-invirtroute add netdev=$(invirt-getconf xen.iface)