Don't show egress rules tab for SRX-based networks

This commit is contained in:
Brian Federle 2012-12-06 14:34:49 -08:00
parent 75e51a03aa
commit cd238b4aab
1 changed files with 14 additions and 1 deletions

View File

@ -804,6 +804,7 @@
tabFilter: function(args) {
var networkOfferingHavingELB = false;
var hasNetworkACL = false;
var hasSRXFirewall = false;
var isVPC = false;
var isAdvancedSGZone = false;
var hiddenTabs = [];
@ -832,6 +833,18 @@
}
});
}
if (thisService.name == 'Firewall') {
$(thisService.provider).each(function() {
if (this.name == 'JuniperSRX') {
hasSRXFirewall = true;
return false;
}
return true;
});
}
});
}
});
@ -854,7 +867,7 @@
hiddenTabs.push("addloadBalancer");
}
if (isVPC || isAdvancedSGZone) {
if (isVPC || isAdvancedSGZone || hasSRXFirewall) {
hiddenTabs.push('egressRules');
}