bug 9516: Fix network.throttling.rate on DomR other vnifs

It's due to nobody tell getNetworkRate() the id of router, then the function is
fail to follow the policy.

status: resolved fixed
This commit is contained in:
Sheng Yang 2011-06-10 19:23:12 -07:00
parent ef3ea765bf
commit 79c5013ee2
1 changed files with 1 additions and 1 deletions

View File

@ -1602,7 +1602,7 @@ public class VirtualNetworkApplianceManagerImpl implements VirtualNetworkApplian
String vmGuestAddress = null;
// Get network rate - required for IpAssoc
Integer networkRate = _networkMgr.getNetworkRate(ipAddr.getNetworkId(), null);
Integer networkRate = _networkMgr.getNetworkRate(ipAddr.getNetworkId(), router.getId());
IpAddressTO ip = new IpAddressTO(ipAddr.getAddress().addr(), add, firstIP, sourceNat, vlanId, vlanGateway, vlanNetmask, vifMacAddress, vmGuestAddress, networkRate);
ipsToSend[i++] = ip;