mirror of https://github.com/apache/cloudstack.git
bug 12614: cloudStack 3.0 new UI - system - Add Zone Wizard - basic zone - when securityGroupsEnabled checkbox is checked, only display security-group-enabled network offerings. reviewed-by Brian.
This commit is contained in:
parent
508bc692ff
commit
9cbe30e22d
|
|
@ -2907,6 +2907,7 @@
|
|||
}
|
||||
});
|
||||
|
||||
var networkOfferingObjsWithSG = [];
|
||||
var networkOfferingObjsWithoutSG = [];
|
||||
$.ajax({
|
||||
url: createURL("listNetworkOfferings&state=Enabled&guestiptype=Shared"),
|
||||
|
|
@ -2924,8 +2925,10 @@
|
|||
break;
|
||||
}
|
||||
}
|
||||
if(includingSGP == false) //withoutSG
|
||||
networkOfferingObjsWithoutSG.push(this);
|
||||
if(includingSGP == false) //without SG
|
||||
networkOfferingObjsWithoutSG.push(this);
|
||||
else //with SG
|
||||
networkOfferingObjsWithSG.push(this);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
@ -2937,7 +2940,7 @@
|
|||
networkOfferings: networkOfferingObjsWithoutSG,
|
||||
|
||||
// Security group-enabled offerings
|
||||
securityGroupNetworkOfferings: networkOfferingObjs
|
||||
securityGroupNetworkOfferings: networkOfferingObjsWithSG
|
||||
});
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue