VPC : use correc provider for guest network inside VPC

This commit is contained in:
anthony 2012-06-19 11:30:11 -07:00
parent 88aa19796f
commit 17b9952b86
1 changed files with 2 additions and 1 deletions

View File

@ -1935,7 +1935,8 @@ public class VirtualNetworkApplianceManagerImpl implements VirtualNetworkApplian
Map<PublicIp, Set<Service>> ipToServices = _networkMgr.getIpToServices(allPublicIps, false, false);
Map<Provider, ArrayList<PublicIp>> providerToIpList = _networkMgr.getProviderToIpList(network, ipToServices);
// Only cover virtual router for now, if ELB use it this need to be modified
ArrayList<PublicIp> publicIps = providerToIpList.get(Provider.VirtualRouter);
ArrayList<PublicIp> publicIps = providerToIpList.get(provider);
s_logger.debug("Found " + publicIps.size() + " ip(s) to apply as a part of domR " + router + " start.");