bfg-common 1.3.205 → 1.3.207
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/assets/localization/local_be.json +2 -1
- package/assets/localization/local_en.json +2 -1
- package/assets/localization/local_hy.json +2341 -2340
- package/assets/localization/local_kk.json +2 -1
- package/assets/localization/local_ru.json +2 -1
- package/assets/localization/local_zh.json +2340 -2339
- package/components/atoms/alert/Alert.vue +95 -89
- package/components/atoms/alert/Notification.vue +170 -167
- package/components/atoms/alert/lib/models/types.ts +5 -1
- package/components/common/adapterManager/AdapterManager.vue +7 -5
- package/components/common/adapterManager/AddAdapterModal.vue +5 -6
- package/components/common/diagramMain/DiagramMain.vue +5 -4
- package/components/common/diagramMain/lib/models/interfaces.ts +86 -41
- package/components/common/diagramMain/modals/ManagePhysicalAdaptersModal.vue +5 -3
- package/components/common/diagramMain/modals/editSettings/EditSettings.vue +3 -2
- package/components/common/diagramMain/modals/editSettings/EditSettingsModal.vue +8 -5
- package/components/common/diagramMain/modals/editSettings/tabs/TeamingFailover.vue +6 -3
- package/components/common/diagramMain/modals/lib/config/adapterModal.ts +11 -5
- package/components/common/wizards/network/add/Add.vue +567 -566
- package/components/common/wizards/network/add/steps/CreateStandardSwitch.vue +6 -3
- package/lib/models/enums.ts +10 -4
- package/package.json +1 -1
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { UI_I_State, UI_I_ListIndex } from '~/lib/models/interfaces'
|
|
2
|
+
import { UI_E_Kind, UI_E_State } from '~/lib/models/enums'
|
|
1
3
|
import { UI_E_NetworkType } from './enums'
|
|
2
4
|
import { UI_T_Adapters } from '~/components/common/diagramMain/lib/models/types'
|
|
3
5
|
import {
|
|
@@ -15,19 +17,23 @@ export interface UI_I_Port {
|
|
|
15
17
|
}
|
|
16
18
|
|
|
17
19
|
export interface UI_I_Adapter {
|
|
18
|
-
id: string
|
|
19
20
|
name: string
|
|
21
|
+
id: string
|
|
20
22
|
fullName: string
|
|
23
|
+
state: UI_I_State
|
|
21
24
|
adapter: string
|
|
22
25
|
pciAddress: string
|
|
23
26
|
driver: string
|
|
24
|
-
carrier
|
|
25
|
-
speed
|
|
27
|
+
carrier?: boolean
|
|
28
|
+
speed?: number
|
|
26
29
|
duplex: string
|
|
27
|
-
networks:
|
|
28
|
-
srIov
|
|
29
|
-
cdp
|
|
30
|
-
lldp
|
|
30
|
+
networks: string[]
|
|
31
|
+
srIov?: boolean
|
|
32
|
+
cdp?: boolean
|
|
33
|
+
lldp?: boolean
|
|
34
|
+
managed?: boolean
|
|
35
|
+
switch?: string
|
|
36
|
+
mac: string
|
|
31
37
|
status: string
|
|
32
38
|
}
|
|
33
39
|
|
|
@@ -97,7 +103,6 @@ export interface UI_I_NetworkSummaryPortletListItem<
|
|
|
97
103
|
initialValue: UI_I_OverrideValue<T>
|
|
98
104
|
}
|
|
99
105
|
|
|
100
|
-
|
|
101
106
|
export interface UI_I_NetworkInfo {
|
|
102
107
|
average_bw: number
|
|
103
108
|
burst_size: number
|
|
@@ -291,6 +296,7 @@ export interface UI_I_AdapterStatus {
|
|
|
291
296
|
standby?: string[]
|
|
292
297
|
unused?: string[]
|
|
293
298
|
connected?: string[]
|
|
299
|
+
inherit?: boolean
|
|
294
300
|
}
|
|
295
301
|
|
|
296
302
|
export interface UI_I_SwitchPropertiesFields {
|
|
@@ -345,7 +351,7 @@ export interface UI_I_ModalsInitialData<T = string | number | boolean> {
|
|
|
345
351
|
carrier?: boolean
|
|
346
352
|
speed?: number
|
|
347
353
|
duplex?: string
|
|
348
|
-
networks?: null
|
|
354
|
+
networks?: string[] | null
|
|
349
355
|
srIov?: boolean
|
|
350
356
|
cdp?: boolean
|
|
351
357
|
lldp?: boolean
|
|
@@ -379,41 +385,42 @@ export interface UI_I_ModalsInitialData<T = string | number | boolean> {
|
|
|
379
385
|
|
|
380
386
|
export interface UI_I_SwitchAdapterItem {
|
|
381
387
|
name: string
|
|
388
|
+
id: string
|
|
389
|
+
fullName: string
|
|
390
|
+
state: UI_I_State
|
|
382
391
|
adapter: string
|
|
383
392
|
pciAddress: string
|
|
384
393
|
driver: string
|
|
385
|
-
carrier
|
|
386
|
-
speed
|
|
394
|
+
carrier?: boolean
|
|
395
|
+
speed?: number
|
|
387
396
|
duplex: string
|
|
388
|
-
networks:
|
|
389
|
-
srIov
|
|
390
|
-
cdp
|
|
391
|
-
lldp
|
|
397
|
+
networks: string[]
|
|
398
|
+
srIov?: boolean
|
|
399
|
+
cdp?: boolean
|
|
400
|
+
lldp?: boolean
|
|
401
|
+
managed?: boolean
|
|
402
|
+
switch?: string
|
|
403
|
+
mac: string
|
|
392
404
|
}
|
|
405
|
+
|
|
393
406
|
export interface API_UI_I_SwitchAdapterItem {
|
|
394
|
-
|
|
407
|
+
id: string
|
|
408
|
+
state: UI_I_State
|
|
409
|
+
index?: UI_I_ListIndex
|
|
395
410
|
adapter: string
|
|
396
411
|
pci_addr: string
|
|
397
412
|
driver: string
|
|
398
|
-
carrier
|
|
399
|
-
speed
|
|
413
|
+
carrier?: boolean
|
|
414
|
+
speed?: number
|
|
400
415
|
duplex: string
|
|
401
|
-
networks
|
|
402
|
-
sr_iov
|
|
403
|
-
cdp
|
|
404
|
-
lldp
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
totalPages: number
|
|
410
|
-
items: UI_I_SwitchAdapterItem[]
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
export interface API_UI_I_SwitchAdapters {
|
|
414
|
-
total_items: number
|
|
415
|
-
total_pages: number
|
|
416
|
-
items: API_UI_I_SwitchAdapterItem[]
|
|
416
|
+
networks?: string[]
|
|
417
|
+
sr_iov?: boolean
|
|
418
|
+
cdp?: boolean
|
|
419
|
+
lldp?: boolean
|
|
420
|
+
managed?: boolean
|
|
421
|
+
name: string
|
|
422
|
+
switch?: string
|
|
423
|
+
mac: string
|
|
417
424
|
}
|
|
418
425
|
|
|
419
426
|
export interface UI_I_TeamingAndFailoverTemplate {
|
|
@@ -466,6 +473,10 @@ export interface API_UI_I_Security {
|
|
|
466
473
|
forged_transmits: UI_E_IYNOption
|
|
467
474
|
mac_change: UI_E_IYNOption
|
|
468
475
|
promiscuous: UI_E_IYNOption
|
|
476
|
+
// TODO Question about those
|
|
477
|
+
promiscuous_computed?: UI_E_IYNOption
|
|
478
|
+
mac_change_computed?: UI_E_IYNOption
|
|
479
|
+
forged_transmits_computed?: UI_E_IYNOption
|
|
469
480
|
}
|
|
470
481
|
export interface API_UI_I_Shaping {
|
|
471
482
|
enabled?: boolean
|
|
@@ -475,13 +486,7 @@ export interface API_UI_I_Shaping {
|
|
|
475
486
|
peak_bw?: number
|
|
476
487
|
}
|
|
477
488
|
export interface API_UI_I_State {
|
|
478
|
-
state:
|
|
479
|
-
// enum State {
|
|
480
|
-
// UNKNOWN = 0;
|
|
481
|
-
// OK = 1;
|
|
482
|
-
// WARNING = 2;
|
|
483
|
-
// ERROR = 3;
|
|
484
|
-
// }
|
|
489
|
+
state: UI_E_State
|
|
485
490
|
errors?: string[]
|
|
486
491
|
}
|
|
487
492
|
|
|
@@ -490,6 +495,11 @@ export interface API_UI_I_Teaming {
|
|
|
490
495
|
link_detection_mode: UI_E_ICBLinkDetectionMode
|
|
491
496
|
notify_switches: UI_E_IYNOption
|
|
492
497
|
failback: UI_E_IYNOption
|
|
498
|
+
// TODO Question about those
|
|
499
|
+
mode_computed?: UI_E_IBSTLoadBalancingMode
|
|
500
|
+
link_detection_mode_computed?: UI_E_ICBLinkDetectionMode
|
|
501
|
+
notify_switches_computed?: UI_E_IYNOption
|
|
502
|
+
failback_computed?: UI_E_IYNOption
|
|
493
503
|
}
|
|
494
504
|
|
|
495
505
|
interface API_UI_I_ListIndex {
|
|
@@ -576,3 +586,38 @@ export interface UI_I_PortToggleFlag {
|
|
|
576
586
|
value: boolean
|
|
577
587
|
id: string
|
|
578
588
|
}
|
|
589
|
+
|
|
590
|
+
// TODO today start
|
|
591
|
+
export interface API_UI_I_NetworkPortInfo {
|
|
592
|
+
id: string
|
|
593
|
+
name: string
|
|
594
|
+
mac: string
|
|
595
|
+
adapter: string
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
export interface API_UI_I_NetworkVMList {
|
|
599
|
+
id: string
|
|
600
|
+
name: string
|
|
601
|
+
ports: API_UI_I_NetworkPortInfo[]
|
|
602
|
+
is_active: boolean
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
export interface API_UI_I_Network {
|
|
606
|
+
id: string
|
|
607
|
+
name: string
|
|
608
|
+
state: UI_I_State
|
|
609
|
+
index: UI_I_ListIndex
|
|
610
|
+
vlan: number
|
|
611
|
+
net_bridge: string
|
|
612
|
+
kind: UI_E_Kind
|
|
613
|
+
switch: string // vswitch_name
|
|
614
|
+
vms_count: number // vms_amount
|
|
615
|
+
active_ports: number
|
|
616
|
+
nics_overrided: boolean
|
|
617
|
+
vm_list?: API_UI_I_NetworkVMList[]
|
|
618
|
+
sysx?: UI_I_Sysx
|
|
619
|
+
security: API_UI_I_Security
|
|
620
|
+
shaping: API_UI_I_Shaping
|
|
621
|
+
teaming: API_UI_I_Teaming
|
|
622
|
+
nics: UI_I_AdapterStatus
|
|
623
|
+
}
|
|
@@ -49,12 +49,14 @@
|
|
|
49
49
|
</template>
|
|
50
50
|
|
|
51
51
|
<script setup lang="ts">
|
|
52
|
-
import {
|
|
52
|
+
import {
|
|
53
|
+
UI_I_Localization,
|
|
54
|
+
UI_I_ItemsWithTotalCounts,
|
|
55
|
+
} from '~/lib/models/interfaces'
|
|
53
56
|
import {
|
|
54
57
|
UI_I_Adapter,
|
|
55
58
|
UI_I_AdapterStatus,
|
|
56
59
|
UI_I_SwitchAdapterItem,
|
|
57
|
-
UI_I_SwitchAdapters,
|
|
58
60
|
} from '~/components/common/diagramMain/lib/models/interfaces'
|
|
59
61
|
|
|
60
62
|
// Props from up
|
|
@@ -67,7 +69,7 @@ const props = withDefaults(
|
|
|
67
69
|
height: string
|
|
68
70
|
freeAdapters: UI_I_Adapter[]
|
|
69
71
|
adapterStatus: UI_I_AdapterStatus
|
|
70
|
-
adapters:
|
|
72
|
+
adapters: UI_I_ItemsWithTotalCounts<UI_I_SwitchAdapterItem>
|
|
71
73
|
initialAdapterStatus: UI_I_AdapterStatus
|
|
72
74
|
isDarkMode?: boolean
|
|
73
75
|
}>(),
|
|
@@ -92,10 +92,11 @@
|
|
|
92
92
|
</template>
|
|
93
93
|
|
|
94
94
|
<script setup lang="ts">
|
|
95
|
+
import { UI_I_ItemsWithTotalCounts } from '~/lib/models/interfaces'
|
|
95
96
|
import {
|
|
96
97
|
UI_I_AdapterStatus,
|
|
97
98
|
UI_I_ModalsInitialData,
|
|
98
|
-
|
|
99
|
+
UI_I_SwitchAdapterItem,
|
|
99
100
|
UI_I_SecurityFields,
|
|
100
101
|
UI_I_TrafficShapingFields,
|
|
101
102
|
UI_I_TeamingFailoverFields,
|
|
@@ -116,7 +117,7 @@ const props = withDefaults(
|
|
|
116
117
|
text: string
|
|
117
118
|
}[]
|
|
118
119
|
initialData?: UI_I_ModalsInitialData
|
|
119
|
-
adapters:
|
|
120
|
+
adapters: UI_I_ItemsWithTotalCounts<UI_I_SwitchAdapterItem>
|
|
120
121
|
flagSendData: boolean
|
|
121
122
|
isDarkMode?: boolean
|
|
122
123
|
}>(),
|
|
@@ -36,11 +36,14 @@
|
|
|
36
36
|
</template>
|
|
37
37
|
|
|
38
38
|
<script setup lang="ts">
|
|
39
|
-
import {
|
|
39
|
+
import {
|
|
40
|
+
UI_I_Localization,
|
|
41
|
+
UI_I_ItemsWithTotalCounts,
|
|
42
|
+
} from '~/lib/models/interfaces'
|
|
40
43
|
import {
|
|
41
44
|
UI_I_ModalsInitialData,
|
|
42
45
|
UI_I_EditFieldsData,
|
|
43
|
-
|
|
46
|
+
UI_I_SwitchAdapterItem,
|
|
44
47
|
} from '~/components/common/diagramMain/lib/models/interfaces'
|
|
45
48
|
|
|
46
49
|
// Props from up
|
|
@@ -55,7 +58,7 @@ interface UI_I_PortViewSettingsModalProps {
|
|
|
55
58
|
text: string
|
|
56
59
|
}[]
|
|
57
60
|
initialData?: UI_I_ModalsInitialData
|
|
58
|
-
adapters?:
|
|
61
|
+
adapters?: UI_I_ItemsWithTotalCounts<UI_I_SwitchAdapterItem>
|
|
59
62
|
isDarkMode: boolean
|
|
60
63
|
}
|
|
61
64
|
|
|
@@ -63,8 +66,8 @@ const props = withDefaults(defineProps<UI_I_PortViewSettingsModalProps>(), {
|
|
|
63
66
|
initialData: () => ({}),
|
|
64
67
|
title: 'Network',
|
|
65
68
|
adapters: () => ({
|
|
66
|
-
|
|
67
|
-
|
|
69
|
+
total_pages: 0,
|
|
70
|
+
total_items: 0,
|
|
68
71
|
items: [],
|
|
69
72
|
}),
|
|
70
73
|
})
|
|
@@ -93,10 +93,13 @@
|
|
|
93
93
|
</template>
|
|
94
94
|
|
|
95
95
|
<script setup lang="ts">
|
|
96
|
-
import {
|
|
96
|
+
import {
|
|
97
|
+
UI_I_Localization,
|
|
98
|
+
UI_I_ItemsWithTotalCounts,
|
|
99
|
+
} from '~/lib/models/interfaces'
|
|
97
100
|
import {
|
|
98
101
|
UI_I_TeamingFailoverFields,
|
|
99
|
-
|
|
102
|
+
UI_I_SwitchAdapterItem,
|
|
100
103
|
UI_I_ModalsInitialData,
|
|
101
104
|
UI_I_TeamingAndFailoverTemplate,
|
|
102
105
|
UI_I_AdapterStatus,
|
|
@@ -112,7 +115,7 @@ import {
|
|
|
112
115
|
const props = withDefaults(
|
|
113
116
|
defineProps<{
|
|
114
117
|
initialData?: UI_I_ModalsInitialData
|
|
115
|
-
adapters:
|
|
118
|
+
adapters: UI_I_ItemsWithTotalCounts<UI_I_SwitchAdapterItem>
|
|
116
119
|
adapterStatus: UI_I_AdapterStatus
|
|
117
120
|
isSwitch: boolean
|
|
118
121
|
isDarkMode?: boolean
|
|
@@ -63,17 +63,20 @@ export const adapterViewSettingsFunc = (
|
|
|
63
63
|
name: localization.actualSpeedDuplex,
|
|
64
64
|
value: initialData.carrier
|
|
65
65
|
? `${initialData.speed} ${localization.gbitS}, ${initialData.duplex} Duplex`
|
|
66
|
-
:
|
|
66
|
+
: localization.down,
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
69
|
name: localization.configuredSpeedDuplex,
|
|
70
70
|
value: initialData.carrier
|
|
71
71
|
? `${initialData.speed} ${localization.gbitS}, ${initialData.duplex} Duplex`
|
|
72
|
-
:
|
|
72
|
+
: localization.autoNegotiate,
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
75
|
name: localization.networks,
|
|
76
|
-
value:
|
|
76
|
+
value:
|
|
77
|
+
initialData.networks && initialData.networks?.length > 0
|
|
78
|
+
? initialData.networks
|
|
79
|
+
: localization.noNetworks,
|
|
77
80
|
},
|
|
78
81
|
],
|
|
79
82
|
},
|
|
@@ -102,10 +105,13 @@ export const adapterViewSettingsFunc = (
|
|
|
102
105
|
},
|
|
103
106
|
]
|
|
104
107
|
|
|
105
|
-
export const adapterPopupFieldsFunc = (
|
|
108
|
+
export const adapterPopupFieldsFunc = (
|
|
109
|
+
localization: UI_I_Localization,
|
|
110
|
+
id: string
|
|
111
|
+
) => [
|
|
106
112
|
{
|
|
107
113
|
text: localization.viewSettings,
|
|
108
114
|
value: 'adapter-view-settings',
|
|
109
|
-
testId: `adapter-view-${id}
|
|
115
|
+
testId: `adapter-view-${id}`,
|
|
110
116
|
},
|
|
111
117
|
]
|