bfg-common 1.3.207 → 1.3.208
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/wizards/network/add/Add.vue +14 -5
- package/components/common/wizards/network/add/lib/config/index.ts +1 -0
- package/components/common/wizards/network/add/lib/config/steps.ts +50 -87
- package/components/common/wizards/network/add/steps/SelectedTargetDevice.vue +8 -1
- package/package.json +1 -1
|
@@ -142,6 +142,7 @@ import {
|
|
|
142
142
|
createFirstSchemeReadyCompleteFunc,
|
|
143
143
|
createSecondSchemeReadyCompleteFunc,
|
|
144
144
|
createThirdSchemeReadyCompleteFunc,
|
|
145
|
+
createFourthSchemeReadyCompleteFunc,
|
|
145
146
|
stepsSchemeInitial,
|
|
146
147
|
stepsFunc,
|
|
147
148
|
connectionSettingsInitial,
|
|
@@ -424,6 +425,15 @@ watch(
|
|
|
424
425
|
addedAdapters.value,
|
|
425
426
|
localization.value
|
|
426
427
|
)
|
|
428
|
+
return
|
|
429
|
+
}
|
|
430
|
+
if (wizard.isSelectedScheme(4)) {
|
|
431
|
+
readyCompleteFields.value = createFourthSchemeReadyCompleteFunc(
|
|
432
|
+
targetDevice.value.switch,
|
|
433
|
+
props.diagramsData,
|
|
434
|
+
adapterStatus.value,
|
|
435
|
+
localization.value
|
|
436
|
+
)
|
|
427
437
|
}
|
|
428
438
|
}
|
|
429
439
|
)
|
|
@@ -481,7 +491,7 @@ const checkFinal = async (): Promise<UI_I_ArbitraryObject<string>> => {
|
|
|
481
491
|
| UI_I_AddNetworkingSecondOrThirdSchemeDataSend
|
|
482
492
|
| UI_I_AddNetworkingFourthOrFifthSchemeDataSend
|
|
483
493
|
|
|
484
|
-
let type: 'network' | 'vmkernel'
|
|
494
|
+
let type: 'network' | 'vmkernel' | 'adapter'
|
|
485
495
|
|
|
486
496
|
if (wizard.isSelectedScheme(0) || wizard.isSelectedScheme(1)) {
|
|
487
497
|
const vlan = getVlanId(portProperties.value.vlanId)
|
|
@@ -521,7 +531,7 @@ const checkFinal = async (): Promise<UI_I_ArbitraryObject<string>> => {
|
|
|
521
531
|
targetDevice.value.mtu
|
|
522
532
|
)
|
|
523
533
|
|
|
524
|
-
type = '
|
|
534
|
+
type = 'adapter'
|
|
525
535
|
}
|
|
526
536
|
|
|
527
537
|
return new Promise((resolve, _reject) =>
|
|
@@ -702,7 +712,7 @@ const onSubmit = async (): Promise<void> => {
|
|
|
702
712
|
| UI_I_AddNetworkingZeroOrFirstSchemeDataSend
|
|
703
713
|
| UI_I_AddNetworkingSecondOrThirdSchemeDataSend
|
|
704
714
|
| null = null
|
|
705
|
-
let type: 'network' | 'vmkernel' = 'network'
|
|
715
|
+
let type: 'network' | 'vmkernel' | 'adapter' = 'network'
|
|
706
716
|
|
|
707
717
|
if (wizard.isSelectedScheme(0) || wizard.isSelectedScheme(1)) {
|
|
708
718
|
const vlan = getVlanId(portProperties.value.vlanId)
|
|
@@ -730,6 +740,7 @@ const onSubmit = async (): Promise<void> => {
|
|
|
730
740
|
}
|
|
731
741
|
|
|
732
742
|
if (wizard.isSelectedScheme(4) || wizard.isSelectedScheme(5)) {
|
|
743
|
+
type = 'adapter'
|
|
733
744
|
sendData = addNetworkingFourthOrFifthSchemeDataFunc(
|
|
734
745
|
targetDevice.value.switch,
|
|
735
746
|
wizard.isSelectedScheme(4),
|
|
@@ -737,8 +748,6 @@ const onSubmit = async (): Promise<void> => {
|
|
|
737
748
|
props.diagramsData,
|
|
738
749
|
targetDevice.value.mtu
|
|
739
750
|
)
|
|
740
|
-
|
|
741
|
-
type = 'adapter'
|
|
742
751
|
}
|
|
743
752
|
|
|
744
753
|
sendData &&
|
|
@@ -7,6 +7,11 @@ import {
|
|
|
7
7
|
UI_I_ReadyCompleteFirstColumn,
|
|
8
8
|
UI_I_TargetDevice,
|
|
9
9
|
} from '~/components/common/wizards/network/add/lib/models/interfaces'
|
|
10
|
+
import {
|
|
11
|
+
UI_I_DiagramData,
|
|
12
|
+
UI_I_AdapterStatus,
|
|
13
|
+
UI_I_Adapter,
|
|
14
|
+
} from '~/components/common/diagramMain/lib/models/interfaces'
|
|
10
15
|
import { UI_E_ValidationFields } from '~/components/common/wizards/network/add/lib/models/enums'
|
|
11
16
|
import { UI_I_WizardStep } from '~/components/atoms/wizard/lib/models/interfaces'
|
|
12
17
|
import { UI_E_WIZARD_STATUS } from '~/components/atoms/wizard/lib/models/enums'
|
|
@@ -395,91 +400,49 @@ export const createFirstSchemeReadyCompleteFunc = (
|
|
|
395
400
|
addedAdapters
|
|
396
401
|
)
|
|
397
402
|
|
|
398
|
-
|
|
403
|
+
export const createFourthSchemeReadyCompleteFunc = (
|
|
404
|
+
switchId: string,
|
|
405
|
+
diagramsData: UI_I_DiagramData[],
|
|
406
|
+
adapterStatus: UI_I_AdapterStatus,
|
|
407
|
+
localization: UI_I_Localization
|
|
408
|
+
): UI_I_ReadyCompleteData[] => {
|
|
409
|
+
const adapters = [
|
|
410
|
+
...(adapterStatus.active as string[]),
|
|
411
|
+
...(adapterStatus.standby as string[]),
|
|
412
|
+
...(adapterStatus.unused as string[]),
|
|
413
|
+
]
|
|
414
|
+
|
|
415
|
+
const switchData: UI_I_DiagramData | undefined = diagramsData.find(
|
|
416
|
+
(diagram: UI_I_DiagramData) => diagram.id === switchId
|
|
417
|
+
)
|
|
418
|
+
|
|
419
|
+
if (!switchData) {
|
|
420
|
+
return []
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
const existing: string[] =
|
|
424
|
+
switchData.physicalAdapters?.adapters.map(
|
|
425
|
+
(adapter: UI_I_Adapter) => adapter.id
|
|
426
|
+
) || []
|
|
427
|
+
|
|
428
|
+
const assignedAdapters: string[] = adapters.filter(
|
|
429
|
+
(adapterId: string) => !existing.includes(adapterId)
|
|
430
|
+
)
|
|
399
431
|
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
// {
|
|
418
|
-
// name: 'vMotion',
|
|
419
|
-
// value: 'Disabled',
|
|
420
|
-
// },
|
|
421
|
-
// {
|
|
422
|
-
// name: 'Provisioning',
|
|
423
|
-
// value: 'Disabled',
|
|
424
|
-
// },
|
|
425
|
-
// {
|
|
426
|
-
// name: 'Fault Tolerance logging',
|
|
427
|
-
// value: 'Disabled',
|
|
428
|
-
// },
|
|
429
|
-
// {
|
|
430
|
-
// name: 'Management',
|
|
431
|
-
// value: 'Disabled',
|
|
432
|
-
// },
|
|
433
|
-
// {
|
|
434
|
-
// name: 'Iridium Replication',
|
|
435
|
-
// value: 'Disabled',
|
|
436
|
-
// },
|
|
437
|
-
// {
|
|
438
|
-
// name: 'Iridium Replication NFC',
|
|
439
|
-
// value: 'Disabled',
|
|
440
|
-
// },
|
|
441
|
-
// {
|
|
442
|
-
// name: 'vSAN',
|
|
443
|
-
// value: 'Disabled',
|
|
444
|
-
// },
|
|
445
|
-
// {
|
|
446
|
-
// name: 'Iridium Backup NFC',
|
|
447
|
-
// value: 'Disabled',
|
|
448
|
-
// },
|
|
449
|
-
// {
|
|
450
|
-
// name: 'NVMe over TCP',
|
|
451
|
-
// value: 'Disabled',
|
|
452
|
-
// },
|
|
453
|
-
// {
|
|
454
|
-
// name: 'NVMe over RDMA',
|
|
455
|
-
// value: 'Disabled',
|
|
456
|
-
// },
|
|
457
|
-
// ],
|
|
458
|
-
// },
|
|
459
|
-
// {
|
|
460
|
-
// title: 'NIC settings',
|
|
461
|
-
// id: 1,
|
|
462
|
-
// type: 0,
|
|
463
|
-
// rows: [
|
|
464
|
-
// {
|
|
465
|
-
// name: 'MTU',
|
|
466
|
-
// value: '1500',
|
|
467
|
-
// },
|
|
468
|
-
// {
|
|
469
|
-
// name: 'TCP/IP stack',
|
|
470
|
-
// value: 'Default',
|
|
471
|
-
// },
|
|
472
|
-
// ],
|
|
473
|
-
// },
|
|
474
|
-
// {
|
|
475
|
-
// title: 'IPv4 settings',
|
|
476
|
-
// id: 2,
|
|
477
|
-
// type: 0,
|
|
478
|
-
// rows: [
|
|
479
|
-
// {
|
|
480
|
-
// name: 'DHCP',
|
|
481
|
-
// value: 'Enabled',
|
|
482
|
-
// },
|
|
483
|
-
// ],
|
|
484
|
-
// },
|
|
485
|
-
// ]
|
|
432
|
+
return [
|
|
433
|
+
{
|
|
434
|
+
id: 0,
|
|
435
|
+
type: 0,
|
|
436
|
+
rows: [
|
|
437
|
+
{
|
|
438
|
+
name: localization.standardSwitch,
|
|
439
|
+
value: switchId,
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
name: localization.assignedAdapters,
|
|
443
|
+
value: assignedAdapters.join(', '),
|
|
444
|
+
},
|
|
445
|
+
],
|
|
446
|
+
},
|
|
447
|
+
]
|
|
448
|
+
}
|