mirror of https://github.com/apache/cloudstack.git
infra: add support for ILBVM migration
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
f20d9cb50a
commit
f3a174b29c
|
|
@ -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)" >
|
||||
|
|
|
|||
|
|
@ -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 }
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue