From 105b5dc259f1f185dc32c39bd3aafeaf7d878be1 Mon Sep 17 00:00:00 2001 From: Luji7 Date: Wed, 18 Oct 2017 17:22:13 +0800 Subject: add location and sdncontroller parameter. Change-Id: Id427ef0beaf938ba20bc5c70fb658de0af388cf5 Issue-id: USECASEUI-36 Signed-off-by: Luji7 --- .../lcm/impl/DefaultServiceTemplateService.java | 30 +++++++++++++--------- 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/server/src/main/java/org/onap/usecaseui/server/service/lcm/impl/DefaultServiceTemplateService.java b/server/src/main/java/org/onap/usecaseui/server/service/lcm/impl/DefaultServiceTemplateService.java index 9569775f..306c7530 100644 --- a/server/src/main/java/org/onap/usecaseui/server/service/lcm/impl/DefaultServiceTemplateService.java +++ b/server/src/main/java/org/onap/usecaseui/server/service/lcm/impl/DefaultServiceTemplateService.java @@ -186,19 +186,25 @@ public class DefaultServiceTemplateService implements ServiceTemplateService { String.valueOf(input.getDefault()) )); } - if (SDCConsts.CATEGORY_NS.equals(type)) { -// templateInputs.add(new TemplateInput( -// -// )); + if (SDCConsts.CATEGORY_NS.equals(subcategory)) { + // location + templateInputs.add(new TemplateInput( + name + "_Location", + "enum", + "location for the service", + "true", + "" + )); + // sdn controller + templateInputs.add(new TemplateInput( + "sdncontroller", + "enum", + "sdn controller for the service", + "false", + "" + )); } - // sdn controller -// templateInputs.add(new TemplateInput( -// "sdncontroller", -// "enum", -// "sdn controller for the service", -// "false", -// "" -// )); + return new ServiceTemplateInput( invariantUUID, uuid, -- cgit 1.2.3-korg