bfg-common 1.3.219 → 1.3.221
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.
|
@@ -20,6 +20,8 @@ export const dataForSelectedNetworkFunc = (
|
|
|
20
20
|
standbyAdapters: network?.standbyAdapters,
|
|
21
21
|
unusedAdapters: network?.unusedAdapters,
|
|
22
22
|
nics_override: network?.nics_override,
|
|
23
|
+
id: network.id,
|
|
24
|
+
switch_name: network.switchName,
|
|
23
25
|
})
|
|
24
26
|
|
|
25
27
|
export const dataForSelectedAdapterFunc = (
|
|
@@ -493,10 +493,10 @@ export interface API_UI_I_State {
|
|
|
493
493
|
}
|
|
494
494
|
|
|
495
495
|
export interface API_UI_I_Teaming {
|
|
496
|
-
mode
|
|
497
|
-
link_detection_mode
|
|
498
|
-
notify_switches
|
|
499
|
-
failback
|
|
496
|
+
mode?: UI_E_IBSTLoadBalancingMode
|
|
497
|
+
link_detection_mode?: UI_E_ICBLinkDetectionMode
|
|
498
|
+
notify_switches?: UI_E_IYNOption
|
|
499
|
+
failback?: UI_E_IYNOption
|
|
500
500
|
// TODO Question about those
|
|
501
501
|
mode_computed?: UI_E_IBSTLoadBalancingMode
|
|
502
502
|
link_detection_mode_computed?: UI_E_ICBLinkDetectionMode
|
|
@@ -547,13 +547,14 @@ export interface UI_I_AdaptersPositions {
|
|
|
547
547
|
}
|
|
548
548
|
|
|
549
549
|
export interface UI_I_NetworkEditSendData {
|
|
550
|
+
id: string
|
|
550
551
|
name: string
|
|
551
552
|
vlan: number
|
|
553
|
+
switch: string
|
|
552
554
|
security: API_UI_I_Security
|
|
553
555
|
shaping: API_UI_I_Shaping
|
|
554
556
|
teaming: API_UI_I_Teaming
|
|
555
557
|
nics: UI_I_AdapterStatus
|
|
556
|
-
override_nics: string | number | boolean
|
|
557
558
|
}
|
|
558
559
|
|
|
559
560
|
export interface UI_I_MigrateVmkernelAdapterEmits {
|
|
@@ -5,6 +5,8 @@ import {
|
|
|
5
5
|
UI_I_SecurityFields,
|
|
6
6
|
UI_I_TeamingFailoverWithAdaptersFields,
|
|
7
7
|
UI_I_TrafficShapingFields,
|
|
8
|
+
API_UI_I_Security,
|
|
9
|
+
API_UI_I_Teaming,
|
|
8
10
|
} from '~/components/common/diagramMain/lib/models/interfaces'
|
|
9
11
|
import {
|
|
10
12
|
UI_I_ModalsInitialData,
|
|
@@ -12,7 +14,9 @@ import {
|
|
|
12
14
|
} from '~/components/common/diagramMain/lib/models/interfaces'
|
|
13
15
|
|
|
14
16
|
export const networkEditDataFunc = (
|
|
15
|
-
networkData: UI_I_EditFieldsData
|
|
17
|
+
networkData: UI_I_EditFieldsData,
|
|
18
|
+
id: string = '',
|
|
19
|
+
switchId: string = ''
|
|
16
20
|
): UI_I_NetworkEditSendData => {
|
|
17
21
|
const { vlanId, networkLabel } =
|
|
18
22
|
networkData.properties as UI_I_PropertiesFields
|
|
@@ -36,49 +40,41 @@ export const networkEditDataFunc = (
|
|
|
36
40
|
const vlan: number =
|
|
37
41
|
vlanId === 'None (0)' ? 0 : vlanId === 'All (4095)' ? 4095 : Number(vlanId)
|
|
38
42
|
|
|
39
|
-
const security = {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
mac_change: !macAddressChanges.checked
|
|
44
|
-
? 'inherit'
|
|
45
|
-
: macAddressChanges.selected,
|
|
46
|
-
forged_transmits: !forgedTransmits.checked
|
|
47
|
-
? 'inherit'
|
|
48
|
-
: forgedTransmits.selected,
|
|
43
|
+
const security: API_UI_I_Security = {
|
|
44
|
+
promiscuous: promiscuousMode.selected,
|
|
45
|
+
mac_change: macAddressChanges.selected,
|
|
46
|
+
forged_transmits: forgedTransmits.selected,
|
|
49
47
|
}
|
|
50
48
|
|
|
51
49
|
const shaping = {
|
|
52
50
|
inherit: !shapingStatus.checked,
|
|
53
|
-
enabled: !!
|
|
51
|
+
enabled: !!shapingStatus.selected,
|
|
54
52
|
average_bw: average,
|
|
55
53
|
peak_bw: peak,
|
|
56
54
|
burst_size: burstSize,
|
|
57
55
|
}
|
|
58
56
|
|
|
59
|
-
const teaming = {
|
|
60
|
-
mode:
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
notify_switches: !notifySwitches.checked
|
|
65
|
-
? 'inherit'
|
|
66
|
-
: notifySwitches.selected,
|
|
67
|
-
failback: !failback.checked ? 'inherit' : failback.selected,
|
|
57
|
+
const teaming: API_UI_I_Teaming = {
|
|
58
|
+
mode: loadBalancing.selected,
|
|
59
|
+
link_detection_mode: networkFailureDetection.selected,
|
|
60
|
+
notify_switches: notifySwitches.selected,
|
|
61
|
+
failback: failback.selected,
|
|
68
62
|
}
|
|
69
63
|
|
|
70
64
|
return {
|
|
65
|
+
id,
|
|
71
66
|
name: networkLabel,
|
|
72
|
-
|
|
73
|
-
security,
|
|
74
|
-
shaping,
|
|
75
|
-
teaming,
|
|
76
|
-
override_nics: failoverOrder.checked,
|
|
67
|
+
switch: switchId,
|
|
77
68
|
nics: {
|
|
78
69
|
active,
|
|
79
70
|
standby,
|
|
80
71
|
unused,
|
|
72
|
+
inherit: !failoverOrder.checked,
|
|
81
73
|
},
|
|
74
|
+
security,
|
|
75
|
+
shaping,
|
|
76
|
+
vlan,
|
|
77
|
+
teaming,
|
|
82
78
|
}
|
|
83
79
|
}
|
|
84
80
|
|