Skip to content

Commit 0535d9b

Browse files
authored
ui: Add message upon network offering creation to warn user of VR creation (#6684)
This PR aims to improve the user experience upon creation of Network Offerings warning the user of the scenarios in which a VR is created. For this, the service offering field is always shown in the form and a warning message is displayed if the user's configuration does not require the creation of a VR. These scenarios include a network offering with guest type L2, and a with a guest type Shared or Isolated when none of the following services are enabled: (VPN, DHCP, DNS, Firewall, LB, UserData, SourceNat, StaticNat and/or PortForwarding). Finally, the message for the Isolated and Shared networks disappear when one of the aforementioned services are selected.
1 parent 82d91d5 commit 0535d9b

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

ui/public/locales/en.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2650,6 +2650,8 @@
26502650
"message.volume.state.uploadinprogress": "Volume upload is in progress.",
26512651
"message.volume.state.uploadop": "The volume upload operation is in progress or in short the volume is on secondary storage.",
26522652
"message.volume.state.primary.storage.suitability": "The suitability of a primary storage for a volume depends on the disk offering of the volume and on the virtual machine allocations if the volume is attached to a virtual machine.",
2653+
"message.vr.alert.upon.network.offering.creation.l2": "As virtual routers are not created for L2 networks, the compute offering will not be used.",
2654+
"message.vr.alert.upon.network.offering.creation.others": "As none of the obligatory services for creating a virtual router (VPN, DHCP, DNS, Firewall, LB, UserData, SourceNat, StaticNat, PortForwarding) are enabled, the virtual router will not be created and the compute offering will not be used.",
26532655
"message.warn.filetype": "jpg, jpeg, png, bmp and svg are the only supported image formats.",
26542656
"message.zone.creation.complete": "Zone creation complete.",
26552657
"message.zone.detail.description": "Populate zone details.",

ui/public/locales/pt_BR.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2462,6 +2462,8 @@
24622462
"message.volume.state.uploaderror": "O carregamento do volume encontrou um erro",
24632463
"message.volume.state.uploadinprogress": "Carregamento do volume em progresso",
24642464
"message.volume.state.uploadop": "A opera\u00e7\u00e3o de carregamento de volume est\u00e1 em andamento",
2465+
"message.vr.alert.upon.network.offering.creation.l2": "Como VRs não são criados para redes do tipo L2, a oferta de computação não será utilizada.",
2466+
"message.vr.alert.upon.network.offering.creation.others": "Como nenhum dos serviços obrigatórios para criação do VR (VPN, DHCP, DNS, Firewall, LB, UserData, SourceNat, StaticNat, PortForwarding) foram habilitados, o VR não será criado e a oferta de computação não será usada.",
24652467
"message.warn.filetype": "jpg, jpeg, png, bmp e svg s\u00e3o os \u00fanicos formatos de imagem suportados",
24662468
"message.zone.creation.complete": "Cria\u00e7\u00e3o de zona completa",
24672469
"message.zone.detail.description": "Preencha os detalhes da zona",

ui/src/views/offering/AddNetworkOffering.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,13 @@
237237
</a-radio-button>
238238
</a-radio-group>
239239
</a-form-item>
240-
<a-form-item v-if="isVirtualRouterForAtLeastOneService || isVpcVirtualRouterForAtLeastOneService">
240+
<a-form-item>
241+
<a-alert v-if="!isVirtualRouterForAtLeastOneService" type="warning" style="margin-bottom: 10px">
242+
<template #message>
243+
<span v-if="guestType === 'l2'" v-html="$t('message.vr.alert.upon.network.offering.creation.l2')" />
244+
<span v-else v-html="$t('message.vr.alert.upon.network.offering.creation.others')" />
245+
</template>
246+
</a-alert>
241247
<template #label>
242248
<tooltip-label :title="$t('label.serviceofferingid')" :tooltip="apiParams.serviceofferingid.description"/>
243249
</template>

0 commit comments

Comments
 (0)