Skip to content

Commit 5ecbe62

Browse files
committed
NSX: Fix creation of VPCs
1 parent edd66c3 commit 5ecbe62

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎server/src/main/java/com/cloud/network/vpc/VpcManagerImpl.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1172,7 +1172,7 @@ public Vpc createVpc(CreateVPCCmd cmd) throws ResourceAllocationException {
11721172
cmd.getIp6Dns2(), cmd.isDisplay(), cmd.getPublicMtu());
11731173

11741174
String sourceNatIP = cmd.getSourceNatIP();
1175-
if (sourceNatIP != null) {
1175+
if (sourceNatIP != null || isVpcForNsx(vpc)) {
11761176
s_logger.info(String.format("Trying to allocate the specified IP [%s] as the source NAT of VPC [%s].", sourceNatIP, vpc));
11771177
allocateSourceNatIp(vpc, sourceNatIP);
11781178
}

0 commit comments

Comments
 (0)