Skip to content

Commit 720b794

Browse files
authored
NSX: Fix creation of VPCs (#8320)
1 parent edd66c3 commit 720b794

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)