From 152c39c6e5637c047ed19540afb7b72c89b43a92 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Tue, 16 Jun 2020 15:09:46 +0530 Subject: [PATCH] compute: import vm Signed-off-by: Abhishek Kumar --- src/config/section/compute.js | 8 ++ src/locales/en.json | 1 + src/views/compute/ImportVM.vue | 215 +++++++++++++++++++++++++++++++++ 3 files changed, 224 insertions(+) create mode 100644 src/views/compute/ImportVM.vue diff --git a/src/config/section/compute.js b/src/config/section/compute.js index 94dd2d0d7..a1b5e3d73 100644 --- a/src/config/section/compute.js +++ b/src/config/section/compute.js @@ -72,6 +72,14 @@ export default { listView: true, component: () => import('@/views/compute/DeployVM.vue') }, + { + api: 'importUnmanagedInstance', + icon: 'down-square', + label: 'label.vm.import', + listView: true, + popup: true, + component: () => import('@/views/compute/ImportVM.vue') + }, { api: 'updateVirtualMachine', icon: 'edit', diff --git a/src/locales/en.json b/src/locales/en.json index fa18974d9..891340a4b 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -2022,6 +2022,7 @@ "label.vm.bootmode": "Boot Mode", "label.vm.boottype": "Boot Type", "label.vm.destroy": "Destroy", +"label.vm.import": "Import Instance", "label.vm.password": "Password of the VM is", "label.vm.reboot": "Reboot", "label.vm.snapshots": "VM Snapshots", diff --git a/src/views/compute/ImportVM.vue b/src/views/compute/ImportVM.vue new file mode 100644 index 000000000..f8e114c9a --- /dev/null +++ b/src/views/compute/ImportVM.vue @@ -0,0 +1,215 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + + + + + +