Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
NSX: Fix creation of VPCs
  • Loading branch information
Pearl1594 committed Dec 6, 2023
commit 5ecbe62c8904136f1afaa6707f4f9b116f7ca35e
Original file line number Diff line number Diff line change
Expand Up @@ -1172,7 +1172,7 @@ public Vpc createVpc(CreateVPCCmd cmd) throws ResourceAllocationException {
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);
}
Expand Down