bfg-common 1.4.138 → 1.4.140
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/wizards/vmNew/migrate/Migrate.vue +9 -13
- package/components/common/wizards/vmNew/migrate/lib/models/interfaces.ts +3 -11
- package/components/common/wizards/vmNew/migrate/select/network/Network.vue +16 -14
- package/components/common/wizards/vmNew/migrate/select/network/lib/models/interfaces.ts +4 -0
- package/components/common/wizards/vmNew/migrate/select/network/table/network/Network.vue +1 -0
- package/components/common/wizards/vmNew/migrate/select/storage/lib/models/interfaces.ts +0 -14
- package/components/common/wizards/vmNew/migrate/select/targetServer/new/New.vue +14 -9
- package/package.json +1 -1
|
@@ -50,10 +50,7 @@
|
|
|
50
50
|
|
|
51
51
|
<common-wizards-vm-new-migrate-select-network
|
|
52
52
|
v-if="selectedStep.id === 4"
|
|
53
|
-
v-model
|
|
54
|
-
dataFormLocal.selectNetwork.isShowNetworkBasic
|
|
55
|
-
"
|
|
56
|
-
v-model:network-data="dataFormLocal.selectNetwork.data"
|
|
53
|
+
v-model="form.network"
|
|
57
54
|
/>
|
|
58
55
|
|
|
59
56
|
<common-wizards-vm-new-migrate-select-priority
|
|
@@ -93,7 +90,7 @@ import type { UI_I_VmSettings } from '~/lib/models/store/vm/interfaces'
|
|
|
93
90
|
import type { UI_I_TreeNode } from '~/components/common/recursionTree/lib/models/interfaces'
|
|
94
91
|
import type { UI_I_StorageConfigurePerDiskItem } from '~/components/common/wizards/vmNew/migrate/select/storage/configure/disk/table/lib/models/interfaces'
|
|
95
92
|
import type { UI_I_TableInfoItem } from '~/components/atoms/table/info/lib/models/interfaces'
|
|
96
|
-
import type { UI_I_CollectedDataFormLocal } from '~/components/common/wizards/
|
|
93
|
+
import type { UI_I_CollectedDataFormLocal } from '~/components/common/wizards/vmNew/migrate/lib/models/interfaces'
|
|
97
94
|
import { constructDataReadyViewFunc } from '~/components/common/wizards/vmNew/migrate/lib/config/constructDataReady'
|
|
98
95
|
import * as validation from '~/components/common/wizards/vmNew/migrate/lib/validations'
|
|
99
96
|
|
|
@@ -137,6 +134,10 @@ const form = ref<UI_I_MigrateFormLocal>({
|
|
|
137
134
|
user: '',
|
|
138
135
|
password: '',
|
|
139
136
|
},
|
|
137
|
+
network: {
|
|
138
|
+
isBasicNetworkMode: true,
|
|
139
|
+
data: null,
|
|
140
|
+
},
|
|
140
141
|
vMotion_priority: 'high',
|
|
141
142
|
})
|
|
142
143
|
|
|
@@ -206,14 +207,9 @@ const dataReadyView = computed<UI_I_TableInfoItem>(() =>
|
|
|
206
207
|
constructDataReadyViewFunc(props.vmName, form.value)
|
|
207
208
|
)
|
|
208
209
|
|
|
209
|
-
const dataFormLocal = ref<UI_I_CollectedDataFormLocal>({
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
selectNetwork: {
|
|
213
|
-
isShowNetworkBasic: true,
|
|
214
|
-
data: null,
|
|
215
|
-
},
|
|
216
|
-
})
|
|
210
|
+
// const dataFormLocal = ref<UI_I_CollectedDataFormLocal>({
|
|
211
|
+
// selectedComputeResource: null,
|
|
212
|
+
// })
|
|
217
213
|
const onFinish = (): void => {
|
|
218
214
|
loading.value = true
|
|
219
215
|
emits('finish', form.value)
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import type { UI_I_TableInfoItem } from '~/components/atoms/table/info/lib/models/interfaces'
|
|
2
2
|
import type { UI_T_VmMigrateSelectStorageTab } from '~/components/common/wizards/vm/migrate/select/storage/lib/models/types'
|
|
3
|
-
import type { UI_I_SelectStorageReadyData } from '~/components/common/wizards/vm/migrate/select/storage/lib/models/interfaces'
|
|
4
|
-
import type { UI_I_ComputeResourceDataLocal } from '~/components/common/wizards/vm/migrate/select/computeResource/lib/models/interfaces'
|
|
5
3
|
import type { UI_T_VmMigrateType } from '~/components/common/wizards/vmNew/migrate/select/type/lib/models/types'
|
|
6
4
|
import type { UI_I_StorageConfigurePerDiskItem } from '~/components/common/wizards/vm/migrate/select/storage/table/disk/lib/models/interfaces'
|
|
7
5
|
import type { UI_T_SelectVMotionPriority } from '~/components/common/wizards/vmNew/migrate/select/priority/lib/models/types'
|
|
8
6
|
import type { UI_I_ConnectEsxiServerForm } from '~/components/common/wizards/vmNew/migrate/select/targetServer/new/lib/models/interfaces'
|
|
7
|
+
import type { UI_I_SelectNetworksFormLocal } from '~/components/common/wizards/vmNew/migrate/select/network/lib/models/interfaces'
|
|
9
8
|
|
|
10
9
|
export interface UI_I_MigrateFormLocal {
|
|
11
10
|
migrate_type: UI_T_VmMigrateType
|
|
@@ -18,6 +17,8 @@ export interface UI_I_MigrateFormLocal {
|
|
|
18
17
|
}
|
|
19
18
|
target_server: UI_I_ConnectEsxiServerForm
|
|
20
19
|
|
|
20
|
+
network: UI_I_SelectNetworksFormLocal
|
|
21
|
+
|
|
21
22
|
vMotion_priority: UI_T_SelectVMotionPriority
|
|
22
23
|
}
|
|
23
24
|
|
|
@@ -30,12 +31,3 @@ export interface UI_I_ChangeStepsSchemes {
|
|
|
30
31
|
export interface UI_I_MigrateReadyBlockData extends UI_I_TableInfoItem {
|
|
31
32
|
permissions: UI_T_VmMigrateSelectStorageTab[]
|
|
32
33
|
}
|
|
33
|
-
|
|
34
|
-
export interface UI_I_CollectedDataFormLocal {
|
|
35
|
-
selectedComputeResource: UI_I_ComputeResourceDataLocal
|
|
36
|
-
selectStorage: UI_I_SelectStorageReadyData
|
|
37
|
-
selectNetwork: {
|
|
38
|
-
isShowNetworkBasic: boolean
|
|
39
|
-
data: any // добавить интерфае потом
|
|
40
|
-
}
|
|
41
|
-
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
{{ selectNetworkHeadline }}
|
|
5
5
|
</div>
|
|
6
6
|
|
|
7
|
-
<common-wizards-vm-migrate-select-network-table-network
|
|
7
|
+
<common-wizards-vm-new-migrate-select-network-table-network
|
|
8
8
|
v-model="selectedSourceNetwork"
|
|
9
9
|
:key="uniqueKey"
|
|
10
10
|
:networks="dataNetwork"
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
/>
|
|
14
14
|
|
|
15
15
|
<div
|
|
16
|
-
v-if="
|
|
16
|
+
v-if="model.isBasicNetworkMode && selectedSourceNetwork"
|
|
17
17
|
class="select-network__matcher-details"
|
|
18
18
|
>
|
|
19
19
|
<span> {{ networkDetailsHeadline }} </span>
|
|
20
20
|
|
|
21
|
-
<common-wizards-vm-migrate-select-network-table-use-at
|
|
21
|
+
<common-wizards-vm-new-migrate-select-network-table-use-at
|
|
22
22
|
:networks="useAtTableData"
|
|
23
23
|
/>
|
|
24
24
|
</div>
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
data-id="migrate-network-advanced-button"
|
|
30
30
|
@click="onClickSelectNetworkMode"
|
|
31
31
|
>
|
|
32
|
-
<span v-if="!isShowNetworkBasic"> ≪ </span>
|
|
32
|
+
<span v-if="!model.isShowNetworkBasic"> ≪ </span>
|
|
33
33
|
{{ buttonText }}
|
|
34
|
-
<span v-if="isShowNetworkBasic"> ≫ </span>
|
|
34
|
+
<span v-if="model.isShowNetworkBasic"> ≫ </span>
|
|
35
35
|
</button>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
|
-
<common-wizards-vm-common-validation-compatibility
|
|
38
|
+
<common-wizards-vm-new-common-validation-compatibility
|
|
39
39
|
:loading="false"
|
|
40
40
|
status="Success"
|
|
41
41
|
text="compatibilityChecksSucceeded"
|
|
@@ -45,28 +45,30 @@
|
|
|
45
45
|
|
|
46
46
|
<script lang="ts" setup>
|
|
47
47
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
48
|
+
import { UI_I_SelectNetworksFormLocal } from '~/components/common/wizards/vmNew/migrate/select/network/lib/models/interfaces'
|
|
48
49
|
|
|
49
|
-
const
|
|
50
|
-
const networkData = defineModel<any>('networkData')
|
|
51
|
-
|
|
50
|
+
const model = defineModel<UI_I_SelectNetworksFormLocal>({ required: true })
|
|
52
51
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
53
52
|
|
|
54
53
|
const selectedSourceNetwork = ref<string | null>(null)
|
|
55
54
|
const uniqueKey = ref<number>(0)
|
|
56
55
|
|
|
57
56
|
const buttonText = computed(
|
|
58
|
-
() =>
|
|
57
|
+
() =>
|
|
58
|
+
localization.value.common[
|
|
59
|
+
model.value.isBasicNetworkMode ? 'advanced' : 'basic'
|
|
60
|
+
]
|
|
59
61
|
)
|
|
60
62
|
|
|
61
63
|
const tableType = computed<string>(() =>
|
|
62
|
-
|
|
64
|
+
model.value.isBasicNetworkMode ? 'basic' : 'advanced'
|
|
63
65
|
)
|
|
64
66
|
|
|
65
67
|
const selectNetworkHeadline = computed<string>(() => {
|
|
66
68
|
const { migrateNetworkingForAllAdapters, migrateNetworkingForEachAdapters } =
|
|
67
69
|
localization.value.common
|
|
68
70
|
|
|
69
|
-
return
|
|
71
|
+
return model.value.isBasicNetworkMode
|
|
70
72
|
? migrateNetworkingForAllAdapters
|
|
71
73
|
: migrateNetworkingForEachAdapters
|
|
72
74
|
})
|
|
@@ -101,11 +103,11 @@ const useAtTableData = computed(() =>
|
|
|
101
103
|
|
|
102
104
|
const onClickSelectNetworkMode = (): void => {
|
|
103
105
|
uniqueKey.value++
|
|
104
|
-
|
|
106
|
+
model.value.isBasicNetworkMode = !model.value.isBasicNetworkMode
|
|
105
107
|
selectedSourceNetwork.value = ''
|
|
106
108
|
}
|
|
107
109
|
const onSelectNetwork = (data: any): void => {
|
|
108
|
-
|
|
110
|
+
model.value.data = data
|
|
109
111
|
}
|
|
110
112
|
</script>
|
|
111
113
|
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { UI_I_DatastoreTableItem } from '~/lib/models/store/storage/interfaces'
|
|
2
|
-
import type { UI_I_StorageConfigurePerDiskItem } from '~/components/common/wizards/vm/migrate/select/storage/table/disk/lib/models/interfaces'
|
|
3
|
-
import type { UI_T_VmMigrateSelectStorageTab } from '~/components/common/wizards/vm/migrate/select/storage/lib/models/types'
|
|
4
|
-
|
|
5
|
-
export interface UI_I_SelectStorageDataLocal {
|
|
6
|
-
vmDiskFormat: 0 | 1 | 2 | 3
|
|
7
|
-
storage: UI_I_DatastoreTableItem | null
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface UI_I_SelectStorageReadyData
|
|
11
|
-
extends UI_I_SelectStorageDataLocal {
|
|
12
|
-
tab: UI_T_VmMigrateSelectStorageTab
|
|
13
|
-
configureDisks: UI_I_StorageConfigurePerDiskItem[]
|
|
14
|
-
}
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
|
|
44
44
|
<div class="clr-form-control clr-row">
|
|
45
45
|
<label class="clr-control-label clr-col-md-4">
|
|
46
|
-
{{ localization.
|
|
46
|
+
{{ localization.auth.username }}
|
|
47
47
|
</label>
|
|
48
48
|
|
|
49
49
|
<div
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
|
|
73
73
|
<div class="nd-mt-0 clr-form-control clr-row">
|
|
74
74
|
<label class="clr-control-label clr-col-md-4">
|
|
75
|
-
{{ localization.
|
|
75
|
+
{{ localization.auth.password }}
|
|
76
76
|
</label>
|
|
77
77
|
|
|
78
78
|
<div
|
|
@@ -113,12 +113,12 @@
|
|
|
113
113
|
</div>
|
|
114
114
|
|
|
115
115
|
<button
|
|
116
|
-
class="btn btn-primary btn-sm mt-2
|
|
116
|
+
class="btn btn-primary btn-sm mt-2"
|
|
117
117
|
:disabled="disabledSignInButton"
|
|
118
118
|
data-id="sign-in-button"
|
|
119
119
|
@click="onConnectServer"
|
|
120
120
|
>
|
|
121
|
-
{{ localization.
|
|
121
|
+
{{ localization.auth.login }}
|
|
122
122
|
</button>
|
|
123
123
|
</div>
|
|
124
124
|
</template>
|
|
@@ -194,7 +194,9 @@ const onConnectServer = async (): Promise<void> => {
|
|
|
194
194
|
)
|
|
195
195
|
|
|
196
196
|
showValidationErrors([alertText], 'alert-success')
|
|
197
|
+
modelConnectServer.value = true
|
|
197
198
|
} catch (error) {
|
|
199
|
+
modelConnectServer.value = false
|
|
198
200
|
showValidationErrors([error as string], 'alert-danger')
|
|
199
201
|
} finally {
|
|
200
202
|
props.wizard.setLoader(false)
|
|
@@ -202,11 +204,11 @@ const onConnectServer = async (): Promise<void> => {
|
|
|
202
204
|
}
|
|
203
205
|
|
|
204
206
|
watch(
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
207
|
+
modelConnectServer,
|
|
208
|
+
(newValue: boolean | undefined) => {
|
|
209
|
+
props.wizard.setDisabledNextButton(!newValue)
|
|
210
|
+
},
|
|
211
|
+
{ immediate: true }
|
|
210
212
|
)
|
|
211
213
|
</script>
|
|
212
214
|
|
|
@@ -244,6 +246,9 @@ watch(
|
|
|
244
246
|
}
|
|
245
247
|
}
|
|
246
248
|
}
|
|
249
|
+
button.btn-sm {
|
|
250
|
+
max-width: 20%;
|
|
251
|
+
}
|
|
247
252
|
}
|
|
248
253
|
.flex-align-center {
|
|
249
254
|
&.input-action-wrapper {
|