summaryrefslogtreecommitdiffstats
path: root/ms/controllerblueprints/modules
diff options
context:
space:
mode:
authorMuthuramalingam, Brinda Santh(bs2796) <bs2796@att.com>2018-09-07 22:43:20 +0000
committerMuthuramalingam, Brinda Santh(bs2796) <bs2796@att.com>2018-09-07 22:43:20 +0000
commit9e1736c88644486172b7bca7f22914d22a390bed (patch)
tree9406a4b7c4f2ae62d31e76db1558cfefd75f460d /ms/controllerblueprints/modules
parent83808703f4c1379c331f71d670b5610e2ca395b0 (diff)
Controller Blueprints Microservice
Modify get_input, get_attribute, get_property and get_artifact functions string implementation to Json Implementation. Change-Id: I6d4aadd370dc23127a176964f84fc9bb5e7ab5ee Issue-ID: CCSDK-432 Signed-off-by: Muthuramalingam, Brinda Santh(bs2796) <bs2796@att.com>
Diffstat (limited to 'ms/controllerblueprints/modules')
-rw-r--r--ms/controllerblueprints/modules/service/load/blueprints/vrr-test/Definitions/vrr-test.json98
-rw-r--r--ms/controllerblueprints/modules/service/src/main/resources/service_template/default_netconf.json46
-rw-r--r--ms/controllerblueprints/modules/service/src/test/resources/enhance/enhance-template.json67
-rw-r--r--ms/controllerblueprints/modules/service/src/test/resources/enhance/enhanced-template.json60
4 files changed, 164 insertions, 107 deletions
diff --git a/ms/controllerblueprints/modules/service/load/blueprints/vrr-test/Definitions/vrr-test.json b/ms/controllerblueprints/modules/service/load/blueprints/vrr-test/Definitions/vrr-test.json
index 5fe2d251..41f6e92f 100644
--- a/ms/controllerblueprints/modules/service/load/blueprints/vrr-test/Definitions/vrr-test.json
+++ b/ms/controllerblueprints/modules/service/load/blueprints/vrr-test/Definitions/vrr-test.json
@@ -3,7 +3,7 @@
"template_author": "Brinda Santh ( bs2796@onap.com )",
"template_name": "vrr-test",
"template_version": "1.0.0",
- "template_tags" : "brinda, VRR",
+ "template_tags": "brinda, VRR",
"release": "201802",
"service-type": "AVPN",
"vnf-type": "VRR"
@@ -172,20 +172,30 @@
"resource-assignment": {
"type": "component-resource-assignment",
"interfaces": {
- "org-openecomp-sdnc-config-assignment-service-ConfigAssignmentNode": {
+ "org-onap-ccsdk-config-assignment-service-ConfigAssignmentNode": {
"operations": {
"process": {
"inputs": {
- "service-template-name": "{ \"get_attribute\" : \"template_name\" }",
- "service-template-version": "{ \"get_attribute\" : \"service-template-version\" }",
- "action-name": "{ \"get_input\" : \"action-name\" }",
+ "template-name": {
+ "get_input": "template_name"
+ },
+ "template-version": {
+ "get_input": "template_version"
+ },
+ "action-name": {
+ "get_input": "action-name"
+ },
"resource-type": "vnf-type",
"template-names": [
"base-config-template",
"licence-template"
],
- "request-id": "{ \"get_input\" : \"request-id\" }",
- "resource-id": "{ \"get_input\" : \"vnf-id\" }"
+ "request-id": {
+ "get_input": "request-id"
+ },
+ "resource-id": {
+ "get_input": "vnf-id"
+ }
},
"outputs": {
"resource-assignment-params": "",
@@ -205,8 +215,12 @@
"netconf": {
"properties": {
"profile-name": "sample",
- "oam-ipv4-address": "{ \"get_attribute\" : \"hostname\" }",
- "port-number": { "get_input" : "host-port" },
+ "oam-ipv4-address": {
+ "get_input": "hostname"
+ },
+ "port-number": {
+ "get_input": "host-port"
+ },
"connection-time-out": 30
}
}
@@ -218,19 +232,29 @@
"org-openecomp-sdnc-netconf-adaptor-service-NetconfExecutorNode": {
"operations": {
"process": {
- "implementation" : {
- "primary" : "file://netconf-adaptor/DefaultGetConfig.py"
+ "implementation": {
+ "primary": "file://netconf-adaptor/DefaultGetConfig.py"
},
"inputs": {
- "action-name": "{ \"get_input\" : \"action-name\" }",
+ "action-name": {
+ "get_input": "action-name"
+ },
"resource-type": "vnf-type",
- "request-id": "{ \"get_attribute\" : \"request-id\" }",
- "resource-id": "{ \"get_input\" : \"vnf-id\" }",
+ "request-id": {
+ "get_input": "request-id"
+ },
+ "resource-id": {
+ "get_input": "vnf-id"
+ },
"execution-script": "execution-script"
},
"outputs": {
- "response-data": "{ \"get_attribute\" : \"netconf-executor-baseconfig.response-data\" }",
- "status": "{ \"get_attribute\" : \"netconf-executor-baseconfig.status\" }"
+ "response-data": {
+ "get_attribute": ["SELF", "netconf-executor-baseconfig.response-data"]
+ },
+ "status": {
+ "get_attribute": ["SELF", "netconf-executor-baseconfig.status"]
+ }
}
}
}
@@ -311,7 +335,7 @@
}
},
"interfaces": {
- "org-openecomp-sdnc-config-assignment-service-ConfigAssignmentNode": {
+ "org-onap-ccsdk-config-assignment-service-ConfigAssignmentNode": {
"operations": {
"process": {
"inputs": {
@@ -320,12 +344,12 @@
"required": true,
"type": "string"
},
- "service-template-name": {
+ "template-name": {
"description": "Service Template Name.",
"required": true,
"type": "string"
},
- "service-template-version": {
+ "template-version": {
"description": "Service Template Version.",
"required": true,
"type": "string"
@@ -569,12 +593,12 @@
"required": true,
"type": "string"
},
- "service-template-name": {
+ "template-name": {
"description": "Service Template Name",
"required": true,
"type": "string"
},
- "service-template-version": {
+ "template-version": {
"description": "Service Template Version",
"required": true,
"type": "string"
@@ -617,25 +641,25 @@
},
"derived_from": "tosca.nodes.Component"
},
- "tosca.nodes.DG" : {
- "description" : "This is Directed Graph Node Type",
- "version" : "1.0.0",
- "derived_from" : "tosca.nodes.Root"
+ "tosca.nodes.DG": {
+ "description": "This is Directed Graph Node Type",
+ "version": "1.0.0",
+ "derived_from": "tosca.nodes.Root"
},
- "tosca.nodes.Vnf" : {
- "description" : "This is VNF Node Type",
- "version" : "1.0.0",
- "derived_from" : "tosca.nodes.Root"
+ "tosca.nodes.Vnf": {
+ "description": "This is VNF Node Type",
+ "version": "1.0.0",
+ "derived_from": "tosca.nodes.Root"
},
- "tosca.nodes.Artifact" : {
- "description" : "This is Deprecated Artifact Node Type.",
- "version" : "1.0.0",
- "derived_from" : "tosca.nodes.Root"
+ "tosca.nodes.Artifact": {
+ "description": "This is Deprecated Artifact Node Type.",
+ "version": "1.0.0",
+ "derived_from": "tosca.nodes.Root"
},
- "tosca.nodes.Component" : {
- "description" : "This is default Component Node",
- "version" : "1.0.0",
- "derived_from" : "tosca.nodes.Root"
+ "tosca.nodes.Component": {
+ "description": "This is default Component Node",
+ "version": "1.0.0",
+ "derived_from": "tosca.nodes.Root"
}
},
"data_types": {
diff --git a/ms/controllerblueprints/modules/service/src/main/resources/service_template/default_netconf.json b/ms/controllerblueprints/modules/service/src/main/resources/service_template/default_netconf.json
index 8b1c7909..5b5332fc 100644
--- a/ms/controllerblueprints/modules/service/src/main/resources/service_template/default_netconf.json
+++ b/ms/controllerblueprints/modules/service/src/main/resources/service_template/default_netconf.json
@@ -13,11 +13,11 @@
"required": true,
"type": "string"
},
- "service-template-name": {
+ "template-name": {
"required": true,
"type": "string"
},
- "service-template-version": {
+ "template-version": {
"required": true,
"type": "string"
},
@@ -146,7 +146,7 @@
"resource-assignment": {
"type": "component-resource-assignment",
"interfaces": {
- "org-openecomp-sdnc-config-assignment-service-ConfigAssignmentNode": {
+ "org-onap-ccsdk-config-assignment-service-ConfigAssignmentNode": {
"operations": {
"process": {
"inputs": {
@@ -155,8 +155,8 @@
"base-config-template",
"licence-template"
],
- "request-id": "{ \"get_attribute\" : \"request-id\" }",
- "resource-id": "{ \"get_input\" : \"vnf-id\" }"
+ "request-id": { "get_input" : "request-id" },
+ "resource-id": { "get_input" : "vnf-id" }
},
"outputs": {
"resource-assignment-params": "",
@@ -220,10 +220,10 @@
],
"resource-type": "vnf-type",
"initialise-sftp": false,
- "request-id": "{ \"get_input\" : \"request-id\" }",
+ "request-id": {"get_input" : "request-id"},
"initialise-ssh": false,
- "resource-id": "{ \"get_input\" : \"vnf-id\" }",
- "action-name": "{ \"get_input\" : \"action-name\" }"
+ "resource-id": { "get_input" : "vnf-id" },
+ "action-name": {"get_input" : "action-name"}
},
"outputs": {
"rpc-response-message": "",
@@ -400,20 +400,6 @@
"capabilities": {
"dg-node": {
"type": "tosca.capabilities.Node"
- },
- "content": {
- "type": "tosca.capabilities.Content",
- "properties": {
- "type": {
- "required": false,
- "type": "string",
- "default": "json"
- },
- "content": {
- "required": true,
- "type": "string"
- }
- }
}
},
"requirements": {
@@ -465,20 +451,6 @@
"capabilities": {
"dg-node": {
"type": "tosca.capabilities.Node"
- },
- "content": {
- "type": "tosca.capabilities.Content",
- "properties": {
- "type": {
- "required": false,
- "type": "string",
- "default": "json"
- },
- "content": {
- "required": true,
- "type": "string"
- }
- }
}
},
"requirements": {
@@ -553,7 +525,7 @@
}
},
"interfaces": {
- "org-openecomp-sdnc-config-assignment-service-ConfigAssignmentNode": {
+ "org-onap-ccsdk-config-assignment-service-ConfigAssignmentNode": {
"operations": {
"process": {
"inputs": {
diff --git a/ms/controllerblueprints/modules/service/src/test/resources/enhance/enhance-template.json b/ms/controllerblueprints/modules/service/src/test/resources/enhance/enhance-template.json
index d5d3f669..70d03e0a 100644
--- a/ms/controllerblueprints/modules/service/src/test/resources/enhance/enhance-template.json
+++ b/ms/controllerblueprints/modules/service/src/test/resources/enhance/enhance-template.json
@@ -39,7 +39,12 @@
"login-key": "sdnc",
"login-account": "sndc-local",
"source": "local",
- "target-ip-address": "{\"get_attribute\":\"lo0-local-ipv4-address\"}",
+ "target-ip-address": {
+ "get_attribute": [
+ "SELF",
+ "lo0-local-ipv4-address"
+ ]
+ },
"port-number": 22,
"connection-time-out": 30
}
@@ -63,20 +68,40 @@
"operations": {
"process": {
"inputs": {
- "action-name": "{ \"get_input\" : \"action-name\" }",
- "template-name": "{ \"get_attribute\" : \"template_name\" }",
- "template-version": "{ \"get_attribute\" : \"template_version\" }",
+ "action-name": {
+ "get_input": "action-name"
+ },
+ "template-name": {
+ "get_input": "template_name"
+ },
+ "template-version": {
+ "get_input": "template_version"
+ },
"resource-type": "vnf-type",
- "request-id": "{ \"get_input\" : \"request-id\" }",
- "resource-id": "{ \"get_input\" : \"hostname\" }",
+ "request-id": {
+ "get_input": "request-id"
+ },
+ "resource-id": {
+ "get_input": "hostname"
+ },
"execution-script": "execution-script"
},
"outputs": {
- "response-data": "{ \"get_attribute\" : \"netconf-executor-baseconfig.response-data\" }",
- "status": "{ \"get_attribute\" : \"netconf-executor-baseconfig.status\" }"
+ "response-data": {
+ "get_attribute": [
+ "SELF",
+ "netconf-executor-baseconfig.response-data"
+ ]
+ },
+ "status": {
+ "get_attribute": [
+ "SELF",
+ "netconf-executor-baseconfig.status"
+ ]
+ }
},
- "implementation" : {
- "primary" : "file://netconf_adaptor/DefaultBaseLicenceConfig.py"
+ "implementation": {
+ "primary": "file://netconf_adaptor/DefaultBaseLicenceConfig.py"
}
}
}
@@ -89,7 +114,7 @@
"component-node": {}
},
"interfaces": {
- "org-openecomp-sdnc-config-assignment-service-ConfigAssignmentNode": {
+ "org-onap-ccsdk-config-assignment-service-ConfigAssignmentNode": {
"operations": {
"process": {
"inputs": {
@@ -97,12 +122,22 @@
"base-config-template",
"licence-template"
],
- "action-name": "{ \"get_input\" : \"action-name\" }",
- "service-template-name": "{ \"get_attribute\" : \"template_name\" }",
- "service-template-version": "{ \"get_attribute\" : \"service-template-version\" }",
+ "action-name": {
+ "get_input": "action-name"
+ },
+ "template-name": {
+ "get_input": "template_name"
+ },
+ "template-version": {
+ "get_input": "template-version"
+ },
"resource-type": "vnf-type",
- "request-id": "{ \"get_input\" : \"request-id\" }",
- "resource-id": "{ \"get_input\" : \"hostname\" }"
+ "request-id": {
+ "get_input": "request-id"
+ },
+ "resource-id": {
+ "get_input": "hostname"
+ }
},
"outputs": {
"resource-assignment-params": "success",
diff --git a/ms/controllerblueprints/modules/service/src/test/resources/enhance/enhanced-template.json b/ms/controllerblueprints/modules/service/src/test/resources/enhance/enhanced-template.json
index b6898d84..bf3deffb 100644
--- a/ms/controllerblueprints/modules/service/src/test/resources/enhance/enhanced-template.json
+++ b/ms/controllerblueprints/modules/service/src/test/resources/enhance/enhanced-template.json
@@ -215,16 +215,16 @@
}
},
"interfaces" : {
- "org-openecomp-sdnc-config-assignment-service-ConfigAssignmentNode" : {
+ "org-onap-ccsdk-config-assignment-service-ConfigAssignmentNode" : {
"operations" : {
"process" : {
"inputs" : {
- "service-template-name" : {
+ "template-name" : {
"description" : "Service Template Name.",
"required" : true,
"type" : "string"
},
- "service-template-version" : {
+ "template-version" : {
"description" : "Service Template Version.",
"required" : true,
"type" : "string"
@@ -535,7 +535,9 @@
"login-key" : "sdnc",
"login-account" : "sndc-local",
"source" : "local",
- "target-ip-address" : "{\"get_attribute\":\"lo0-local-ipv4-address\"}",
+ "target-ip-address" : {
+ "get_attribute" : [ "SELF", "lo0-local-ipv4-address" ]
+ },
"port-number" : 22,
"connection-time-out" : 30
}
@@ -562,17 +564,31 @@
"primary" : "file://netconf_adaptor/DefaultBaseLicenceConfig.py"
},
"inputs" : {
- "action-name" : "{ \"get_input\" : \"action-name\" }",
- "template-name" : "{ \"get_attribute\" : \"template_name\" }",
- "template-version" : "{ \"get_attribute\" : \"template_version\" }",
+ "action-name" : {
+ "get_input" : "action-name"
+ },
+ "template-name" : {
+ "get_input" : "template_name"
+ },
+ "template-version" : {
+ "get_input" : "template_version"
+ },
"resource-type" : "vnf-type",
- "request-id" : "{ \"get_input\" : \"request-id\" }",
- "resource-id" : "{ \"get_input\" : \"hostname\" }",
+ "request-id" : {
+ "get_input" : "request-id"
+ },
+ "resource-id" : {
+ "get_input" : "hostname"
+ },
"execution-script" : "execution-script"
},
"outputs" : {
- "response-data" : "{ \"get_attribute\" : \"netconf-executor-baseconfig.response-data\" }",
- "status" : "{ \"get_attribute\" : \"netconf-executor-baseconfig.status\" }"
+ "response-data" : {
+ "get_attribute" : [ "SELF", "netconf-executor-baseconfig.response-data" ]
+ },
+ "status" : {
+ "get_attribute" : [ "SELF", "netconf-executor-baseconfig.status" ]
+ }
}
}
}
@@ -585,17 +601,27 @@
"component-node" : { }
},
"interfaces" : {
- "org-openecomp-sdnc-config-assignment-service-ConfigAssignmentNode" : {
+ "org-onap-ccsdk-config-assignment-service-ConfigAssignmentNode" : {
"operations" : {
"process" : {
"inputs" : {
"template-names" : [ "base-config-template", "licence-template" ],
- "action-name" : "{ \"get_input\" : \"action-name\" }",
- "service-template-name" : "{ \"get_attribute\" : \"template_name\" }",
- "service-template-version" : "{ \"get_attribute\" : \"service-template-version\" }",
+ "action-name" : {
+ "get_input" : "action-name"
+ },
+ "template-name" : {
+ "get_input" : "template_name"
+ },
+ "template-version" : {
+ "get_input" : "template-version"
+ },
"resource-type" : "vnf-type",
- "request-id" : "{ \"get_input\" : \"request-id\" }",
- "resource-id" : "{ \"get_input\" : \"hostname\" }"
+ "request-id" : {
+ "get_input" : "request-id"
+ },
+ "resource-id" : {
+ "get_input" : "hostname"
+ }
},
"outputs" : {
"resource-assignment-params" : "success",