From 7b4ad728f2973295da49347f8c04c095fc76fa54 Mon Sep 17 00:00:00 2001 From: Pearl Dsilva Date: Mon, 27 Jul 2020 13:12:26 +0530 Subject: [PATCH] systemvm: add systemvmtype and issystem params to list service offering for VR (#545) Co-authored-by: Pearl Dsilva Signed-off-by: Rohit Yadav --- ui/src/config/section/infra/routers.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/ui/src/config/section/infra/routers.js b/ui/src/config/section/infra/routers.js index 43679aa05ae..91f7357b3ce 100644 --- a/ui/src/config/section/infra/routers.js +++ b/ui/src/config/section/infra/routers.js @@ -69,7 +69,19 @@ export default { message: 'message.confirm.scale.up.router.vm', dataView: true, args: ['serviceofferingid'], - show: (record) => { return record.hypervisor !== 'KVM' } + show: (record) => { return record.hypervisor !== 'KVM' }, + mapping: { + serviceofferingid: { + api: 'listServiceOfferings', + params: (record) => { + return { + virtualmachineid: record.virtualmachineid, + issystem: true, + systemvmtype: 'domainrouter' + } + } + } + } }, { api: 'upgradeRouterTemplate',