NSX: Fix creation of VPCs (#8320)

This commit is contained in:
Pearl Dsilva 2023-12-06 12:27:48 -05:00 committed by GitHub
parent edd66c31a3
commit 720b794a52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1172,7 +1172,7 @@ public class VpcManagerImpl extends ManagerBase implements VpcManager, VpcProvis
cmd.getIp6Dns2(), cmd.isDisplay(), cmd.getPublicMtu());
String sourceNatIP = cmd.getSourceNatIP();
if (sourceNatIP != null) {
if (sourceNatIP != null || isVpcForNsx(vpc)) {
s_logger.info(String.format("Trying to allocate the specified IP [%s] as the source NAT of VPC [%s].", sourceNatIP, vpc));
allocateSourceNatIp(vpc, sourceNatIP);
}