bfg-common 1.3.205 → 1.3.206

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.
@@ -144,14 +144,16 @@ import {
144
144
  adapterViewSettingsFunc,
145
145
  } from '~/components/common/diagramMain/modals/lib/config'
146
146
  import { allAdaptersFunc } from '~/components/common/adapterManager/lib/config'
147
- import { UI_I_Localization } from '~/lib/models/interfaces'
147
+ import {
148
+ UI_I_Localization,
149
+ UI_I_ItemsWithTotalCounts,
150
+ } from '~/lib/models/interfaces'
148
151
  import { UI_T_AdapterStatusNames } from '~/components/common/diagramMain/lib/models/types'
149
152
  import {
150
153
  UI_I_Adapter,
151
154
  UI_I_AdapterStatus,
152
155
  UI_I_ModalsInitialData,
153
156
  UI_I_SwitchAdapterItem,
154
- UI_I_SwitchAdapters,
155
157
  } from '~/components/common/diagramMain/lib/models/interfaces'
156
158
 
157
159
  const props = withDefaults(
@@ -160,7 +162,7 @@ const props = withDefaults(
160
162
  fullMode?: boolean
161
163
  isAddModal?: boolean
162
164
  isDarkMode: boolean
163
- adapters: UI_I_SwitchAdapters
165
+ adapters: UI_I_ItemsWithTotalCounts<UI_I_SwitchAdapterItem>
164
166
  initialData?: UI_I_ModalsInitialData
165
167
  addedAdapters?: string[]
166
168
  coreAdapters?: string[]
@@ -188,8 +190,8 @@ const props = withDefaults(
188
190
  addedAdapters: () => [],
189
191
  coreAdapters: () => [],
190
192
  adapters: () => ({
191
- totalItems: 0,
192
- totalPages: 0,
193
+ total_items: 0,
194
+ total_pages: 0,
193
195
  items: [],
194
196
  }),
195
197
  isShowNoConnectedActiveAdaptersModal: false,
@@ -34,11 +34,10 @@
34
34
  </template>
35
35
 
36
36
  <script setup lang="ts">
37
- import { UI_I_Localization } from '~/lib/models/interfaces'
37
+ import { UI_I_Localization, UI_I_ItemsWithTotalCounts } from '~/lib/models/interfaces'
38
38
  import {
39
39
  UI_I_Adapter,
40
- UI_I_SwitchAdapterItem,
41
- UI_I_SwitchAdapters,
40
+ UI_I_SwitchAdapterItem
42
41
  } from '~/components/common/diagramMain/lib/models/interfaces'
43
42
 
44
43
  // Props from up
@@ -51,15 +50,15 @@ const props = withDefaults(
51
50
  height: string
52
51
  modalName: string
53
52
  viewName: string
54
- adapters: UI_I_SwitchAdapters
53
+ adapters: UI_I_ItemsWithTotalCounts<UI_I_SwitchAdapterItem>
55
54
  existingAdaptersForAdding: (UI_I_Adapter | UI_I_SwitchAdapterItem)[]
56
55
  selectedAddAdapterId: string
57
56
  }>(),
58
57
  {
59
58
  existingAdaptersForAdding: () => [],
60
59
  adapters: () => ({
61
- totalItems: 0,
62
- totalPages: 0,
60
+ total_items: 0,
61
+ total_pages: 0,
63
62
  items: [],
64
63
  }),
65
64
  }
@@ -246,11 +246,12 @@ import {
246
246
  UI_I_ToggleDiagramPortsPayload,
247
247
  UI_I_PortToggleFlag,
248
248
  UI_I_DiagramData,
249
- UI_I_SwitchAdapters,
249
+ UI_I_SwitchAdapterItem,
250
250
  } from '~/components/common/diagramMain/lib/models/interfaces'
251
251
  import {
252
252
  UI_I_ArbitraryObject,
253
253
  UI_I_Localization,
254
+ UI_I_ItemsWithTotalCounts,
254
255
  } from '~/lib/models/interfaces'
255
256
  import {
256
257
  UI_I_AddNetworkingSecondOrThirdSchemeDataSend,
@@ -295,7 +296,7 @@ const props = withDefaults(
295
296
  inPortlet?: boolean
296
297
  standardSwitchesInitial?: UI_I_Switch[]
297
298
  hostName?: string
298
- adapters?: UI_I_SwitchAdapters
299
+ adapters?: UI_I_ItemsWithTotalCounts<UI_I_SwitchAdapterItem>
299
300
  freeAdapters?: UI_I_Adapter[]
300
301
  networksList?: UI_I_Network[]
301
302
  isDarkMode: boolean
@@ -309,8 +310,8 @@ const props = withDefaults(
309
310
  standardSwitchesInitial: () => [],
310
311
  hostName: '',
311
312
  adapters: () => ({
312
- totalItems: 0,
313
- totalPages: 0,
313
+ total_items: 0,
314
+ total_pages: 0,
314
315
  items: [],
315
316
  }),
316
317
  freeAdapters: () => [],
@@ -1,3 +1,5 @@
1
+ import type { UI_I_State, UI_I_ListIndex } from '~/lib/models/interfaces'
2
+ import { UI_E_Kind } from '~/lib/models/enums'
1
3
  import { UI_E_NetworkType } from './enums'
2
4
  import { UI_T_Adapters } from '~/components/common/diagramMain/lib/models/types'
3
5
  import {
@@ -15,19 +17,23 @@ export interface UI_I_Port {
15
17
  }
16
18
 
17
19
  export interface UI_I_Adapter {
18
- id: string
19
20
  name: string
21
+ id: string
20
22
  fullName: string
23
+ state: UI_I_State
21
24
  adapter: string
22
25
  pciAddress: string
23
26
  driver: string
24
- carrier: boolean
25
- speed: number
27
+ carrier?: boolean
28
+ speed?: number
26
29
  duplex: string
27
- networks: null
28
- srIov: boolean
29
- cdp: boolean
30
- lldp: boolean
30
+ networks: string[]
31
+ srIov?: boolean
32
+ cdp?: boolean
33
+ lldp?: boolean
34
+ managed?: boolean
35
+ switch?: string
36
+ mac: string
31
37
  status: string
32
38
  }
33
39
 
@@ -97,7 +103,6 @@ export interface UI_I_NetworkSummaryPortletListItem<
97
103
  initialValue: UI_I_OverrideValue<T>
98
104
  }
99
105
 
100
-
101
106
  export interface UI_I_NetworkInfo {
102
107
  average_bw: number
103
108
  burst_size: number
@@ -291,6 +296,7 @@ export interface UI_I_AdapterStatus {
291
296
  standby?: string[]
292
297
  unused?: string[]
293
298
  connected?: string[]
299
+ inherit?: boolean
294
300
  }
295
301
 
296
302
  export interface UI_I_SwitchPropertiesFields {
@@ -379,41 +385,42 @@ export interface UI_I_ModalsInitialData<T = string | number | boolean> {
379
385
 
380
386
  export interface UI_I_SwitchAdapterItem {
381
387
  name: string
388
+ id: string
389
+ fullName: string
390
+ state: UI_I_State
382
391
  adapter: string
383
392
  pciAddress: string
384
393
  driver: string
385
- carrier: boolean
386
- speed: number
394
+ carrier?: boolean
395
+ speed?: number
387
396
  duplex: string
388
- networks: null
389
- srIov: boolean
390
- cdp: boolean
391
- lldp: boolean
397
+ networks: string[]
398
+ srIov?: boolean
399
+ cdp?: boolean
400
+ lldp?: boolean
401
+ managed?: boolean
402
+ switch?: string
403
+ mac: string
392
404
  }
405
+
393
406
  export interface API_UI_I_SwitchAdapterItem {
394
- name: string
407
+ id: string
408
+ state: UI_I_State
409
+ index?: UI_I_ListIndex
395
410
  adapter: string
396
411
  pci_addr: string
397
412
  driver: string
398
- carrier: boolean
399
- speed: number
413
+ carrier?: boolean
414
+ speed?: number
400
415
  duplex: string
401
- networks: null
402
- sr_iov: boolean
403
- cdp: boolean
404
- lldp: boolean
405
- }
406
-
407
- export interface UI_I_SwitchAdapters {
408
- totalItems: number
409
- totalPages: number
410
- items: UI_I_SwitchAdapterItem[]
411
- }
412
-
413
- export interface API_UI_I_SwitchAdapters {
414
- total_items: number
415
- total_pages: number
416
- items: API_UI_I_SwitchAdapterItem[]
416
+ networks?: string[]
417
+ sr_iov?: boolean
418
+ cdp?: boolean
419
+ lldp?: boolean
420
+ managed?: boolean
421
+ name: string
422
+ switch?: string
423
+ mac: string
417
424
  }
418
425
 
419
426
  export interface UI_I_TeamingAndFailoverTemplate {
@@ -466,6 +473,10 @@ export interface API_UI_I_Security {
466
473
  forged_transmits: UI_E_IYNOption
467
474
  mac_change: UI_E_IYNOption
468
475
  promiscuous: UI_E_IYNOption
476
+ // TODO Question about those
477
+ promiscuous_computed?: UI_E_IYNOption
478
+ mac_change_computed?: UI_E_IYNOption
479
+ forged_transmits_computed?: UI_E_IYNOption
469
480
  }
470
481
  export interface API_UI_I_Shaping {
471
482
  enabled?: boolean
@@ -490,6 +501,11 @@ export interface API_UI_I_Teaming {
490
501
  link_detection_mode: UI_E_ICBLinkDetectionMode
491
502
  notify_switches: UI_E_IYNOption
492
503
  failback: UI_E_IYNOption
504
+ // TODO Question about those
505
+ mode_computed?: UI_E_IBSTLoadBalancingMode
506
+ link_detection_mode_computed?: UI_E_ICBLinkDetectionMode
507
+ notify_switches_computed?: UI_E_IYNOption
508
+ failback_computed?: UI_E_IYNOption
493
509
  }
494
510
 
495
511
  interface API_UI_I_ListIndex {
@@ -576,3 +592,38 @@ export interface UI_I_PortToggleFlag {
576
592
  value: boolean
577
593
  id: string
578
594
  }
595
+
596
+ // TODO today start
597
+ export interface API_UI_I_NetworkPortInfo {
598
+ id: string
599
+ name: string
600
+ mac: string
601
+ adapter: string
602
+ }
603
+
604
+ export interface API_UI_I_NetworkVMList {
605
+ id: string
606
+ name: string
607
+ ports: API_UI_I_NetworkPortInfo[]
608
+ is_active: boolean
609
+ }
610
+
611
+ export interface API_UI_I_Network {
612
+ id: string
613
+ name: string
614
+ state: UI_I_State
615
+ index: UI_I_ListIndex
616
+ vlan: number
617
+ net_bridge: string
618
+ kind: UI_E_Kind
619
+ switch: string // vswitch_name
620
+ vms_count: number // vms_amount
621
+ active_ports: number
622
+ nics_overrided: boolean
623
+ vm_list?: API_UI_I_NetworkVMList[]
624
+ sysx?: UI_I_Sysx
625
+ security: API_UI_I_Security
626
+ shaping: API_UI_I_Shaping
627
+ teaming: API_UI_I_Teaming
628
+ nics: UI_I_AdapterStatus
629
+ }
@@ -49,12 +49,14 @@
49
49
  </template>
50
50
 
51
51
  <script setup lang="ts">
52
- import { UI_I_Localization } from '~/lib/models/interfaces'
52
+ import {
53
+ UI_I_Localization,
54
+ UI_I_ItemsWithTotalCounts,
55
+ } from '~/lib/models/interfaces'
53
56
  import {
54
57
  UI_I_Adapter,
55
58
  UI_I_AdapterStatus,
56
59
  UI_I_SwitchAdapterItem,
57
- UI_I_SwitchAdapters,
58
60
  } from '~/components/common/diagramMain/lib/models/interfaces'
59
61
 
60
62
  // Props from up
@@ -67,7 +69,7 @@ const props = withDefaults(
67
69
  height: string
68
70
  freeAdapters: UI_I_Adapter[]
69
71
  adapterStatus: UI_I_AdapterStatus
70
- adapters: UI_I_SwitchAdapters
72
+ adapters: UI_I_ItemsWithTotalCounts<UI_I_SwitchAdapterItem>
71
73
  initialAdapterStatus: UI_I_AdapterStatus
72
74
  isDarkMode?: boolean
73
75
  }>(),
@@ -92,10 +92,11 @@
92
92
  </template>
93
93
 
94
94
  <script setup lang="ts">
95
+ import { UI_I_ItemsWithTotalCounts } from '~/lib/models/interfaces'
95
96
  import {
96
97
  UI_I_AdapterStatus,
97
98
  UI_I_ModalsInitialData,
98
- UI_I_SwitchAdapters,
99
+ UI_I_SwitchAdapterItem,
99
100
  UI_I_SecurityFields,
100
101
  UI_I_TrafficShapingFields,
101
102
  UI_I_TeamingFailoverFields,
@@ -116,7 +117,7 @@ const props = withDefaults(
116
117
  text: string
117
118
  }[]
118
119
  initialData?: UI_I_ModalsInitialData
119
- adapters: UI_I_SwitchAdapters
120
+ adapters: UI_I_ItemsWithTotalCounts<UI_I_SwitchAdapterItem>
120
121
  flagSendData: boolean
121
122
  isDarkMode?: boolean
122
123
  }>(),
@@ -36,11 +36,14 @@
36
36
  </template>
37
37
 
38
38
  <script setup lang="ts">
39
- import { UI_I_Localization } from '~/lib/models/interfaces'
39
+ import {
40
+ UI_I_Localization,
41
+ UI_I_ItemsWithTotalCounts,
42
+ } from '~/lib/models/interfaces'
40
43
  import {
41
44
  UI_I_ModalsInitialData,
42
45
  UI_I_EditFieldsData,
43
- UI_I_SwitchAdapters,
46
+ UI_I_SwitchAdapterItem,
44
47
  } from '~/components/common/diagramMain/lib/models/interfaces'
45
48
 
46
49
  // Props from up
@@ -55,7 +58,7 @@ interface UI_I_PortViewSettingsModalProps {
55
58
  text: string
56
59
  }[]
57
60
  initialData?: UI_I_ModalsInitialData
58
- adapters?: UI_I_SwitchAdapters
61
+ adapters?: UI_I_ItemsWithTotalCounts<UI_I_SwitchAdapterItem>
59
62
  isDarkMode: boolean
60
63
  }
61
64
 
@@ -63,8 +66,8 @@ const props = withDefaults(defineProps<UI_I_PortViewSettingsModalProps>(), {
63
66
  initialData: () => ({}),
64
67
  title: 'Network',
65
68
  adapters: () => ({
66
- totalPages: 0,
67
- totalItems: 0,
69
+ total_pages: 0,
70
+ total_items: 0,
68
71
  items: [],
69
72
  }),
70
73
  })
@@ -93,10 +93,13 @@
93
93
  </template>
94
94
 
95
95
  <script setup lang="ts">
96
- import { UI_I_Localization } from '~/lib/models/interfaces'
96
+ import {
97
+ UI_I_Localization,
98
+ UI_I_ItemsWithTotalCounts,
99
+ } from '~/lib/models/interfaces'
97
100
  import {
98
101
  UI_I_TeamingFailoverFields,
99
- UI_I_SwitchAdapters,
102
+ UI_I_SwitchAdapterItem,
100
103
  UI_I_ModalsInitialData,
101
104
  UI_I_TeamingAndFailoverTemplate,
102
105
  UI_I_AdapterStatus,
@@ -112,7 +115,7 @@ import {
112
115
  const props = withDefaults(
113
116
  defineProps<{
114
117
  initialData?: UI_I_ModalsInitialData
115
- adapters: UI_I_SwitchAdapters
118
+ adapters: UI_I_ItemsWithTotalCounts<UI_I_SwitchAdapterItem>
116
119
  adapterStatus: UI_I_AdapterStatus
117
120
  isSwitch: boolean
118
121
  isDarkMode?: boolean