aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuji7 <lu.ji3@zte.com.cn>2017-10-18 17:22:13 +0800
committerLuji7 <lu.ji3@zte.com.cn>2017-10-18 17:22:21 +0800
commit105b5dc259f1f185dc32c39bd3aafeaf7d878be1 (patch)
treeb273ef9f02a2c0d49108fc00a5da11438e57da36
parent47fce77ea2417986e4e90be1bbfbad4cbcb91ed1 (diff)
add location and sdncontroller parameter.
Change-Id: Id427ef0beaf938ba20bc5c70fb658de0af388cf5 Issue-id: USECASEUI-36 Signed-off-by: Luji7 <lu.ji3@zte.com.cn>
-rw-r--r--server/src/main/java/org/onap/usecaseui/server/service/lcm/impl/DefaultServiceTemplateService.java30
1 files 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,