mirror of https://github.com/apache/cloudstack.git
NaaS: Fix redundant virtual router
This commit is contained in:
parent
c535de7698
commit
d4b1732ff4
|
|
@ -21,7 +21,6 @@ package com.cloud.network;
|
|||
public interface VirtualRouterProvider {
|
||||
public enum VirtualRouterProviderType {
|
||||
VirtualRouter,
|
||||
RedundantVirtualRouter,
|
||||
ElasticLoadBalancerVm
|
||||
}
|
||||
public VirtualRouterProviderType getType();
|
||||
|
|
|
|||
|
|
@ -1259,10 +1259,6 @@ public class VirtualNetworkApplianceManagerImpl implements VirtualNetworkApplian
|
|||
offering_id = _offering.getId();
|
||||
}
|
||||
VirtualRouterProviderType type = VirtualRouterProviderType.VirtualRouter;
|
||||
if (isRedundant) {
|
||||
type = VirtualRouterProviderType.RedundantVirtualRouter;
|
||||
}
|
||||
|
||||
Long physicalNetworkId = _networkMgr.getPhysicalNetworkId(network);
|
||||
PhysicalNetworkServiceProvider provider = _physicalProviderDao.findByServiceProvider(physicalNetworkId, type.toString());
|
||||
if (provider == null) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue