pass isSourceNat to second ip on the same network

This commit is contained in:
Daan Hoogland 2014-02-11 14:12:00 +01:00
parent 21d2e89dc1
commit ea5f318c9d
1 changed files with 2 additions and 1 deletions

View File

@ -1410,7 +1410,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);