bfg-common 1.4.661 → 1.4.663
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/atoms/table/dataGrid/DataGrid.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDiskNew.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDiskOld.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/limitIops/LimitIops.vue +3 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/limitIops/LimitIopsNew.vue +3 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/limitIops/LimitIopsOld.vue +3 -0
- package/components/common/wizards/network/add/Add.vue +13 -4
- package/components/common/wizards/network/add/lib/config/config.ts +1 -0
- package/components/common/wizards/network/add/lib/config/steps.ts +33 -0
- package/components/common/wizards/network/add/steps/ReadyComplete.vue +1 -1
- package/components/common/wizards/network/add/steps/SelectedTargetDevice.vue +1 -8
- package/composables/useLocalStorage.ts +1 -1
- package/package.json +1 -1
|
@@ -1035,7 +1035,7 @@ const setResizeObserveWithInfo = (): void => {
|
|
|
1035
1035
|
|
|
1036
1036
|
// Export
|
|
1037
1037
|
const exportItems = computed<UI_I_DropdownButtonItem[]>(
|
|
1038
|
-
|
|
1038
|
+
() => exportItemsFunc(
|
|
1039
1039
|
localization.value,
|
|
1040
1040
|
bodyItemsPresent.value.length || 0,
|
|
1041
1041
|
props.selectedRow?.length || 0
|
|
@@ -105,6 +105,7 @@
|
|
|
105
105
|
v-model:limit-iops-type="limitIopsType"
|
|
106
106
|
:index="props.index"
|
|
107
107
|
:error-validation-fields="props.errorValidationFields"
|
|
108
|
+
:disabled="props.isRunning"
|
|
108
109
|
@valid="limitIopsInvalid = $event"
|
|
109
110
|
@remove-error-by-title="emits('remove-error-by-title', $event)"
|
|
110
111
|
/>
|
|
@@ -137,6 +137,7 @@
|
|
|
137
137
|
v-model:limit-iops-type="limitIopsType"
|
|
138
138
|
:index="props.index"
|
|
139
139
|
:error-validation-fields="props.errorValidationFields"
|
|
140
|
+
:disabled="props.isRunning"
|
|
140
141
|
@valid="limitIopsInvalid = $event"
|
|
141
142
|
@remove-error-by-title="emits('remove-error-by-title', $event)"
|
|
142
143
|
/>
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
:limit-iops-error-text="limitIopsErrorText"
|
|
9
9
|
:limit-iops-options="limitIopsOptions"
|
|
10
10
|
:limit-iops-type-options="limitIopsTypeOptions"
|
|
11
|
+
:disabled="props.disabled"
|
|
11
12
|
@remove-error="onRemoveValidationError"
|
|
12
13
|
/>
|
|
13
14
|
<common-vm-actions-common-customize-hardware-virtual-hardware-new-hard-disk-limit-iops-old
|
|
@@ -19,6 +20,7 @@
|
|
|
19
20
|
:limit-iops-error-text="limitIopsErrorText"
|
|
20
21
|
:limit-iops-options="limitIopsOptions"
|
|
21
22
|
:limit-iops-type-options="limitIopsTypeOptions"
|
|
23
|
+
:disabled="props.disabled"
|
|
22
24
|
@remove-error="onRemoveValidationError"
|
|
23
25
|
/>
|
|
24
26
|
</template>
|
|
@@ -37,6 +39,7 @@ const limitIopsType = defineModel<string>('limitIopsType')
|
|
|
37
39
|
|
|
38
40
|
const props = defineProps<{
|
|
39
41
|
index: number
|
|
42
|
+
disabled: boolean
|
|
40
43
|
errorValidationFields: UI_I_ErrorValidationField<string>[]
|
|
41
44
|
}>()
|
|
42
45
|
const emits = defineEmits<{
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
:items="props.limitIopsTypeOptions"
|
|
13
13
|
:class="`vm-wizard-disk-device-io-field-${props.index} limit-iops`"
|
|
14
14
|
:test-id="`vm-wizard-disk-device-io-field-${props.index}`"
|
|
15
|
+
:disabled="props.disabled"
|
|
15
16
|
@click.stop
|
|
16
17
|
/>
|
|
17
18
|
|
|
@@ -21,6 +22,7 @@
|
|
|
21
22
|
:items="props.limitIopsOptions"
|
|
22
23
|
:error-text="props.limitIopsErrorText"
|
|
23
24
|
:test-id="`limit-iops-combobox-${props.index}`"
|
|
25
|
+
:disabled="props.disabled"
|
|
24
26
|
class="limit-iops"
|
|
25
27
|
@click.stop
|
|
26
28
|
/>
|
|
@@ -42,6 +44,7 @@ const props = defineProps<{
|
|
|
42
44
|
limitIopsErrorText: string
|
|
43
45
|
limitIopsOptions: UI_I_OptionItem[]
|
|
44
46
|
limitIopsTypeOptions: UI_I_OptionItem[]
|
|
47
|
+
disabled: boolean
|
|
45
48
|
}>()
|
|
46
49
|
// const emits = defineEmits<{
|
|
47
50
|
// (event: 'remove-error'): void
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
v-model="limitIopsType"
|
|
19
19
|
:data-id="`vm-wizard-disk-device-io-field-${props.index}`"
|
|
20
20
|
:class="`vm-wizard-disk-device-io-field-${props.index}`"
|
|
21
|
+
:disabled="props.disabled"
|
|
21
22
|
@click.stop
|
|
22
23
|
>
|
|
23
24
|
<option
|
|
@@ -38,6 +39,7 @@
|
|
|
38
39
|
v-model.number="limitIops"
|
|
39
40
|
:items="props.limitIopsOptions"
|
|
40
41
|
:test-id="`limit-iops-combobox-${props.index}`"
|
|
42
|
+
:disabled="props.disabled"
|
|
41
43
|
@click.stop
|
|
42
44
|
/>
|
|
43
45
|
<div v-show="props.limitIopsErrorText" class="flex-align-center">
|
|
@@ -74,6 +76,7 @@ const props = defineProps<{
|
|
|
74
76
|
limitIopsErrorText: string
|
|
75
77
|
limitIopsOptions: UI_I_OptionItem[]
|
|
76
78
|
limitIopsTypeOptions: UI_I_OptionItem[]
|
|
79
|
+
disabled: boolean
|
|
77
80
|
}>()
|
|
78
81
|
const emits = defineEmits<{
|
|
79
82
|
(event: 'remove-error'): void
|
|
@@ -145,6 +145,7 @@ import {
|
|
|
145
145
|
createSecondSchemeReadyCompleteFunc,
|
|
146
146
|
createThirdSchemeReadyCompleteFunc,
|
|
147
147
|
createFourthSchemeReadyCompleteFunc,
|
|
148
|
+
createFifthSchemeReadyCompleteFunc,
|
|
148
149
|
stepsSchemeInitial,
|
|
149
150
|
stepsFunc,
|
|
150
151
|
connectionSettingsInitial,
|
|
@@ -439,6 +440,14 @@ watch(
|
|
|
439
440
|
adapterStatus.value,
|
|
440
441
|
localization.value
|
|
441
442
|
)
|
|
443
|
+
return
|
|
444
|
+
}
|
|
445
|
+
if (wizard.isSelectedScheme(5)) {
|
|
446
|
+
readyCompleteFields.value = createFifthSchemeReadyCompleteFunc(
|
|
447
|
+
targetDevice.value,
|
|
448
|
+
adapterStatus.value,
|
|
449
|
+
localization.value
|
|
450
|
+
)
|
|
442
451
|
}
|
|
443
452
|
}
|
|
444
453
|
)
|
|
@@ -508,7 +517,7 @@ const checkFinal = async (): Promise<UI_I_ArbitraryObject<string>> => {
|
|
|
508
517
|
| API_UI_I_SwitchItem
|
|
509
518
|
| null = null
|
|
510
519
|
|
|
511
|
-
let type: 'network' | 'vmkernel' | 'adapter'
|
|
520
|
+
let type: 'network' | 'vmkernel' | 'adapter' | 'new-switch'
|
|
512
521
|
|
|
513
522
|
if (wizard.isSelectedScheme(0) || wizard.isSelectedScheme(1)) {
|
|
514
523
|
const vlan = getVlanId(portProperties.value.vlanId)
|
|
@@ -548,7 +557,7 @@ const checkFinal = async (): Promise<UI_I_ArbitraryObject<string>> => {
|
|
|
548
557
|
targetDevice.value.mtu
|
|
549
558
|
)
|
|
550
559
|
|
|
551
|
-
type = 'adapter'
|
|
560
|
+
type = wizard.isSelectedScheme(4) ? 'adapter' : 'new-switch'
|
|
552
561
|
}
|
|
553
562
|
|
|
554
563
|
return new Promise((resolve, _reject) =>
|
|
@@ -750,7 +759,7 @@ const onSubmit = async (): Promise<void> => {
|
|
|
750
759
|
| API_UI_I_SwitchItem
|
|
751
760
|
| null = null
|
|
752
761
|
|
|
753
|
-
let type: 'network' | 'vmkernel' | 'adapter' = 'network'
|
|
762
|
+
let type: 'network' | 'vmkernel' | 'adapter' | 'new-switch' = 'network'
|
|
754
763
|
|
|
755
764
|
if (wizard.isSelectedScheme(0) || wizard.isSelectedScheme(1)) {
|
|
756
765
|
const vlan = getVlanId(portProperties.value.vlanId)
|
|
@@ -778,7 +787,7 @@ const onSubmit = async (): Promise<void> => {
|
|
|
778
787
|
}
|
|
779
788
|
|
|
780
789
|
if (wizard.isSelectedScheme(4) || wizard.isSelectedScheme(5)) {
|
|
781
|
-
type = 'adapter'
|
|
790
|
+
type = wizard.isSelectedScheme(4) ? 'adapter' : 'new-switch'
|
|
782
791
|
data = addNetworkingFourthOrFifthSchemeDataFunc(
|
|
783
792
|
targetDevice.value.switch,
|
|
784
793
|
wizard.isSelectedScheme(4),
|
|
@@ -462,3 +462,36 @@ export const createFourthSchemeReadyCompleteFunc = (
|
|
|
462
462
|
},
|
|
463
463
|
]
|
|
464
464
|
}
|
|
465
|
+
|
|
466
|
+
export const createFifthSchemeReadyCompleteFunc = (
|
|
467
|
+
targetDevice: UI_I_TargetDevice,
|
|
468
|
+
adapterStatus: UI_I_AdapterStatus,
|
|
469
|
+
localization: UI_I_Localization
|
|
470
|
+
): UI_I_ReadyCompleteData[] => {
|
|
471
|
+
const adapters = [
|
|
472
|
+
...(adapterStatus.active as string[]),
|
|
473
|
+
...(adapterStatus.standby as string[]),
|
|
474
|
+
...(adapterStatus.unused as string[]),
|
|
475
|
+
]
|
|
476
|
+
|
|
477
|
+
return [
|
|
478
|
+
{
|
|
479
|
+
id: 0,
|
|
480
|
+
type: 0,
|
|
481
|
+
rows: [
|
|
482
|
+
{
|
|
483
|
+
name: localization.common.standardSwitch,
|
|
484
|
+
value: '--',
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
name: localization.common.assignedAdapters,
|
|
488
|
+
value: adapters.join(', '),
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
name: localization.common.switchMTU,
|
|
492
|
+
value: targetDevice.mtu?.toString(),
|
|
493
|
+
},
|
|
494
|
+
],
|
|
495
|
+
},
|
|
496
|
+
]
|
|
497
|
+
}
|