Skip to content

Commit 358f3ed

Browse files
JayapalUradiAbhinandan Prateek
authored andcommitted
CLOUDSTACK-2609 Fixed accoundId, domainId for the secondary ip address for shared networks
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
1 parent c12a818 commit 358f3ed

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

server/src/com/cloud/network/NetworkServiceImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -670,8 +670,8 @@ public NicSecondaryIp allocateSecondaryGuestIP (Account ipOwner, long zoneId, Lo
670670
if (network == null) {
671671
throw new InvalidParameterValueException("Invalid network id is given");
672672
}
673-
accountId = network.getAccountId();
674-
domainId = network.getDomainId();
673+
accountId = ipOwner.getAccountId();
674+
domainId = ipOwner.getDomainId();
675675

676676
// Validate network offering
677677
NetworkOfferingVO ntwkOff = _networkOfferingDao.findById(network.getNetworkOfferingId());

0 commit comments

Comments
 (0)