[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Don't issue the iptables diagnostic when removing entries. Depending upon your



# HG changeset patch
# User emellor@xxxxxxxxxxxxxxxxxxxxxx
# Node ID 3c01d53e383d4a2a294167d40968601043921d53
# Parent  4f25a6b494455f25edd88f996840127215f6da1f
Don't issue the iptables diagnostic when removing entries.  Depending upon your
hotplug config, the offline event may come through to this script twice, and
the iptables -D will fail the second time.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>

diff -r 4f25a6b49445 -r 3c01d53e383d tools/examples/vif-common.sh
--- a/tools/examples/vif-common.sh      Fri Nov 25 17:07:19 2005
+++ b/tools/examples/vif-common.sh      Fri Nov 25 17:08:22 2005
@@ -63,6 +63,7 @@
   fi
 
   iptables "$c" FORWARD -m physdev --physdev-in "$vif" "$@" -j ACCEPT ||
+    [ "$c" == "-D" ] ||
     log err \
      "iptables $c FORWARD -m physdev --physdev-in $vif $@ -j ACCEPT failed.
 If you are using iptables, this may affect networking for guest domains."

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.