mirror of https://github.com/apache/cloudstack.git
UI changes
This commit is contained in:
parent
932ad4ffd1
commit
dc99a359c5
|
|
@ -332,7 +332,7 @@ public class VpcManagerImpl extends ManagerBase implements VpcManager, VpcProvis
|
|||
|
||||
private final ScheduledExecutorService _executor = Executors.newScheduledThreadPool(1, new NamedThreadFactory("VpcChecker"));
|
||||
private List<VpcProvider> vpcElements = null;
|
||||
private final List<Service> nonSupportedServices = Arrays.asList(Service.SecurityGroup, Service.Firewall);
|
||||
private final List<Service> nonSupportedServices = Arrays.asList(Service.SecurityGroup);
|
||||
private final List<Provider> supportedProviders = Arrays.asList(Provider.VPCVirtualRouter, Provider.NiciraNvp, Provider.InternalLbVm, Provider.Netscaler,
|
||||
Provider.JuniperContrailVpcRouter, Provider.Ovs, Provider.BigSwitchBcf, Provider.ConfigDrive, Provider.Nsx, Provider.Netris);
|
||||
|
||||
|
|
|
|||
|
|
@ -995,8 +995,7 @@ public class RoutedIpv4ManagerImpl extends ComponentLifecycleBase implements Rou
|
|||
@Override
|
||||
public boolean isVirtualRouterGateway(NetworkOffering networkOffering) {
|
||||
return NetworkOffering.NetworkMode.ROUTED.equals(networkOffering.getNetworkMode())
|
||||
&& networkOfferingServiceMapDao.canProviderSupportServiceInNetworkOffering(networkOffering.getId(), Service.Gateway, Provider.VirtualRouter)
|
||||
|| networkOfferingServiceMapDao.canProviderSupportServiceInNetworkOffering(networkOffering.getId(), Service.Gateway, Provider.VPCVirtualRouter);
|
||||
&& networkOfferingServiceMapDao.canProviderSupportServiceInNetworkOffering(networkOffering.getId(), Service.Gateway, Provider.VirtualRouter);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -139,22 +139,37 @@ export default {
|
|||
|
||||
// VPC IPs with source nat have only VPN when VPC offering conserve mode = false
|
||||
if (this.resource.issourcenat && vpc?.vpcofferingconservemode === false) {
|
||||
this.tabs = this.defaultTabs.concat(this.$route.meta.tabs.filter(tab => ['vpn', 'firewall'].includes(tab.name)))
|
||||
let tabs = this.defaultTabs.concat(this.$route.meta.tabs.filter(tab => tab.name === 'vpn'))
|
||||
if (this.resource.associatednetworkid) {
|
||||
tabs = this.defaultTabs.concat(this.$route.meta.tabs.filter(tab => ['vpn', 'firewall'].includes(tab.name)))
|
||||
}
|
||||
this.tabs = tabs
|
||||
return
|
||||
}
|
||||
|
||||
// VPC IPs with static nat have firewall
|
||||
// VPC IPs with static nat have firewall (only if associatednetworkid present)
|
||||
if (this.resource.isstaticnat) {
|
||||
if (this.resource.virtualmachinetype === 'DomainRouter') {
|
||||
this.tabs = this.defaultTabs.concat(this.$route.meta.tabs.filter(tab => ['vpn', 'firewall'].includes(tab.name)))
|
||||
let tabs = this.defaultTabs.concat(this.$route.meta.tabs.filter(tab => tab.name === 'vpn'))
|
||||
if (this.resource.associatednetworkid) {
|
||||
tabs = this.defaultTabs.concat(this.$route.meta.tabs.filter(tab => ['vpn', 'firewall'].includes(tab.name)))
|
||||
}
|
||||
this.tabs = tabs
|
||||
} else {
|
||||
this.tabs = this.defaultTabs.concat(this.$route.meta.tabs.filter(tab => tab.name === 'firewall'))
|
||||
if (this.resource.associatednetworkid) {
|
||||
this.tabs = this.defaultTabs.concat(this.$route.meta.tabs.filter(tab => tab.name === 'firewall'))
|
||||
} else {
|
||||
this.tabs = this.defaultTabs
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// VPC IPs now have firewall support
|
||||
// VPC IPs have all tabs, but firewall only if associatednetworkid present
|
||||
let tabs = this.$route.meta.tabs
|
||||
if (!this.resource.associatednetworkid) {
|
||||
tabs = tabs.filter(tab => tab.name !== 'firewall')
|
||||
}
|
||||
|
||||
const network = await this.fetchNetwork()
|
||||
if (network && network.networkofferingconservemode) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue