+invirt-xen-config (0.0.35) unstable; urgency=low
+
+ * Unconditionally try to remove a bridge. Apparently Xen doesn't tell
+ you in an "offline" command whether there was a tap interface or not,
+ so we have to assume there was and try to get rid of the bridge.
+
+ -- Quentin Smith <quentin@mit.edu> Sun, 02 Jan 2011 03:00:27 -0500
+
invirt-xen-config (0.0.34) unstable; urgency=low
* The kernel fails to issue a udev event when a paravirtualized guest
dev=${dev:-${vif}}
intfname=${dev}
+brname=dom${vif#vif}
if [ ${dev} != ${vif} ]; then
# This is an HVM and it has two interfaces, so we'll set up a bridge.
- brname=dom${vif#vif}
+ dobridge=yes
intfname=${brname}
fi
case "$command" in
online)
- if [ $brname ]; then
+ if [ $dobridge ]; then
create_bridge ${brname}
setup_bridge_port ${dev}
setup_bridge_port ${vif}
cmdprefix=''
;;
offline)
- if [ $brname ]; then
- do_without_error brctl delif ${brname} ${vif}
- do_without_error brctl delif ${brname} ${dev}
- do_without_error ifconfig ${brname} down
- fi
+ do_without_error brctl delif ${brname} ${vif}
+ do_without_error brctl delif ${brname} ${dev}
+ do_without_error ifconfig ${brname} down
ipcmd='del'
cmdprefix='do_without_error'
;;
fi
fi
-if [[ "$command" == "offline" && -n "$brname" ]]
+if [ "$command" == "offline" ]
then
do_without_error brctl delbr ${brname}
fi