From 965d29a899f0cde764b8284e52e7879ca278cd49 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Tue, 11 Apr 2023 17:00:48 +0530 Subject: [PATCH 1/2] ui: show only advanced zones for vmautoscale form (#7411) * ui: show only Advance zones for vmautoscale form Fixes #7409 Signed-off-by: Abhishek Kumar * fix non-securitygroupenabled zones Signed-off-by: Abhishek Kumar --------- Signed-off-by: Abhishek Kumar --- ui/src/views/compute/CreateAutoScaleVmGroup.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/src/views/compute/CreateAutoScaleVmGroup.vue b/ui/src/views/compute/CreateAutoScaleVmGroup.vue index 61087a0a3d7..c807228f703 100644 --- a/ui/src/views/compute/CreateAutoScaleVmGroup.vue +++ b/ui/src/views/compute/CreateAutoScaleVmGroup.vue @@ -1201,6 +1201,7 @@ export default { }, zones: { list: 'listZones', + networktype: 'Advanced', isLoad: true, field: 'zoneid' }, @@ -2548,7 +2549,7 @@ export default { const args = { listall: true, showicon: true } if (zoneId) args.id = zoneId api(param.list, args).then(json => { - const zoneResponse = json.listzonesresponse.zone || [] + const zoneResponse = (json.listzonesresponse.zone || []).filter(item => item.securitygroupsenabled === false) if (listZoneAllow && listZoneAllow.length > 0) { zoneResponse.map(zone => { if (listZoneAllow.includes(zone.id)) { From 0ad94ce58c9a374efa0d21639a53938044e5f364 Mon Sep 17 00:00:00 2001 From: Harikrishna Date: Tue, 11 Apr 2023 17:03:21 +0530 Subject: [PATCH 2/2] ui: CreateNetwork isolated/L2 form, added accounts list under selected domain (#7393) Currently create network form takes account name (manual entry) as one of the parameters. During network creation we check if the given account name is under selected domain. Here with this PR we are listing accounts under the selected domain. --- .../network/CreateIsolatedNetworkForm.vue | 90 +++++++++++++------ ui/src/views/network/CreateL2NetworkForm.vue | 65 +++++++++++--- 2 files changed, 119 insertions(+), 36 deletions(-) diff --git a/ui/src/views/network/CreateIsolatedNetworkForm.vue b/ui/src/views/network/CreateIsolatedNetworkForm.vue index 36d5e7cf516..d42dc90d823 100644 --- a/ui/src/views/network/CreateIsolatedNetworkForm.vue +++ b/ui/src/views/network/CreateIsolatedNetworkForm.vue @@ -85,6 +85,36 @@ + + + + + {{ opt.name || opt.description }} + + + + + + +