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:
Daan Hoogland 2014-02-11 14:12:00 +01:00 committed by Animesh Chaturvedi
parent 7016e6a038
commit a10a0832b6
1 changed files with 2 additions and 1 deletions

View File

@ -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);