bfg-common 1.6.76 → 1.6.78
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 +1 -14
- package/assets/localization/local_en.json +1 -14
- package/assets/localization/local_hy.json +1 -14
- package/assets/localization/local_kk.json +1 -14
- package/assets/localization/local_ru.json +1 -14
- package/assets/localization/local_zh.json +1 -14
- package/components/atoms/dropdown/dropdown/Dropdown.vue +170 -170
- package/components/atoms/dropdown/dropdown/lib/models/interfaces.ts +10 -10
- package/components/common/adapterManager/AdapterManager.vue +473 -473
- package/components/common/adapterManager/AdapterManagerOld.vue +498 -498
- package/components/common/adapterManager/addAdapterModal/AddAdapterModal.vue +70 -70
- package/components/common/adapterManager/addAdapterModal/AddAdapterModalNew.vue +110 -110
- package/components/common/adapterManager/addAdapterModal/AddAdapterModalOld.vue +531 -531
- package/components/common/adapterManager/addAdapterWarningModal/AddAdapterWarningModal.vue +32 -32
- package/components/common/adapterManager/addAdapterWarningModal/AddAdapterWarningModalNew.vue +37 -37
- package/components/common/adapterManager/addAdapterWarningModal/AddAdapterWarningModalOld.vue +73 -73
- package/components/common/adapterManager/lib/config/index.ts +19 -19
- package/components/common/adapterManager/noActiveAdaptersModal/NoActiveAdaptersModal.vue +31 -31
- package/components/common/adapterManager/noActiveAdaptersModal/NoActiveAdaptersModalNew.vue +34 -34
- package/components/common/adapterManager/noActiveAdaptersModal/NoActiveAdaptersModalOld.vue +57 -57
- package/components/common/adapterManager/noConnectedActiveAdaptersModal/NoConnectedActiveAdaptersModal.vue +31 -31
- package/components/common/adapterManager/noConnectedActiveAdaptersModal/NoConnectedActiveAdaptersModalNew.vue +34 -34
- package/components/common/adapterManager/noConnectedActiveAdaptersModal/NoConnectedActiveAdaptersModalOld.vue +57 -57
- package/components/common/adapterManager/ui/actions/AddAdapterButton.vue +34 -34
- package/components/common/adapterManager/ui/actions/RemoveAdapterButton.vue +41 -41
- package/components/common/adapterManager/ui/actions/VerticalSeparator.vue +10 -10
- package/components/common/adapterManager/ui/actions/bar/BarOld.vue +95 -95
- package/components/common/adapterManager/ui/actions/moveDownAdapterButton/MoveDownAdapterButton.vue +28 -28
- package/components/common/adapterManager/ui/actions/moveDownAdapterButton/MoveDownAdapterButtonNew.vue +76 -76
- package/components/common/adapterManager/ui/actions/moveDownAdapterButton/MoveDownAdapterButtonOld.vue +33 -33
- package/components/common/adapterManager/ui/actions/moveUpAdapterButton/MoveUpAdapterButton.vue +28 -28
- package/components/common/adapterManager/ui/actions/moveUpAdapterButton/MoveUpAdapterButtonNew.vue +77 -77
- package/components/common/adapterManager/ui/actions/moveUpAdapterButton/MoveUpAdapterButtonOld.vue +33 -33
- package/components/common/adapterManager/ui/noSelectedAdapter/NoSelectedAdapter.vue +24 -24
- package/components/common/adapterManager/ui/noSelectedAdapter/NoSelectedAdapterNew.vue +18 -18
- package/components/common/adapterManager/ui/noSelectedAdapter/NoSelectedAdapterOld.vue +38 -38
- package/components/common/adapterManager/ui/secondTitle/SecondTitle.vue +31 -31
- package/components/common/adapterManager/ui/secondTitle/SecondTitleNew.vue +51 -51
- package/components/common/adapterManager/ui/secondTitle/SecondTitleOld.vue +35 -35
- package/components/common/adapterManager/ui/table/Table.vue +88 -88
- package/components/common/adapterManager/ui/table/TableNew.vue +137 -137
- package/components/common/adapterManager/ui/table/TableOld.vue +141 -141
- package/components/common/adapterManager/ui/table/adapters/Adapters.vue +44 -44
- package/components/common/adapterManager/ui/table/adapters/AdaptersNew.vue +187 -187
- package/components/common/adapterManager/ui/table/adapters/AdaptersOld.vue +87 -87
- package/components/common/adapterManager/ui/table/header/Header.vue +57 -57
- package/components/common/adapterManager/ui/table/header/HeaderNew.vue +81 -81
- package/components/common/adapterManager/ui/table/header/HeaderOld.vue +79 -79
- package/components/common/adapterManager/ui/table/lib/models/types.ts +1 -1
- package/components/common/certificate/Certificate.vue +6 -16
- package/components/common/certificate/{Info/Old.vue → CertificateInfo.vue} +34 -6
- package/components/common/certificate/{tools/Tools.vue → Tools.vue} +23 -18
- package/components/common/certificate/lib/config/tabsPannel.ts +22 -0
- package/components/common/diagramMain/adapter/Adapter.vue +123 -123
- package/components/common/diagramMain/adapter/AdapterItem.vue +438 -438
- package/components/common/diagramMain/adapter/AdapterItems.vue +61 -61
- package/components/common/diagramMain/adapter/Contents.vue +212 -212
- package/components/common/diagramMain/adapter/Lines.vue +81 -81
- package/components/common/diagramMain/adapter/block/Block.vue +27 -27
- package/components/common/diagramMain/adapter/block/BlockNew.vue +58 -58
- package/components/common/diagramMain/adapter/block/BlockOld.vue +50 -50
- package/components/common/diagramMain/adapter/secondBlock/SecondBlock.vue +27 -27
- package/components/common/diagramMain/adapter/secondBlock/SecondBlockNew.vue +60 -60
- package/components/common/diagramMain/adapter/secondBlock/SecondBlockOld.vue +51 -51
- package/components/common/diagramMain/highlights/Highlights.vue +151 -151
- package/components/common/diagramMain/highlights/HighlightsNew.vue +124 -124
- package/components/common/diagramMain/highlights/HighlightsOld.vue +107 -107
- package/components/common/diagramMain/lib/config/index.ts +81 -81
- package/components/common/diagramMain/lib/config/initial.ts +50 -50
- package/components/common/diagramMain/lib/config/positions.ts +194 -194
- package/components/common/diagramMain/lib/models/enums.ts +44 -44
- package/components/common/diagramMain/lib/models/interfaces.ts +760 -760
- package/components/common/diagramMain/lib/models/types.ts +21 -21
- package/components/common/diagramMain/lib/utils/utils.ts +331 -331
- package/components/common/diagramMain/modals/ManagePhysicalAdaptersModal.vue +331 -331
- package/components/common/diagramMain/modals/Modals.vue +483 -483
- package/components/common/diagramMain/modals/lib/config/adapterModal.ts +147 -147
- package/components/common/diagramMain/modals/lib/config/initial.ts +180 -180
- package/components/common/diagramMain/modals/lib/config/networkModal.ts +405 -405
- package/components/common/diagramMain/modals/lib/config/portModal.ts +253 -253
- package/components/common/diagramMain/modals/lib/config/switchModal.ts +245 -245
- package/components/common/diagramMain/modals/lib/config/vCenterModal.ts +48 -48
- package/components/common/diagramMain/modals/lib/config/vmKernelAdapter.ts +90 -90
- package/components/common/diagramMain/modals/lib/mappers/mappers.ts +88 -88
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/MigrateVmkernelAdapter.vue +541 -541
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/lib/config/steps.ts +114 -114
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/ConnectionSettings.vue +170 -170
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/SelectVmkernelAdapter.vue +159 -159
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/VmkernelAdapterReadyComplete.vue +49 -49
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +19 -19
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/connectionSettings.ts +137 -137
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/selectVmkernelAdapter.ts +52 -52
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/validations.ts +19 -19
- package/components/common/diagramMain/modals/remove/RemoveModal.vue +82 -82
- package/components/common/diagramMain/modals/remove/RemoveModalNew.vue +106 -106
- package/components/common/diagramMain/modals/remove/RemoveModalOld.vue +241 -241
- package/components/common/diagramMain/modals/viewSettings/info/Info.vue +57 -57
- package/components/common/diagramMain/modals/viewSettings/info/InfoNew.vue +174 -174
- package/components/common/diagramMain/modals/viewSettings/info/InfoOld.vue +141 -141
- package/components/common/diagramMain/modals/viewSettings/viewSettings/ViewSettings.vue +45 -45
- package/components/common/diagramMain/modals/viewSettings/viewSettings/ViewSettingsNew.vue +323 -323
- package/components/common/diagramMain/modals/viewSettings/viewSettings/ViewSettingsOld.vue +203 -203
- package/components/common/diagramMain/modals/viewSettings/viewSettingsModal/ViewSettingsModal.vue +60 -60
- package/components/common/diagramMain/modals/viewSettings/viewSettingsModal/ViewSettingsModalNew.vue +50 -50
- package/components/common/diagramMain/modals/viewSettings/viewSettingsModal/ViewSettingsModalOld.vue +70 -70
- package/components/common/diagramMain/modals/viewSettings/viewSettingsModal/lib/models/interfaces.ts +48 -48
- package/components/common/diagramMain/network/Contents.vue +497 -497
- package/components/common/diagramMain/network/Lines.vue +107 -107
- package/components/common/diagramMain/network/Network.vue +141 -141
- package/components/common/diagramMain/network/block/Block.vue +37 -37
- package/components/common/diagramMain/network/block/BlockNew.vue +68 -68
- package/components/common/diagramMain/network/block/BlockOld.vue +64 -64
- package/components/common/diagramMain/network/noNetwork/NoNetwork.vue +12 -12
- package/components/common/diagramMain/network/noNetwork/NoNetworkNew.vue +89 -89
- package/components/common/diagramMain/network/noNetwork/NoNetworkOld.vue +61 -61
- package/components/common/diagramMain/network/secondBlock/SecondBlock.vue +41 -41
- package/components/common/diagramMain/network/secondBlock/SecondBlockNew.vue +64 -64
- package/components/common/diagramMain/network/secondBlock/SecondBlockOld.vue +60 -60
- package/components/common/diagramMain/port/Port.vue +580 -580
- package/components/common/diagramMain/port/Ports.vue +47 -47
- package/components/common/diagramMain/switch/Switch.vue +180 -180
- package/components/common/diagramMain/switch/SwitchSelected.vue +111 -111
- package/components/common/monitor/advanced/table/tableOld/TableOld.vue +93 -93
- package/components/common/monitor/utilization/lib/models/enums.ts +4 -4
- package/components/common/split/horizontal/New.vue +1 -1
- package/components/common/split/horizontal/Old.vue +1 -1
- package/package.json +2 -2
- package/components/common/certificate/Info/Info.vue +0 -61
- package/components/common/certificate/Info/new/New.vue +0 -285
- package/components/common/certificate/Info/new/lib/config/index.ts +0 -59
- package/components/common/certificate/Info/new/lib/models/interfaces.ts +0 -3
- package/components/common/certificate/Info/new/lib/utils/index.ts +0 -10
- package/components/common/certificate/Old.vue +0 -27
- package/components/common/certificate/new/New.vue +0 -30
- package/components/common/certificate/new/Skeleton.vue +0 -155
- package/components/common/certificate/tools/New.vue +0 -48
- package/components/common/certificate/tools/Old.vue +0 -39
- package/components/common/certificate/tools/lib/config/tabsPannel.ts +0 -20
|
@@ -1,760 +1,760 @@
|
|
|
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'
|
|
3
|
-
import { UI_E_NetworkType } from './enums'
|
|
4
|
-
import type { UI_T_Adapters } from '~/components/common/diagramMain/lib/models/types'
|
|
5
|
-
import {
|
|
6
|
-
UI_E_IYNOption,
|
|
7
|
-
UI_E_ICBLinkDetectionMode,
|
|
8
|
-
UI_E_IBSTLoadBalancingMode,
|
|
9
|
-
} from '~/components/common/diagramMain/lib/models/enums'
|
|
10
|
-
|
|
11
|
-
export interface UI_I_Port {
|
|
12
|
-
id: string
|
|
13
|
-
name: string
|
|
14
|
-
macAddress?: string
|
|
15
|
-
adapter?: string
|
|
16
|
-
isActive?: boolean
|
|
17
|
-
testId: string
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export interface UI_I_Adapter {
|
|
21
|
-
name: string
|
|
22
|
-
id: string
|
|
23
|
-
testId: string
|
|
24
|
-
fullName: string
|
|
25
|
-
state: UI_I_State
|
|
26
|
-
adapter: string
|
|
27
|
-
pciAddress: string
|
|
28
|
-
driver: string
|
|
29
|
-
carrier?: boolean
|
|
30
|
-
speed?: number
|
|
31
|
-
duplex: string
|
|
32
|
-
networks: string[]
|
|
33
|
-
srIov?: boolean
|
|
34
|
-
cdp?: boolean
|
|
35
|
-
lldp?: boolean
|
|
36
|
-
managed?: boolean
|
|
37
|
-
switch?: string
|
|
38
|
-
mac: string
|
|
39
|
-
status: string
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export interface UI_I_PhysicalAdapters {
|
|
43
|
-
toggle: boolean
|
|
44
|
-
adapters: (UI_I_Adapter | UI_I_AdapterWithError)[]
|
|
45
|
-
}
|
|
46
|
-
export interface UI_I_MainRectHeights {
|
|
47
|
-
networksHeight: number
|
|
48
|
-
adaptersHeight: number
|
|
49
|
-
}
|
|
50
|
-
export interface UI_I_SwitchLine {
|
|
51
|
-
y1: number
|
|
52
|
-
y2: number
|
|
53
|
-
ay?: number
|
|
54
|
-
}
|
|
55
|
-
export interface UI_I_SelectedPort {
|
|
56
|
-
networkId: string
|
|
57
|
-
portId: string
|
|
58
|
-
activeAdapters: string[]
|
|
59
|
-
}
|
|
60
|
-
export interface UI_I_ConnectedPort {
|
|
61
|
-
networkId: string
|
|
62
|
-
ports: string[]
|
|
63
|
-
}
|
|
64
|
-
export interface UI_I_SelectedAdapter {
|
|
65
|
-
adapterId: string
|
|
66
|
-
connectedPorts: UI_I_ConnectedPort[]
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export interface UI_I_Sysx {
|
|
70
|
-
id: string
|
|
71
|
-
testId: string
|
|
72
|
-
state: UI_I_State
|
|
73
|
-
index: UI_I_ListIndex
|
|
74
|
-
switch: string
|
|
75
|
-
network_id: string
|
|
76
|
-
tcp_stack: string
|
|
77
|
-
services: {
|
|
78
|
-
// New interface
|
|
79
|
-
Management: boolean
|
|
80
|
-
// VMotion: boolean
|
|
81
|
-
Provisioning: boolean
|
|
82
|
-
VSAN: boolean
|
|
83
|
-
// FaultToleranceLogging: boolean
|
|
84
|
-
// VSphereReplication: boolean
|
|
85
|
-
// VSphereReplicationNFC: boolean
|
|
86
|
-
// VSphereBackupNFC: boolean
|
|
87
|
-
// NVMeOverTCP: boolean
|
|
88
|
-
// NVMeOverRDMA: boolean
|
|
89
|
-
|
|
90
|
-
// management: boolean
|
|
91
|
-
// vmotion: boolean
|
|
92
|
-
// provisioning: boolean
|
|
93
|
-
// vsan: boolean
|
|
94
|
-
// fault_tolerance_logging: boolean
|
|
95
|
-
// vsphere_replication: boolean
|
|
96
|
-
// vsphere_replication_nfc: boolean
|
|
97
|
-
// vsphere_backup_nfc: boolean
|
|
98
|
-
// nvme_over_tcp: boolean
|
|
99
|
-
// nvme_over_rdma: boolean
|
|
100
|
-
}
|
|
101
|
-
mtu: number
|
|
102
|
-
ipv4_settings: {
|
|
103
|
-
auto: boolean
|
|
104
|
-
ipv4: number | string
|
|
105
|
-
mask: number | string
|
|
106
|
-
gateway_override: boolean
|
|
107
|
-
gateway: number | string
|
|
108
|
-
routing_table?: number
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
export interface UI_I_OverrideValue<T = string | number | boolean> {
|
|
113
|
-
override: boolean
|
|
114
|
-
value: T
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
export interface UI_I_NetworkSummaryPortletListItem<
|
|
118
|
-
T = string | number | boolean
|
|
119
|
-
> {
|
|
120
|
-
label?: string
|
|
121
|
-
value: T
|
|
122
|
-
id: string
|
|
123
|
-
initialValue: UI_I_OverrideValue<T>
|
|
124
|
-
testId?: string
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
export interface UI_I_NetworkInfo<T = string | number | boolean> {
|
|
128
|
-
average_bw: number
|
|
129
|
-
burst_size: number
|
|
130
|
-
nicTeamingPolicy: UI_I_NetworkSummaryPortletListItem<T>[]
|
|
131
|
-
nics_override: boolean
|
|
132
|
-
peak_bw: number
|
|
133
|
-
securityPolicy: UI_I_NetworkSummaryPortletListItem<T>[]
|
|
134
|
-
shapingPolicy: UI_I_NetworkSummaryPortletListItem<T>[]
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
export interface UI_I_Network extends UI_I_NetworkInfo {
|
|
138
|
-
activeAdapters: string[]
|
|
139
|
-
id: string
|
|
140
|
-
networkType: UI_E_NetworkType
|
|
141
|
-
ports: UI_I_Port[]
|
|
142
|
-
standbyAdapters?: string[]
|
|
143
|
-
switchName?: string
|
|
144
|
-
sysx?: UI_I_Sysx
|
|
145
|
-
title: string
|
|
146
|
-
toggle: boolean
|
|
147
|
-
unusedAdapters?: string[]
|
|
148
|
-
vlanId?: number | string
|
|
149
|
-
testId: string
|
|
150
|
-
state: {
|
|
151
|
-
state: UI_E_State
|
|
152
|
-
errors?: string[]
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
export interface UI_I_NetworkWithError {
|
|
157
|
-
id: string
|
|
158
|
-
networkType: UI_E_NetworkType
|
|
159
|
-
ports?: UI_I_Port[]
|
|
160
|
-
sysx?: UI_I_Sysx
|
|
161
|
-
switchName: string
|
|
162
|
-
title: string
|
|
163
|
-
toggle: boolean
|
|
164
|
-
testId: string
|
|
165
|
-
state: {
|
|
166
|
-
state: UI_E_State
|
|
167
|
-
errors?: string[]
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
export interface UI_I_SwitchInfo extends UI_I_NetworkInfo {
|
|
172
|
-
mtu: number
|
|
173
|
-
num_ports: string
|
|
174
|
-
activeAdapters: UI_I_Adapter[] | string[]
|
|
175
|
-
standbyAdapters: UI_I_Adapter[] | string[]
|
|
176
|
-
unusedAdapters: UI_I_Adapter[] | string[]
|
|
177
|
-
switch_name: string
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
export interface UI_I_NetworkFullWithPositions extends UI_I_Network {
|
|
181
|
-
portsCount: number
|
|
182
|
-
portsHeight: number
|
|
183
|
-
networkHeight: number
|
|
184
|
-
rectPosition: number
|
|
185
|
-
connectLineY: number
|
|
186
|
-
titlePosition: number
|
|
187
|
-
vlanPosition: number
|
|
188
|
-
portsPosition: number
|
|
189
|
-
networkPortsName: string
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
export interface UI_I_DiagramData {
|
|
193
|
-
id: string
|
|
194
|
-
testId: string
|
|
195
|
-
diagramName: string
|
|
196
|
-
networks: UI_I_Network[]
|
|
197
|
-
networking?: UI_I_SwitchInfo
|
|
198
|
-
physicalAdapters: UI_I_PhysicalAdapters | null
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
export interface UI_I_AdaptersWithPositions {
|
|
202
|
-
toggle: boolean
|
|
203
|
-
height: number
|
|
204
|
-
adapters: UI_T_Adapters[] | null
|
|
205
|
-
rectPosition: number
|
|
206
|
-
adaptersConnectLineY: number
|
|
207
|
-
titlePosition: number
|
|
208
|
-
adaptersCount: number
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
export interface UI_I_NetworksWithPositions
|
|
212
|
-
extends Omit<UI_I_Network, 'ports'> {
|
|
213
|
-
ports: (UI_I_Port & { portPosition: number })[]
|
|
214
|
-
portsCount: number
|
|
215
|
-
portsHeight: number
|
|
216
|
-
networkHeight: number
|
|
217
|
-
rectPosition: number
|
|
218
|
-
connectLineY: number
|
|
219
|
-
titlePosition: number
|
|
220
|
-
vlanPosition: number
|
|
221
|
-
vlanId: number | string
|
|
222
|
-
portsPosition: number
|
|
223
|
-
networkPortsName: string
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
export interface UI_I_ModalTab {
|
|
227
|
-
text: string
|
|
228
|
-
path?: string
|
|
229
|
-
iconClassName?: string
|
|
230
|
-
value: number
|
|
231
|
-
disabled?: boolean
|
|
232
|
-
separate?: boolean
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
export interface UI_I_ViewSettingsFields {
|
|
236
|
-
title?: string
|
|
237
|
-
id: number
|
|
238
|
-
type: number
|
|
239
|
-
separator?: boolean
|
|
240
|
-
slot?: string
|
|
241
|
-
data?: any
|
|
242
|
-
rows: {
|
|
243
|
-
name: string
|
|
244
|
-
value?: string | string[] | undefined
|
|
245
|
-
color?: boolean
|
|
246
|
-
status?: boolean
|
|
247
|
-
icon?: string
|
|
248
|
-
}[]
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
export interface UI_I_ToggleDiagramPortsPayload {
|
|
252
|
-
diagramId: string
|
|
253
|
-
id: string
|
|
254
|
-
isToggle: boolean
|
|
255
|
-
paths: string[]
|
|
256
|
-
}
|
|
257
|
-
export interface UI_I_ToggleDiagramAdaptersPayload {
|
|
258
|
-
diagramId: string
|
|
259
|
-
isToggle: boolean
|
|
260
|
-
paths: string[]
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
export interface UI_I_SecurityFields {
|
|
264
|
-
promiscuousMode: {
|
|
265
|
-
checked: boolean
|
|
266
|
-
selected: number
|
|
267
|
-
}
|
|
268
|
-
macAddressChanges: {
|
|
269
|
-
checked: boolean
|
|
270
|
-
selected: number
|
|
271
|
-
}
|
|
272
|
-
forgedTransmits: {
|
|
273
|
-
checked: boolean
|
|
274
|
-
selected: number
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
export interface UI_I_TeamingFailoverFields {
|
|
279
|
-
loadBalancing: {
|
|
280
|
-
checked: boolean
|
|
281
|
-
selected: number
|
|
282
|
-
}
|
|
283
|
-
networkFailureDetection: {
|
|
284
|
-
checked: boolean
|
|
285
|
-
selected: number
|
|
286
|
-
}
|
|
287
|
-
notifySwitches: {
|
|
288
|
-
checked: boolean
|
|
289
|
-
selected: number
|
|
290
|
-
}
|
|
291
|
-
failback: {
|
|
292
|
-
checked: boolean
|
|
293
|
-
selected: number
|
|
294
|
-
}
|
|
295
|
-
failoverOrder: {
|
|
296
|
-
checked: boolean
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
export interface UI_I_TeamingFailoverWithAdaptersFields
|
|
301
|
-
extends UI_I_TeamingFailoverFields {
|
|
302
|
-
adapters: UI_I_AdapterStatus
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
export interface UI_I_TrafficShapingFields {
|
|
306
|
-
status: {
|
|
307
|
-
checked: boolean
|
|
308
|
-
selected: number
|
|
309
|
-
}
|
|
310
|
-
average: number
|
|
311
|
-
peak: number
|
|
312
|
-
burstSize: number
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
export interface UI_I_IpvFourSettingsFields {
|
|
316
|
-
ipv4Settings: string
|
|
317
|
-
ipv4Address: string
|
|
318
|
-
subnetMask: string
|
|
319
|
-
defaultGateway: {
|
|
320
|
-
checked: boolean
|
|
321
|
-
value: string
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
export interface UI_I_PortPropertiesFields {
|
|
326
|
-
mtu: number
|
|
327
|
-
tcpIp: string
|
|
328
|
-
services: {
|
|
329
|
-
vMotion: boolean
|
|
330
|
-
provisioning: boolean
|
|
331
|
-
faultToleranceLogging: boolean
|
|
332
|
-
management: boolean
|
|
333
|
-
replication: boolean
|
|
334
|
-
replicationNFC: boolean
|
|
335
|
-
vSAN: boolean
|
|
336
|
-
backupNFC: boolean
|
|
337
|
-
nVMeOverTCP: boolean
|
|
338
|
-
nVMeOverRDMA: boolean
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
export interface UI_I_AdapterStatus {
|
|
343
|
-
active?: string[]
|
|
344
|
-
standby?: string[]
|
|
345
|
-
unused?: string[]
|
|
346
|
-
connected?: string[]
|
|
347
|
-
inherit?: boolean
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
export interface UI_I_AdapterNameWithStatus {
|
|
351
|
-
adapterName: string
|
|
352
|
-
status: string
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
export interface UI_I_SwitchPropertiesFields {
|
|
356
|
-
mtu: number
|
|
357
|
-
num_ports: string
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
export interface UI_I_VmkernelAdapterTableData {
|
|
361
|
-
name: string
|
|
362
|
-
networkLabel: string
|
|
363
|
-
switch: string
|
|
364
|
-
ipAddress: string
|
|
365
|
-
tcp: string
|
|
366
|
-
id: string
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
export interface UI_I_SelectedVmkernelAdapterTableRaw {
|
|
370
|
-
text: string
|
|
371
|
-
editable: boolean
|
|
372
|
-
id?: string
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
export interface UI_I_ModalsInitialData<T = string | number | boolean> {
|
|
376
|
-
portName?: string
|
|
377
|
-
networkLabel?: string
|
|
378
|
-
vlanId?: string | number
|
|
379
|
-
securityPolicy?: UI_I_NetworkSummaryPortletListItem<T>[]
|
|
380
|
-
shapingPolicy?: UI_I_NetworkSummaryPortletListItem<T>[]
|
|
381
|
-
nicTeamingPolicy?: UI_I_NetworkSummaryPortletListItem<
|
|
382
|
-
T | UI_E_ICBLinkDetectionMode
|
|
383
|
-
>[]
|
|
384
|
-
|
|
385
|
-
mtu?: number
|
|
386
|
-
num_ports?: string
|
|
387
|
-
switch_name?: string
|
|
388
|
-
|
|
389
|
-
average_bw?: number
|
|
390
|
-
peak_bw?: number
|
|
391
|
-
burst_size?: number
|
|
392
|
-
activeAdapters?: UI_I_Adapter | string[]
|
|
393
|
-
standbyAdapters?: UI_I_Adapter | string[]
|
|
394
|
-
unusedAdapters?: UI_I_Adapter | string[]
|
|
395
|
-
nics_override?: boolean
|
|
396
|
-
|
|
397
|
-
//I_Adapter
|
|
398
|
-
id?: string
|
|
399
|
-
name?: string
|
|
400
|
-
fullName?: string
|
|
401
|
-
adapter?: string
|
|
402
|
-
pciAddress?: string
|
|
403
|
-
driver?: string
|
|
404
|
-
carrier?: boolean
|
|
405
|
-
speed?: number
|
|
406
|
-
duplex?: string
|
|
407
|
-
networks?: string[] | null
|
|
408
|
-
srIov?: boolean
|
|
409
|
-
cdp?: boolean
|
|
410
|
-
lldp?: boolean
|
|
411
|
-
macAddress?: string
|
|
412
|
-
vmTitle?: string
|
|
413
|
-
|
|
414
|
-
// properties: {
|
|
415
|
-
// services?: {
|
|
416
|
-
// management?: boolean
|
|
417
|
-
// provisioning?: boolean
|
|
418
|
-
// vSAN?: boolean
|
|
419
|
-
// }
|
|
420
|
-
// tcpIp: string
|
|
421
|
-
// }
|
|
422
|
-
//
|
|
423
|
-
// ipvFourSettings?: {
|
|
424
|
-
// ipv4Settings?: string
|
|
425
|
-
// ipv4Address?: string
|
|
426
|
-
// subnetMask?: string
|
|
427
|
-
// defaultGateway?: {
|
|
428
|
-
// checked?: boolean
|
|
429
|
-
// value?: string
|
|
430
|
-
// }
|
|
431
|
-
// }
|
|
432
|
-
|
|
433
|
-
// TODO Remove those
|
|
434
|
-
services?: {
|
|
435
|
-
vMotion?: boolean
|
|
436
|
-
provisioning?: boolean
|
|
437
|
-
faultToleranceLogging?: boolean
|
|
438
|
-
management?: boolean
|
|
439
|
-
replication?: boolean
|
|
440
|
-
replicationNFC?: boolean
|
|
441
|
-
vSAN?: boolean
|
|
442
|
-
backupNFC?: boolean
|
|
443
|
-
nVMeOverTCP?: boolean
|
|
444
|
-
nVMeOverRDMA?: boolean
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
tcpConfig?: {
|
|
448
|
-
ipv4Settings?: string
|
|
449
|
-
ipv4Address?: string
|
|
450
|
-
subnetMask?: string
|
|
451
|
-
defaultGateway?: {
|
|
452
|
-
checked?: boolean
|
|
453
|
-
value?: string
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
tcpIp?: string
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
export interface UI_I_AdapterWithError {
|
|
460
|
-
name: string
|
|
461
|
-
id: string
|
|
462
|
-
testId: string
|
|
463
|
-
fullName: string
|
|
464
|
-
state: UI_I_State
|
|
465
|
-
carrier: boolean
|
|
466
|
-
networks: string[]
|
|
467
|
-
switch: string
|
|
468
|
-
status: string
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
export interface UI_I_SwitchAdapterItem {
|
|
472
|
-
name: string
|
|
473
|
-
id: string
|
|
474
|
-
testId: string
|
|
475
|
-
fullName: string
|
|
476
|
-
state: UI_I_State
|
|
477
|
-
adapter: string
|
|
478
|
-
pciAddress: string
|
|
479
|
-
driver: string
|
|
480
|
-
carrier?: boolean
|
|
481
|
-
speed?: number
|
|
482
|
-
duplex: string
|
|
483
|
-
networks: string[]
|
|
484
|
-
srIov?: boolean
|
|
485
|
-
cdp?: boolean
|
|
486
|
-
lldp?: boolean
|
|
487
|
-
managed?: boolean
|
|
488
|
-
switch?: string
|
|
489
|
-
mac: string
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
export interface UI_I_AvailableAdapters {
|
|
493
|
-
activeAdapters: string[]
|
|
494
|
-
standbyAdapters: string[]
|
|
495
|
-
unusedAdapters: string[]
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
export interface API_UI_I_SwitchAdapterItem {
|
|
499
|
-
id: string
|
|
500
|
-
state: UI_I_State
|
|
501
|
-
index?: UI_I_ListIndex
|
|
502
|
-
adapter: string
|
|
503
|
-
pci_addr: string
|
|
504
|
-
driver: string
|
|
505
|
-
carrier?: boolean
|
|
506
|
-
speed?: number
|
|
507
|
-
duplex: string
|
|
508
|
-
networks?: string[]
|
|
509
|
-
sr_iov?: boolean
|
|
510
|
-
cdp?: boolean
|
|
511
|
-
lldp?: boolean
|
|
512
|
-
managed?: boolean
|
|
513
|
-
name: string
|
|
514
|
-
switch?: string
|
|
515
|
-
mac: string
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
export interface UI_I_TeamingAndFailoverTemplate {
|
|
519
|
-
key: string
|
|
520
|
-
testId?: string
|
|
521
|
-
options: {
|
|
522
|
-
value: string | number
|
|
523
|
-
text: string
|
|
524
|
-
}[]
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
export interface UI_I_PropertiesFields {
|
|
528
|
-
vlanId: string | number
|
|
529
|
-
networkLabel: string
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
export interface UI_I_EditFieldsData {
|
|
533
|
-
properties?:
|
|
534
|
-
| UI_I_PropertiesFields
|
|
535
|
-
| UI_I_SwitchPropertiesFields
|
|
536
|
-
| UI_I_PortPropertiesFields
|
|
537
|
-
security?: UI_I_SecurityFields
|
|
538
|
-
trafficShaping?: UI_I_TrafficShapingFields
|
|
539
|
-
teamingFailover?: UI_I_TeamingFailoverWithAdaptersFields
|
|
540
|
-
ipvFourSettings?: UI_I_IpvFourSettingsFields
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
export interface UI_I_EditSettingsErrorMessage {
|
|
544
|
-
networkLabel?: string
|
|
545
|
-
vlanId?: string
|
|
546
|
-
average?: string
|
|
547
|
-
peak?: string
|
|
548
|
-
burstSize?: string
|
|
549
|
-
mtu?: string
|
|
550
|
-
ipFourAddress?: string
|
|
551
|
-
subnetMask?: string
|
|
552
|
-
defaultGateway?: string
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
export interface UI_I_NavigationItem {
|
|
556
|
-
text: string
|
|
557
|
-
value: string
|
|
558
|
-
testId?: string
|
|
559
|
-
development?: boolean
|
|
560
|
-
permission?: string
|
|
561
|
-
}
|
|
562
|
-
|
|
563
|
-
export interface UI_I_ModalTabs {
|
|
564
|
-
text: string
|
|
565
|
-
value: number
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
export interface API_UI_I_Security {
|
|
569
|
-
forged_transmits?: UI_E_IYNOption
|
|
570
|
-
mac_change?: UI_E_IYNOption
|
|
571
|
-
promiscuous?: UI_E_IYNOption
|
|
572
|
-
promiscuous_computed?: UI_E_IYNOption
|
|
573
|
-
mac_change_computed?: UI_E_IYNOption
|
|
574
|
-
forged_transmits_computed?: UI_E_IYNOption
|
|
575
|
-
}
|
|
576
|
-
export interface API_UI_I_Shaping {
|
|
577
|
-
enabled?: boolean
|
|
578
|
-
inherit?: boolean
|
|
579
|
-
average_bw?: number
|
|
580
|
-
burst_size?: number
|
|
581
|
-
peak_bw?: number
|
|
582
|
-
}
|
|
583
|
-
export interface API_UI_I_State {
|
|
584
|
-
state: UI_E_State
|
|
585
|
-
errors?: string[]
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
export interface API_UI_I_Teaming {
|
|
589
|
-
mode?: UI_E_IBSTLoadBalancingMode
|
|
590
|
-
link_detection_mode?: UI_E_ICBLinkDetectionMode
|
|
591
|
-
notify_switches?: UI_E_IYNOption
|
|
592
|
-
failback?: UI_E_IYNOption
|
|
593
|
-
mode_computed?: UI_E_IBSTLoadBalancingMode
|
|
594
|
-
link_detection_mode_computed?: UI_E_ICBLinkDetectionMode
|
|
595
|
-
notify_switches_computed?: UI_E_IYNOption
|
|
596
|
-
failback_computed?: UI_E_IYNOption
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
interface API_UI_I_ListIndex {
|
|
600
|
-
idx: number
|
|
601
|
-
count: number
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
export interface API_UI_I_SwitchItem {
|
|
605
|
-
id: string
|
|
606
|
-
state?: API_UI_I_State
|
|
607
|
-
index?: API_UI_I_ListIndex
|
|
608
|
-
mtu: number
|
|
609
|
-
security: API_UI_I_Security
|
|
610
|
-
shaping: API_UI_I_Shaping
|
|
611
|
-
teaming: API_UI_I_Teaming
|
|
612
|
-
nics: UI_I_AdapterStatus
|
|
613
|
-
networks: string[]
|
|
614
|
-
|
|
615
|
-
num_ports?: string // TODO MAMMA MIA, WHERE IS IIIIIT?
|
|
616
|
-
}
|
|
617
|
-
export interface API_UI_I_SwitchItems {
|
|
618
|
-
items: API_UI_I_SwitchItem[]
|
|
619
|
-
total_items: number
|
|
620
|
-
total_pages: number
|
|
621
|
-
}
|
|
622
|
-
// API_UI_I_D_VSwitchItem
|
|
623
|
-
export interface UI_I_SelectedSwitchPositions {
|
|
624
|
-
selectedSwitchLineY: UI_I_SwitchLine
|
|
625
|
-
selectedPort: UI_I_SelectedPort
|
|
626
|
-
}
|
|
627
|
-
|
|
628
|
-
export interface UI_I_AdaptersHeight {
|
|
629
|
-
height: number
|
|
630
|
-
toggle: boolean
|
|
631
|
-
adaptersCount: number
|
|
632
|
-
}
|
|
633
|
-
|
|
634
|
-
export interface UI_I_AdaptersPositions {
|
|
635
|
-
titlePosition: number
|
|
636
|
-
rectPosition: number
|
|
637
|
-
adaptersConnectLineY: number
|
|
638
|
-
adapters: UI_T_Adapters[] | null
|
|
639
|
-
}
|
|
640
|
-
|
|
641
|
-
export interface UI_I_NetworkEditSendData {
|
|
642
|
-
id: string
|
|
643
|
-
name: string
|
|
644
|
-
vlan: number
|
|
645
|
-
switch: string
|
|
646
|
-
security: API_UI_I_Security
|
|
647
|
-
shaping: API_UI_I_Shaping
|
|
648
|
-
teaming: API_UI_I_Teaming
|
|
649
|
-
nics: UI_I_AdapterStatus
|
|
650
|
-
}
|
|
651
|
-
|
|
652
|
-
export interface UI_I_PortEditSendData {
|
|
653
|
-
id: string
|
|
654
|
-
tcp_stack: string
|
|
655
|
-
services: {
|
|
656
|
-
Management: boolean
|
|
657
|
-
VMotion: boolean
|
|
658
|
-
Provisioning: boolean
|
|
659
|
-
VSAN: boolean
|
|
660
|
-
// FaultToleranceLogging: boolean
|
|
661
|
-
// VSphereReplication: boolean
|
|
662
|
-
// VSphereReplicationNFC: boolean
|
|
663
|
-
// VSphereBackupNFC: boolean
|
|
664
|
-
// NVMeOverTCP: boolean
|
|
665
|
-
// NVMeOverRDMA: boolean
|
|
666
|
-
}
|
|
667
|
-
mtu: number
|
|
668
|
-
ipv4_settings: {
|
|
669
|
-
auto: boolean
|
|
670
|
-
ipv4?: number | string
|
|
671
|
-
mask?: number | string
|
|
672
|
-
gateway_override?: boolean
|
|
673
|
-
gateway?: number | string
|
|
674
|
-
}
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
export interface UI_I_SwitchEditSendData {
|
|
678
|
-
id: string
|
|
679
|
-
mtu: number
|
|
680
|
-
nics: UI_I_AdapterStatus
|
|
681
|
-
security: API_UI_I_Security
|
|
682
|
-
shaping: API_UI_I_Shaping
|
|
683
|
-
teaming: API_UI_I_Teaming
|
|
684
|
-
}
|
|
685
|
-
|
|
686
|
-
export interface UI_I_MigrateVmkernelAdapterEmits {
|
|
687
|
-
(
|
|
688
|
-
event: 'check-network-label',
|
|
689
|
-
networkLabel: string,
|
|
690
|
-
cb: (error_message: string) => void
|
|
691
|
-
): void
|
|
692
|
-
(event: 'hide'): void
|
|
693
|
-
}
|
|
694
|
-
|
|
695
|
-
export interface UI_I_MigrationVmkernelAdapterReadyComplete {
|
|
696
|
-
vm: string
|
|
697
|
-
currentSettings: {
|
|
698
|
-
switch: string
|
|
699
|
-
network: string
|
|
700
|
-
}
|
|
701
|
-
newSettings: {
|
|
702
|
-
switch: string
|
|
703
|
-
network: string
|
|
704
|
-
}
|
|
705
|
-
vlanId: string
|
|
706
|
-
}
|
|
707
|
-
|
|
708
|
-
export interface UI_I_PortToggleFlag {
|
|
709
|
-
value: boolean
|
|
710
|
-
id: string
|
|
711
|
-
}
|
|
712
|
-
|
|
713
|
-
// TODO today start
|
|
714
|
-
export interface API_UI_I_NetworkPortInfo {
|
|
715
|
-
id: string
|
|
716
|
-
name: string
|
|
717
|
-
mac: string
|
|
718
|
-
adapter: string
|
|
719
|
-
}
|
|
720
|
-
|
|
721
|
-
export interface API_UI_I_NetworkVMList {
|
|
722
|
-
id: string
|
|
723
|
-
name: string
|
|
724
|
-
ports: API_UI_I_NetworkPortInfo[]
|
|
725
|
-
is_active: boolean
|
|
726
|
-
}
|
|
727
|
-
|
|
728
|
-
export interface API_UI_I_Network {
|
|
729
|
-
id: string
|
|
730
|
-
name: string
|
|
731
|
-
state: UI_I_State
|
|
732
|
-
index?: UI_I_ListIndex
|
|
733
|
-
vlan: number
|
|
734
|
-
net_bridge: string
|
|
735
|
-
kind: UI_E_Kind
|
|
736
|
-
switch: string // vswitch_name
|
|
737
|
-
vms_count?: number // vms_amount
|
|
738
|
-
active_ports?: number
|
|
739
|
-
nics_overrided?: boolean
|
|
740
|
-
vm_list?: API_UI_I_NetworkVMList[]
|
|
741
|
-
sysx?: UI_I_Sysx
|
|
742
|
-
security: API_UI_I_Security
|
|
743
|
-
shaping: API_UI_I_Shaping
|
|
744
|
-
teaming: API_UI_I_Teaming
|
|
745
|
-
nics: UI_I_AdapterStatus
|
|
746
|
-
}
|
|
747
|
-
|
|
748
|
-
export interface UI_I_NetworkPositionsConst {
|
|
749
|
-
readonly EMPTY_PORTS_PADDING_BOTTOM: 7.5
|
|
750
|
-
readonly FROM_VLAN_ID_TO_GROUP_NAME: 22
|
|
751
|
-
readonly VMS_AND_PORTS_HEIGHT: 22
|
|
752
|
-
readonly V_CENTER_HEIGHT: 32
|
|
753
|
-
readonly BETWEEN_VMS_AND_PORTS: 7.5
|
|
754
|
-
readonly BETWEEN_V_CENTERS: 12.5
|
|
755
|
-
}
|
|
756
|
-
|
|
757
|
-
export interface UI_I_FirstAndLastNetworkLinesY {
|
|
758
|
-
firstNetworkY: number
|
|
759
|
-
lastNetworkY: number
|
|
760
|
-
}
|
|
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'
|
|
3
|
+
import { UI_E_NetworkType } from './enums'
|
|
4
|
+
import type { UI_T_Adapters } from '~/components/common/diagramMain/lib/models/types'
|
|
5
|
+
import {
|
|
6
|
+
UI_E_IYNOption,
|
|
7
|
+
UI_E_ICBLinkDetectionMode,
|
|
8
|
+
UI_E_IBSTLoadBalancingMode,
|
|
9
|
+
} from '~/components/common/diagramMain/lib/models/enums'
|
|
10
|
+
|
|
11
|
+
export interface UI_I_Port {
|
|
12
|
+
id: string
|
|
13
|
+
name: string
|
|
14
|
+
macAddress?: string
|
|
15
|
+
adapter?: string
|
|
16
|
+
isActive?: boolean
|
|
17
|
+
testId: string
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface UI_I_Adapter {
|
|
21
|
+
name: string
|
|
22
|
+
id: string
|
|
23
|
+
testId: string
|
|
24
|
+
fullName: string
|
|
25
|
+
state: UI_I_State
|
|
26
|
+
adapter: string
|
|
27
|
+
pciAddress: string
|
|
28
|
+
driver: string
|
|
29
|
+
carrier?: boolean
|
|
30
|
+
speed?: number
|
|
31
|
+
duplex: string
|
|
32
|
+
networks: string[]
|
|
33
|
+
srIov?: boolean
|
|
34
|
+
cdp?: boolean
|
|
35
|
+
lldp?: boolean
|
|
36
|
+
managed?: boolean
|
|
37
|
+
switch?: string
|
|
38
|
+
mac: string
|
|
39
|
+
status: string
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface UI_I_PhysicalAdapters {
|
|
43
|
+
toggle: boolean
|
|
44
|
+
adapters: (UI_I_Adapter | UI_I_AdapterWithError)[]
|
|
45
|
+
}
|
|
46
|
+
export interface UI_I_MainRectHeights {
|
|
47
|
+
networksHeight: number
|
|
48
|
+
adaptersHeight: number
|
|
49
|
+
}
|
|
50
|
+
export interface UI_I_SwitchLine {
|
|
51
|
+
y1: number
|
|
52
|
+
y2: number
|
|
53
|
+
ay?: number
|
|
54
|
+
}
|
|
55
|
+
export interface UI_I_SelectedPort {
|
|
56
|
+
networkId: string
|
|
57
|
+
portId: string
|
|
58
|
+
activeAdapters: string[]
|
|
59
|
+
}
|
|
60
|
+
export interface UI_I_ConnectedPort {
|
|
61
|
+
networkId: string
|
|
62
|
+
ports: string[]
|
|
63
|
+
}
|
|
64
|
+
export interface UI_I_SelectedAdapter {
|
|
65
|
+
adapterId: string
|
|
66
|
+
connectedPorts: UI_I_ConnectedPort[]
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface UI_I_Sysx {
|
|
70
|
+
id: string
|
|
71
|
+
testId: string
|
|
72
|
+
state: UI_I_State
|
|
73
|
+
index: UI_I_ListIndex
|
|
74
|
+
switch: string
|
|
75
|
+
network_id: string
|
|
76
|
+
tcp_stack: string
|
|
77
|
+
services: {
|
|
78
|
+
// New interface
|
|
79
|
+
Management: boolean
|
|
80
|
+
// VMotion: boolean
|
|
81
|
+
Provisioning: boolean
|
|
82
|
+
VSAN: boolean
|
|
83
|
+
// FaultToleranceLogging: boolean
|
|
84
|
+
// VSphereReplication: boolean
|
|
85
|
+
// VSphereReplicationNFC: boolean
|
|
86
|
+
// VSphereBackupNFC: boolean
|
|
87
|
+
// NVMeOverTCP: boolean
|
|
88
|
+
// NVMeOverRDMA: boolean
|
|
89
|
+
|
|
90
|
+
// management: boolean
|
|
91
|
+
// vmotion: boolean
|
|
92
|
+
// provisioning: boolean
|
|
93
|
+
// vsan: boolean
|
|
94
|
+
// fault_tolerance_logging: boolean
|
|
95
|
+
// vsphere_replication: boolean
|
|
96
|
+
// vsphere_replication_nfc: boolean
|
|
97
|
+
// vsphere_backup_nfc: boolean
|
|
98
|
+
// nvme_over_tcp: boolean
|
|
99
|
+
// nvme_over_rdma: boolean
|
|
100
|
+
}
|
|
101
|
+
mtu: number
|
|
102
|
+
ipv4_settings: {
|
|
103
|
+
auto: boolean
|
|
104
|
+
ipv4: number | string
|
|
105
|
+
mask: number | string
|
|
106
|
+
gateway_override: boolean
|
|
107
|
+
gateway: number | string
|
|
108
|
+
routing_table?: number
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export interface UI_I_OverrideValue<T = string | number | boolean> {
|
|
113
|
+
override: boolean
|
|
114
|
+
value: T
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export interface UI_I_NetworkSummaryPortletListItem<
|
|
118
|
+
T = string | number | boolean
|
|
119
|
+
> {
|
|
120
|
+
label?: string
|
|
121
|
+
value: T
|
|
122
|
+
id: string
|
|
123
|
+
initialValue: UI_I_OverrideValue<T>
|
|
124
|
+
testId?: string
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export interface UI_I_NetworkInfo<T = string | number | boolean> {
|
|
128
|
+
average_bw: number
|
|
129
|
+
burst_size: number
|
|
130
|
+
nicTeamingPolicy: UI_I_NetworkSummaryPortletListItem<T>[]
|
|
131
|
+
nics_override: boolean
|
|
132
|
+
peak_bw: number
|
|
133
|
+
securityPolicy: UI_I_NetworkSummaryPortletListItem<T>[]
|
|
134
|
+
shapingPolicy: UI_I_NetworkSummaryPortletListItem<T>[]
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export interface UI_I_Network extends UI_I_NetworkInfo {
|
|
138
|
+
activeAdapters: string[]
|
|
139
|
+
id: string
|
|
140
|
+
networkType: UI_E_NetworkType
|
|
141
|
+
ports: UI_I_Port[]
|
|
142
|
+
standbyAdapters?: string[]
|
|
143
|
+
switchName?: string
|
|
144
|
+
sysx?: UI_I_Sysx
|
|
145
|
+
title: string
|
|
146
|
+
toggle: boolean
|
|
147
|
+
unusedAdapters?: string[]
|
|
148
|
+
vlanId?: number | string
|
|
149
|
+
testId: string
|
|
150
|
+
state: {
|
|
151
|
+
state: UI_E_State
|
|
152
|
+
errors?: string[]
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export interface UI_I_NetworkWithError {
|
|
157
|
+
id: string
|
|
158
|
+
networkType: UI_E_NetworkType
|
|
159
|
+
ports?: UI_I_Port[]
|
|
160
|
+
sysx?: UI_I_Sysx
|
|
161
|
+
switchName: string
|
|
162
|
+
title: string
|
|
163
|
+
toggle: boolean
|
|
164
|
+
testId: string
|
|
165
|
+
state: {
|
|
166
|
+
state: UI_E_State
|
|
167
|
+
errors?: string[]
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export interface UI_I_SwitchInfo extends UI_I_NetworkInfo {
|
|
172
|
+
mtu: number
|
|
173
|
+
num_ports: string
|
|
174
|
+
activeAdapters: UI_I_Adapter[] | string[]
|
|
175
|
+
standbyAdapters: UI_I_Adapter[] | string[]
|
|
176
|
+
unusedAdapters: UI_I_Adapter[] | string[]
|
|
177
|
+
switch_name: string
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export interface UI_I_NetworkFullWithPositions extends UI_I_Network {
|
|
181
|
+
portsCount: number
|
|
182
|
+
portsHeight: number
|
|
183
|
+
networkHeight: number
|
|
184
|
+
rectPosition: number
|
|
185
|
+
connectLineY: number
|
|
186
|
+
titlePosition: number
|
|
187
|
+
vlanPosition: number
|
|
188
|
+
portsPosition: number
|
|
189
|
+
networkPortsName: string
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export interface UI_I_DiagramData {
|
|
193
|
+
id: string
|
|
194
|
+
testId: string
|
|
195
|
+
diagramName: string
|
|
196
|
+
networks: UI_I_Network[]
|
|
197
|
+
networking?: UI_I_SwitchInfo
|
|
198
|
+
physicalAdapters: UI_I_PhysicalAdapters | null
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export interface UI_I_AdaptersWithPositions {
|
|
202
|
+
toggle: boolean
|
|
203
|
+
height: number
|
|
204
|
+
adapters: UI_T_Adapters[] | null
|
|
205
|
+
rectPosition: number
|
|
206
|
+
adaptersConnectLineY: number
|
|
207
|
+
titlePosition: number
|
|
208
|
+
adaptersCount: number
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export interface UI_I_NetworksWithPositions
|
|
212
|
+
extends Omit<UI_I_Network, 'ports'> {
|
|
213
|
+
ports: (UI_I_Port & { portPosition: number })[]
|
|
214
|
+
portsCount: number
|
|
215
|
+
portsHeight: number
|
|
216
|
+
networkHeight: number
|
|
217
|
+
rectPosition: number
|
|
218
|
+
connectLineY: number
|
|
219
|
+
titlePosition: number
|
|
220
|
+
vlanPosition: number
|
|
221
|
+
vlanId: number | string
|
|
222
|
+
portsPosition: number
|
|
223
|
+
networkPortsName: string
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
export interface UI_I_ModalTab {
|
|
227
|
+
text: string
|
|
228
|
+
path?: string
|
|
229
|
+
iconClassName?: string
|
|
230
|
+
value: number
|
|
231
|
+
disabled?: boolean
|
|
232
|
+
separate?: boolean
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export interface UI_I_ViewSettingsFields {
|
|
236
|
+
title?: string
|
|
237
|
+
id: number
|
|
238
|
+
type: number
|
|
239
|
+
separator?: boolean
|
|
240
|
+
slot?: string
|
|
241
|
+
data?: any
|
|
242
|
+
rows: {
|
|
243
|
+
name: string
|
|
244
|
+
value?: string | string[] | undefined
|
|
245
|
+
color?: boolean
|
|
246
|
+
status?: boolean
|
|
247
|
+
icon?: string
|
|
248
|
+
}[]
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
export interface UI_I_ToggleDiagramPortsPayload {
|
|
252
|
+
diagramId: string
|
|
253
|
+
id: string
|
|
254
|
+
isToggle: boolean
|
|
255
|
+
paths: string[]
|
|
256
|
+
}
|
|
257
|
+
export interface UI_I_ToggleDiagramAdaptersPayload {
|
|
258
|
+
diagramId: string
|
|
259
|
+
isToggle: boolean
|
|
260
|
+
paths: string[]
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
export interface UI_I_SecurityFields {
|
|
264
|
+
promiscuousMode: {
|
|
265
|
+
checked: boolean
|
|
266
|
+
selected: number
|
|
267
|
+
}
|
|
268
|
+
macAddressChanges: {
|
|
269
|
+
checked: boolean
|
|
270
|
+
selected: number
|
|
271
|
+
}
|
|
272
|
+
forgedTransmits: {
|
|
273
|
+
checked: boolean
|
|
274
|
+
selected: number
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
export interface UI_I_TeamingFailoverFields {
|
|
279
|
+
loadBalancing: {
|
|
280
|
+
checked: boolean
|
|
281
|
+
selected: number
|
|
282
|
+
}
|
|
283
|
+
networkFailureDetection: {
|
|
284
|
+
checked: boolean
|
|
285
|
+
selected: number
|
|
286
|
+
}
|
|
287
|
+
notifySwitches: {
|
|
288
|
+
checked: boolean
|
|
289
|
+
selected: number
|
|
290
|
+
}
|
|
291
|
+
failback: {
|
|
292
|
+
checked: boolean
|
|
293
|
+
selected: number
|
|
294
|
+
}
|
|
295
|
+
failoverOrder: {
|
|
296
|
+
checked: boolean
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
export interface UI_I_TeamingFailoverWithAdaptersFields
|
|
301
|
+
extends UI_I_TeamingFailoverFields {
|
|
302
|
+
adapters: UI_I_AdapterStatus
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
export interface UI_I_TrafficShapingFields {
|
|
306
|
+
status: {
|
|
307
|
+
checked: boolean
|
|
308
|
+
selected: number
|
|
309
|
+
}
|
|
310
|
+
average: number
|
|
311
|
+
peak: number
|
|
312
|
+
burstSize: number
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
export interface UI_I_IpvFourSettingsFields {
|
|
316
|
+
ipv4Settings: string
|
|
317
|
+
ipv4Address: string
|
|
318
|
+
subnetMask: string
|
|
319
|
+
defaultGateway: {
|
|
320
|
+
checked: boolean
|
|
321
|
+
value: string
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
export interface UI_I_PortPropertiesFields {
|
|
326
|
+
mtu: number
|
|
327
|
+
tcpIp: string
|
|
328
|
+
services: {
|
|
329
|
+
vMotion: boolean
|
|
330
|
+
provisioning: boolean
|
|
331
|
+
faultToleranceLogging: boolean
|
|
332
|
+
management: boolean
|
|
333
|
+
replication: boolean
|
|
334
|
+
replicationNFC: boolean
|
|
335
|
+
vSAN: boolean
|
|
336
|
+
backupNFC: boolean
|
|
337
|
+
nVMeOverTCP: boolean
|
|
338
|
+
nVMeOverRDMA: boolean
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
export interface UI_I_AdapterStatus {
|
|
343
|
+
active?: string[]
|
|
344
|
+
standby?: string[]
|
|
345
|
+
unused?: string[]
|
|
346
|
+
connected?: string[]
|
|
347
|
+
inherit?: boolean
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
export interface UI_I_AdapterNameWithStatus {
|
|
351
|
+
adapterName: string
|
|
352
|
+
status: string
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
export interface UI_I_SwitchPropertiesFields {
|
|
356
|
+
mtu: number
|
|
357
|
+
num_ports: string
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
export interface UI_I_VmkernelAdapterTableData {
|
|
361
|
+
name: string
|
|
362
|
+
networkLabel: string
|
|
363
|
+
switch: string
|
|
364
|
+
ipAddress: string
|
|
365
|
+
tcp: string
|
|
366
|
+
id: string
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
export interface UI_I_SelectedVmkernelAdapterTableRaw {
|
|
370
|
+
text: string
|
|
371
|
+
editable: boolean
|
|
372
|
+
id?: string
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
export interface UI_I_ModalsInitialData<T = string | number | boolean> {
|
|
376
|
+
portName?: string
|
|
377
|
+
networkLabel?: string
|
|
378
|
+
vlanId?: string | number
|
|
379
|
+
securityPolicy?: UI_I_NetworkSummaryPortletListItem<T>[]
|
|
380
|
+
shapingPolicy?: UI_I_NetworkSummaryPortletListItem<T>[]
|
|
381
|
+
nicTeamingPolicy?: UI_I_NetworkSummaryPortletListItem<
|
|
382
|
+
T | UI_E_ICBLinkDetectionMode
|
|
383
|
+
>[]
|
|
384
|
+
|
|
385
|
+
mtu?: number
|
|
386
|
+
num_ports?: string
|
|
387
|
+
switch_name?: string
|
|
388
|
+
|
|
389
|
+
average_bw?: number
|
|
390
|
+
peak_bw?: number
|
|
391
|
+
burst_size?: number
|
|
392
|
+
activeAdapters?: UI_I_Adapter | string[]
|
|
393
|
+
standbyAdapters?: UI_I_Adapter | string[]
|
|
394
|
+
unusedAdapters?: UI_I_Adapter | string[]
|
|
395
|
+
nics_override?: boolean
|
|
396
|
+
|
|
397
|
+
//I_Adapter
|
|
398
|
+
id?: string
|
|
399
|
+
name?: string
|
|
400
|
+
fullName?: string
|
|
401
|
+
adapter?: string
|
|
402
|
+
pciAddress?: string
|
|
403
|
+
driver?: string
|
|
404
|
+
carrier?: boolean
|
|
405
|
+
speed?: number
|
|
406
|
+
duplex?: string
|
|
407
|
+
networks?: string[] | null
|
|
408
|
+
srIov?: boolean
|
|
409
|
+
cdp?: boolean
|
|
410
|
+
lldp?: boolean
|
|
411
|
+
macAddress?: string
|
|
412
|
+
vmTitle?: string
|
|
413
|
+
|
|
414
|
+
// properties: {
|
|
415
|
+
// services?: {
|
|
416
|
+
// management?: boolean
|
|
417
|
+
// provisioning?: boolean
|
|
418
|
+
// vSAN?: boolean
|
|
419
|
+
// }
|
|
420
|
+
// tcpIp: string
|
|
421
|
+
// }
|
|
422
|
+
//
|
|
423
|
+
// ipvFourSettings?: {
|
|
424
|
+
// ipv4Settings?: string
|
|
425
|
+
// ipv4Address?: string
|
|
426
|
+
// subnetMask?: string
|
|
427
|
+
// defaultGateway?: {
|
|
428
|
+
// checked?: boolean
|
|
429
|
+
// value?: string
|
|
430
|
+
// }
|
|
431
|
+
// }
|
|
432
|
+
|
|
433
|
+
// TODO Remove those
|
|
434
|
+
services?: {
|
|
435
|
+
vMotion?: boolean
|
|
436
|
+
provisioning?: boolean
|
|
437
|
+
faultToleranceLogging?: boolean
|
|
438
|
+
management?: boolean
|
|
439
|
+
replication?: boolean
|
|
440
|
+
replicationNFC?: boolean
|
|
441
|
+
vSAN?: boolean
|
|
442
|
+
backupNFC?: boolean
|
|
443
|
+
nVMeOverTCP?: boolean
|
|
444
|
+
nVMeOverRDMA?: boolean
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
tcpConfig?: {
|
|
448
|
+
ipv4Settings?: string
|
|
449
|
+
ipv4Address?: string
|
|
450
|
+
subnetMask?: string
|
|
451
|
+
defaultGateway?: {
|
|
452
|
+
checked?: boolean
|
|
453
|
+
value?: string
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
tcpIp?: string
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
export interface UI_I_AdapterWithError {
|
|
460
|
+
name: string
|
|
461
|
+
id: string
|
|
462
|
+
testId: string
|
|
463
|
+
fullName: string
|
|
464
|
+
state: UI_I_State
|
|
465
|
+
carrier: boolean
|
|
466
|
+
networks: string[]
|
|
467
|
+
switch: string
|
|
468
|
+
status: string
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
export interface UI_I_SwitchAdapterItem {
|
|
472
|
+
name: string
|
|
473
|
+
id: string
|
|
474
|
+
testId: string
|
|
475
|
+
fullName: string
|
|
476
|
+
state: UI_I_State
|
|
477
|
+
adapter: string
|
|
478
|
+
pciAddress: string
|
|
479
|
+
driver: string
|
|
480
|
+
carrier?: boolean
|
|
481
|
+
speed?: number
|
|
482
|
+
duplex: string
|
|
483
|
+
networks: string[]
|
|
484
|
+
srIov?: boolean
|
|
485
|
+
cdp?: boolean
|
|
486
|
+
lldp?: boolean
|
|
487
|
+
managed?: boolean
|
|
488
|
+
switch?: string
|
|
489
|
+
mac: string
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
export interface UI_I_AvailableAdapters {
|
|
493
|
+
activeAdapters: string[]
|
|
494
|
+
standbyAdapters: string[]
|
|
495
|
+
unusedAdapters: string[]
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
export interface API_UI_I_SwitchAdapterItem {
|
|
499
|
+
id: string
|
|
500
|
+
state: UI_I_State
|
|
501
|
+
index?: UI_I_ListIndex
|
|
502
|
+
adapter: string
|
|
503
|
+
pci_addr: string
|
|
504
|
+
driver: string
|
|
505
|
+
carrier?: boolean
|
|
506
|
+
speed?: number
|
|
507
|
+
duplex: string
|
|
508
|
+
networks?: string[]
|
|
509
|
+
sr_iov?: boolean
|
|
510
|
+
cdp?: boolean
|
|
511
|
+
lldp?: boolean
|
|
512
|
+
managed?: boolean
|
|
513
|
+
name: string
|
|
514
|
+
switch?: string
|
|
515
|
+
mac: string
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
export interface UI_I_TeamingAndFailoverTemplate {
|
|
519
|
+
key: string
|
|
520
|
+
testId?: string
|
|
521
|
+
options: {
|
|
522
|
+
value: string | number
|
|
523
|
+
text: string
|
|
524
|
+
}[]
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
export interface UI_I_PropertiesFields {
|
|
528
|
+
vlanId: string | number
|
|
529
|
+
networkLabel: string
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
export interface UI_I_EditFieldsData {
|
|
533
|
+
properties?:
|
|
534
|
+
| UI_I_PropertiesFields
|
|
535
|
+
| UI_I_SwitchPropertiesFields
|
|
536
|
+
| UI_I_PortPropertiesFields
|
|
537
|
+
security?: UI_I_SecurityFields
|
|
538
|
+
trafficShaping?: UI_I_TrafficShapingFields
|
|
539
|
+
teamingFailover?: UI_I_TeamingFailoverWithAdaptersFields
|
|
540
|
+
ipvFourSettings?: UI_I_IpvFourSettingsFields
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
export interface UI_I_EditSettingsErrorMessage {
|
|
544
|
+
networkLabel?: string
|
|
545
|
+
vlanId?: string
|
|
546
|
+
average?: string
|
|
547
|
+
peak?: string
|
|
548
|
+
burstSize?: string
|
|
549
|
+
mtu?: string
|
|
550
|
+
ipFourAddress?: string
|
|
551
|
+
subnetMask?: string
|
|
552
|
+
defaultGateway?: string
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
export interface UI_I_NavigationItem {
|
|
556
|
+
text: string
|
|
557
|
+
value: string
|
|
558
|
+
testId?: string
|
|
559
|
+
development?: boolean
|
|
560
|
+
permission?: string
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
export interface UI_I_ModalTabs {
|
|
564
|
+
text: string
|
|
565
|
+
value: number
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
export interface API_UI_I_Security {
|
|
569
|
+
forged_transmits?: UI_E_IYNOption
|
|
570
|
+
mac_change?: UI_E_IYNOption
|
|
571
|
+
promiscuous?: UI_E_IYNOption
|
|
572
|
+
promiscuous_computed?: UI_E_IYNOption
|
|
573
|
+
mac_change_computed?: UI_E_IYNOption
|
|
574
|
+
forged_transmits_computed?: UI_E_IYNOption
|
|
575
|
+
}
|
|
576
|
+
export interface API_UI_I_Shaping {
|
|
577
|
+
enabled?: boolean
|
|
578
|
+
inherit?: boolean
|
|
579
|
+
average_bw?: number
|
|
580
|
+
burst_size?: number
|
|
581
|
+
peak_bw?: number
|
|
582
|
+
}
|
|
583
|
+
export interface API_UI_I_State {
|
|
584
|
+
state: UI_E_State
|
|
585
|
+
errors?: string[]
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
export interface API_UI_I_Teaming {
|
|
589
|
+
mode?: UI_E_IBSTLoadBalancingMode
|
|
590
|
+
link_detection_mode?: UI_E_ICBLinkDetectionMode
|
|
591
|
+
notify_switches?: UI_E_IYNOption
|
|
592
|
+
failback?: UI_E_IYNOption
|
|
593
|
+
mode_computed?: UI_E_IBSTLoadBalancingMode
|
|
594
|
+
link_detection_mode_computed?: UI_E_ICBLinkDetectionMode
|
|
595
|
+
notify_switches_computed?: UI_E_IYNOption
|
|
596
|
+
failback_computed?: UI_E_IYNOption
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
interface API_UI_I_ListIndex {
|
|
600
|
+
idx: number
|
|
601
|
+
count: number
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
export interface API_UI_I_SwitchItem {
|
|
605
|
+
id: string
|
|
606
|
+
state?: API_UI_I_State
|
|
607
|
+
index?: API_UI_I_ListIndex
|
|
608
|
+
mtu: number
|
|
609
|
+
security: API_UI_I_Security
|
|
610
|
+
shaping: API_UI_I_Shaping
|
|
611
|
+
teaming: API_UI_I_Teaming
|
|
612
|
+
nics: UI_I_AdapterStatus
|
|
613
|
+
networks: string[]
|
|
614
|
+
|
|
615
|
+
num_ports?: string // TODO MAMMA MIA, WHERE IS IIIIIT?
|
|
616
|
+
}
|
|
617
|
+
export interface API_UI_I_SwitchItems {
|
|
618
|
+
items: API_UI_I_SwitchItem[]
|
|
619
|
+
total_items: number
|
|
620
|
+
total_pages: number
|
|
621
|
+
}
|
|
622
|
+
// API_UI_I_D_VSwitchItem
|
|
623
|
+
export interface UI_I_SelectedSwitchPositions {
|
|
624
|
+
selectedSwitchLineY: UI_I_SwitchLine
|
|
625
|
+
selectedPort: UI_I_SelectedPort
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
export interface UI_I_AdaptersHeight {
|
|
629
|
+
height: number
|
|
630
|
+
toggle: boolean
|
|
631
|
+
adaptersCount: number
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
export interface UI_I_AdaptersPositions {
|
|
635
|
+
titlePosition: number
|
|
636
|
+
rectPosition: number
|
|
637
|
+
adaptersConnectLineY: number
|
|
638
|
+
adapters: UI_T_Adapters[] | null
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
export interface UI_I_NetworkEditSendData {
|
|
642
|
+
id: string
|
|
643
|
+
name: string
|
|
644
|
+
vlan: number
|
|
645
|
+
switch: string
|
|
646
|
+
security: API_UI_I_Security
|
|
647
|
+
shaping: API_UI_I_Shaping
|
|
648
|
+
teaming: API_UI_I_Teaming
|
|
649
|
+
nics: UI_I_AdapterStatus
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
export interface UI_I_PortEditSendData {
|
|
653
|
+
id: string
|
|
654
|
+
tcp_stack: string
|
|
655
|
+
services: {
|
|
656
|
+
Management: boolean
|
|
657
|
+
VMotion: boolean
|
|
658
|
+
Provisioning: boolean
|
|
659
|
+
VSAN: boolean
|
|
660
|
+
// FaultToleranceLogging: boolean
|
|
661
|
+
// VSphereReplication: boolean
|
|
662
|
+
// VSphereReplicationNFC: boolean
|
|
663
|
+
// VSphereBackupNFC: boolean
|
|
664
|
+
// NVMeOverTCP: boolean
|
|
665
|
+
// NVMeOverRDMA: boolean
|
|
666
|
+
}
|
|
667
|
+
mtu: number
|
|
668
|
+
ipv4_settings: {
|
|
669
|
+
auto: boolean
|
|
670
|
+
ipv4?: number | string
|
|
671
|
+
mask?: number | string
|
|
672
|
+
gateway_override?: boolean
|
|
673
|
+
gateway?: number | string
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
export interface UI_I_SwitchEditSendData {
|
|
678
|
+
id: string
|
|
679
|
+
mtu: number
|
|
680
|
+
nics: UI_I_AdapterStatus
|
|
681
|
+
security: API_UI_I_Security
|
|
682
|
+
shaping: API_UI_I_Shaping
|
|
683
|
+
teaming: API_UI_I_Teaming
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
export interface UI_I_MigrateVmkernelAdapterEmits {
|
|
687
|
+
(
|
|
688
|
+
event: 'check-network-label',
|
|
689
|
+
networkLabel: string,
|
|
690
|
+
cb: (error_message: string) => void
|
|
691
|
+
): void
|
|
692
|
+
(event: 'hide'): void
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
export interface UI_I_MigrationVmkernelAdapterReadyComplete {
|
|
696
|
+
vm: string
|
|
697
|
+
currentSettings: {
|
|
698
|
+
switch: string
|
|
699
|
+
network: string
|
|
700
|
+
}
|
|
701
|
+
newSettings: {
|
|
702
|
+
switch: string
|
|
703
|
+
network: string
|
|
704
|
+
}
|
|
705
|
+
vlanId: string
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
export interface UI_I_PortToggleFlag {
|
|
709
|
+
value: boolean
|
|
710
|
+
id: string
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
// TODO today start
|
|
714
|
+
export interface API_UI_I_NetworkPortInfo {
|
|
715
|
+
id: string
|
|
716
|
+
name: string
|
|
717
|
+
mac: string
|
|
718
|
+
adapter: string
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
export interface API_UI_I_NetworkVMList {
|
|
722
|
+
id: string
|
|
723
|
+
name: string
|
|
724
|
+
ports: API_UI_I_NetworkPortInfo[]
|
|
725
|
+
is_active: boolean
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
export interface API_UI_I_Network {
|
|
729
|
+
id: string
|
|
730
|
+
name: string
|
|
731
|
+
state: UI_I_State
|
|
732
|
+
index?: UI_I_ListIndex
|
|
733
|
+
vlan: number
|
|
734
|
+
net_bridge: string
|
|
735
|
+
kind: UI_E_Kind
|
|
736
|
+
switch: string // vswitch_name
|
|
737
|
+
vms_count?: number // vms_amount
|
|
738
|
+
active_ports?: number
|
|
739
|
+
nics_overrided?: boolean
|
|
740
|
+
vm_list?: API_UI_I_NetworkVMList[]
|
|
741
|
+
sysx?: UI_I_Sysx
|
|
742
|
+
security: API_UI_I_Security
|
|
743
|
+
shaping: API_UI_I_Shaping
|
|
744
|
+
teaming: API_UI_I_Teaming
|
|
745
|
+
nics: UI_I_AdapterStatus
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
export interface UI_I_NetworkPositionsConst {
|
|
749
|
+
readonly EMPTY_PORTS_PADDING_BOTTOM: 7.5
|
|
750
|
+
readonly FROM_VLAN_ID_TO_GROUP_NAME: 22
|
|
751
|
+
readonly VMS_AND_PORTS_HEIGHT: 22
|
|
752
|
+
readonly V_CENTER_HEIGHT: 32
|
|
753
|
+
readonly BETWEEN_VMS_AND_PORTS: 7.5
|
|
754
|
+
readonly BETWEEN_V_CENTERS: 12.5
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
export interface UI_I_FirstAndLastNetworkLinesY {
|
|
758
|
+
firstNetworkY: number
|
|
759
|
+
lastNetworkY: number
|
|
760
|
+
}
|