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 fd759c60df
commit 60d69aabb2
1 changed files with 4 additions and 0 deletions

View File

@ -1072,6 +1072,10 @@ public class ExternalNetworkManagerImpl implements ExternalNetworkManager {
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);