bfg-common 1.5.487 → 1.5.489
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/CODE_STYLE.md +109 -109
- package/assets/img/icons/icons-sprite-dark-3.svg +227 -227
- package/assets/img/icons/icons-sprite-dark-5.svg +488 -488
- package/assets/img/icons/icons-sprite-light-3.svg +227 -227
- package/assets/img/icons/icons-sprite-light-5.svg +488 -488
- package/assets/localization/local_be.json +7 -1
- package/assets/localization/local_en.json +17 -11
- package/assets/localization/local_hy.json +7 -1
- package/assets/localization/local_kk.json +7 -1
- package/assets/localization/local_ru.json +7 -1
- package/assets/localization/local_zh.json +7 -1
- package/components/atoms/TheIcon3.vue +50 -50
- package/components/atoms/collapse/CollapseNav.vue +170 -170
- package/components/atoms/perPage/PerPage.vue +58 -58
- package/components/atoms/table/dataGrid/DataGridPagination.vue +97 -97
- package/components/atoms/table/dataGrid/lib/config/settingsTable.ts +94 -94
- package/components/atoms/table/dataGrid/lib/utils/export.ts +16 -16
- package/components/common/adapterManager/AdapterManager.vue +189 -545
- package/components/common/adapterManager/AdapterManagerNew.vue +300 -0
- package/components/common/adapterManager/AdapterManagerOld.vue +498 -0
- package/components/common/adapterManager/addAdapterModal/AddAdapterModal.vue +70 -0
- package/components/common/adapterManager/addAdapterModal/AddAdapterModalNew.vue +77 -0
- package/components/common/adapterManager/{AddAdapterModal.vue → addAdapterModal/AddAdapterModalOld.vue} +16 -46
- package/components/common/adapterManager/addAdapterWarningModal/AddAdapterWarningModal.vue +32 -0
- package/components/common/adapterManager/addAdapterWarningModal/AddAdapterWarningModalNew.vue +38 -0
- package/components/common/adapterManager/{AddAdapterWarningModal.vue → addAdapterWarningModal/AddAdapterWarningModalOld.vue} +5 -14
- package/components/common/adapterManager/noActiveAdaptersModal/NoActiveAdaptersModal.vue +31 -0
- package/components/common/adapterManager/noActiveAdaptersModal/NoActiveAdaptersModalNew.vue +34 -0
- package/components/common/adapterManager/{NoActiveAdaptersModal.vue → noActiveAdaptersModal/NoActiveAdaptersModalOld.vue} +2 -6
- package/components/common/adapterManager/noConnectedActiveAdaptersModal/NoConnectedActiveAdaptersModal.vue +31 -0
- package/components/common/adapterManager/noConnectedActiveAdaptersModal/NoConnectedActiveAdaptersModalNew.vue +34 -0
- package/components/common/adapterManager/{NoConnectedActiveAdaptersModal.vue → noConnectedActiveAdaptersModal/NoConnectedActiveAdaptersModalOld.vue} +2 -6
- package/components/common/adapterManager/ui/actions/bar/Bar.vue +57 -0
- package/components/common/adapterManager/ui/actions/bar/BarNew.vue +38 -0
- package/components/common/adapterManager/ui/actions/moveDownAdapterButton/MoveDownAdapterButton.vue +28 -0
- package/components/common/adapterManager/ui/actions/moveDownAdapterButton/MoveDownAdapterButtonNew.vue +75 -0
- package/components/common/adapterManager/ui/actions/{MoveDownAdapterButton.vue → moveDownAdapterButton/MoveDownAdapterButtonOld.vue} +3 -9
- package/components/common/adapterManager/ui/actions/moveUpAdapterButton/MoveUpAdapterButton.vue +28 -0
- package/components/common/adapterManager/ui/actions/moveUpAdapterButton/MoveUpAdapterButtonNew.vue +76 -0
- package/components/common/adapterManager/ui/actions/{MoveUpAdapterButton.vue → moveUpAdapterButton/MoveUpAdapterButtonOld.vue} +3 -9
- package/components/common/adapterManager/ui/noSelectedAdapter/NoSelectedAdapter.vue +24 -0
- package/components/common/adapterManager/ui/noSelectedAdapter/NoSelectedAdapterNew.vue +13 -0
- package/components/common/adapterManager/ui/secondTitle/SecondTitle.vue +31 -0
- package/components/common/adapterManager/ui/secondTitle/SecondTitleNew.vue +36 -0
- package/components/common/adapterManager/ui/{SecondTitle.vue → secondTitle/SecondTitleOld.vue} +0 -1
- package/components/common/adapterManager/ui/table/Table.vue +59 -133
- package/components/common/adapterManager/ui/table/TableNew.vue +136 -0
- package/components/common/adapterManager/ui/table/TableOld.vue +141 -0
- package/components/common/adapterManager/ui/table/adapters/Adapters.vue +44 -0
- package/components/common/adapterManager/ui/table/adapters/AdaptersNew.vue +153 -0
- package/components/common/adapterManager/ui/table/{Adapters.vue → adapters/AdaptersOld.vue} +5 -10
- package/components/common/adapterManager/ui/table/header/Header.vue +57 -0
- package/components/common/adapterManager/ui/table/header/HeaderNew.vue +77 -0
- package/components/common/adapterManager/ui/table/{Header.vue → header/HeaderOld.vue} +3 -20
- package/components/common/browse/blocks/contents/filesNew/Skeleton.vue +18 -18
- package/components/common/browse/blocks/lib/models/types.ts +1 -1
- package/components/common/browse/lib/models/interfaces.ts +5 -5
- package/components/common/context/lib/models/interfaces.ts +33 -33
- package/components/common/diagramMain/DiagramMain.vue +905 -900
- package/components/common/diagramMain/lib/models/interfaces.ts +5 -2
- package/components/common/diagramMain/modals/ManagePhysicalAdaptersModal.vue +6 -5
- package/components/common/diagramMain/modals/Modals.vue +19 -1
- package/components/common/diagramMain/modals/lib/config/adapterModal.ts +23 -20
- package/components/common/diagramMain/modals/lib/config/networkModal.ts +401 -398
- package/components/common/diagramMain/modals/lib/config/switchModal.ts +3 -0
- package/components/common/diagramMain/modals/remove/RemoveModal.vue +8 -0
- package/components/common/diagramMain/modals/remove/RemoveModalNew.vue +106 -95
- package/components/common/diagramMain/modals/remove/RemoveModalOld.vue +12 -1
- package/components/common/diagramMain/modals/viewSettings/info/Info.vue +0 -2
- package/components/common/diagramMain/modals/viewSettings/viewSettings/ViewSettings.vue +6 -0
- package/components/common/diagramMain/modals/viewSettings/viewSettings/ViewSettingsNew.vue +140 -71
- package/components/common/diagramMain/modals/viewSettings/viewSettings/ViewSettingsOld.vue +4 -4
- package/components/common/diagramMain/network/Contents.vue +497 -497
- package/components/common/layout/theHeader/helpMenu/About.vue +79 -79
- package/components/common/layout/theHeader/helpMenu/aboutOld/AboutOld.vue +79 -79
- package/components/common/pages/backups/DetailView.vue +52 -52
- package/components/common/pages/backups/lib/models/interfaces.ts +36 -36
- package/components/common/pages/backups/modals/Modals.vue +243 -243
- package/components/common/pages/backups/modals/createBackup/configuration/Configuration.vue +29 -29
- package/components/common/pages/backups/modals/createBackup/configuration/maxBandwidth/lib/config/options.ts +6 -6
- package/components/common/pages/backups/modals/createBackup/datastores/tableView/TableView.vue +95 -95
- package/components/common/pages/backups/modals/createBackup/general/General.vue +141 -141
- package/components/common/pages/backups/modals/createBackup/lib/config/strategyOptions.ts +12 -12
- package/components/common/pages/backups/modals/lib/config/restore.ts +115 -115
- package/components/common/pages/backups/modals/lib/models/interfaces.ts +186 -186
- package/components/common/pages/backups/modals/restore/disks/Disks.vue +27 -27
- package/components/common/pages/backups/modals/restore/disks/tableView/lib/config/table.ts +117 -117
- package/components/common/pages/backups/modals/restore/name/Name.vue +166 -166
- package/components/common/pages/backups/modals/restore/name/lib/models/interfaces.ts +6 -6
- package/components/common/pages/backups/modals/restore/networks/Networks.vue +67 -67
- package/components/common/pages/backups/modals/restore/networks/table/Table.vue +214 -214
- package/components/common/pages/backups/modals/restore/types/lib/config/typeOptions.ts +25 -25
- package/components/common/pages/backups/tools/Tools.vue +75 -75
- package/components/common/pages/backups/tools/lib/config/tabs.ts +36 -36
- package/components/common/pages/home/lib/models/interfaces.ts +48 -48
- package/components/common/pages/home/widgets/hosts/Hosts.vue +27 -27
- package/components/common/pages/home/widgets/hosts/lib/config/items.ts +23 -23
- package/components/common/pages/home/widgets/vms/VmsOld.vue +35 -35
- package/components/common/pages/home/widgets/vms/lib/config/items.ts +19 -19
- package/components/common/pages/scheduledTasks/lib/utils/utils.ts +84 -84
- package/components/common/readyToComplete/ReadyToComplete.vue +17 -17
- package/components/common/select/radio/RadioGroup.vue +137 -137
- package/components/common/spiceConsole/Drawer.vue +392 -392
- package/components/common/spiceConsole/SpiceConsole.vue +184 -184
- package/components/common/spiceConsole/lib/models/interfaces.ts +5 -5
- package/components/common/tools/Actions.vue +207 -207
- package/components/common/treeView/TreeView.vue +52 -52
- package/components/common/vm/actions/add/Add.vue +877 -877
- package/components/common/vm/actions/add/folderTreeView/FolderTreeView.vue +72 -72
- package/components/common/vm/actions/add/folderTreeView/New.vue +40 -40
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +368 -368
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/Shares.vue +140 -140
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/lib/config/options.ts +28 -28
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/location/Location.vue +154 -154
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/table/Table.vue +99 -99
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddress.vue +119 -119
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIo.vue +31 -31
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/Other.vue +16 -16
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/numberDisplays/NumberDisplays.vue +53 -53
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/delay/Delay.vue +32 -32
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/Firmware.vue +60 -60
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +174 -174
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/Keymap.vue +32 -32
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/Password.vue +103 -103
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirection.vue +28 -28
- package/components/common/vm/actions/common/select/compatibility/Old.vue +107 -107
- package/components/common/vm/actions/common/select/computeResource/ComputeResource.vue +143 -143
- package/components/common/vm/actions/common/select/computeResource/New.vue +184 -184
- package/components/common/vm/actions/common/select/computeResource/treeView/TreeView.vue +131 -131
- package/components/common/vm/actions/common/select/createType/CreateType.vue +38 -38
- package/components/common/vm/actions/common/select/createType/lib/models/interfaces.ts +5 -5
- package/components/common/vm/actions/common/select/name/Name.vue +200 -200
- package/components/common/vm/actions/common/select/name/Old.vue +131 -131
- package/components/common/vm/actions/common/select/os/Old.vue +152 -152
- package/components/common/vm/actions/common/select/os/Os.vue +139 -139
- package/components/common/vm/actions/common/select/storage/new/New.vue +320 -320
- package/components/common/vm/actions/common/select/storage/new/lib/models/interfaces.ts +5 -5
- package/components/common/vm/actions/common/select/storage/new/lib/utils/utils.ts +21 -21
- package/components/common/vm/actions/common/select/template/old/Old.vue +50 -50
- package/components/common/vm/actions/editSettings/new/Skeleton.vue +88 -88
- package/components/common/vm/actions/register/Register.vue +267 -267
- package/components/common/vm/actions/register/lib/config/steps.ts +86 -86
- package/components/common/vmt/actions/add/Add.vue +549 -549
- package/components/common/wizards/datastore/add/steps/typeMode/lib/config/typeOptions.ts +43 -43
- package/components/common/wizards/network/add/Add.vue +9 -3
- package/components/common/wizards/network/add/AddNew.vue +291 -354
- package/components/common/wizards/network/add/AddOld.vue +0 -3
- package/components/common/wizards/network/add/lib/config/config.ts +1 -0
- package/components/common/wizards/network/add/lib/config/initialData.ts +9 -0
- package/components/common/wizards/network/add/lib/config/steps.ts +35 -5
- package/components/common/wizards/network/add/lib/models/interfaces.ts +12 -2
- package/components/common/wizards/network/add/steps/connectionSettings/ConnectionSettings.vue +83 -0
- package/components/common/wizards/network/add/steps/connectionSettings/ConnectionSettingsNew.vue +114 -0
- package/components/common/wizards/network/add/steps/{ConnectionSettings.vue → connectionSettings/ConnectionSettingsOld.vue} +11 -42
- package/components/common/wizards/network/add/steps/createStandardSwitch/CreateStandardSwitch.vue +99 -0
- package/components/common/wizards/network/add/steps/createStandardSwitch/CreateStandardSwitchNew.vue +80 -0
- package/components/common/wizards/network/add/steps/{CreateStandardSwitch.vue → createStandardSwitch/CreateStandardSwitchOld.vue} +24 -33
- package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettings.vue +143 -0
- package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettingsNew.vue +224 -0
- package/components/common/wizards/network/add/steps/{IpFourSettings.vue → ipFourSettings/IpFourSettingsOld.vue} +13 -101
- package/components/common/wizards/network/add/steps/portProperties/PortProperties.vue +214 -0
- package/components/common/wizards/network/add/steps/portProperties/PortPropertiesNew.vue +289 -0
- package/components/common/wizards/network/add/steps/{PortProperties.vue → portProperties/PortPropertiesOld.vue} +19 -166
- package/components/common/wizards/network/add/steps/readyComplete/ReadyComplete.vue +22 -0
- package/components/common/wizards/network/add/steps/readyComplete/ReadyCompleteNew.vue +30 -0
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDevice.vue +7 -2
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceNew.vue +1 -3
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceOld.vue +0 -2
- package/components/common/wizards/network/add/validations/common.ts +1 -2
- package/components/common/wizards/network/add/validations/connectionSettings.ts +14 -7
- package/components/common/wizards/network/add/validations/ipFourSettings.ts +24 -10
- package/components/common/wizards/network/add/validations/networkValidation.ts +1 -1
- package/components/common/wizards/network/add/validations/portProperties.ts +52 -20
- package/components/common/wizards/network/add/validations/targetDevice.ts +18 -4
- package/components/common/wizards/vm/migrate/select/network/Network.vue +103 -103
- package/composables/useAppVersion.ts +21 -21
- package/composables/useLocal.ts +6 -6
- package/composables/useLocalCommon.ts +39 -39
- package/package.json +2 -2
- package/plugins/date.ts +233 -233
- package/plugins/panelStates.ts +70 -70
- package/plugins/text.ts +59 -59
- package/public/spice-console/lib/images/bitmap.js +203 -203
- package/public/spice-console/network/spicechannel.js +440 -440
- package/public/spice-console/run.js +210 -210
- package/store/main/mutations.ts +7 -7
- package/store/main/state.ts +7 -7
- package/components/common/wizards/network/add/steps/PhysicalAdapter.vue +0 -13
- /package/components/common/adapterManager/ui/actions/{ActionsBar.vue → bar/BarOld.vue} +0 -0
- /package/components/common/adapterManager/ui/{NoSelectedAdapter.vue → noSelectedAdapter/NoSelectedAdapterOld.vue} +0 -0
- /package/components/common/wizards/network/add/steps/{ReadyComplete.vue → readyComplete/ReadyCompleteOld.vue} +0 -0
@@ -1,398 +1,401 @@
|
|
1
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
2
|
-
import type {
|
3
|
-
UI_I_ModalsInitialData,
|
4
|
-
UI_I_NetworkSummaryPortletListItem,
|
5
|
-
UI_I_OverrideValue,
|
6
|
-
UI_I_TeamingAndFailoverTemplate,
|
7
|
-
} from '~/components/common/diagramMain/lib/models/interfaces'
|
8
|
-
import {
|
9
|
-
UI_E_IYNOption,
|
10
|
-
UI_E_IBSTLoadBalancingMode,
|
11
|
-
UI_E_ICBLinkDetectionMode,
|
12
|
-
} from '~/components/common/diagramMain/lib/models/enums'
|
13
|
-
|
14
|
-
export const networkViewSettingsModalTabsFunc = (
|
15
|
-
localization: UI_I_Localization
|
16
|
-
) => [
|
17
|
-
{
|
18
|
-
text: localization.common.all,
|
19
|
-
value: 0,
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
source
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
case UI_E_IBSTLoadBalancingMode.
|
59
|
-
loadBalancingValue = localization.common.
|
60
|
-
break
|
61
|
-
case UI_E_IBSTLoadBalancingMode.
|
62
|
-
loadBalancingValue = localization.common.
|
63
|
-
break
|
64
|
-
|
65
|
-
loadBalancingValue =
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
)?.
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
)?.
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
)?.
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
)?.
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
)?.
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
const
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
}
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
const
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
}
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
1
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
2
|
+
import type {
|
3
|
+
UI_I_ModalsInitialData,
|
4
|
+
UI_I_NetworkSummaryPortletListItem,
|
5
|
+
UI_I_OverrideValue,
|
6
|
+
UI_I_TeamingAndFailoverTemplate,
|
7
|
+
} from '~/components/common/diagramMain/lib/models/interfaces'
|
8
|
+
import {
|
9
|
+
UI_E_IYNOption,
|
10
|
+
UI_E_IBSTLoadBalancingMode,
|
11
|
+
UI_E_ICBLinkDetectionMode,
|
12
|
+
} from '~/components/common/diagramMain/lib/models/enums'
|
13
|
+
|
14
|
+
export const networkViewSettingsModalTabsFunc = (
|
15
|
+
localization: UI_I_Localization
|
16
|
+
) => [
|
17
|
+
{
|
18
|
+
text: localization.common.all,
|
19
|
+
value: 0,
|
20
|
+
testId: 'network-view-settings-all',
|
21
|
+
},
|
22
|
+
{
|
23
|
+
text: localization.common.properties,
|
24
|
+
value: 1,
|
25
|
+
testId: 'network-view-settings-properties',
|
26
|
+
},
|
27
|
+
{
|
28
|
+
text: localization.common.policies,
|
29
|
+
value: 2,
|
30
|
+
testId: 'network-view-settings-policies',
|
31
|
+
},
|
32
|
+
]
|
33
|
+
|
34
|
+
const findInitialValue = (
|
35
|
+
source: UI_I_NetworkSummaryPortletListItem[] | undefined,
|
36
|
+
id: string
|
37
|
+
): UI_I_OverrideValue =>
|
38
|
+
source?.find(
|
39
|
+
(sourceItem: UI_I_NetworkSummaryPortletListItem) => sourceItem.id === id
|
40
|
+
)?.initialValue as UI_I_OverrideValue
|
41
|
+
|
42
|
+
export const networkViewSettingsFunc = (
|
43
|
+
localization: UI_I_Localization,
|
44
|
+
initialData: UI_I_ModalsInitialData
|
45
|
+
) => {
|
46
|
+
const loadBalancing =
|
47
|
+
(
|
48
|
+
initialData.nicTeamingPolicy as UI_I_NetworkSummaryPortletListItem<UI_E_IBSTLoadBalancingMode>[]
|
49
|
+
)?.find(
|
50
|
+
(
|
51
|
+
teaming: UI_I_NetworkSummaryPortletListItem<UI_E_IBSTLoadBalancingMode>
|
52
|
+
) => teaming.id === 'mode'
|
53
|
+
)?.initialValue?.value || UI_E_IBSTLoadBalancingMode.BACKUP
|
54
|
+
|
55
|
+
let loadBalancingValue: string
|
56
|
+
|
57
|
+
switch (loadBalancing) {
|
58
|
+
case UI_E_IBSTLoadBalancingMode.BACKUP:
|
59
|
+
loadBalancingValue = localization.common.useExplicitFailoverOrder
|
60
|
+
break
|
61
|
+
case UI_E_IBSTLoadBalancingMode.SLB:
|
62
|
+
loadBalancingValue = localization.common.routeBasedSourceMacHash
|
63
|
+
break
|
64
|
+
case UI_E_IBSTLoadBalancingMode.TCP:
|
65
|
+
loadBalancingValue = localization.common.routeBasedIpHash
|
66
|
+
break
|
67
|
+
default:
|
68
|
+
loadBalancingValue = '--'
|
69
|
+
}
|
70
|
+
|
71
|
+
const promiscuousModeFlag: boolean =
|
72
|
+
(
|
73
|
+
initialData.securityPolicy as UI_I_NetworkSummaryPortletListItem<UI_E_IYNOption>[]
|
74
|
+
)?.find(
|
75
|
+
(sec: UI_I_NetworkSummaryPortletListItem<UI_E_IYNOption>) =>
|
76
|
+
sec.id === 'promiscuous_mode'
|
77
|
+
)?.initialValue?.value === UI_E_IYNOption.YES
|
78
|
+
|
79
|
+
const macAddressChanges: boolean =
|
80
|
+
(
|
81
|
+
initialData.securityPolicy as UI_I_NetworkSummaryPortletListItem<UI_E_IYNOption>[]
|
82
|
+
)?.find(
|
83
|
+
(sec: UI_I_NetworkSummaryPortletListItem<UI_E_IYNOption>) =>
|
84
|
+
sec.id === 'mac_change'
|
85
|
+
)?.initialValue?.value === UI_E_IYNOption.YES
|
86
|
+
|
87
|
+
const forgedTransmits: boolean =
|
88
|
+
(
|
89
|
+
initialData.securityPolicy as UI_I_NetworkSummaryPortletListItem<UI_E_IYNOption>[]
|
90
|
+
)?.find(
|
91
|
+
(sec: UI_I_NetworkSummaryPortletListItem<UI_E_IYNOption>) =>
|
92
|
+
sec.id === 'forged_transmits'
|
93
|
+
)?.initialValue?.value === UI_E_IYNOption.YES
|
94
|
+
|
95
|
+
const notifySwitches: boolean =
|
96
|
+
(
|
97
|
+
initialData.nicTeamingPolicy as UI_I_NetworkSummaryPortletListItem<UI_E_IYNOption>[]
|
98
|
+
)?.find(
|
99
|
+
(teaming: UI_I_NetworkSummaryPortletListItem<UI_E_IYNOption>) =>
|
100
|
+
teaming.id === 'notify_switches'
|
101
|
+
)?.initialValue?.value === UI_E_IYNOption.YES
|
102
|
+
|
103
|
+
const failback: boolean =
|
104
|
+
(
|
105
|
+
initialData.nicTeamingPolicy as UI_I_NetworkSummaryPortletListItem<UI_E_IYNOption>[]
|
106
|
+
)?.find(
|
107
|
+
(teaming: UI_I_NetworkSummaryPortletListItem<UI_E_IYNOption>) =>
|
108
|
+
teaming.id === 'failback'
|
109
|
+
)?.initialValue?.value === UI_E_IYNOption.YES
|
110
|
+
|
111
|
+
return [
|
112
|
+
{
|
113
|
+
title: localization.common.properties,
|
114
|
+
id: 1,
|
115
|
+
type: 1,
|
116
|
+
rows: [
|
117
|
+
{
|
118
|
+
name: localization.common.networkLabel,
|
119
|
+
value: initialData.networkLabel,
|
120
|
+
},
|
121
|
+
{
|
122
|
+
name: localization.common.vlanId,
|
123
|
+
value: initialData.vlanId,
|
124
|
+
},
|
125
|
+
],
|
126
|
+
},
|
127
|
+
{
|
128
|
+
title: localization.common.security,
|
129
|
+
id: 2,
|
130
|
+
type: 2,
|
131
|
+
rows: [
|
132
|
+
{
|
133
|
+
name: localization.common.promiscuousMode,
|
134
|
+
value: promiscuousModeFlag
|
135
|
+
? localization.common.accept
|
136
|
+
: localization.common.reject,
|
137
|
+
color: promiscuousModeFlag,
|
138
|
+
status: true,
|
139
|
+
},
|
140
|
+
{
|
141
|
+
name: localization.common.macAddressChanges,
|
142
|
+
value: macAddressChanges
|
143
|
+
? localization.common.accept
|
144
|
+
: localization.common.reject,
|
145
|
+
color: macAddressChanges,
|
146
|
+
status: true,
|
147
|
+
},
|
148
|
+
{
|
149
|
+
name: localization.common.forgedTransmits,
|
150
|
+
value: forgedTransmits
|
151
|
+
? localization.common.accept
|
152
|
+
: localization.common.reject,
|
153
|
+
color: forgedTransmits,
|
154
|
+
status: true,
|
155
|
+
},
|
156
|
+
],
|
157
|
+
},
|
158
|
+
{
|
159
|
+
title: localization.common.trafficShaping,
|
160
|
+
id: 3,
|
161
|
+
type: 2,
|
162
|
+
rows: [
|
163
|
+
{
|
164
|
+
name: localization.common.averageBandwidth,
|
165
|
+
value: initialData.shapingPolicy?.[0].initialValue.value
|
166
|
+
? `${initialData.average_bw} ${localization.common.kbitS}`
|
167
|
+
: '--',
|
168
|
+
},
|
169
|
+
{
|
170
|
+
name: localization.common.peakBandwidth,
|
171
|
+
value: initialData.shapingPolicy?.[0].initialValue.value
|
172
|
+
? `${initialData.peak_bw} ${localization.common.kbitS}`
|
173
|
+
: '--',
|
174
|
+
},
|
175
|
+
{
|
176
|
+
name: localization.common.burstSize,
|
177
|
+
value: initialData.shapingPolicy?.[0].initialValue.value
|
178
|
+
? `${initialData.burst_size} ${localization.common.kb}`
|
179
|
+
: '--',
|
180
|
+
},
|
181
|
+
],
|
182
|
+
},
|
183
|
+
{
|
184
|
+
title: localization.common.teamingAndFailover,
|
185
|
+
id: 4,
|
186
|
+
type: 2,
|
187
|
+
rows: [
|
188
|
+
{
|
189
|
+
name: localization.common.loadBalancing,
|
190
|
+
value: loadBalancingValue,
|
191
|
+
},
|
192
|
+
{
|
193
|
+
name: localization.common.networkFailureDetection,
|
194
|
+
value:
|
195
|
+
(
|
196
|
+
initialData.nicTeamingPolicy as UI_I_NetworkSummaryPortletListItem<UI_E_ICBLinkDetectionMode>[]
|
197
|
+
)?.find(
|
198
|
+
(
|
199
|
+
teaming: UI_I_NetworkSummaryPortletListItem<UI_E_ICBLinkDetectionMode>
|
200
|
+
) => teaming.id === 'link_detect'
|
201
|
+
)?.initialValue?.value === 1
|
202
|
+
? localization.common.linkStatusOnly
|
203
|
+
: localization.common.beaconProbing,
|
204
|
+
},
|
205
|
+
{
|
206
|
+
name: localization.common.notifySwitches,
|
207
|
+
value: notifySwitches
|
208
|
+
? localization.common.yes
|
209
|
+
: localization.common.no,
|
210
|
+
color: notifySwitches,
|
211
|
+
status: true,
|
212
|
+
},
|
213
|
+
{
|
214
|
+
name: localization.common.failback,
|
215
|
+
value: failback ? localization.common.yes : localization.common.no,
|
216
|
+
color: failback,
|
217
|
+
status: true,
|
218
|
+
},
|
219
|
+
{
|
220
|
+
name: localization.networks.activeAdapters,
|
221
|
+
value: initialData.activeAdapters,
|
222
|
+
},
|
223
|
+
{
|
224
|
+
name: localization.common.standbyAdapters,
|
225
|
+
value: initialData.standbyAdapters,
|
226
|
+
},
|
227
|
+
{
|
228
|
+
name: localization.common.unusedAdapters,
|
229
|
+
value: initialData.unusedAdapters,
|
230
|
+
},
|
231
|
+
],
|
232
|
+
},
|
233
|
+
]
|
234
|
+
}
|
235
|
+
|
236
|
+
export const networkEditSettingsTabsFunc = (
|
237
|
+
localization: UI_I_Localization
|
238
|
+
) => [
|
239
|
+
{
|
240
|
+
value: '1',
|
241
|
+
text: localization.common.properties,
|
242
|
+
},
|
243
|
+
{
|
244
|
+
value: '2',
|
245
|
+
text: localization.common.security,
|
246
|
+
},
|
247
|
+
{
|
248
|
+
value: '3',
|
249
|
+
text: localization.common.trafficShaping,
|
250
|
+
},
|
251
|
+
{
|
252
|
+
value: '4',
|
253
|
+
text: localization.common.teamingAndFailover,
|
254
|
+
},
|
255
|
+
]
|
256
|
+
|
257
|
+
export const networkPopupFieldsFunc = (
|
258
|
+
localization: UI_I_Localization,
|
259
|
+
networkType: string,
|
260
|
+
testId: string,
|
261
|
+
state: number,
|
262
|
+
inPortlet = false
|
263
|
+
) => {
|
264
|
+
const view = {
|
265
|
+
text: localization.common.viewSettings,
|
266
|
+
value: 'network-view-settings',
|
267
|
+
testId: `${testId}-view`,
|
268
|
+
}
|
269
|
+
const edit = {
|
270
|
+
text: localization.common.editSettings,
|
271
|
+
value: 'network-edit-settings',
|
272
|
+
testId: `${testId}-edit`,
|
273
|
+
permission:
|
274
|
+
networkType === '1' ? 'Networks.UpdateSysx' : 'Networks.UpdatePortGroup',
|
275
|
+
}
|
276
|
+
const remove = {
|
277
|
+
text: localization.common.remove,
|
278
|
+
value: 'network-port-remove',
|
279
|
+
testId: `${testId}-remove`,
|
280
|
+
permission:
|
281
|
+
networkType === '1' ? 'Networks.RemoveSysx' : 'Networks.RemovePortGroup',
|
282
|
+
// networkType === '1' ? 'network-vkernel-remove' : 'network-port-remove',
|
283
|
+
}
|
284
|
+
|
285
|
+
const inPortletConfig = [view]
|
286
|
+
|
287
|
+
const notInPortletConfig = [view, edit, { separate: true }, remove]
|
288
|
+
const notInPortletErrorConfig = [remove]
|
289
|
+
|
290
|
+
if (inPortlet) {
|
291
|
+
return state === 3 ? [] : inPortletConfig
|
292
|
+
} else {
|
293
|
+
return state === 3 ? notInPortletErrorConfig : notInPortletConfig
|
294
|
+
}
|
295
|
+
}
|
296
|
+
|
297
|
+
export const networkPopupFieldsNewFunc = (
|
298
|
+
localization: UI_I_Localization,
|
299
|
+
networkType: string,
|
300
|
+
testId: string,
|
301
|
+
state: number,
|
302
|
+
inPortlet = false
|
303
|
+
) => {
|
304
|
+
const view = {
|
305
|
+
text: localization.common.viewSettings,
|
306
|
+
value: 'network-view-settings',
|
307
|
+
iconName: 'password-hide',
|
308
|
+
testId: `${testId}-view`,
|
309
|
+
}
|
310
|
+
const edit = {
|
311
|
+
text: localization.common.editSettings,
|
312
|
+
value: 'network-edit-settings',
|
313
|
+
iconName: 'edit',
|
314
|
+
testId: `${testId}-edit`,
|
315
|
+
permission:
|
316
|
+
networkType === '1' ? 'Networks.UpdateSysx' : 'Networks.UpdatePortGroup',
|
317
|
+
}
|
318
|
+
const remove = {
|
319
|
+
text: localization.common.remove,
|
320
|
+
value: 'network-port-remove',
|
321
|
+
iconName: 'delete',
|
322
|
+
iconColor: '#ea3223',
|
323
|
+
textColor: '#ea3223',
|
324
|
+
testId: `${testId}-remove`,
|
325
|
+
permission:
|
326
|
+
networkType === '1' ? 'Networks.RemoveSysx' : 'Networks.RemovePortGroup',
|
327
|
+
// networkType === '1' ? 'network-vkernel-remove' : 'network-port-remove',
|
328
|
+
}
|
329
|
+
|
330
|
+
const inPortletConfig = [view]
|
331
|
+
|
332
|
+
const notInPortletConfig = [view, edit, remove]
|
333
|
+
const notInPortletErrorConfig = [remove]
|
334
|
+
|
335
|
+
if (inPortlet) {
|
336
|
+
return state === 3 ? [] : inPortletConfig
|
337
|
+
} else {
|
338
|
+
return state === 3 ? notInPortletErrorConfig : notInPortletConfig
|
339
|
+
}
|
340
|
+
}
|
341
|
+
|
342
|
+
export const teamingAndFailoverTemplateMakerFunc = (
|
343
|
+
localization: UI_I_Localization
|
344
|
+
): UI_I_TeamingAndFailoverTemplate[] => [
|
345
|
+
{
|
346
|
+
key: 'loadBalancing',
|
347
|
+
testId: 'loadBalancing',
|
348
|
+
options: [
|
349
|
+
{
|
350
|
+
value: 3,
|
351
|
+
text: localization.common.routeBasedIpHash,
|
352
|
+
},
|
353
|
+
{
|
354
|
+
value: 2,
|
355
|
+
text: localization.common.routeBasedSourceMacHash,
|
356
|
+
},
|
357
|
+
{
|
358
|
+
value: 1,
|
359
|
+
text: localization.common.useExplicitFailoverOrder,
|
360
|
+
},
|
361
|
+
],
|
362
|
+
},
|
363
|
+
{
|
364
|
+
key: 'networkFailureDetection',
|
365
|
+
testId: 'networkFailureDetection',
|
366
|
+
options: [
|
367
|
+
{
|
368
|
+
value: 1,
|
369
|
+
text: localization.common.linkStatusOnly,
|
370
|
+
},
|
371
|
+
],
|
372
|
+
},
|
373
|
+
{
|
374
|
+
key: 'notifySwitches',
|
375
|
+
testId: 'notifySwitches',
|
376
|
+
options: [
|
377
|
+
{
|
378
|
+
value: 2,
|
379
|
+
text: localization.common.no,
|
380
|
+
},
|
381
|
+
{
|
382
|
+
value: 1,
|
383
|
+
text: localization.common.yes,
|
384
|
+
},
|
385
|
+
],
|
386
|
+
},
|
387
|
+
{
|
388
|
+
key: 'failback',
|
389
|
+
testId: 'failback',
|
390
|
+
options: [
|
391
|
+
{
|
392
|
+
value: 2,
|
393
|
+
text: localization.common.no,
|
394
|
+
},
|
395
|
+
{
|
396
|
+
value: 1,
|
397
|
+
text: localization.common.yes,
|
398
|
+
},
|
399
|
+
],
|
400
|
+
},
|
401
|
+
]
|