bfg-common 1.3.221 → 1.3.223
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/components/common/diagramMain/DiagramMain.vue +4 -4
- package/components/common/diagramMain/lib/models/interfaces.ts +52 -22
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/MigrateVmkernelAdapter.vue +3 -3
- package/components/common/diagramMain/port/Port.vue +16 -16
- package/components/common/wizards/network/add/lib/config/sendData.ts +14 -14
- package/components/common/wizards/network/add/lib/models/enums.ts +3 -3
- package/components/common/wizards/network/add/lib/models/interfaces.ts +12 -12
- package/components/common/wizards/network/add/mappers/mappers.ts +45 -13
- package/components/common/wizards/network/add/steps/IpFourSettings.vue +9 -9
- package/package.json +1 -1
|
@@ -711,10 +711,10 @@ const countNetworksPositions = (): UI_I_NetworksWithPositions[] => {
|
|
|
711
711
|
})
|
|
712
712
|
: (network.sysx && [
|
|
713
713
|
{
|
|
714
|
-
id: network.sysx?.
|
|
715
|
-
name: `${network.sysx?.
|
|
716
|
-
!network.sysx.
|
|
717
|
-
? `: ${network.sysx.
|
|
714
|
+
id: network.sysx?.id,
|
|
715
|
+
name: `${network.sysx?.id} ${
|
|
716
|
+
!network.sysx.ipv4_settings.auto
|
|
717
|
+
? `: ${network.sysx.ipv4_settings.ipv4}`
|
|
718
718
|
: ''
|
|
719
719
|
}`,
|
|
720
720
|
portPosition:
|
|
@@ -65,28 +65,62 @@ export interface UI_I_SelectedAdapter {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
export interface UI_I_Sysx {
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
id: string
|
|
69
|
+
state: UI_I_State
|
|
70
|
+
index: UI_I_ListIndex
|
|
71
|
+
switch: string
|
|
72
|
+
network_id: string
|
|
73
|
+
tcp_stack: string
|
|
70
74
|
services: {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
75
|
+
// New interface
|
|
76
|
+
Management: boolean
|
|
77
|
+
VMotion: boolean
|
|
78
|
+
Provisioning: boolean
|
|
79
|
+
VSAN: boolean
|
|
80
|
+
FaultToleranceLogging: boolean
|
|
81
|
+
VSphereReplication: boolean
|
|
82
|
+
VSphereReplicationNFC: boolean
|
|
83
|
+
VSphereBackupNFC: boolean
|
|
84
|
+
NVMeOverTCP: boolean
|
|
85
|
+
NVMeOverRDMA: boolean
|
|
86
|
+
|
|
87
|
+
// management: boolean
|
|
88
|
+
// vmotion: boolean
|
|
89
|
+
// provisioning: boolean
|
|
90
|
+
// vsan: boolean
|
|
91
|
+
// fault_tolerance_logging: boolean
|
|
92
|
+
// vsphere_replication: boolean
|
|
93
|
+
// vsphere_replication_nfc: boolean
|
|
94
|
+
// vsphere_backup_nfc: boolean
|
|
95
|
+
// nvme_over_tcp: boolean
|
|
96
|
+
// nvme_over_rdma: boolean
|
|
81
97
|
}
|
|
82
|
-
|
|
98
|
+
mtu: number
|
|
99
|
+
ipv4_settings: {
|
|
83
100
|
auto: boolean
|
|
84
|
-
gateway: string
|
|
85
|
-
gateway_override: boolean
|
|
86
101
|
ipv4: string
|
|
87
|
-
|
|
102
|
+
mask: string
|
|
103
|
+
gateway_override: boolean
|
|
104
|
+
gateway: string
|
|
105
|
+
routing_table: number
|
|
88
106
|
}
|
|
89
|
-
|
|
107
|
+
|
|
108
|
+
// name: string
|
|
109
|
+
// tcp_config: {
|
|
110
|
+
// auto: boolean
|
|
111
|
+
// ipv4: string
|
|
112
|
+
// net_mask: string
|
|
113
|
+
// gateway_override: boolean
|
|
114
|
+
// gateway: string
|
|
115
|
+
|
|
116
|
+
// New interface
|
|
117
|
+
// auto: boolean
|
|
118
|
+
// ipv4: string
|
|
119
|
+
// mask: string
|
|
120
|
+
// gateway_override: boolean
|
|
121
|
+
// gateway: string
|
|
122
|
+
// routing_table: number
|
|
123
|
+
// }
|
|
90
124
|
}
|
|
91
125
|
|
|
92
126
|
export interface UI_I_OverrideValue<T = string | number | boolean> {
|
|
@@ -212,7 +246,6 @@ export interface UI_I_ToggleDiagramAdaptersPayload {
|
|
|
212
246
|
paths: string[]
|
|
213
247
|
}
|
|
214
248
|
|
|
215
|
-
// TODO important
|
|
216
249
|
export interface UI_I_SecurityFields {
|
|
217
250
|
promiscuousMode: {
|
|
218
251
|
checked: boolean
|
|
@@ -470,12 +503,10 @@ export interface UI_I_ModalTabs {
|
|
|
470
503
|
value: number
|
|
471
504
|
}
|
|
472
505
|
|
|
473
|
-
// TODO important
|
|
474
506
|
export interface API_UI_I_Security {
|
|
475
507
|
forged_transmits?: UI_E_IYNOption
|
|
476
508
|
mac_change?: UI_E_IYNOption
|
|
477
509
|
promiscuous?: UI_E_IYNOption
|
|
478
|
-
// TODO Question about those
|
|
479
510
|
promiscuous_computed?: UI_E_IYNOption
|
|
480
511
|
mac_change_computed?: UI_E_IYNOption
|
|
481
512
|
forged_transmits_computed?: UI_E_IYNOption
|
|
@@ -497,7 +528,6 @@ export interface API_UI_I_Teaming {
|
|
|
497
528
|
link_detection_mode?: UI_E_ICBLinkDetectionMode
|
|
498
529
|
notify_switches?: UI_E_IYNOption
|
|
499
530
|
failback?: UI_E_IYNOption
|
|
500
|
-
// TODO Question about those
|
|
501
531
|
mode_computed?: UI_E_IBSTLoadBalancingMode
|
|
502
532
|
link_detection_mode_computed?: UI_E_ICBLinkDetectionMode
|
|
503
533
|
notify_switches_computed?: UI_E_IYNOption
|
|
@@ -612,7 +642,7 @@ export interface API_UI_I_Network {
|
|
|
612
642
|
active_ports?: number
|
|
613
643
|
nics_overrided?: boolean
|
|
614
644
|
vm_list?: API_UI_I_NetworkVMList[]
|
|
615
|
-
|
|
645
|
+
sysx?: UI_I_Sysx
|
|
616
646
|
security: API_UI_I_Security
|
|
617
647
|
shaping: API_UI_I_Shaping
|
|
618
648
|
teaming: API_UI_I_Teaming
|
package/components/common/diagramMain/modals/migrateVmkernelAdapter/MigrateVmkernelAdapter.vue
CHANGED
|
@@ -231,14 +231,14 @@ watch(
|
|
|
231
231
|
!vmKernelNetworksIdOnSwitch.includes(net.id)
|
|
232
232
|
)
|
|
233
233
|
.map((net: UI_I_Network, index: number) => ({
|
|
234
|
-
name: net.sysx?.
|
|
234
|
+
name: net.sysx?.id || '',
|
|
235
235
|
networkLabel: net.title,
|
|
236
236
|
switch: net.switchName || '',
|
|
237
|
-
ipAddress: net.sysx?.
|
|
237
|
+
ipAddress: net.sysx?.ipv4_settings.ipv4 || '--',
|
|
238
238
|
tcp: net.sysx?.tcp_stack
|
|
239
239
|
? localization.value[net.sysx?.tcp_stack]
|
|
240
240
|
: '--',
|
|
241
|
-
id: `${net.sysx?.
|
|
241
|
+
id: `${net.sysx?.id || ''}-${index}`,
|
|
242
242
|
}))
|
|
243
243
|
},
|
|
244
244
|
{ deep: true, immediate: true }
|
|
@@ -250,31 +250,31 @@ const onShowModalWithTypeCheck = (value: string) => {
|
|
|
250
250
|
|
|
251
251
|
if (isVmKernel.value) {
|
|
252
252
|
onShowModal(value, {
|
|
253
|
-
portName: props.network.sysx?.
|
|
253
|
+
portName: props.network.sysx?.id,
|
|
254
254
|
networkLabel: props.network.title,
|
|
255
255
|
vlanId: props.network.vlanId,
|
|
256
256
|
tcpIp: props.network.sysx?.tcp_stack,
|
|
257
257
|
mtu: props.network.sysx?.mtu,
|
|
258
258
|
services: {
|
|
259
|
-
vMotion: props.network.sysx?.services.
|
|
260
|
-
provisioning: props.network.sysx?.services.
|
|
259
|
+
vMotion: props.network.sysx?.services.VMotion,
|
|
260
|
+
provisioning: props.network.sysx?.services.Provisioning,
|
|
261
261
|
faultToleranceLogging:
|
|
262
|
-
props.network.sysx?.services.
|
|
263
|
-
management: props.network.sysx?.services.
|
|
264
|
-
replication: props.network.sysx?.services.
|
|
265
|
-
replicationNFC: props.network.sysx?.services.
|
|
266
|
-
vSAN: props.network.sysx?.services.
|
|
267
|
-
backupNFC: props.network.sysx?.services.
|
|
268
|
-
nVMeOverTCP: props.network.sysx?.services.
|
|
269
|
-
nVMeOverRDMA: props.network.sysx?.services.
|
|
262
|
+
props.network.sysx?.services.FaultToleranceLogging,
|
|
263
|
+
management: props.network.sysx?.services.Management,
|
|
264
|
+
replication: props.network.sysx?.services.VSphereReplication,
|
|
265
|
+
replicationNFC: props.network.sysx?.services.VSphereReplicationNFC,
|
|
266
|
+
vSAN: props.network.sysx?.services.VSAN,
|
|
267
|
+
backupNFC: props.network.sysx?.services.VSphereBackupNFC,
|
|
268
|
+
nVMeOverTCP: props.network.sysx?.services.NVMeOverTCP,
|
|
269
|
+
nVMeOverRDMA: props.network.sysx?.services.NVMeOverRDMA,
|
|
270
270
|
},
|
|
271
271
|
tcpConfig: {
|
|
272
|
-
ipv4Settings: props.network.sysx?.
|
|
273
|
-
ipv4Address: props.network.sysx?.
|
|
274
|
-
subnetMask: props.network.sysx?.
|
|
272
|
+
ipv4Settings: props.network.sysx?.ipv4_settings.auto ? '0' : '1',
|
|
273
|
+
ipv4Address: props.network.sysx?.ipv4_settings.ipv4,
|
|
274
|
+
subnetMask: props.network.sysx?.ipv4_settings.net_mask,
|
|
275
275
|
defaultGateway: {
|
|
276
|
-
checked: props.network.sysx?.
|
|
277
|
-
value: props.network.sysx?.
|
|
276
|
+
checked: props.network.sysx?.ipv4_settings.gateway_override,
|
|
277
|
+
value: props.network.sysx?.ipv4_settings.gateway,
|
|
278
278
|
},
|
|
279
279
|
},
|
|
280
280
|
})
|
|
@@ -55,21 +55,21 @@ export const addNetworkingZeroOrFirstSchemeDataFunc = (
|
|
|
55
55
|
tcp_stack: portProperties.tcp,
|
|
56
56
|
mtu: portProperties.mtu.size,
|
|
57
57
|
services: {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
58
|
+
Management: portProperties.services.management,
|
|
59
|
+
VMotion: portProperties.services.vMotion,
|
|
60
|
+
Provisioning: portProperties.services.provisioning,
|
|
61
|
+
VSAN: portProperties.services.vSAN,
|
|
62
|
+
FaultToleranceLogging: portProperties.services.faultToleranceLogging,
|
|
63
|
+
VSphereReplication: portProperties.services.replication,
|
|
64
|
+
VSphereReplicationNFC: portProperties.services.replicationNFC,
|
|
65
|
+
VSphereBackupNFC: portProperties.services.backupNFC,
|
|
66
|
+
NVMeOverTCP: portProperties.services.nVMeOverTCP,
|
|
67
|
+
NVMeOverRDMA: portProperties.services.nVMeOverRDMA,
|
|
68
68
|
},
|
|
69
|
-
|
|
69
|
+
ipv4_settings: {
|
|
70
70
|
auto: ipFourSettings.ipSettings === '0',
|
|
71
71
|
ipv4: ipFourSettings.static.ipFourAddress,
|
|
72
|
-
|
|
72
|
+
mask: ipFourSettings.static.subnetMask,
|
|
73
73
|
gateway_override: ipFourSettings.static.defaultGateway.override,
|
|
74
74
|
gateway: ipFourSettings.static.defaultGateway.override
|
|
75
75
|
? ipFourSettings.static.defaultGateway.value
|
|
@@ -90,12 +90,12 @@ export const addNetworkingZeroOrFirstSchemeDataFunc = (
|
|
|
90
90
|
|
|
91
91
|
const isAutoIp: boolean = ipFourSettings.ipSettings === '0'
|
|
92
92
|
|
|
93
|
-
sendData.
|
|
93
|
+
sendData.ipv4_settings = isAutoIp
|
|
94
94
|
? { auto: true }
|
|
95
95
|
: {
|
|
96
96
|
auto: false,
|
|
97
97
|
ipv4: ipFourSettings.static.ipFourAddress,
|
|
98
|
-
|
|
98
|
+
mask: ipFourSettings.static.subnetMask,
|
|
99
99
|
gateway_override: ipFourSettings.static.defaultGateway.override,
|
|
100
100
|
gateway: ipFourSettings.static.defaultGateway.override
|
|
101
101
|
? ipFourSettings.static.defaultGateway.value
|
|
@@ -8,9 +8,9 @@ export enum UI_E_ValidationFields {
|
|
|
8
8
|
PORT_PROPERTIES_VLAN = 'new_network.vlan',
|
|
9
9
|
PORT_PROPERTIES_MTU = 'mtu',
|
|
10
10
|
|
|
11
|
-
IPV_SETTINGS_IPV = '
|
|
12
|
-
IPV_SETTINGS_MASK = '
|
|
13
|
-
IPV_SETTINGS_GATEWAY = '
|
|
11
|
+
IPV_SETTINGS_IPV = 'ipv4_settings.ipv4',
|
|
12
|
+
IPV_SETTINGS_MASK = 'ipv4_settings.mask',
|
|
13
|
+
IPV_SETTINGS_GATEWAY = 'ipv4_settings.gateway',
|
|
14
14
|
|
|
15
15
|
CONNECTION_SETTINGS_NETWORK = 'name',
|
|
16
16
|
CONNECTION_SETTINGS_VLAN = 'vlan',
|
|
@@ -110,21 +110,21 @@ export interface UI_I_AddNetworkingZeroOrFirstSchemeDataSend {
|
|
|
110
110
|
tcp_stack: string
|
|
111
111
|
mtu: number
|
|
112
112
|
services: {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
113
|
+
Management: boolean
|
|
114
|
+
VMotion?: boolean
|
|
115
|
+
Provisioning: boolean
|
|
116
|
+
VSAN: boolean
|
|
117
|
+
FaultToleranceLogging: boolean
|
|
118
|
+
VSphereReplication: boolean
|
|
119
|
+
VSphereReplicationNFC: boolean
|
|
120
|
+
VSphereBackupNFC: boolean
|
|
121
|
+
NVMeOverTCP: boolean
|
|
122
|
+
NVMeOverRDMA: boolean
|
|
123
123
|
}
|
|
124
|
-
|
|
124
|
+
ipv4_settings: {
|
|
125
125
|
auto: boolean
|
|
126
126
|
ipv4?: string
|
|
127
|
-
|
|
127
|
+
mask?: string
|
|
128
128
|
gateway_override?: boolean
|
|
129
129
|
gateway?: string
|
|
130
130
|
}
|
|
@@ -15,8 +15,7 @@ import {
|
|
|
15
15
|
|
|
16
16
|
export const networkEditDataFunc = (
|
|
17
17
|
networkData: UI_I_EditFieldsData,
|
|
18
|
-
|
|
19
|
-
switchId: string = ''
|
|
18
|
+
initialData: UI_I_ModalsInitialData
|
|
20
19
|
): UI_I_NetworkEditSendData => {
|
|
21
20
|
const { vlanId, networkLabel } =
|
|
22
21
|
networkData.properties as UI_I_PropertiesFields
|
|
@@ -40,10 +39,24 @@ export const networkEditDataFunc = (
|
|
|
40
39
|
const vlan: number =
|
|
41
40
|
vlanId === 'None (0)' ? 0 : vlanId === 'All (4095)' ? 4095 : Number(vlanId)
|
|
42
41
|
|
|
43
|
-
const security: API_UI_I_Security = {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
42
|
+
const security: API_UI_I_Security = {}
|
|
43
|
+
|
|
44
|
+
if (promiscuousMode.checked) {
|
|
45
|
+
security.promiscuous = promiscuousMode.selected
|
|
46
|
+
} else {
|
|
47
|
+
security.promiscuous_computed = promiscuousMode.selected
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
if (forgedTransmits.checked) {
|
|
51
|
+
security.forged_transmits = forgedTransmits.selected
|
|
52
|
+
} else {
|
|
53
|
+
security.forged_transmits_computed = forgedTransmits.selected
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
if (macAddressChanges.checked) {
|
|
57
|
+
security.mac_change = macAddressChanges.selected
|
|
58
|
+
} else {
|
|
59
|
+
security.mac_change_computed = macAddressChanges.selected
|
|
47
60
|
}
|
|
48
61
|
|
|
49
62
|
const shaping = {
|
|
@@ -54,17 +67,36 @@ export const networkEditDataFunc = (
|
|
|
54
67
|
burst_size: burstSize,
|
|
55
68
|
}
|
|
56
69
|
|
|
57
|
-
const teaming: API_UI_I_Teaming = {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
70
|
+
const teaming: API_UI_I_Teaming = {}
|
|
71
|
+
|
|
72
|
+
if (loadBalancing.checked) {
|
|
73
|
+
teaming.mode = loadBalancing.selected
|
|
74
|
+
} else {
|
|
75
|
+
teaming.mode_computed = loadBalancing.selected
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
if (networkFailureDetection.checked) {
|
|
79
|
+
teaming.link_detection_mode = networkFailureDetection.selected
|
|
80
|
+
} else {
|
|
81
|
+
teaming.link_detection_mode_computed = networkFailureDetection.selected
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
if (notifySwitches.checked) {
|
|
85
|
+
teaming.notify_switches = notifySwitches.selected
|
|
86
|
+
} else {
|
|
87
|
+
teaming.notify_switches_computed = notifySwitches.selected
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
if (failback.checked) {
|
|
91
|
+
teaming.failback = failback.selected
|
|
92
|
+
} else {
|
|
93
|
+
teaming.failback_computed = failback.selected
|
|
62
94
|
}
|
|
63
95
|
|
|
64
96
|
return {
|
|
65
|
-
id,
|
|
97
|
+
id: initialData.id || '',
|
|
66
98
|
name: networkLabel,
|
|
67
|
-
switch:
|
|
99
|
+
switch: initialData.switch_name || '',
|
|
68
100
|
nics: {
|
|
69
101
|
active,
|
|
70
102
|
standby,
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
<div class="property-value-group">
|
|
46
46
|
<fieldset>
|
|
47
47
|
<atoms-tooltip-error
|
|
48
|
-
:has-error="!!props.messagesFields['
|
|
48
|
+
:has-error="!!props.messagesFields['ipv4_settings.ipv4'].field"
|
|
49
49
|
>
|
|
50
50
|
<template #elem>
|
|
51
51
|
<input
|
|
@@ -56,13 +56,13 @@
|
|
|
56
56
|
'tooltip-field port-properties-network-label',
|
|
57
57
|
{
|
|
58
58
|
'danger-not-valid':
|
|
59
|
-
props.messagesFields['
|
|
59
|
+
props.messagesFields['ipv4_settings.ipv4'].field,
|
|
60
60
|
},
|
|
61
61
|
]"
|
|
62
62
|
/>
|
|
63
63
|
</template>
|
|
64
64
|
<template #content>
|
|
65
|
-
{{ props.messagesFields['
|
|
65
|
+
{{ props.messagesFields['ipv4_settings.ipv4'].field }}
|
|
66
66
|
</template>
|
|
67
67
|
</atoms-tooltip-error>
|
|
68
68
|
</fieldset>
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
<fieldset>
|
|
79
79
|
<atoms-tooltip-error
|
|
80
80
|
:has-error="
|
|
81
|
-
!!props.messagesFields['
|
|
81
|
+
!!props.messagesFields['ipv4_settings.mask'].field
|
|
82
82
|
"
|
|
83
83
|
>
|
|
84
84
|
<template #elem>
|
|
@@ -90,13 +90,13 @@
|
|
|
90
90
|
'tooltip-field',
|
|
91
91
|
{
|
|
92
92
|
'danger-not-valid':
|
|
93
|
-
props.messagesFields['
|
|
93
|
+
props.messagesFields['ipv4_settings.mask'].field,
|
|
94
94
|
},
|
|
95
95
|
]"
|
|
96
96
|
/>
|
|
97
97
|
</template>
|
|
98
98
|
<template #content>
|
|
99
|
-
{{ props.messagesFields['
|
|
99
|
+
{{ props.messagesFields['ipv4_settings.mask'].field }}
|
|
100
100
|
</template>
|
|
101
101
|
</atoms-tooltip-error>
|
|
102
102
|
</fieldset>
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
<fieldset>
|
|
129
129
|
<atoms-tooltip-error
|
|
130
130
|
:has-error="
|
|
131
|
-
!!props.messagesFields['
|
|
131
|
+
!!props.messagesFields['ipv4_settings.gateway'].field
|
|
132
132
|
"
|
|
133
133
|
>
|
|
134
134
|
<template #elem>
|
|
@@ -141,14 +141,14 @@
|
|
|
141
141
|
'tooltip-field',
|
|
142
142
|
{
|
|
143
143
|
'danger-not-valid':
|
|
144
|
-
props.messagesFields['
|
|
144
|
+
props.messagesFields['ipv4_settings.gateway']
|
|
145
145
|
.field,
|
|
146
146
|
},
|
|
147
147
|
]"
|
|
148
148
|
/>
|
|
149
149
|
</template>
|
|
150
150
|
<template #content>
|
|
151
|
-
{{ props.messagesFields['
|
|
151
|
+
{{ props.messagesFields['ipv4_settings.gateway'].field }}
|
|
152
152
|
</template>
|
|
153
153
|
</atoms-tooltip-error>
|
|
154
154
|
</fieldset>
|