Skip to content

Commit c03f130

Browse files
Clarify VR public IP labels
1 parent f6efda5 commit c03f130

5 files changed

Lines changed: 16 additions & 10 deletions

File tree

api/src/main/java/org/apache/cloudstack/api/command/user/network/CreateNetworkCmd.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,9 @@ public class CreateNetworkCmd extends BaseCmd implements UserCmd {
185185

186186
@Parameter(name = ApiConstants.SOURCE_NAT_IP,
187187
type = CommandType.STRING,
188-
description = "IPV4 address to be assigned to the public interface of the network router. " +
189-
"This address will be used as source NAT address for the network. " +
190-
"\nIf an address is given and it cannot be acquired, an error will be returned and the network won´t be implemented,",
188+
description = "Optional IPv4 address to assign to the public interface of the network router. " +
189+
"This address will be used as the Source NAT address for the network. " +
190+
"\nIf an address is given and it cannot be acquired, an error will be returned and the network will not be implemented.",
191191
since = "4.19")
192192
private String sourceNatIP;
193193

api/src/main/java/org/apache/cloudstack/api/command/user/vpc/CreateVPCCmd.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,9 @@ public class CreateVPCCmd extends BaseAsyncCreateCmd implements UserCmd {
117117
@Parameter(name = ApiConstants.IP6_DNS2, type = CommandType.STRING, description = "The second IPv6 DNS for the VPC", since = "4.18.0")
118118
private String ip6Dns2;
119119

120-
@Parameter(name = ApiConstants.SOURCE_NAT_IP, type = CommandType.STRING, description = "IPv4 address to be assigned to the public interface of the Network router." +
121-
"This address will be used as source NAT address for the Networks in ths VPC. " +
122-
"\nIf an address is given and it cannot be acquired, an error will be returned and the Network won´t be implemented,",
120+
@Parameter(name = ApiConstants.SOURCE_NAT_IP, type = CommandType.STRING, description = "Optional IPv4 address to assign to the public interface of the Network router. " +
121+
"This address will be used as the Source NAT address for the Networks in this VPC. " +
122+
"\nIf an address is given and it cannot be acquired, an error will be returned and the Network will not be implemented.",
123123
since = "4.19")
124124
private String sourceNatIP;
125125

ui/public/locales/en.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1155,6 +1155,7 @@
11551155
"label.fwdeviceid": "ID",
11561156
"label.fwdevicestate": "Status",
11571157
"label.gateway": "Gateway",
1158+
"label.gateway.internal.routerip": "Gateway (internal IPv4 address for the VR)",
11581159
"label.global": "Global",
11591160
"label.global.settings": "Global Settings",
11601161
"label.globo.dns": "GloboDNS",
@@ -2192,7 +2193,7 @@
21922193
"label.router.health.check.success": "Success",
21932194
"label.router.health.checks": "Health checks",
21942195
"label.routercount": "Total of virtual routers",
2195-
"label.routerip": "IPv4 address for the VR in this Network.",
2196+
"label.routerip": "Public IPv4 address for the VR in this network",
21962197
"label.routeripv6": "IPv6 address for the VR in this Network.",
21972198
"label.routing.firewall": "IPv4 Routing Firewall",
21982199
"label.resourcegroup": "Resource group",

ui/src/views/network/CreateIsolatedNetworkForm.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@
196196
ref="gateway"
197197
name="gateway">
198198
<template #label>
199-
<tooltip-label :title="$t('label.gateway')" :tooltip="apiParams.gateway.description"/>
199+
<tooltip-label :title="gatewayLabel" :tooltip="apiParams.gateway.description"/>
200200
</template>
201201
<a-input
202202
v-model:value="form.gateway"
@@ -412,6 +412,11 @@ export default {
412412
return sourcenatService && sourcenatService.length === 1
413413
}
414414
return false
415+
},
416+
gatewayLabel () {
417+
return this.selectedNetworkOfferingSupportsSourceNat
418+
? this.$t('label.gateway.internal.routerip')
419+
: this.$t('label.gateway')
415420
}
416421
},
417422
methods: {

ui/src/views/network/CreateSharedNetworkForm.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@
344344
</a-row>
345345
<a-form-item v-if="isVirtualRouterForAtLeastOneService" name="routerip" ref="routerip">
346346
<template #label>
347-
<tooltip-label :title="$t('label.routerip')" :tooltip="apiParams.routerip.description"/>
347+
<tooltip-label :title="$t('label.sharedrouterip')" :tooltip="apiParams.routerip.description"/>
348348
</template>
349349
<a-input
350350
v-model:value="form.routerip"
@@ -420,7 +420,7 @@
420420
</a-row>
421421
<a-form-item v-if="isVirtualRouterForAtLeastOneService" name="routeripv6" ref="routeripv6">
422422
<template #label>
423-
<tooltip-label :title="$t('label.routeripv6')" :tooltip="apiParams.routeripv6.description"/>
423+
<tooltip-label :title="$t('label.sharedrouteripv6')" :tooltip="apiParams.routeripv6.description"/>
424424
</template>
425425
<a-input
426426
v-model:value="form.routeripv6"

0 commit comments

Comments
 (0)