Controller Blueprints Microservice
authorMuthuramalingam, Brinda Santh(bs2796) <bs2796@att.com>
Wed, 5 Sep 2018 23:40:46 +0000 (23:40 +0000)
committerMuthuramalingam, Brinda Santh(bs2796) <bs2796@att.com>
Wed, 5 Sep 2018 23:40:46 +0000 (23:40 +0000)
Add Property Assign validation and Data Type Entry schema validation.

Change-Id: Ifa40f62f848d06381ab83d7f1c9e7c6526f5edf0
Issue-ID: CCSDK-484
Signed-off-by: Muthuramalingam, Brinda Santh(bs2796) <bs2796@att.com>
17 files changed:
ms/controllerblueprints/application/load/model_type/node_type/dg-activate-netconf.json
ms/controllerblueprints/application/load/model_type/node_type/dg-config-generator.json
ms/controllerblueprints/application/load/model_type/node_type/dg-resource-assign-activate.json
ms/controllerblueprints/application/load/model_type/node_type/dg-resource-assignment.json
ms/controllerblueprints/application/load/model_type/node_type/tosca.nodes.Component.json [new file with mode: 0644]
ms/controllerblueprints/application/load/model_type/node_type/tosca.nodes.DG.json [new file with mode: 0644]
ms/controllerblueprints/application/load/model_type/node_type/tosca.nodes.Vnf.json [new file with mode: 0644]
ms/controllerblueprints/application/load/model_type/node_type/tosca.nodes.component.Python.json [new file with mode: 0644]
ms/controllerblueprints/modules/service/load/blueprints/baseconfiguration/Definitions/activation-blueprint.json
ms/controllerblueprints/modules/service/load/blueprints/vrr-test/Definitions/vrr-test.json
ms/controllerblueprints/modules/service/load/model_type/node_type/dg-activate-netconf.json
ms/controllerblueprints/modules/service/load/model_type/node_type/dg-config-generator.json
ms/controllerblueprints/modules/service/load/model_type/node_type/dg-resource-assign-activate.json
ms/controllerblueprints/modules/service/load/model_type/node_type/dg-resource-assignment.json
ms/controllerblueprints/modules/service/src/main/resources/service_template/default_netconf.json
ms/controllerblueprints/modules/service/src/test/resources/enhance/enhance-template.json
ms/controllerblueprints/modules/service/src/test/resources/enhance/enhanced-template.json

