mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-6725: [OVS][UI] vm deployment wizard does not show all available zones in a region while deploying vm in a Regionlevel vpc
This commit is contained in:
parent
3077510838
commit
9f38fd6c9f
@ -77,8 +77,10 @@
|
|||||||
steps: [
|
steps: [
|
||||||
// Step 1: Setup
|
// Step 1: Setup
|
||||||
function(args) {
|
function(args) {
|
||||||
if (args.initArgs.pluginForm != null && args.initArgs.pluginForm.name == "vpcTierInstanceWizard") { //from VPC Tier chart
|
//from VPC Tier chart -- when the tier (network) has strechedl2subnet==false:
|
||||||
//populate only one zone to the dropdown, the zone which the VPC is under.
|
//only own zone is populated to the dropdown
|
||||||
|
if (args.initArgs.pluginForm != null && args.initArgs.pluginForm.name == "vpcTierInstanceWizard"
|
||||||
|
&& args.context.networks[0].strechedl2subnet) {
|
||||||
zoneObjs = [{
|
zoneObjs = [{
|
||||||
id: args.context.vpc[0].zoneid,
|
id: args.context.vpc[0].zoneid,
|
||||||
name: args.context.vpc[0].zonename,
|
name: args.context.vpc[0].zonename,
|
||||||
@ -89,7 +91,9 @@
|
|||||||
zones: zoneObjs
|
zones: zoneObjs
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else { //from Instance page
|
}
|
||||||
|
//in all other cases (as well as from instance page) all zones are populated to dropdown
|
||||||
|
else {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: createURL("listZones&available=true"),
|
url: createURL("listZones&available=true"),
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user