mirror of https://github.com/apache/cloudstack.git
bug 11547: VMware - Reset iptables counter when a public interface on domR is
removed status 11547: resolved fixed reviewed-by: Ram
This commit is contained in:
parent
ff7fc32949
commit
21ed43636b
|
|
@ -64,7 +64,9 @@ delete_public_interface () {
|
|||
}
|
||||
|
||||
get_usage () {
|
||||
iptables -L NETWORK_STATS -n -v -x | awk '$1 ~ /^[0-9]+$/ { printf "%s:", $2}'; /root/clearUsageRules.sh > /dev/null
|
||||
iptables -L NETWORK_STATS -n -v -x | awk '$1 ~ /^[0-9]+$/ { printf "%s:", $2}'; > /dev/null
|
||||
if [ -f /root/removedVifs ] ; then iptables -Z NETWORK_STATS ; fi; > /dev/null
|
||||
/root/clearUsageRules.sh > /dev/null
|
||||
if [ $? -gt 0 -a $? -ne 2 ]
|
||||
then
|
||||
printf $?
|
||||
|
|
|
|||
Loading…
Reference in New Issue