aboutsummaryrefslogtreecommitdiffstats
path: root/components/model-catalog/blueprint-model/starter-blueprint/baseconfiguration/Definitions
diff options
context:
space:
mode:
authorMuthuramalingam, Brinda Santh <brindasanth@in.ibm.com>2019-02-08 12:15:11 -0500
committerMuthuramalingam, Brinda Santh <brindasanth@in.ibm.com>2019-02-08 12:44:58 -0500
commit8d865c28451d63815fb1fd5d1a52800ee33dde91 (patch)
tree155e0dcca5cb8421f2183b646269f53eff835e34 /components/model-catalog/blueprint-model/starter-blueprint/baseconfiguration/Definitions
parent1eda0bd6e558856ec4631d2dcfde57149c4f981a (diff)
Refactor test blueprint catalog
Change-Id: I948067b25787c7a79f769ac4055c34ffdd2f172d Issue-ID: CCSDK-1047 Signed-off-by: Muthuramalingam, Brinda Santh <brindasanth@in.ibm.com>
Diffstat (limited to 'components/model-catalog/blueprint-model/starter-blueprint/baseconfiguration/Definitions')
-rw-r--r--components/model-catalog/blueprint-model/starter-blueprint/baseconfiguration/Definitions/activation-blueprint.json336
-rw-r--r--components/model-catalog/blueprint-model/starter-blueprint/baseconfiguration/Definitions/artifact_types.json45
-rw-r--r--components/model-catalog/blueprint-model/starter-blueprint/baseconfiguration/Definitions/baseconfig-mapping.json36
-rw-r--r--components/model-catalog/blueprint-model/starter-blueprint/baseconfiguration/Definitions/data_types.json82
-rw-r--r--components/model-catalog/blueprint-model/starter-blueprint/baseconfiguration/Definitions/node_types.json234
-rw-r--r--components/model-catalog/blueprint-model/starter-blueprint/baseconfiguration/Definitions/policy_types.json4
-rw-r--r--components/model-catalog/blueprint-model/starter-blueprint/baseconfiguration/Definitions/relationship_types.json9
-rw-r--r--components/model-catalog/blueprint-model/starter-blueprint/baseconfiguration/Definitions/resources_definition_types.json62
8 files changed, 0 insertions, 808 deletions
diff --git a/components/model-catalog/blueprint-model/starter-blueprint/baseconfiguration/Definitions/activation-blueprint.json b/components/model-catalog/blueprint-model/starter-blueprint/baseconfiguration/Definitions/activation-blueprint.json
deleted file mode 100644
index 822cc68b..00000000
--- a/components/model-catalog/blueprint-model/starter-blueprint/baseconfiguration/Definitions/activation-blueprint.json
+++ /dev/null
@@ -1,336 +0,0 @@
-{
- "metadata": {
- "template_author": "Brinda Santh Muthuramalingam",
- "author-email": "brindasanth@in.ibm.com",
- "user-groups": "ADMIN, OPERATION",
- "template_name": "baseconfiguration",
- "template_version": "1.0.0",
- "template_tags": "brinda, tosca"
- },
- "imports": [
- {
- "file": "Definitions/data_types.json"
- },
- {
- "file": "Definitions/relationship_types.json"
- },
- {
- "file": "Definitions/artifact_types.json"
- },
- {
- "file": "Definitions/node_types.json"
- },
- {
- "file": "Definitions/policy_types.json"
- }
- ],
- "topology_template": {
- "inputs": {
- "request-id": {
- "required": true,
- "type": "string"
- },
- "action-name": {
- "required": true,
- "type": "string"
- },
- "scope-type": {
- "required": true,
- "type": "string"
- },
- "hostname": {
- "required": true,
- "type": "string"
- }
- },
- "node_templates": {
- "resource-assignment-process": {
- "type": "dg-generic",
- "properties": {
- "content": {
- "get_artifact": [
- "SELF",
- "dg-resource-assignment-process"
- ]
- },
- "dependency-node-templates": [
- "resource-assignment"
- ]
- },
- "artifacts": {
- "dg-resource-assignment-process": {
- "type": "artifact-directed-graph",
- "file": "Plans/CONFIG_ResourceAssignment_1.0.0.xml"
- }
- }
- },
- "activate-process": {
- "type": "dg-generic",
- "properties": {
- "content": {
- "get_artifact": [
- "SELF",
- "dg-activate-process"
- ]
- },
- "dependency-node-templates": [
- "activate-jython"
- ]
- },
- "artifacts": {
- "dg-activate-process": {
- "type": "artifact-directed-graph",
- "file": "Plans/CONFIG_ActivateNetconf_1.0.0.xml"
- }
- }
- },
- "assign-activate-process": {
- "type": "dg-generic",
- "properties": {
- "content": {
- "get_artifact": [
- "SELF",
- "dg-assign-activate-process"
- ]
- },
- "dependency-node-templates": [
- "resource-assignment",
- "activate-jython"
- ]
- },
- "artifacts": {
- "dg-assign-activate-process": {
- "type": "artifact-directed-graph",
- "file": "Plans/CONFIG_AssignActivateNetconf_1.0.0.xml"
- }
- }
- },
- "resource-assignment": {
- "type": "component-resource-assignment",
- "interfaces": {
- "ResourceAssignmentComponent": {
- "operations": {
- "process": {
- "inputs": {
- "action-name": {
- "get_input": "action-name"
- },
- "resource-type": "vnf-type",
- "request-id": {
- "get_input": "request-id"
- },
- "resource-id": {
- "get_input": "hostname"
- },
- "artifact-prefix-names": [
- "baseconfig"
- ]
- },
- "outputs": {
- "resource-assignment-params": {
- "get_attribute": [
- "SELF",
- "assignment-params"
- ]
- },
- "status": "success"
- }
- }
- }
- }
- },
- "artifacts": {
- "baseconfig-template": {
- "type": "artifact-template-velocity",
- "file": "Templates/baseconfig-template.vtl"
- },
- "baseconfig-mapping": {
- "type": "artifact-mapping-resource",
- "file": "Definitions/baseconfig-mapping.json"
- }
- }
- },
- "resource-assignment-py": {
- "type": "component-resource-assignment",
- "interfaces": {
- "ResourceAssignmentComponent": {
- "operations": {
- "process": {
- "implementation": {
- "primary": "component-script"
- },
- "inputs": {
- "action-name": {
- "get_input": "action-name"
- }
- },
- "outputs": {
- "resource-assignment-params": "",
- "status": ""
- }
- }
- }
- }
- },
- "artifacts": {
- "component-script": {
- "type": "artifact-script-jython",
- "file": "Scripts/python/SamplePythonComponentNode.py"
- }
- }
- },
- "activate-jython": {
- "type": "component-jython-executor",
- "interfaces": {
- "JythonExecutorComponent": {
- "operations": {
- "process": {
- "implementation": {
- "primary": "component-script"
- },
- "inputs": {
- "instance-dependencies": [
- "json-parser-service",
- "netconf-rpc-service"
- ]
- },
- "outputs": {
- "response-data": "",
- "status": ""
- }
- }
- }
- }
- },
- "artifacts": {
- "component-script": {
- "type": "artifact-script-jython",
- "file": "Scripts/python/SamplePythonComponentNode.py"
- }
- }
- },
- "activate-netconf": {
- "type": "component-netconf-executor",
- "interfaces": {
- "NetconfExecutorComponent": {
- "operations": {
- "process": {
- "implementation": {
- "primary": "component-script"
- },
- "inputs": {
- "instance-dependencies": [
- "json-parser-service",
- "netconf-rpc-service"
- ]
- },
- "outputs": {
- "response-data": "",
- "status": ""
- }
- }
- }
- }
- },
- "requirements": {
- "netconf-connection": {
- "capability": "netconf",
- "node": "sample-netconf-device",
- "relationship": "tosca.relationships.ConnectsTo"
- }
- },
- "artifacts": {
- "component-script": {
- "type": "artifact-script-jython",
- "file": "Scripts/python/DefaultGetNetConfig.py"
- }
- }
- },
- "sample-netconf-device": {
- "type": "vnf-netconf-device",
- "capabilities": {
- "netconf": {
- "properties": {
- "login-key": "sample-key",
- "login-account": "sample-account",
- "target-ip-address": "localhost",
- "port-number": 830,
- "connection-time-out": 30
- }
- }
- }
- }
- },
- "workflows": {
- "resource-assignment": {
- "inputs": {
- "resource-assignment-properties": {
- "required": true,
- "type": "dt-resource-assignment-properties"
- }
- },
- "steps": {
- "call-resource-assignment": {
- "description": "Resource Assignment Workflow",
- "target": "resource-assignment-process",
- "activities": [
- {
- "call_operation": "CONFIG.ResourceAssignment"
- }
- ]
- }
- }
- },
- "activate": {
- "inputs": {
- "request-id": {
- "required": true,
- "type": "string"
- },
- "action-name": {
- "required": true,
- "type": "string"
- },
- "scope-type": {
- "required": true,
- "type": "string"
- },
- "hostname": {
- "required": true,
- "type": "string"
- }
- },
- "steps": {
- "activate-process": {
- "description": "Netconf Activation Workflow",
- "target": "activate-process",
- "activities": [
- {
- "call_operation": "CONFIG.ActivateProcess"
- }
- ]
- }
- }
- },
- "assign-activate": {
- "inputs": {
- "assign-activate-properties": {
- "required": true,
- "type": "dt-assign-activate-properties"
- }
- },
- "steps": {
- "activate-process": {
- "description": "Resource Assign and Netconf Activation Workflow",
- "target": "assign-activate-process",
- "activities": [
- {
- "call_operation": "CONFIG.AssignActivateProcess"
- }
- ]
- }
- }
- }
- }
- }
-} \ No newline at end of file
diff --git a/components/model-catalog/blueprint-model/starter-blueprint/baseconfiguration/Definitions/artifact_types.json b/components/model-catalog/blueprint-model/starter-blueprint/baseconfiguration/Definitions/artifact_types.json
deleted file mode 100644
index d741d151..00000000
--- a/components/model-catalog/blueprint-model/starter-blueprint/baseconfiguration/Definitions/artifact_types.json
+++ /dev/null
@@ -1,45 +0,0 @@
-{
- "artifact_types": {
- "artifact-template-velocity": {
- "description": "Velocity Template used for Configuration",
- "version": "1.0.0",
- "file_ext": [
- "vtl"
- ],
- "derived_from": "tosca.artifacts.Implementation"
- },
- "artifact-mapping-resource": {
- "description": "Velocity Template Resource Mapping File used along with Configuration template",
- "version": "1.0.0",
- "file_ext": [
- "json"
- ],
- "derived_from": "tosca.artifacts.Implementation"
- },
- "artifact-script-jython": {
- "description": "Jython Script File",
- "version": "1.0.0",
- "file_ext": [
- "py"
- ],
- "derived_from": "tosca.artifacts.Implementation"
- },
- "artifact-directed-graph": {
- "description": "Directed Graph File",
- "version": "1.0.0",
- "file_ext": [
- "json",
- "xml"
- ],
- "derived_from": "tosca.artifacts.Implementation"
- },
- "artifact-component-jar": {
- "description": "Component Jar",
- "version": "1.0.0",
- "file_ext": [
- "jar"
- ],
- "derived_from": "tosca.artifacts.Implementation"
- }
- }
-} \ No newline at end of file
diff --git a/components/model-catalog/blueprint-model/starter-blueprint/baseconfiguration/Definitions/baseconfig-mapping.json b/components/model-catalog/blueprint-model/starter-blueprint/baseconfiguration/Definitions/baseconfig-mapping.json
deleted file mode 100644
index 67d2a914..00000000
--- a/components/model-catalog/blueprint-model/starter-blueprint/baseconfiguration/Definitions/baseconfig-mapping.json
+++ /dev/null
@@ -1,36 +0,0 @@
-[
- {
- "name": "service-instance-id",
- "input-param": true,
- "property": {
- "type": "string"
- },
- "dictionary-name": "service-instance-id",
- "dictionary-source": "input",
- "dependencies": [
- ]
- },
- {
- "name": "vnf-id",
- "input-param": true,
- "property": {
- "type": "string"
- },
- "dictionary-name": "vnf-id",
- "dictionary-source": "input",
- "dependencies": []
- },
- {
- "name": "vnf_name",
- "input-param": false,
- "property": {
- "type": "string"
- },
- "dictionary-name": "vnf_name",
- "dictionary-source": "primary-config-data",
- "dependencies": [
- "service-instance-id",
- "vnf-id"
- ]
- }
-]
diff --git a/components/model-catalog/blueprint-model/starter-blueprint/baseconfiguration/Definitions/data_types.json b/components/model-catalog/blueprint-model/starter-blueprint/baseconfiguration/Definitions/data_types.json
deleted file mode 100644
index 6d771cd6..00000000
--- a/components/model-catalog/blueprint-model/starter-blueprint/baseconfiguration/Definitions/data_types.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "data_types": {
- "sample-property": {
- "description": "This is sample data type",
- "version": "1.0.0",
- "properties": {
- "content": {
- "required": false,
- "type": "string"
- },
- "process-name": {
- "required": false,
- "type": "string"
- },
- "version": {
- "required": false,
- "type": "string",
- "default": "LATEST"
- }
- },
- "derived_from": "tosca.datatypes.Root"
- },
- "dt-resource-assignment-properties": {
- "description": "This is Dynamically generated data type for workflow activate",
- "version": "1.0.0",
- "properties": {
- "request-id": {
- "required": true,
- "type": "string"
- },
- "service-instance-id": {
- "required": true,
- "type": "string"
- },
- "vnf-id": {
- "required": true,
- "type": "string"
- },
- "action-name": {
- "required": true,
- "type": "string"
- },
- "scope-type": {
- "required": true,
- "type": "string"
- },
- "hostname": {
- "required": true,
- "type": "string"
- },
- "vnf_name": {
- "required": true,
- "type": "string"
- }
- },
- "derived_from": "tosca.datatypes.Dynamic"
- },
- "dt-assign-activate-properties": {
- "description": "This is Dynamically generated data type for workflow assign-activate",
- "version": "1.0.0",
- "properties": {
- "request-id": {
- "required": true,
- "type": "string"
- },
- "action-name": {
- "required": true,
- "type": "string"
- },
- "scope-type": {
- "required": true,
- "type": "string"
- },
- "hostname": {
- "required": true,
- "type": "string"
- }
- },
- "derived_from": "tosca.datatypes.Dynamic"
- }
- }
-} \ No newline at end of file
diff --git a/components/model-catalog/blueprint-model/starter-blueprint/baseconfiguration/Definitions/node_types.json b/components/model-catalog/blueprint-model/starter-blueprint/baseconfiguration/Definitions/node_types.json
deleted file mode 100644
index f7970bfb..00000000
--- a/components/model-catalog/blueprint-model/starter-blueprint/baseconfiguration/Definitions/node_types.json
+++ /dev/null
@@ -1,234 +0,0 @@
-{
- "node_types": {
- "dg-generic": {
- "description": "This is Generic Directed Graph Type",
- "version": "1.0.0",
- "properties": {
- "content": {
- "required": true,
- "type": "string"
- },
- "dependency-node-templates": {
- "required": true,
- "description": "Dependent Step Components",
- "type": "list",
- "entry_schema": {
- "type": "string"
- }
- }
- },
- "derived_from": "tosca.nodes.DG"
- },
- "tosca.nodes.Component": {
- "description": "This is Resource Assignment Component API",
- "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.ResourceSource" : {
- "description" : "TOSCA base type for Resource Sources",
- "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.component.Jython": {
- "description": "This is Resource Assignment Jython Component API",
- "version": "1.0.0",
- "derived_from": "tosca.nodes.Root"
- },
- "component-netconf-executor": {
- "description": "This is Netconf Transaction Configuration Component API",
- "version": "1.0.0",
- "capabilities": {
- "component-node": {
- "type": "tosca.capabilities.Node"
- }
- },
- "requirements": {
- "netconf-connection": {
- "capability": "netconf",
- "node": "vnf-netconf-device",
- "relationship": "tosca.relationships.ConnectsTo"
- }
- },
- "interfaces": {
- "NetconfExecutorComponent": {
- "operations": {
- "process": {
- "inputs": {
- "instance-dependencies": {
- "description": "Instance Names to Inject to Jython Script.",
- "required": true,
- "type": "list",
- "entry_schema": {
- "type": "string"
- }
- }
- },
- "outputs": {
- "response-data": {
- "description": "Execution Response Data in JSON format.",
- "required": false,
- "type": "string"
- },
- "status": {
- "description": "Status of the Component Execution ( success or failure )",
- "required": true,
- "type": "string"
- }
- }
- }
- }
- }
- },
- "derived_from": "tosca.nodes.component.Jython"
- },
- "component-resource-assignment": {
- "description": "This is Resource Assignment Component API",
- "version": "1.0.0",
- "attributes": {
- "assignment-params": {
- "required": true,
- "type": "string"
- }
- },
- "interfaces": {
- "ResourceAssignmentComponent": {
- "operations": {
- "process": {
- "inputs": {
- "action-name": {
- "description": "Recipe Name to get from Database, Either (message & mask-info ) or ( resource-id & resource-type & action-name & template-name ) should be present. Message will be given higest priority",
- "required": false,
- "type": "string"
- },
- "resource-type": {
- "required": false,
- "type": "string"
- },
- "request-id": {
- "description": "Request Id used to store the generated configuration, in the database along with the template-name",
- "required": true,
- "type": "string"
- },
- "resource-id": {
- "description": "Id used to pull the data content from the data base. Either template-data or resource-id should be present",
- "required": true,
- "type": "string"
- },
- "artifact-prefix-names": {
- "required": false,
- "description": "Template , Resource Assignment Artifact Prefix names",
- "type": "list",
- "entry_schema": {
- "type": "string"
- }
- }
- },
- "outputs": {
- "resource-assignment-params": {
- "required": true,
- "type": "string"
- },
- "status": {
- "required": true,
- "type": "string"
- }
- }
- }
- }
- }
- },
- "derived_from": "tosca.nodes.Component"
- },
- "component-jython-executor": {
- "description": "This is Jython Execution Component.",
- "version": "1.0.0",
- "capabilities": {
- "component-node": {
- "type": "tosca.capabilities.Node"
- }
- },
- "interfaces": {
- "JythonExecutorComponent": {
- "operations": {
- "process": {
- "inputs": {
- "instance-dependencies": {
- "required": true,
- "description": "Instance Names to Inject to Jython Script.",
- "type": "list",
- "entry_schema": {
- "type": "string"
- }
- }
- },
- "outputs": {
- "response-data": {
- "description": "Execution Response Data in JSON format.",
- "required": false,
- "type": "string"
- },
- "status": {
- "description": "Status of the Component Execution ( success or failure )",
- "required": true,
- "type": "string"
- }
- }
- }
- }
- }
- },
- "derived_from": "tosca.nodes.component.Jython"
- },
- "vnf-netconf-device": {
- "description": "This is VNF Device with Netconf Capability",
- "version": "1.0.0",
- "capabilities": {
- "netconf": {
- "type": "tosca.capabilities.Netconf",
- "properties": {
- "login-key": {
- "required": true,
- "type": "string",
- "default": "sdnc"
- },
- "login-account": {
- "required": true,
- "type": "string",
- "default": "sdnc-tacacs"
- },
- "source": {
- "required": true,
- "type": "string",
- "default": "npm"
- },
- "target-ip-address": {
- "required": true,
- "type": "string"
- },
- "port-number": {
- "required": true,
- "type": "integer",
- "default": 830
- },
- "connection-time-out": {
- "required": false,
- "type": "integer",
- "default": 30
- }
- }
- }
- },
- "derived_from": "tosca.nodes.Vnf"
- }
- }
-} \ No newline at end of file
diff --git a/components/model-catalog/blueprint-model/starter-blueprint/baseconfiguration/Definitions/policy_types.json b/components/model-catalog/blueprint-model/starter-blueprint/baseconfiguration/Definitions/policy_types.json
deleted file mode 100644
index 0c9b9925..00000000
--- a/components/model-catalog/blueprint-model/starter-blueprint/baseconfiguration/Definitions/policy_types.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "policy_types": {
- }
-} \ No newline at end of file
diff --git a/components/model-catalog/blueprint-model/starter-blueprint/baseconfiguration/Definitions/relationship_types.json b/components/model-catalog/blueprint-model/starter-blueprint/baseconfiguration/Definitions/relationship_types.json
deleted file mode 100644
index 87d2dc58..00000000
--- a/components/model-catalog/blueprint-model/starter-blueprint/baseconfiguration/Definitions/relationship_types.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "relationship_types": {
- "tosca.relationships.ConnectsTo": {
- "description": "Relationship tosca.relationships.ConnectsTo",
- "version": "1.0.0",
- "derived_from": "tosca.relationships.Root"
- }
- }
-} \ No newline at end of file
diff --git a/components/model-catalog/blueprint-model/starter-blueprint/baseconfiguration/Definitions/resources_definition_types.json b/components/model-catalog/blueprint-model/starter-blueprint/baseconfiguration/Definitions/resources_definition_types.json
deleted file mode 100644
index c8871214..00000000
--- a/components/model-catalog/blueprint-model/starter-blueprint/baseconfiguration/Definitions/resources_definition_types.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "service-instance-id": {
- "name": "service-instance-id",
- "tags": "service-instance-id, tosca.datatypes.Root, data_type",
- "updated-by": "Singal, Kapil <ks220y@att.com>",
- "property": {
- "description": "To be provided",
- "type": "string"
- },
- "sources": {
- "input": {
- "type": "source-input",
- "properties": {}
- }
- }
- },
- "vnf-id": {
- "name": "vnf-id",
- "tags": "vnf-id",
- "updated-by": "Singal, Kapil <ks220y@att.com>",
- "property": {
- "description": "vnf-id",
- "type": "string"
- },
- "sources": {
- "input": {
- "type": "source-input",
- "properties": {}
- }
- }
- },
- "vnf_name": {
- "name": "vnf_name",
- "tags": "vnf_name",
- "updated-by": "Singal, Kapil <ks220y@att.com>",
- "property": {
- "description": "vnf_name",
- "type": "string"
- },
- "sources": {
- "primary-config-data": {
- "type": "source-rest",
- "properties": {
- "type": "JSON",
- "url-path": "config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/vnf_name",
- "path": "/param/0/value",
- "input-key-mapping": {
- "service-instance-id": "service-instance-id",
- "vnf-id": "vnf-id"
- },
- "output-key-mapping": {
- "vnf_name": "value"
- },
- "key-dependencies": [
- "service-instance-id",
- "vnf-id"
- ]
- }
- }
- }
- }
-} \ No newline at end of file