From b8cfd40f4ce9d9b87da5fcba0b090173fd5f4e53 Mon Sep 17 00:00:00 2001 From: Saurabh Kushwaha Date: Thu, 15 Oct 2026 16:01:11 +0000 Subject: [PATCH] ui: Support GiB memory with 0.25 GiB step for constrained and unconstrained offerings and Switch guard --- ui/public/locales/en.json | 2 + .../views/compute/wizard/ComputeSelection.vue | 190 +++++++++++++++--- 2 files changed, 166 insertions(+), 26 deletions(-) diff --git a/ui/public/locales/en.json b/ui/public/locales/en.json index 99bf2cf7aef9..5974fce4d976 100644 --- a/ui/public/locales/en.json +++ b/ui/public/locales/en.json @@ -3667,6 +3667,7 @@ "message.error.mtu.below.min": "MTU is below the minimum supported value of %x", "message.error.mtu.public.max.exceed": "The value entered exceeds the maximum allowed public MTU for this Zone, your value will be automatically lowered to match it.", "message.error.mtu.private.max.exceed": "The value entered exceeds the maximum allowed private MTU for this Zone, your value will be automatically lowered to match it.", +"message.error.memory.gib.step": "Please enter memory in multiples of 0.25 GiB (256 MiB), or switch to MiB.", "message.error.name": "Please enter name.", "message.error.netmask": "Please enter Netmask.", "message.error.network.offering": "Please select Network offering.", @@ -3861,6 +3862,7 @@ "message.lock.user.success": "Successfully locked User \"{user}\"", "message.login.failed": "Login Failed", "message.maintenance.initiated": "Maintenance has been initiated. This Management Server will not accept new jobs", +"message.memory.gib.not.supported": "GiB unit is not available because memory limits or values must be multiples of 256 MiB (0.25 GiB). Please use MiB.", "message.migrate.instance.host.auto.assign": "Host for the Instance will be automatically chosen based on the suitability within the same Cluster", "message.migrate.instance.to.host": "Please confirm that you want to migrate this Instance to another host. When migration is between hosts of different Clusters volume(s) of the Instance may get migrated to suitable storage pools.", "message.migrate.instance.to.ps": "Please confirm that you want to migrate this Instance to another primary storage.", diff --git a/ui/src/views/compute/wizard/ComputeSelection.vue b/ui/src/views/compute/wizard/ComputeSelection.vue index 9cf36153f5cd..cab072db223f 100644 --- a/ui/src/views/compute/wizard/ComputeSelection.vue +++ b/ui/src/views/compute/wizard/ComputeSelection.vue @@ -57,23 +57,42 @@ - + - - + + + + + + + + GiB + + MiB + + @@ -96,6 +115,8 @@