bfg-common 1.2.35 → 1.2.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/common/addNetworking/AddNetworking.vue +4 -0
- package/components/common/addNetworking/config/portPropertiesStep.ts +27 -15
- package/components/common/addNetworking/models/interfaces.ts +2 -2
- package/components/common/addNetworking/models/types.ts +11 -3
- package/components/common/addNetworking/steps/PortProperties.vue +14 -3
- package/components/common/monitor/models/interfaces.ts +1 -0
- package/package.json +1 -1
|
@@ -71,6 +71,7 @@
|
|
|
71
71
|
:network-label-existing-error-message="networkLabelExistingErrorMessage"
|
|
72
72
|
:mtu-from-switch="mtuFromSwitch"
|
|
73
73
|
:error="error"
|
|
74
|
+
:project="props.project"
|
|
74
75
|
@set-error-empty="onSetErrorFieldEmpty"
|
|
75
76
|
@change-error-messages="onChangeErrorMessages"
|
|
76
77
|
@hide-error-message-alert="onHideErrorMessageAlert"
|
|
@@ -126,6 +127,7 @@
|
|
|
126
127
|
|
|
127
128
|
<script setup lang="ts">
|
|
128
129
|
import { UI_I_ArbitraryObject, UI_I_Localization } from '~/models/interfaces'
|
|
130
|
+
import { UI_T_Project } from '~/models/types'
|
|
129
131
|
import {
|
|
130
132
|
createZeroSchemeReadyCompleteFunc,
|
|
131
133
|
createFirstSchemeReadyCompleteFunc,
|
|
@@ -176,6 +178,7 @@ const props = withDefaults(
|
|
|
176
178
|
isNetworkInvalid?: UI_I_NetworkLabelCheckExisting
|
|
177
179
|
freeAdapters: UI_I_Adapter[]
|
|
178
180
|
adapters: UI_I_SwitchAdapters
|
|
181
|
+
project?: UI_T_Project
|
|
179
182
|
}>(),
|
|
180
183
|
{
|
|
181
184
|
isNetworkInvalid: () => isNetworkInvalidInitial,
|
|
@@ -184,6 +187,7 @@ const props = withDefaults(
|
|
|
184
187
|
title: '',
|
|
185
188
|
freeAdapters: () => [],
|
|
186
189
|
standardSwitchesInitial: () => [],
|
|
190
|
+
project: 'procurator',
|
|
187
191
|
}
|
|
188
192
|
)
|
|
189
193
|
|
|
@@ -2,18 +2,30 @@ import { UI_I_Localization } from '~/models/interfaces'
|
|
|
2
2
|
import { UI_I_PortPropertiesEnabledService } from '~/components/common/addNetworking/models/interfaces'
|
|
3
3
|
|
|
4
4
|
export const portPropertiesEnabledServicesFunc = (
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
5
|
+
localization: UI_I_Localization,
|
|
6
|
+
isSphereProject: boolean
|
|
7
|
+
): UI_I_PortPropertiesEnabledService[] => {
|
|
8
|
+
let enabledServices = [
|
|
9
|
+
{ label: localization.provisioning, modelValue: 'provisioning' },
|
|
10
|
+
// {
|
|
11
|
+
// label: localization.faultToleranceLogging,
|
|
12
|
+
// modelValue: 'faultToleranceLogging',
|
|
13
|
+
// },
|
|
14
|
+
{ label: localization.management, modelValue: 'management' },
|
|
15
|
+
// { label: localization.procuratorReplication, modelValue: 'replication' },
|
|
16
|
+
// { label: localization.procuratorReplicationNFC, modelValue: 'replicationNFC' },
|
|
17
|
+
{ label: localization.vSAN, modelValue: 'vSAN' },
|
|
18
|
+
// { label: localization.procuratorBackupNFC, modelValue: 'backupNFC' },
|
|
19
|
+
// { label: localization.nvmEOverTCP, modelValue: 'nVMeOverTCP' },
|
|
20
|
+
// { label: localization.nvmEOverRDMA, modelValue: 'nVMeOverRDMA' },
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
if (!isSphereProject) {
|
|
24
|
+
enabledServices = enabledServices.filter(
|
|
25
|
+
(service: UI_I_PortPropertiesEnabledService) =>
|
|
26
|
+
service.modelValue !== 'provisioning'
|
|
27
|
+
)
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
return enabledServices
|
|
31
|
+
}
|
|
@@ -2,7 +2,7 @@ import { UI_E_StepStatus } from '~/components/common/addNetworking/models/enums'
|
|
|
2
2
|
import { UI_T_TCP } from '~/components/common/addNetworking/models/types'
|
|
3
3
|
|
|
4
4
|
export interface UI_I_Services {
|
|
5
|
-
vMotion
|
|
5
|
+
vMotion?: boolean
|
|
6
6
|
provisioning: boolean
|
|
7
7
|
faultToleranceLogging: boolean
|
|
8
8
|
management: boolean
|
|
@@ -137,7 +137,7 @@ export interface UI_I_AddNetworkingZeroOrFirstSchemeDataSend {
|
|
|
137
137
|
mtu: number
|
|
138
138
|
services: {
|
|
139
139
|
management: boolean
|
|
140
|
-
vmotion
|
|
140
|
+
vmotion?: boolean
|
|
141
141
|
provisioning: boolean
|
|
142
142
|
vsan: boolean
|
|
143
143
|
fault_tolerance_logging: boolean
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
export type UI_T_ConnectionSettingsFieldName = 'networkLabel' | 'vlanId'
|
|
2
|
-
export type UI_T_IpFourSettingsFieldName =
|
|
2
|
+
export type UI_T_IpFourSettingsFieldName =
|
|
3
|
+
| 'ipFourAddress'
|
|
4
|
+
| 'subnetMask'
|
|
5
|
+
| 'defaultGateway'
|
|
3
6
|
export type UI_T_PortPropertiesFieldName = 'networkLabel' | 'vlanId' | 'mtu'
|
|
4
|
-
export type UI_T_TargetDeviceFieldName =
|
|
5
|
-
|
|
7
|
+
export type UI_T_TargetDeviceFieldName =
|
|
8
|
+
| 'network'
|
|
9
|
+
| 'switch'
|
|
10
|
+
| 'standardSwitch'
|
|
11
|
+
| 'mtu'
|
|
12
|
+
export type UI_T_TCP = 'default' | '1' | '2'
|
|
13
|
+
export type UI_T_Project = 'procurator' | 'sphere'
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
<select id="tsp" v-model="fields.tcp">
|
|
136
136
|
<option value="default">{{ localization.default }}</option>
|
|
137
137
|
<option value="1">{{ localization.provisioning }}</option>
|
|
138
|
-
<option value="2">{{ localization.vMotion }}</option
|
|
138
|
+
<!-- <option value="2">{{ localization.vMotion }}</option>-->
|
|
139
139
|
</select>
|
|
140
140
|
</div>
|
|
141
141
|
</div>
|
|
@@ -158,10 +158,17 @@
|
|
|
158
158
|
{ disabled: fields.tcp !== 'default' },
|
|
159
159
|
]"
|
|
160
160
|
>
|
|
161
|
-
<label>
|
|
161
|
+
<label v-if="isSphereProject">
|
|
162
162
|
<input v-model="fields.services.vMotion" type="checkbox" />
|
|
163
163
|
{{ localization.vMotion }}
|
|
164
164
|
</label>
|
|
165
|
+
<label v-else>
|
|
166
|
+
<input
|
|
167
|
+
v-model="fields.services.provisioning"
|
|
168
|
+
type="checkbox"
|
|
169
|
+
/>
|
|
170
|
+
{{ localization.provisioning }}
|
|
171
|
+
</label>
|
|
165
172
|
</div>
|
|
166
173
|
</div>
|
|
167
174
|
</div>
|
|
@@ -194,6 +201,7 @@
|
|
|
194
201
|
|
|
195
202
|
<script setup lang="ts">
|
|
196
203
|
import { UI_I_ArbitraryObject, UI_I_Localization } from '~/models/interfaces'
|
|
204
|
+
import { UI_T_Project } from '~/models/types'
|
|
197
205
|
import {
|
|
198
206
|
servicesInitial,
|
|
199
207
|
vlanIdSelectData,
|
|
@@ -221,6 +229,7 @@ const props = withDefaults(
|
|
|
221
229
|
networkLabelExistingErrorMessage: string
|
|
222
230
|
mtuFromSwitch: number
|
|
223
231
|
error: UI_I_ArbitraryObject<string>
|
|
232
|
+
project: UI_T_Project
|
|
224
233
|
}>(),
|
|
225
234
|
{
|
|
226
235
|
mtuFromSwitch: 1500,
|
|
@@ -230,9 +239,11 @@ const props = withDefaults(
|
|
|
230
239
|
// UI_I_Localization
|
|
231
240
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
232
241
|
|
|
242
|
+
const isSphereProject = computed<boolean>(() => props.project === 'sphere')
|
|
243
|
+
|
|
233
244
|
// Making port properties enabled services template
|
|
234
245
|
const portPropertiesEnabledServices = computed(() =>
|
|
235
|
-
portPropertiesEnabledServicesFunc(localization.value)
|
|
246
|
+
portPropertiesEnabledServicesFunc(localization.value, isSphereProject.value)
|
|
236
247
|
)
|
|
237
248
|
|
|
238
249
|
// Define emits for changing data and validation messages
|