In inline SRX/F5 mode, collect outbound usage for LB rules from the SRX.

This commit is contained in:
keshav 2011-09-15 14:42:49 -07:00
parent b3cde8bb41
commit d27810afa2
1 changed files with 4 additions and 0 deletions

View File

@ -233,6 +233,10 @@ protected class ExternalNetworkUsageTask implements Runnable {
NicVO nic = _nicDao.findById(mapping.getNicId());
String loadBalancingIpAddress = nic.getIp4Address();
bytesSentAndReceived = answer.ipBytes.get(loadBalancingIpAddress);
if (bytesSentAndReceived != null) {
bytesSentAndReceived[0] = 0;
}
}
} else {
bytesSentAndReceived = answer.ipBytes.get(publicIp);