mirror of https://github.com/apache/cloudstack.git
pass isSourceNat to second ip on the same network(cherry picked from commit 5af163ff7f)
Signed-off-by: Animesh Chaturvedi <animesh@apache.org>
This commit is contained in:
parent
7016e6a038
commit
a10a0832b6
|
|
@ -1444,7 +1444,8 @@ public class VpcManagerImpl extends ManagerBase implements VpcManager, VpcProvis
|
|||
Long nextMac = mac + 1;
|
||||
dc.setMacAddress(nextMac);
|
||||
|
||||
privateIp = new PrivateIpVO(ipAddress, privateNtwk.getId(), nextMac, vpcId, true);
|
||||
s_logger.info("creating private ip adress for vpc (" + ipAddress + ", " + privateNtwk.getId() + ", " + nextMac + ", " + vpcId + ", " + isSourceNat + ")");
|
||||
privateIp = new PrivateIpVO(ipAddress, privateNtwk.getId(), nextMac, vpcId, isSourceNat);
|
||||
_privateIpDao.persist(privateIp);
|
||||
|
||||
_dcDao.update(dc.getId(), dc);
|
||||
|
|
|
|||
Loading…
Reference in New Issue