This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack-primate.git


The following commit(s) were added to refs/heads/master by this push:
     new 9998772  infra: add support for ILBVM migration
9998772 is described below

commit 9998772c89679cb05b5da2b33afde118b4c34abe
Author: Rohit Yadav <[email protected]>
AuthorDate: Mon Feb 10 15:21:49 2020 +0530

    infra: add support for ILBVM migration
    
    Signed-off-by: Rohit Yadav <[email protected]>
---
 src/components/widgets/Console.vue |  2 +-
 src/config/section/infra/ilbvms.js | 13 +++++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/src/components/widgets/Console.vue 
b/src/components/widgets/Console.vue
index daed176..7f26996 100644
--- a/src/components/widgets/Console.vue
+++ b/src/components/widgets/Console.vue
@@ -17,7 +17,7 @@
 
 <template>
   <a
-    v-if="['vm', 'systemvm', 'router'].includes($route.meta.name)"
+    v-if="['vm', 'systemvm', 'router', 'ilbvm'].includes($route.meta.name)"
     :href="'/client/console?cmd=access&vm=' + resource.id"
     target="_blank">
     <a-button style="margin-right: 5px" shape="circle" type="dashed" 
:size="size" :disabled="['Stopped', 'Error', 
'Destroyed'].includes(resource.state)" >
diff --git a/src/config/section/infra/ilbvms.js 
b/src/config/section/infra/ilbvms.js
index c412ac6..df96dba 100644
--- a/src/config/section/infra/ilbvms.js
+++ b/src/config/section/infra/ilbvms.js
@@ -37,6 +37,19 @@ export default {
       dataView: true,
       args: ['forced'],
       show: (record) => { return record.state === 'Running' }
+    },
+    {
+      api: 'migrateSystemVm',
+      icon: 'drag',
+      label: 'label.action.migrate.router',
+      dataView: true,
+      show: (record) => { return record.state === 'Running' },
+      args: ['virtualmachineid', 'hostid'],
+      mapping: {
+        virtualmachineid: {
+          value: (record) => { return record.id }
+        }
+      }
     }
   ]
 }

Reply via email to