mirror of https://github.com/apache/cloudstack.git
Internal LB: Made InternalLbElement to extend the ip deployer as the LB service implements IPDeployerRequester
This commit is contained in:
parent
7b9af28094
commit
867b305ea8
|
|
@ -44,6 +44,7 @@ import com.cloud.network.Network.Service;
|
|||
import com.cloud.network.NetworkModel;
|
||||
import com.cloud.network.Networks.TrafficType;
|
||||
import com.cloud.network.PhysicalNetworkServiceProvider;
|
||||
import com.cloud.network.PublicIpAddress;
|
||||
import com.cloud.network.VirtualRouterProvider;
|
||||
import com.cloud.network.VirtualRouterProvider.VirtualRouterProviderType;
|
||||
import com.cloud.network.dao.NetworkServiceMapDao;
|
||||
|
|
@ -70,7 +71,7 @@ import com.cloud.vm.VirtualMachineProfile;
|
|||
import com.cloud.vm.dao.DomainRouterDao;
|
||||
|
||||
@Local(value = {NetworkElement.class})
|
||||
public class InternalLoadBalancerElement extends AdapterBase implements LoadBalancingServiceProvider, InternalLoadBalancerElementService{
|
||||
public class InternalLoadBalancerElement extends AdapterBase implements LoadBalancingServiceProvider, InternalLoadBalancerElementService, IpDeployer{
|
||||
private static final Logger s_logger = Logger.getLogger(InternalLoadBalancerElement.class);
|
||||
protected static final Map<Service, Map<Capability, String>> capabilities = setCapabilities();
|
||||
|
||||
|
|
@ -171,7 +172,7 @@ public class InternalLoadBalancerElement extends AdapterBase implements LoadBala
|
|||
|
||||
@Override
|
||||
public IpDeployer getIpDeployer(Network network) {
|
||||
return null;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -288,4 +289,10 @@ public class InternalLoadBalancerElement extends AdapterBase implements LoadBala
|
|||
return sc.list();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean applyIps(Network network, List<? extends PublicIpAddress> ipAddress, Set<Service> services) throws ResourceUnavailableException {
|
||||
//do nothing here; this element just has to extend the ip deployer as the LB service implements IPDeployerRequester
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue