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

It's due to nobody tell getNetworkRate() it's the router who want to get network
throttling rate, then the function failed to follow the policy.

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

View File

@ -1484,7 +1484,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;