Skip to content

Commit e42e876

Browse files
author
Alena Prokharchyk
committed
Fixed allocatePublicIp call done from CiscoVnmcElement
1 parent c0ed0b7 commit e42e876

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎plugins/network-elements/cisco-vnmc/src/com/cloud/network/element/CiscoVnmcElement.java‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,10 @@
2929
import javax.naming.ConfigurationException;
3030
import javax.persistence.EntityExistsException;
3131

32-
import org.apache.log4j.Logger;
33-
3432
import org.apache.cloudstack.context.CallContext;
3533
import org.apache.cloudstack.engine.orchestration.service.NetworkOrchestrationService;
3634
import org.apache.cloudstack.network.ExternalNetworkDeviceManager.NetworkDevice;
35+
import org.apache.log4j.Logger;
3736

3837
import com.cloud.agent.AgentManager;
3938
import com.cloud.agent.api.Answer;
@@ -356,7 +355,7 @@ public boolean implement(final Network network, final NetworkOffering offering,
356355
try {
357356
Account caller = CallContext.current().getCallingAccount();
358357
long callerUserId = CallContext.current().getCallingUserId();
359-
outsideIp = _ipAddrMgr.allocateIp(owner, false, caller, callerUserId, zone, displayIp);
358+
outsideIp = _ipAddrMgr.allocateIp(owner, false, caller, callerUserId, zone, true);
360359
} catch (ResourceAllocationException e) {
361360
s_logger.error("Unable to allocate additional public Ip address. Exception details " + e);
362361
throw new CloudRuntimeException("Unable to allocate additional public Ip address. Exception details " + e);

0 commit comments

Comments
 (0)