index c638df0..a9d16ed 100644 (file)
@@ -15,7 +15,7 @@
                "is-start-flow": {
                        "required": false,
                        "type": "boolean",
-                       "default": "false"
+                       "default": false
                }
        },
        "capabilities": {
index 28bace0..6794b3c 100644 (file)
@@ -15,7 +15,7 @@
                "is-start-flow": {\r
                        "required": false,\r
                        "type": "boolean",\r
-                       "default": "false"\r
+                       "default": false\r
                }\r
        },\r
        "capabilities": {\r
index e98fa5a..22a4d81 100644 (file)
@@ -15,7 +15,7 @@
                "is-start-flow": {\r
                        "required": false,\r
                        "type": "boolean",\r
-                       "default": "false"\r
+                       "default": false\r
                }\r
        },\r
        "capabilities": {\r
index 36fbb68..7c01faa 100644 (file)
@@ -15,7 +15,7 @@
                "is-start-flow": {\r
                        "required": false,\r
                        "type": "boolean",\r
-                       "default": "false"\r
+                       "default": false\r
                }\r
        },\r
        "capabilities": {\r
diff --git a/ms/controllerblueprints/application/load/model_type/node_type/tosca.nodes.Component.json b/ms/controllerblueprints/application/load/model_type/node_type/tosca.nodes.Component.json
new file mode 100644 (file)
index 0000000..bc4827b
--- /dev/null
@@ -0,0 +1,5 @@
+{\r
+  "description": "This is default Component Node",\r
+  "version": "1.0.0",\r
+  "derived_from": "tosca.nodes.Root"\r
+}
\ No newline at end of file
diff --git a/ms/controllerblueprints/application/load/model_type/node_type/tosca.nodes.DG.json b/ms/controllerblueprints/application/load/model_type/node_type/tosca.nodes.DG.json
new file mode 100644 (file)
index 0000000..86728cf
--- /dev/null
@@ -0,0 +1,5 @@
+{\r
+  "description": "This is Directed Graph Node Type",\r
+  "version": "1.0.0",\r
+  "derived_from": "tosca.nodes.Root"\r
+}
\ No newline at end of file
diff --git a/ms/controllerblueprints/application/load/model_type/node_type/tosca.nodes.Vnf.json b/ms/controllerblueprints/application/load/model_type/node_type/tosca.nodes.Vnf.json
new file mode 100644 (file)
index 0000000..acb1f2f
--- /dev/null
@@ -0,0 +1,5 @@
+{\r
+  "description": "This is VNF Node Type",\r
+  "version": "1.0.0",\r
+  "derived_from": "tosca.nodes.Root"\r
+}
\ No newline at end of file
diff --git a/ms/controllerblueprints/application/load/model_type/node_type/tosca.nodes.component.Python.json b/ms/controllerblueprints/application/load/model_type/node_type/tosca.nodes.component.Python.json
new file mode 100644 (file)
index 0000000..7b67c8c
--- /dev/null
@@ -0,0 +1,5 @@
+{\r
+  "description": "This is Python Component",\r
+  "version": "1.0.0",\r
+  "derived_from": "tosca.nodes.Root"\r
+}
\ No newline at end of file
index 635e177..851ded2 100644 (file)
@@ -44,7 +44,7 @@
       "resource-assignment": {\r
         "type": "component-resource-assignment",\r
         "properties":{\r
-          "request-id": ["1234", "1234"]\r
+          "request-id": "1234"\r
         },\r
         "interfaces": {\r
           "DefaultComponentNode": {\r
@@ -80,7 +80,7 @@
       "resource-assignment-py": {\r
         "type": "component-resource-assignment",\r
         "properties":{\r
-          "request-id": ["1234", "1234"]\r
+          "request-id": "1234"\r
         },\r
         "interfaces": {\r
           "DefaultComponentNode": {\r
index d71dd20..a06165b 100644 (file)
         "is-start-flow": {\r
           "required": false,\r
           "type": "boolean",\r
-          "default": "false"\r
+          "default": false\r
         }\r
       },\r
       "capabilities": {\r
         "is-start-flow": {\r
           "required": false,\r
           "type": "boolean",\r
-          "default": "false"\r
+          "default": false\r
         }\r
       },\r
       "capabilities": {\r
index c638df0..a9d16ed 100644 (file)
@@ -15,7 +15,7 @@
                "is-start-flow": {
                        "required": false,
                        "type": "boolean",
-                       "default": "false"
+                       "default": false
                }
        },
        "capabilities": {
index 28bace0..6794b3c 100644 (file)
@@ -15,7 +15,7 @@
                "is-start-flow": {\r
                        "required": false,\r
                        "type": "boolean",\r
-                       "default": "false"\r
+                       "default": false\r
                }\r
        },\r
        "capabilities": {\r
index e98fa5a..22a4d81 100644 (file)
@@ -15,7 +15,7 @@
                "is-start-flow": {\r
                        "required": false,\r
                        "type": "boolean",\r
-                       "default": "false"\r
+                       "default": false\r
                }\r
        },\r
        "capabilities": {\r
index 36fbb68..7c01faa 100644 (file)
@@ -15,7 +15,7 @@
                "is-start-flow": {\r
                        "required": false,\r
                        "type": "boolean",\r
-                       "default": "false"\r
+                       "default": false\r
                }\r
        },\r
        "capabilities": {\r
index 95c829c..14f724e 100644 (file)
                                "is-start-flow": {\r
                                        "required": false,\r
                                        "type": "boolean",\r
-                                       "default": "false"\r
+                                       "default": false\r
                                }\r
                        },\r
                        "capabilities": {\r
                                "is-start-flow": {\r
                                        "required": false,\r
                                        "type": "boolean",\r
-                                       "default": "false"\r
+                                       "default": false\r
                                }\r
                        },\r
                        "capabilities": {\r
index fedf1da..5824031 100644 (file)
         "properties": {\r
           "mode": "sync",\r
           "version": "LATEST",\r
-          "is-start-flow": "false"\r
+          "is-start-flow": false\r
         },\r
         "requirements": {\r
           "component-dependency": {\r
         "properties": {\r
           "mode": "sync",\r
           "version": "LATEST",\r
-          "is-start-flow": "false"\r
+          "is-start-flow": false\r
         },\r
         "requirements": {\r
           "component-dependency": {\r
                 {\r
                   "name": "bundle-mac",\r
                   "property": {\r
-                    "description": "",\r
                     "required": true,\r
-                    "type": "string",\r
-                    "status": "",\r
-                    "constraints": [\r
-                      {}\r
-                    ],\r
-                    "entry_schema": {\r
-                      "type": ""\r
-                    }\r
+                    "type": "string"\r
                   },\r
                   "input-param": false,\r
                   "dictionary-name": "bundle-mac",\r
                     "description": "",\r
                     "required": true,\r
                     "type": "list",\r
-                    "status": "",\r
-                    "constraints": [\r
-                      {}\r
-                    ],\r
                     "entry_schema": {\r
                       "type": "dt-v4-aggregate"\r
                     }\r
                 {\r
                   "name": "licenses",\r
                   "property": {\r
-                    "description": "",\r
                     "required": true,\r
                     "type": "list",\r
-                    "status": "",\r
-                    "constraints": [\r
-                      {}\r
-                    ],\r
                     "entry_schema": {\r
                       "type": "dt-license-key"\r
                     }\r
index 0633c64..c3f2573 100644 (file)
       "version" : "1.0.0",\r
       "properties" : {\r
         "bundle-mac" : {\r
-          "description" : "",\r
           "required" : true,\r
-          "type" : "string",\r
-          "status" : "",\r
-          "constraints" : [ { } ],\r
-          "entry_schema" : {\r
-            "type" : ""\r
-          }\r
+          "type" : "string"\r
         },\r
         "hostname" : {\r
           "required" : true,\r
           "type" : "string"\r
         },\r
         "licenses" : {\r
-          "description" : "",\r
           "required" : true,\r
           "type" : "list",\r
-          "status" : "",\r
-          "constraints" : [ { } ],\r
           "entry_schema" : {\r
             "type" : "dt-license-key"\r
           }\r
           "description" : "",\r
           "required" : true,\r
           "type" : "list",\r
-          "status" : "",\r
-          "constraints" : [ { } ],\r
           "entry_schema" : {\r
             "type" : "dt-v4-aggregate"\r
           }\r
         "is-start-flow" : {\r
           "required" : false,\r
           "type" : "boolean",\r
-          "default" : "false"\r
+          "default" : false\r
         }\r
       },\r
       "capabilities" : {\r
         "is-start-flow" : {\r
           "required" : false,\r
           "type" : "boolean",\r
-          "default" : "false"\r
+          "default" : false\r
         }\r
       },\r
       "capabilities" : {\r
         "properties" : {\r
           "mode" : "sync",\r
           "version" : "LATEST",\r
-          "is-start-flow" : "false"\r
+          "is-start-flow" : false\r
         },\r
         "capabilities" : {\r
           "dg-node" : { },\r
         "properties" : {\r
           "mode" : "sync",\r
           "version" : "LATEST",\r
-          "is-start-flow" : "false"\r
+          "is-start-flow" : false\r
         },\r
         "capabilities" : {\r
           "dg-node" : { },\r
               "mapping" : [ {\r
                 "name" : "bundle-mac",\r
                 "property" : {\r
-                  "description" : "",\r
                   "required" : true,\r
-                  "type" : "string",\r
-                  "status" : "",\r
-                  "constraints" : [ { } ],\r
-                  "entry_schema" : {\r
-                    "type" : ""\r
-                  }\r
+                  "type" : "string"\r
                 },\r
                 "input-param" : false,\r
                 "dictionary-name" : "bundle-mac",\r
                   "description" : "",\r
                   "required" : true,\r
                   "type" : "list",\r
-                  "status" : "",\r
-                  "constraints" : [ { } ],\r
                   "entry_schema" : {\r
                     "type" : "dt-v4-aggregate"\r
                   }\r
               "mapping" : [ {\r
                 "name" : "licenses",\r
                 "property" : {\r
-                  "description" : "",\r
                   "required" : true,\r
                   "type" : "list",\r
-                  "status" : "",\r
-                  "constraints" : [ { } ],\r
                   "entry_schema" : {\r
                     "type" : "dt-license-key"\r
                   }\r