Skip to content

Commit a10a083

Browse files
DaanHooglandchaturvedia
authored andcommitted
pass isSourceNat to second ip on the same network(cherry picked from commit 5af163f)
Signed-off-by: Animesh Chaturvedi <animesh@apache.org>
1 parent 7016e6a commit a10a083

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1444,7 +1444,8 @@ public VpcGatewayVO doInTransaction(TransactionStatus status) throws ResourceAll
14441444
Long nextMac = mac + 1;
14451445
dc.setMacAddress(nextMac);
14461446

1447-
privateIp = new PrivateIpVO(ipAddress, privateNtwk.getId(), nextMac, vpcId, true);
1447+
s_logger.info("creating private ip adress for vpc (" + ipAddress + ", " + privateNtwk.getId() + ", " + nextMac + ", " + vpcId + ", " + isSourceNat + ")");
1448+
privateIp = new PrivateIpVO(ipAddress, privateNtwk.getId(), nextMac, vpcId, isSourceNat);
14481449
_privateIpDao.persist(privateIp);
14491450

14501451
_dcDao.update(dc.getId(), dc);

0 commit comments

Comments
 (0)