mirror of https://github.com/apache/cloudstack.git
CS-14253: Apply IP when firewall rule is in place
This commit is contained in:
parent
17941d9d64
commit
eaddb44c8a
|
|
@ -922,7 +922,7 @@ public class NetworkManagerImpl implements NetworkManager, NetworkService, Manag
|
||||||
List<PublicIp> publicIps) throws ResourceUnavailableException {
|
List<PublicIp> publicIps) throws ResourceUnavailableException {
|
||||||
boolean success = true;
|
boolean success = true;
|
||||||
|
|
||||||
Map<PublicIp, Set<Service>> ipToServices = getIpToServices(publicIps, rulesRevoked, false);
|
Map<PublicIp, Set<Service>> ipToServices = getIpToServices(publicIps, rulesRevoked, true);
|
||||||
Map<Provider, ArrayList<PublicIp>> providerToIpList = getProviderToIpList(network, ipToServices);
|
Map<Provider, ArrayList<PublicIp>> providerToIpList = getProviderToIpList(network, ipToServices);
|
||||||
|
|
||||||
for (Provider provider : providerToIpList.keySet()) {
|
for (Provider provider : providerToIpList.keySet()) {
|
||||||
|
|
|
||||||
|
|
@ -2234,7 +2234,7 @@ public class VirtualNetworkApplianceManagerImpl implements VirtualNetworkApplian
|
||||||
|
|
||||||
// Get public Ips that should be handled by router
|
// Get public Ips that should be handled by router
|
||||||
Network network = _networkDao.findById(guestNetworkId);
|
Network network = _networkDao.findById(guestNetworkId);
|
||||||
Map<PublicIp, Set<Service>> ipToServices = _networkMgr.getIpToServices(allPublicIps, false, false);
|
Map<PublicIp, Set<Service>> ipToServices = _networkMgr.getIpToServices(allPublicIps, false, true);
|
||||||
Map<Provider, ArrayList<PublicIp>> providerToIpList = _networkMgr.getProviderToIpList(network, ipToServices);
|
Map<Provider, ArrayList<PublicIp>> providerToIpList = _networkMgr.getProviderToIpList(network, ipToServices);
|
||||||
// Only cover virtual router for now, if ELB use it this need to be modified
|
// Only cover virtual router for now, if ELB use it this need to be modified
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue