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.
@@ -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
- localization: UI_I_Localization
6
- ): UI_I_PortPropertiesEnabledService[] => [
7
- { label: localization.provisioning, modelValue: 'provisioning' },
8
- // {
9
- // label: localization.faultToleranceLogging,
10
- // modelValue: 'faultToleranceLogging',
11
- // },
12
- { label: localization.management, modelValue: 'management' },
13
- // { label: localization.procuratorReplication, modelValue: 'replication' },
14
- // { label: localization.procuratorReplicationNFC, modelValue: 'replicationNFC' },
15
- { label: localization.vSAN, modelValue: 'vSAN' },
16
- // { label: localization.procuratorBackupNFC, modelValue: 'backupNFC' },
17
- // { label: localization.nvmEOverTCP, modelValue: 'nVMeOverTCP' },
18
- // { label: localization.nvmEOverRDMA, modelValue: 'nVMeOverRDMA' },
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: boolean
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: boolean
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 = 'ipFourAddress' | 'subnetMask' | 'defaultGateway'
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 = 'network' | 'switch' | 'standardSwitch' | 'mtu'
5
- export type UI_T_TCP = 'default' | '1' | '2'
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
@@ -18,4 +18,5 @@ export interface UI_I_MonitorGraphPayload {
18
18
  hostName?: string
19
19
  fields?: string
20
20
  metricType?: string
21
+ place?: number
21
22
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.2.35",
4
+ "version": "1.2.37",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",