bfg-common 1.4.197 → 1.4.199
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 +4 -1
- package/assets/localization/local_en.json +4 -1
- package/assets/localization/local_hy.json +4 -1
- package/assets/localization/local_kk.json +4 -1
- package/assets/localization/local_ru.json +4 -1
- package/assets/localization/local_zh.json +4 -1
- package/components/atoms/DiagramIcon.vue +29 -0
- package/components/common/diagramMain/adapter/AdapterItem.vue +17 -4
- package/components/common/diagramMain/lib/models/interfaces.ts +24 -1
- package/components/common/diagramMain/lib/models/types.ts +7 -2
- package/components/common/diagramMain/lib/utils/utils.ts +331 -278
- package/components/common/diagramMain/modals/editSettings/tabs/NetworkProperties.vue +1 -1
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/ConnectionSettings.vue +1 -1
- package/components/common/wizards/network/add/Add.vue +18 -7
- package/components/common/wizards/network/add/lib/config/steps.ts +464 -464
- package/components/common/wizards/network/add/modals/SelectNetwork.vue +1 -1
- package/components/common/wizards/network/add/modals/SelectStandardSwitch.vue +1 -1
- package/components/common/wizards/network/add/modals/SelectSwitch.vue +1 -1
- package/components/common/wizards/network/add/steps/ConnectionSettings.vue +1 -1
- package/components/common/wizards/network/add/steps/PortProperties.vue +1 -1
- package/package.json +1 -1
- /package/components/common/wizards/network/add/lib/config/{index.ts → config.ts} +0 -0
- /package/components/common/wizards/network/add/lib/utils/{index.ts → utils.ts} +0 -0
|
@@ -2625,6 +2625,9 @@
|
|
|
2625
2625
|
"zabbixVersions": "Zabbix версіі",
|
|
2626
2626
|
"zabbixVersionsDesc": "Калі ласка, абярыце версію сервера Zabbix, на якой вы хочаце ўвайсці: 5.0 або 6.0.",
|
|
2627
2627
|
"logoutConfirmation": "Пацвярджэнне выхаду",
|
|
2628
|
-
"logoutDescription": "Вы ўпэўнены, што хочаце выйсці з Zabbix Server?"
|
|
2628
|
+
"logoutDescription": "Вы ўпэўнены, што хочаце выйсці з Zabbix Server?",
|
|
2629
|
+
"vmDisk": "Дыск ВМ",
|
|
2630
|
+
"vmMemory": "Памяць ВМ",
|
|
2631
|
+
"vmCpu": "Працэсар ВМ"
|
|
2629
2632
|
}
|
|
2630
2633
|
}
|
|
@@ -2629,6 +2629,9 @@
|
|
|
2629
2629
|
"zabbixVersions": "Zabbix Versions",
|
|
2630
2630
|
"zabbixVersionsDesc": "Please choose the Zabbix server version you would like to log in to: 5.0 or 6.0.",
|
|
2631
2631
|
"logoutConfirmation": "Logout Confirmation",
|
|
2632
|
-
"logoutDescription": "Are you sure you want to log out from Zabbix Server?"
|
|
2632
|
+
"logoutDescription": "Are you sure you want to log out from Zabbix Server?",
|
|
2633
|
+
"vmDisk": "VM Disk",
|
|
2634
|
+
"vmMemory": "VM Memory",
|
|
2635
|
+
"vmCpu": "VM Cpu"
|
|
2633
2636
|
}
|
|
2634
2637
|
}
|
|
@@ -2629,6 +2629,9 @@
|
|
|
2629
2629
|
"zabbixVersions": "Zabbix տարբերակները",
|
|
2630
2630
|
"zabbixVersionsDesc": "Խնդրում ենք ընտրել Zabbix սերվերի տարբերակը, որում ցանկանում եք մուտք գործել՝ 5.0 կամ 6.0:",
|
|
2631
2631
|
"logoutConfirmation": "Դուրս գալու հաստատում",
|
|
2632
|
-
"logoutDescription": "Վստա՞հ եք, որ ցանկանում եք դուրս գալ Zabbix սերվերից:"
|
|
2632
|
+
"logoutDescription": "Վստա՞հ եք, որ ցանկանում եք դուրս գալ Zabbix սերվերից:",
|
|
2633
|
+
"vmDisk": "VM սկավառակ",
|
|
2634
|
+
"vmMemory": "VM հիշողություն",
|
|
2635
|
+
"vmCpu": "VM պրոցեսոր"
|
|
2633
2636
|
}
|
|
2634
2637
|
}
|
|
@@ -2628,6 +2628,9 @@
|
|
|
2628
2628
|
"zabbixVersions": "Zabbix нұсқалары",
|
|
2629
2629
|
"zabbixVersionsDesc": "Жүйеге кіргіңіз келетін Zabbix сервер нұсқасын таңдаңыз: 5.0 немесе 6.0.",
|
|
2630
2630
|
"logoutConfirmation": "Шығуды растау",
|
|
2631
|
-
"logoutDescription": "Zabbix серверінен шынымен шыққыңыз келе ме?"
|
|
2631
|
+
"logoutDescription": "Zabbix серверінен шынымен шыққыңыз келе ме?",
|
|
2632
|
+
"vmDisk": "VM дискі",
|
|
2633
|
+
"vmMemory": "VM жады",
|
|
2634
|
+
"vmCpu": "VM Cpu"
|
|
2632
2635
|
}
|
|
2633
2636
|
}
|
|
@@ -2631,6 +2631,9 @@
|
|
|
2631
2631
|
"zabbixVersions": "Версии Забфикса",
|
|
2632
2632
|
"zabbixVersionsDesc": "Пожалуйста, выберите версию сервера Zabbix, на которую вы хотите войти: 5.0 или 6.0.",
|
|
2633
2633
|
"logoutConfirmation": "Подтверждение выхода из системы",
|
|
2634
|
-
"logoutDescription": "Вы уверены, что хотите выйти из Zabbix Server?"
|
|
2634
|
+
"logoutDescription": "Вы уверены, что хотите выйти из Zabbix Server?",
|
|
2635
|
+
"vmDisk": "Диск ВМ",
|
|
2636
|
+
"vmMemory": "Память ВМ",
|
|
2637
|
+
"vmCpu": "Процессор ВМ"
|
|
2635
2638
|
}
|
|
2636
2639
|
}
|
|
@@ -2627,6 +2627,9 @@
|
|
|
2627
2627
|
"zabbixVersions": "Zabbix 版本",
|
|
2628
2628
|
"zabbixVersionsDesc": "请选择您要登录的Zabbix服务器版本:5.0或6.0。",
|
|
2629
2629
|
"logoutConfirmation": "退出确认",
|
|
2630
|
-
"logoutDescription": "您确定要从 Zabbix Server 注销吗?"
|
|
2630
|
+
"logoutDescription": "您确定要从 Zabbix Server 注销吗?",
|
|
2631
|
+
"vmDisk": "虚拟机磁盘",
|
|
2632
|
+
"vmMemory": "虚拟机内存",
|
|
2633
|
+
"vmCpu": "虚拟机CPU"
|
|
2631
2634
|
}
|
|
2632
2635
|
}
|
|
@@ -356,6 +356,35 @@
|
|
|
356
356
|
</g>
|
|
357
357
|
</svg>
|
|
358
358
|
</template>
|
|
359
|
+
<template v-else-if="props.name === 'adapter-error'">
|
|
360
|
+
<svg
|
|
361
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
362
|
+
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
363
|
+
fill="#f84e30"
|
|
364
|
+
version="1.1"
|
|
365
|
+
class="has-solid"
|
|
366
|
+
preserveAspectRatio="xMidYMid meet"
|
|
367
|
+
focusable="false"
|
|
368
|
+
role="img"
|
|
369
|
+
viewBox="3 3 30 30"
|
|
370
|
+
>
|
|
371
|
+
<path
|
|
372
|
+
class="clr-i-outline clr-i-outline-path-1"
|
|
373
|
+
d="M18,6A12,12,0,1,0,30,18,12,12,0,0,0,18,6Zm0,22A10,10,0,1,1,28,18,10,10,0,0,1,18,28Z"
|
|
374
|
+
/>
|
|
375
|
+
<path
|
|
376
|
+
class="clr-i-outline clr-i-outline-path-2"
|
|
377
|
+
d="M18,20.07a1.3,1.3,0,0,1-1.3-1.3v-6a1.3,1.3,0,1,1,2.6,0v6A1.3,1.3,0,0,1,18,20.07Z"
|
|
378
|
+
/>
|
|
379
|
+
<circle
|
|
380
|
+
class="clr-i-outline clr-i-outline-path-3"
|
|
381
|
+
cx="17.95"
|
|
382
|
+
cy="23.02"
|
|
383
|
+
r="1.5"
|
|
384
|
+
/>
|
|
385
|
+
</svg>
|
|
386
|
+
</template>
|
|
387
|
+
<template v-else><span></span></template>
|
|
359
388
|
</template>
|
|
360
389
|
|
|
361
390
|
<script setup lang="ts">
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
</foreignObject>
|
|
41
41
|
|
|
42
42
|
<foreignObject
|
|
43
|
-
v-if="!props.adapter.carrier"
|
|
43
|
+
v-if="!props.adapter.carrier && props.adapter.status !== 'error'"
|
|
44
44
|
data-title="adapter-connection-icon"
|
|
45
45
|
width="18"
|
|
46
46
|
height="18"
|
|
@@ -50,6 +50,17 @@
|
|
|
50
50
|
<atoms-diagram-icon name="adapter-carrier" />
|
|
51
51
|
</foreignObject>
|
|
52
52
|
|
|
53
|
+
<foreignObject
|
|
54
|
+
v-if="props.adapter.status === 'error'"
|
|
55
|
+
data-title="adapter-connection-icon"
|
|
56
|
+
width="15"
|
|
57
|
+
height="15"
|
|
58
|
+
x="447"
|
|
59
|
+
:y="adapterSelectionPosition"
|
|
60
|
+
>
|
|
61
|
+
<atoms-diagram-icon name="adapter-error" />
|
|
62
|
+
</foreignObject>
|
|
63
|
+
|
|
53
64
|
<common-diagram-main-highlights
|
|
54
65
|
data-title="adapter-item-line"
|
|
55
66
|
type="line-orange"
|
|
@@ -76,6 +87,7 @@
|
|
|
76
87
|
</foreignObject>
|
|
77
88
|
|
|
78
89
|
<foreignObject
|
|
90
|
+
v-if="props.adapter.status !== 'error'"
|
|
79
91
|
data-title="adapter-action-icon"
|
|
80
92
|
width="18"
|
|
81
93
|
height="18"
|
|
@@ -97,7 +109,7 @@
|
|
|
97
109
|
</foreignObject>
|
|
98
110
|
|
|
99
111
|
<foreignObject
|
|
100
|
-
v-if="props.adapter.carrier"
|
|
112
|
+
v-if="props.adapter.carrier && props.adapter.status !== 'error'"
|
|
101
113
|
data-title="adapter-second-connected-icon"
|
|
102
114
|
width="18"
|
|
103
115
|
height="18"
|
|
@@ -110,7 +122,7 @@
|
|
|
110
122
|
</foreignObject>
|
|
111
123
|
|
|
112
124
|
<foreignObject
|
|
113
|
-
v-
|
|
125
|
+
v-if="!props.adapter.carrier && props.adapter.status !== 'error'"
|
|
114
126
|
data-title="adapter-second-not-connected-icon"
|
|
115
127
|
width="18"
|
|
116
128
|
height="18"
|
|
@@ -127,6 +139,7 @@
|
|
|
127
139
|
<script setup lang="ts">
|
|
128
140
|
import {
|
|
129
141
|
UI_I_Adapter,
|
|
142
|
+
UI_I_AdapterWithError,
|
|
130
143
|
UI_I_ModalsInitialData,
|
|
131
144
|
UI_I_SelectedAdapter,
|
|
132
145
|
UI_I_SelectedPort,
|
|
@@ -137,7 +150,7 @@ import { adapterPopupFieldsFunc } from '~/components/common/diagramMain/modals/l
|
|
|
137
150
|
import { dataForSelectedAdapterFunc } from '~/components/common/diagramMain/lib/config'
|
|
138
151
|
|
|
139
152
|
const props = defineProps<{
|
|
140
|
-
adapter: UI_I_Adapter & { adapterPosition: number }
|
|
153
|
+
adapter: (UI_I_Adapter | UI_I_AdapterWithError) & { adapterPosition: number }
|
|
141
154
|
selectedPort: UI_I_SelectedPort
|
|
142
155
|
selectedAdapter: UI_I_SelectedAdapter
|
|
143
156
|
networksWithPositions: UI_I_NetworksWithPositions[]
|
|
@@ -41,7 +41,7 @@ export interface UI_I_Adapter {
|
|
|
41
41
|
|
|
42
42
|
export interface UI_I_PhysicalAdapters {
|
|
43
43
|
toggle: boolean
|
|
44
|
-
adapters: UI_I_Adapter[]
|
|
44
|
+
adapters: (UI_I_Adapter | UI_I_AdapterWithError)[]
|
|
45
45
|
}
|
|
46
46
|
export interface UI_I_MainRectHeights {
|
|
47
47
|
networksHeight: number
|
|
@@ -341,6 +341,11 @@ export interface UI_I_AdapterStatus {
|
|
|
341
341
|
inherit?: boolean
|
|
342
342
|
}
|
|
343
343
|
|
|
344
|
+
export interface UI_I_AdapterNameWithStatus {
|
|
345
|
+
adapterName: string
|
|
346
|
+
status: string
|
|
347
|
+
}
|
|
348
|
+
|
|
344
349
|
export interface UI_I_SwitchPropertiesFields {
|
|
345
350
|
mtu: number
|
|
346
351
|
num_ports: string
|
|
@@ -445,6 +450,18 @@ export interface UI_I_ModalsInitialData<T = string | number | boolean> {
|
|
|
445
450
|
tcpIp?: string
|
|
446
451
|
}
|
|
447
452
|
|
|
453
|
+
export interface UI_I_AdapterWithError {
|
|
454
|
+
name: string
|
|
455
|
+
id: string
|
|
456
|
+
testId: string
|
|
457
|
+
fullName: string
|
|
458
|
+
state: UI_I_State
|
|
459
|
+
carrier: boolean
|
|
460
|
+
networks: string[]
|
|
461
|
+
switch: string
|
|
462
|
+
status: string
|
|
463
|
+
}
|
|
464
|
+
|
|
448
465
|
export interface UI_I_SwitchAdapterItem {
|
|
449
466
|
name: string
|
|
450
467
|
id: string
|
|
@@ -466,6 +483,12 @@ export interface UI_I_SwitchAdapterItem {
|
|
|
466
483
|
mac: string
|
|
467
484
|
}
|
|
468
485
|
|
|
486
|
+
export interface UI_I_AvailableAdapters {
|
|
487
|
+
activeAdapters: string[]
|
|
488
|
+
standbyAdapters: string[]
|
|
489
|
+
unusedAdapters: string[]
|
|
490
|
+
}
|
|
491
|
+
|
|
469
492
|
export interface API_UI_I_SwitchAdapterItem {
|
|
470
493
|
id: string
|
|
471
494
|
state: UI_I_State
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type {
|
|
2
|
+
UI_I_Adapter,
|
|
3
|
+
UI_I_AdapterWithError,
|
|
4
|
+
} from '~/components/common/diagramMain/lib/models/interfaces'
|
|
2
5
|
|
|
3
6
|
export type UI_T_AdapterStatusNames = 'active' | 'standby' | 'unused'
|
|
4
7
|
export type UI_T_PropertiesFieldName = 'vlanId' | 'networkLabel'
|
|
@@ -13,4 +16,6 @@ export type UI_T_LoadBalancingMode =
|
|
|
13
16
|
export type UI_T_IYN = 'inherit' | 'yes' | 'no'
|
|
14
17
|
export type UI_T_Carier = 'inherit' | 'carier' | 'beakon'
|
|
15
18
|
|
|
16
|
-
export type UI_T_Adapters = UI_I_Adapter & {
|
|
19
|
+
export type UI_T_Adapters = (UI_I_Adapter | UI_I_AdapterWithError) & {
|
|
20
|
+
adapterPosition: number
|
|
21
|
+
}
|