mirror of https://github.com/apache/cloudstack.git
bug CS-15878: created network usage rules after ipassoc during reboot
status CS-15878: resolved fixed
This commit is contained in:
parent
2ddf088c10
commit
02a8ee911d
|
|
@ -58,7 +58,7 @@ remove_usage_rules () {
|
|||
}
|
||||
|
||||
get_usage () {
|
||||
iptables -L NETWORK_STATS_$ethDev -n -v -x | awk '$1 ~ /^[0-9]+$/ { printf "%s:", $2}'; > /dev/null
|
||||
iptables -L NETWORK_STATS_$ethDev -n -v -x 2> /dev/null | awk '$1 ~ /^[0-9]+$/ { printf "%s:", $2}'; > /dev/null
|
||||
if [ -f /root/removedVifs ]
|
||||
then
|
||||
var=`cat /root/removedVifs`
|
||||
|
|
|
|||
|
|
@ -848,9 +848,6 @@ public class VpcVirtualNetworkApplianceManagerImpl extends VirtualNetworkApplian
|
|||
createVpcAssociatePublicIPCommands(router, sourceNat, cmds, vlanMacAddress);
|
||||
}
|
||||
|
||||
//Add network usage commands
|
||||
cmds.addCommands(usageCmds);
|
||||
|
||||
//add VPC router to guest networks
|
||||
for (Pair<Nic, Network> nicNtwk : guestNics) {
|
||||
Nic guestNic = nicNtwk.first();
|
||||
|
|
@ -926,7 +923,10 @@ public class VpcVirtualNetworkApplianceManagerImpl extends VirtualNetworkApplian
|
|||
|
||||
finalizeUserDataAndDhcpOnStart(cmds, router, provider, guestNic.getNetworkId());
|
||||
}
|
||||
|
||||
|
||||
//Add network usage commands
|
||||
cmds.addCommands(usageCmds);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue