add location and sdncontroller parameter. 99/19499/1
authorLuji7 <lu.ji3@zte.com.cn>
Wed, 18 Oct 2017 09:22:13 +0000 (17:22 +0800)
committerLuji7 <lu.ji3@zte.com.cn>
Wed, 18 Oct 2017 09:22:21 +0000 (17:22 +0800)
Change-Id: Id427ef0beaf938ba20bc5c70fb658de0af388cf5
Issue-id: USECASEUI-36
Signed-off-by: Luji7 <lu.ji3@zte.com.cn>
server/src/main/java/org/onap/usecaseui/server/service/lcm/impl/DefaultServiceTemplateService.java

index 9569775..306c753 100644 (file)
@@ -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,