mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-2205: Hide egress tab for shared networks
This commit is contained in:
parent
95c9835f69
commit
d8f81fe14d
@ -873,6 +873,7 @@
|
|||||||
var isVPC = false;
|
var isVPC = false;
|
||||||
var isAdvancedSGZone = false;
|
var isAdvancedSGZone = false;
|
||||||
var hiddenTabs = [];
|
var hiddenTabs = [];
|
||||||
|
var isSharedNetwork;
|
||||||
|
|
||||||
// Get network offering data
|
// Get network offering data
|
||||||
$.ajax({
|
$.ajax({
|
||||||
@ -886,6 +887,10 @@
|
|||||||
isVPC = true;
|
isVPC = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (networkoffering.guestiptype == 'Shared') {
|
||||||
|
isSharedNetwork = true;
|
||||||
|
}
|
||||||
|
|
||||||
$(networkoffering.service).each(function(){
|
$(networkoffering.service).each(function(){
|
||||||
var thisService = this;
|
var thisService = this;
|
||||||
|
|
||||||
@ -932,7 +937,7 @@
|
|||||||
hiddenTabs.push("addloadBalancer");
|
hiddenTabs.push("addloadBalancer");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isVPC || isAdvancedSGZone ) {
|
if (isVPC || isAdvancedSGZone || isSharedNetwork) {
|
||||||
hiddenTabs.push('egressRules');
|
hiddenTabs.push('egressRules');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user