bug 11547: Reset iptables counter when a public interface on domR is

removed
status 11547: resolved fixed
reviewed-by: Ram
This commit is contained in:
kishan 2011-09-27 10:41:05 +05:30
parent 1be8872e95
commit f6d8a6297d
1 changed files with 1 additions and 0 deletions

View File

@ -81,6 +81,7 @@ get_usage () {
local dRIp=$1
ssh -q -p 3922 -o StrictHostKeyChecking=no -i $cert root@$dRIp "\
iptables -L NETWORK_STATS -n -v -x | awk '\$1 ~ /^[0-9]+\$/ { printf \"%s:\", \$2}';
if [ -f /root/removedVifs ] ; then iptables -Z NETWORK_STATS ; fi;
/root/clearUsageRules.sh > /dev/null;
"
if [ $? -gt 0 -a $? -ne 2 ]