mirror of https://github.com/apache/cloudstack.git
IP Address page - source Nat ip address - hide LB tab if the LB service has "LoadBalancingSupportedIps" capability (meaning it's using external load balancer).
This commit is contained in:
parent
b0aabc1b20
commit
fb4e67c140
|
|
@ -482,8 +482,18 @@ function ipToRightPanel($midmenuItem1) {
|
|||
}
|
||||
|
||||
//Load Balancer tab
|
||||
if (ipObj.issourcenat == true) {
|
||||
$("#tab_load_balancer").hide();
|
||||
if (ipObj.issourcenat == true) {
|
||||
var lbServiceObj = ipFindNetworkServiceByName("Lb", networkObj);
|
||||
if(lbServiceObj != null) {
|
||||
var LoadBalancingSupportedIpsCapabilityObj = ipFindCapabilityByName("LoadBalancingSupportedIps", lbServiceObj);
|
||||
if(LoadBalancingSupportedIpsCapabilityObj != null)
|
||||
$("#tab_load_balancer").hide();
|
||||
else
|
||||
$("#tab_load_balancer").show();
|
||||
}
|
||||
else {
|
||||
$("#tab_load_balancer").hide();
|
||||
}
|
||||
}
|
||||
else {
|
||||
if(networkObj != null) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue