-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Improves the network offering creation form #12951
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -111,6 +111,18 @@ | |
| </a-form-item> | ||
| </a-col> | ||
| </a-row> | ||
| <a-row :gutter="12"> | ||
| <a-col :md="12" :lg="12"> | ||
| <a-form-item name="specifyipranges" ref="specifyipranges" v-if="guestType === 'isolated'"> | ||
| <template #label> | ||
| <tooltip-label :title="$t('label.specifyipranges')" :tooltip="apiParams.specifyipranges.description"/> | ||
| </template> | ||
| <a-switch v-model:checked="form.specifyipranges" /> | ||
| </a-form-item> | ||
| </a-col> | ||
| <a-col :md="12" :lg="12"> | ||
| </a-col> | ||
| </a-row> | ||
| <a-row :gutter="12"> | ||
| <a-col :md="12" :lg="12"> | ||
| <a-form-item name="forvpc" ref="forvpc" v-if="guestType === 'isolated'"> | ||
|
|
@@ -703,7 +715,8 @@ export default { | |
| isolation: 'dedicated', | ||
| conservemode: true, | ||
| availability: 'optional', | ||
| egressdefaultpolicy: 'deny', | ||
| specifyipranges: false, | ||
| egressdefaultpolicy: 'allow', | ||
| ispublic: this.isPublic, | ||
| nsxsupportlb: true, | ||
| routingmode: 'static' | ||
|
|
@@ -1129,6 +1142,9 @@ export default { | |
| if (values.specifyvlan === true) { | ||
| params.specifyvlan = true | ||
| } | ||
|
|
||
| params.specifyipranges = values.specifyipranges | ||
|
|
||
|
Comment on lines
1142
to
+1147
|
||
| if (values.ispersistent) { | ||
| params.ispersistent = true | ||
| } else { // Isolated Network with Non-persistent network | ||
|
|
@@ -1145,6 +1161,7 @@ export default { | |
| } | ||
| // 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 | ||
| delete params.conservemode | ||
| delete params.specifyipranges | ||
| } | ||
|
|
||
| if (values.forvpc === true) { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new
specifyiprangesrow includes an empty<a-col>(md/lg=12) which adds unnecessary markup and can make the layout harder to maintain. Consider removing the empty column or changing the layout to a single full-width column for this row.