mirror of https://github.com/apache/cloudstack.git
more fixes
This commit is contained in:
parent
dc99a359c5
commit
18b007d681
|
|
@ -7227,6 +7227,8 @@ public class ConfigurationManagerImpl extends ManagerBase implements Configurati
|
|||
forVpc = false;
|
||||
} else if (service == Service.NetworkACL) {
|
||||
forVpc = true;
|
||||
} else if (service == Service.Firewall) {
|
||||
forVpc = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -147,29 +147,16 @@ export default {
|
|||
return
|
||||
}
|
||||
|
||||
// VPC IPs with static nat have firewall (only if associatednetworkid present)
|
||||
// VPC IPs with static nat have nothing
|
||||
if (this.resource.isstaticnat) {
|
||||
if (this.resource.virtualmachinetype === 'DomainRouter') {
|
||||
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 {
|
||||
if (this.resource.associatednetworkid) {
|
||||
this.tabs = this.defaultTabs.concat(this.$route.meta.tabs.filter(tab => tab.name === 'firewall'))
|
||||
} else {
|
||||
this.tabs = this.defaultTabs
|
||||
}
|
||||
this.tabs = this.defaultTabs.concat(this.$route.meta.tabs.filter(tab => ['vpn', 'firewall'].includes(tab.name)))
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// 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