mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-2991: [PortableIPRange] CS should not allow portable IP with
sourceNAT service on it if a portable ip is first IP associated with a non-VPC network, then its being considered as source nat IP. This fix adds exemption for portable IP not to be considred for source nat.
This commit is contained in:
parent
28835054e6
commit
c520aae346
|
|
@ -955,7 +955,8 @@ public class NetworkManagerImpl extends ManagerBase implements NetworkManager, L
|
|||
boolean isSourceNat = false;
|
||||
if (!sharedSourceNat) {
|
||||
if (getExistingSourceNatInNetwork(owner.getId(), networkId) == null) {
|
||||
if (network.getGuestType() == GuestType.Isolated && network.getVpcId() == null) {
|
||||
if (network.getGuestType() == GuestType.Isolated && network.getVpcId() == null &&
|
||||
!ipToAssoc.isPortable()) {
|
||||
isSourceNat = true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue