bfg-common 1.2.41 → 1.2.43
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.
|
@@ -2,7 +2,7 @@ import { UI_I_Localization } from '~/models/interfaces'
|
|
|
2
2
|
import { UI_I_ModalsInitialData } from '~/components/common/diagramMain/models/interfaces'
|
|
3
3
|
|
|
4
4
|
export const portViewSettingsModalTabsFunc = (
|
|
5
|
-
|
|
5
|
+
localization: UI_I_Localization
|
|
6
6
|
) => [
|
|
7
7
|
{
|
|
8
8
|
text: localization.all,
|
|
@@ -19,31 +19,31 @@ export const portViewSettingsModalTabsFunc = (
|
|
|
19
19
|
]
|
|
20
20
|
|
|
21
21
|
export const portViewSettingsFunc = (
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
localization: UI_I_Localization,
|
|
23
|
+
initialData: UI_I_ModalsInitialData
|
|
24
24
|
) => {
|
|
25
25
|
let enabledServices = ''
|
|
26
26
|
initialData.services?.vMotion &&
|
|
27
|
-
|
|
27
|
+
(enabledServices += localization.vMotion + '\n')
|
|
28
28
|
initialData.services?.provisioning &&
|
|
29
|
-
|
|
29
|
+
(enabledServices += localization.provisioning + '\n')
|
|
30
30
|
initialData.services?.faultToleranceLogging &&
|
|
31
|
-
|
|
31
|
+
(enabledServices += localization.faultToleranceLogging + '\n')
|
|
32
32
|
initialData.services?.faultToleranceLogging &&
|
|
33
|
-
|
|
33
|
+
(enabledServices += localization.faultToleranceLogging + '\n')
|
|
34
34
|
initialData.services?.management &&
|
|
35
|
-
|
|
35
|
+
(enabledServices += localization.management + '\n')
|
|
36
36
|
initialData.services?.replication &&
|
|
37
|
-
|
|
37
|
+
(enabledServices += localization.procuratorReplication + '\n')
|
|
38
38
|
initialData.services?.replicationNFC &&
|
|
39
|
-
|
|
39
|
+
(enabledServices += localization.procuratorReplicationNFC + '\n')
|
|
40
40
|
initialData.services?.vSAN && (enabledServices += localization.vSAN + '\n')
|
|
41
41
|
initialData.services?.backupNFC &&
|
|
42
|
-
|
|
42
|
+
(enabledServices += localization.procuratorBackupNFC + '\n')
|
|
43
43
|
initialData.services?.nVMeOverTCP &&
|
|
44
|
-
|
|
44
|
+
(enabledServices += localization.nvmEOverTCP + '\n')
|
|
45
45
|
initialData.services?.nVMeOverRDMA &&
|
|
46
|
-
|
|
46
|
+
(enabledServices += localization.nvmEOverRDMA + '\n')
|
|
47
47
|
return [
|
|
48
48
|
{
|
|
49
49
|
title: localization.portProperties,
|
|
@@ -73,36 +73,36 @@ export const portViewSettingsFunc = (
|
|
|
73
73
|
id: 2,
|
|
74
74
|
type: 2,
|
|
75
75
|
rows:
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
76
|
+
initialData.tcpConfig?.ipv4Settings === '0'
|
|
77
|
+
? [
|
|
78
|
+
{
|
|
79
|
+
name: localization.dhcp,
|
|
80
|
+
value: localization.enabled,
|
|
81
|
+
},
|
|
82
|
+
]
|
|
83
|
+
: [
|
|
84
|
+
{
|
|
85
|
+
name: localization.dhcp,
|
|
86
|
+
value: localization.disabled,
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: localization.ipv4address,
|
|
90
|
+
value: initialData.tcpConfig?.ipv4Address,
|
|
91
|
+
// (${localization.static})
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
name: localization.subnetMask,
|
|
95
|
+
value: initialData.tcpConfig?.subnetMask,
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
name: localization.defaultGateway,
|
|
99
|
+
value: initialData.tcpConfig?.defaultGateway?.value,
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
name: localization.dnsServerAddresses,
|
|
103
|
+
value: ['--'],
|
|
104
|
+
},
|
|
105
|
+
],
|
|
106
106
|
},
|
|
107
107
|
// {
|
|
108
108
|
// title: localization.ipV6Settings,
|
|
@@ -175,26 +175,29 @@ export const portPopupFieldsFunc = (localization: UI_I_Localization) => [
|
|
|
175
175
|
]
|
|
176
176
|
|
|
177
177
|
export const portPropertiesEnabledServicesFunc = (
|
|
178
|
-
|
|
178
|
+
localization: UI_I_Localization
|
|
179
179
|
) => [
|
|
180
|
+
// {
|
|
181
|
+
// label: localization.vMotion,
|
|
182
|
+
// modelValue: 'vMotion',
|
|
183
|
+
// },
|
|
180
184
|
{
|
|
181
185
|
mainLabel: localization.enabledServices,
|
|
182
|
-
label: localization.
|
|
183
|
-
modelValue: '
|
|
184
|
-
},
|
|
185
|
-
{ label: localization.provisioning, modelValue: 'provisioning' },
|
|
186
|
-
{
|
|
187
|
-
label: localization.faultToleranceLogging,
|
|
188
|
-
modelValue: 'faultToleranceLogging',
|
|
186
|
+
label: localization.provisioning,
|
|
187
|
+
modelValue: 'provisioning',
|
|
189
188
|
},
|
|
189
|
+
// {
|
|
190
|
+
// label: localization.faultToleranceLogging,
|
|
191
|
+
// modelValue: 'faultToleranceLogging',
|
|
192
|
+
// },
|
|
190
193
|
{ label: localization.management, modelValue: 'management' },
|
|
191
|
-
{ label: localization.procuratorReplication, modelValue: 'replication' },
|
|
192
|
-
{
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
},
|
|
194
|
+
// { label: localization.procuratorReplication, modelValue: 'replication' },
|
|
195
|
+
// {
|
|
196
|
+
// label: localization.procuratorReplicationNFC,
|
|
197
|
+
// modelValue: 'replicationNFC',
|
|
198
|
+
// },
|
|
196
199
|
{ label: localization.vSAN, modelValue: 'vSAN' },
|
|
197
|
-
{ label: localization.procuratorBackupNFC, modelValue: 'backupNFC' },
|
|
198
|
-
{ label: localization.nvmEOverTCP, modelValue: 'nVMeOverTCP' },
|
|
199
|
-
{ label: localization.nvmEOverRDMA, modelValue: 'nVMeOverRDMA' },
|
|
200
|
+
// { label: localization.procuratorBackupNFC, modelValue: 'backupNFC' },
|
|
201
|
+
// { label: localization.nvmEOverTCP, modelValue: 'nVMeOverTCP' },
|
|
202
|
+
// { label: localization.nvmEOverRDMA, modelValue: 'nVMeOverRDMA' },
|
|
200
203
|
]
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
:cd-dvd-drives="vmSettings.cdDvdDrives"
|
|
52
52
|
:hard-disks="vmSettings.hardDisks"
|
|
53
53
|
:networks="vmSettings.networks"
|
|
54
|
-
:customize-hardware-submit="
|
|
54
|
+
:customize-hardware-submit="customizeHardwareSubmit"
|
|
55
55
|
:max-cpus="vmSettings.maxCpus"
|
|
56
56
|
:max-memory="vmSettings.maxMemory"
|
|
57
57
|
:cpu-models="vmSettings.cpuModels"
|
|
@@ -72,14 +72,15 @@
|
|
|
72
72
|
:get-datastore-table-func="props.getDatastoreTableFunc"
|
|
73
73
|
:datastore="props.datastore"
|
|
74
74
|
is-clone
|
|
75
|
+
@change-boot-order="onChangeBootOrder"
|
|
76
|
+
@send-data="onChangeCustomizeHardware"
|
|
75
77
|
@get-storage="emits('get-storage', $event)"
|
|
76
78
|
@get-folders-or-files="emits('get-folders-or-files', $event)"
|
|
77
79
|
@get-active-device-child="emits('get-active-device-child', $event)"
|
|
78
80
|
@show-datastore-child="emits('show-datastore-child', $event)"
|
|
79
81
|
@get-networks-table="emits('get-networks-table', $event)"
|
|
80
82
|
@get-pci-devices="emits('get-pci-devices')"
|
|
81
|
-
@
|
|
82
|
-
@send-data="onChangeCustomizeHardware"
|
|
83
|
+
@next="onNext(true)"
|
|
83
84
|
/>
|
|
84
85
|
<common-vm-actions-clone-ready-to-complete
|
|
85
86
|
v-if="stepPosition === 4"
|
|
@@ -406,7 +407,7 @@ const checkSubmitByManual = (step: number): boolean => {
|
|
|
406
407
|
storageSubmit.value++
|
|
407
408
|
return false
|
|
408
409
|
}
|
|
409
|
-
if (step ===
|
|
410
|
+
if (step === 3) {
|
|
410
411
|
customizeHardwareSubmit.value++
|
|
411
412
|
return false
|
|
412
413
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<atoms-table-info :items="props.readyCompleteTableInfo" />
|
|
4
|
+
</div>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script lang="ts" setup>
|
|
8
|
+
import { UI_I_TableInfoItem } from '~/components/atoms/table/info/models/interfaces'
|
|
9
|
+
|
|
10
|
+
const props = defineProps<{
|
|
11
|
+
readyCompleteTableInfo: UI_I_TableInfoItem[]
|
|
12
|
+
}>()
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<style lang="scss" scoped></style>
|
|
@@ -82,6 +82,12 @@ export interface UI_I_CreateVmPayload {
|
|
|
82
82
|
location?: string // для сферы
|
|
83
83
|
compute_resource?: string // для сферы
|
|
84
84
|
}
|
|
85
|
+
export interface UI_I_CloneVmPayload {
|
|
86
|
+
start: boolean
|
|
87
|
+
cloned_from: string,
|
|
88
|
+
storage_id: string,
|
|
89
|
+
cloned_name: string,
|
|
90
|
+
}
|
|
85
91
|
|
|
86
92
|
export interface UI_I_EditVmPayload {
|
|
87
93
|
vmId: string
|