Skip to content

Commit 34f055d

Browse files
author
toni.zamparetti
committed
Additions to network offering creation form
1 parent 9cc6c09 commit 34f055d

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

ui/src/views/offering/AddNetworkOffering.vue

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,18 @@
111111
</a-form-item>
112112
</a-col>
113113
</a-row>
114+
<a-row :gutter="12">
115+
<a-col :md="12" :lg="12">
116+
<a-form-item name="specifyipranges" ref="specifyipranges" v-if="guestType === 'isolated'">
117+
<template #label>
118+
<tooltip-label :title="$t('label.specifyipranges')" :tooltip="apiParams.specifyipranges.description"/>
119+
</template>
120+
<a-switch v-model:checked="form.specifyipranges" />
121+
</a-form-item>
122+
</a-col>
123+
<a-col :md="12" :lg="12">
124+
</a-col>
125+
</a-row>
114126
<a-row :gutter="12">
115127
<a-col :md="12" :lg="12">
116128
<a-form-item name="forvpc" ref="forvpc" v-if="guestType === 'isolated'">
@@ -703,7 +715,8 @@ export default {
703715
isolation: 'dedicated',
704716
conservemode: true,
705717
availability: 'optional',
706-
egressdefaultpolicy: 'deny',
718+
specifyipranges: false,
719+
egressdefaultpolicy: 'allow',
707720
ispublic: this.isPublic,
708721
nsxsupportlb: true,
709722
routingmode: 'static'
@@ -1129,6 +1142,9 @@ export default {
11291142
if (values.specifyvlan === true) {
11301143
params.specifyvlan = true
11311144
}
1145+
1146+
params.specifyipranges = values.specifyipranges
1147+
11321148
if (values.ispersistent) {
11331149
params.ispersistent = true
11341150
} else { // Isolated Network with Non-persistent network
@@ -1145,6 +1161,7 @@ export default {
11451161
}
11461162
// Conserve mode is irrelevant on L2 network offerings as there are no resources to conserve, do not pass it, true by default on server side
11471163
delete params.conservemode
1164+
delete params.specifyipranges
11481165
}
11491166
11501167
if (values.forvpc === true) {

0 commit comments

Comments
 (0)