Skip to content

Commit 6ba5120

Browse files
ui: expose the custom DHCP range on isolated networks
Show the start/end IP fields on the isolated network create form once a gateway is set, and surface the range on the network details tab so an operator can see and set the guest IP allocation window without the API.
1 parent 9d527a1 commit 6ba5120

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎ui/src/config/section/network.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default {
5050
return fields
5151
},
5252
details: () => {
53-
const fields = ['name', 'id', 'description', 'type', 'traffictype', 'vpcid', 'vlan', 'cidr', 'ip6cidr', 'netmask', 'gateway', 'asnumber',
53+
const fields = ['name', 'id', 'description', 'type', 'traffictype', 'vpcid', 'vlan', 'cidr', 'ip6cidr', 'netmask', 'gateway', 'startip', 'endip', 'asnumber',
5454
'aclname', 'ispersistent', 'restartrequired', 'reservediprange', 'redundantrouter', 'networkdomain', 'egressdefaultpolicy', 'zonename',
5555
'account', 'domainpath', 'associatednetwork', 'associatednetworkid', 'ip4routing', 'ip6firewall', 'ip6routing', 'ip6routes',
5656
'dns1', 'dns2', 'ip6dns1', 'ip6dns2', 'publicmtu', 'privatemtu', 'dnszone', 'dnssubdomain']

‎ui/src/views/network/CreateIsolatedNetworkForm.vue‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,15 +229,15 @@
229229
v-model:value="form.cidrsize"
230230
:placeholder="apiParams.cidrsize.description"/>
231231
</a-form-item>
232-
<a-form-item v-if="selectedNetworkOffering && selectedNetworkOffering.specifyipranges" name="startip" ref="startip">
232+
<a-form-item v-if="selectedNetworkOffering && (selectedNetworkOffering.specifyipranges || form.gateway)" name="startip" ref="startip">
233233
<template #label>
234234
<tooltip-label :title="$t('label.startipv4')" :tooltip="apiParams.startip.description"/>
235235
</template>
236236
<a-input
237237
v-model:value="form.startip"
238238
:placeholder="apiParams.startip.description"/>
239239
</a-form-item>
240-
<a-form-item v-if="selectedNetworkOffering && selectedNetworkOffering.specifyipranges" name="endip" ref="endip">
240+
<a-form-item v-if="selectedNetworkOffering && (selectedNetworkOffering.specifyipranges || form.gateway)" name="endip" ref="endip">
241241
<template #label>
242242
<tooltip-label :title="$t('label.endip')" :tooltip="apiParams.endip.description"/>
243243
</template>

0 commit comments

Comments
 (0)