ia64/xen-unstable

changeset 8062:3c01d53e383d

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@xensource.com>
author emellor@leeni.uk.xensource.com
date Fri Nov 25 17:08:22 2005 +0000 (2005-11-25)
parents 4f25a6b49445
children 801c6363501b
files tools/examples/vif-common.sh
line diff
     1.1 --- a/tools/examples/vif-common.sh	Fri Nov 25 17:07:19 2005 +0000
     1.2 +++ b/tools/examples/vif-common.sh	Fri Nov 25 17:08:22 2005 +0000
     1.3 @@ -63,6 +63,7 @@ function frob_iptable()
     1.4    fi
     1.5  
     1.6    iptables "$c" FORWARD -m physdev --physdev-in "$vif" "$@" -j ACCEPT ||
     1.7 +    [ "$c" == "-D" ] ||
     1.8      log err \
     1.9       "iptables $c FORWARD -m physdev --physdev-in $vif $@ -j ACCEPT failed.
    1.10  If you are using iptables, this may affect networking for guest domains."