mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
CLOUDSTACK-537: cloudstack UI - Advanced SG-Enabled zone - zone wizard - network offering dropdown - populate only network offerings that include SecurityGroup service.
This commit is contained in:
parent
af79da5d80
commit
811c904fc3
@ -455,15 +455,20 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if(args.hypervisor != "VMware" && args.hypervisor != "BareMetal") {
|
if(thisNetworkOffering.havingEIP == true && thisNetworkOffering.havingELB == true) { //EIP ELB
|
||||||
availableNetworkOfferingObjs.push(thisNetworkOffering);
|
if(args.hypervisor == "VMware" || args.hypervisor == "BareMetal") { //VMware, BareMetal don't support EIP ELB
|
||||||
}
|
return true; //move to next item in $.each() loop
|
||||||
else { //only network offerings that does not include EIP, ELB, SG
|
|
||||||
if(thisNetworkOffering.havingSG != true && thisNetworkOffering.havingEIP != true && thisNetworkOffering.havingELB != true) {
|
|
||||||
availableNetworkOfferingObjs.push(thisNetworkOffering);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(args.context.zones[0]["network-model"] == "Advanced" && args.context.zones[0]["zone-advanced-sg-enabled"] == "on") { // Advanced SG-enabled zone
|
||||||
|
if(thisNetworkOffering.havingSG != true) {
|
||||||
|
return true; //move to next item in $.each() loop
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
availableNetworkOfferingObjs.push(thisNetworkOffering);
|
||||||
});
|
});
|
||||||
|
|
||||||
args.response.success({
|
args.response.success({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user