mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Fixed allocatePublicIp call done from CiscoVnmcElement
This commit is contained in:
parent
c0ed0b7819
commit
e42e8762ea
@ -29,11 +29,10 @@ import javax.inject.Inject;
|
|||||||
import javax.naming.ConfigurationException;
|
import javax.naming.ConfigurationException;
|
||||||
import javax.persistence.EntityExistsException;
|
import javax.persistence.EntityExistsException;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
|
||||||
|
|
||||||
import org.apache.cloudstack.context.CallContext;
|
import org.apache.cloudstack.context.CallContext;
|
||||||
import org.apache.cloudstack.engine.orchestration.service.NetworkOrchestrationService;
|
import org.apache.cloudstack.engine.orchestration.service.NetworkOrchestrationService;
|
||||||
import org.apache.cloudstack.network.ExternalNetworkDeviceManager.NetworkDevice;
|
import org.apache.cloudstack.network.ExternalNetworkDeviceManager.NetworkDevice;
|
||||||
|
import org.apache.log4j.Logger;
|
||||||
|
|
||||||
import com.cloud.agent.AgentManager;
|
import com.cloud.agent.AgentManager;
|
||||||
import com.cloud.agent.api.Answer;
|
import com.cloud.agent.api.Answer;
|
||||||
@ -356,7 +355,7 @@ public class CiscoVnmcElement extends AdapterBase implements SourceNatServicePro
|
|||||||
try {
|
try {
|
||||||
Account caller = CallContext.current().getCallingAccount();
|
Account caller = CallContext.current().getCallingAccount();
|
||||||
long callerUserId = CallContext.current().getCallingUserId();
|
long callerUserId = CallContext.current().getCallingUserId();
|
||||||
outsideIp = _ipAddrMgr.allocateIp(owner, false, caller, callerUserId, zone, displayIp);
|
outsideIp = _ipAddrMgr.allocateIp(owner, false, caller, callerUserId, zone, true);
|
||||||
} catch (ResourceAllocationException e) {
|
} catch (ResourceAllocationException e) {
|
||||||
s_logger.error("Unable to allocate additional public Ip address. Exception details " + e);
|
s_logger.error("Unable to allocate additional public Ip address. Exception details " + e);
|
||||||
throw new CloudRuntimeException("Unable to allocate additional public Ip address. Exception details " + e);
|
throw new CloudRuntimeException("Unable to allocate additional public Ip address. Exception details " + e);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user