aboutsummaryrefslogtreecommitdiffstats
path: root/operations/a1-pe-sim-packages/resources/oran-sim-cba/Definitions/oran-sim-blueprint.json
diff options
context:
space:
mode:
Diffstat (limited to 'operations/a1-pe-sim-packages/resources/oran-sim-cba/Definitions/oran-sim-blueprint.json')
-rw-r--r--operations/a1-pe-sim-packages/resources/oran-sim-cba/Definitions/oran-sim-blueprint.json296
1 files changed, 296 insertions, 0 deletions
diff --git a/operations/a1-pe-sim-packages/resources/oran-sim-cba/Definitions/oran-sim-blueprint.json b/operations/a1-pe-sim-packages/resources/oran-sim-cba/Definitions/oran-sim-blueprint.json
new file mode 100644
index 0000000..9ad633e
--- /dev/null
+++ b/operations/a1-pe-sim-packages/resources/oran-sim-cba/Definitions/oran-sim-blueprint.json
@@ -0,0 +1,296 @@
+{
+ "tosca_definitions_version": "controller_blueprint_1_0_0",
+ "metadata": {
+ "template_author": "Lasse Kaihlavirta",
+ "author-email": "l.kaihlavirt@partner.samsung.com",
+ "user-groups": "ADMIN, OPERATION",
+ "template_name": "a1_pe_simulator",
+ "template_version": "1.3.2",
+ "template_tags": "samsung, oran",
+ "template_type": "DEFAULT"
+ },
+ "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"
+ }
+ ],
+ "dsl_definitions": {
+ "multicloud-k8s-api": {
+ "type": "basic-auth",
+ "username": "admin",
+ "password": "admin",
+ "url": "http://multicloud-k8s:9015"
+ },
+ "aai-api": {
+ "type": "basic-auth",
+ "username": "AAI",
+ "password": "AAI",
+ "url": "https://aai.onap:8443"
+ },
+ "config-deploy-properties": {
+ "resolution-key": {
+ "get_input": "resolution-key"
+ },
+ "vnf-id-value": {
+ "get_input": "vnf-id"
+ },
+ "api-access": "*multicloud-k8s-api",
+ "aai-access": "*aai-api"
+ }
+ },
+ "topology_template": {
+ "workflows": {
+ "resource-assignment": {
+ "steps": {
+ "resource-assignment": {
+ "description": "Parameters resolution phase",
+ "target": "resource-assignment",
+ "activities": [
+ {
+ "call_operation": ""
+ }
+ ]
+ }
+ },
+ "inputs": {
+ "template-prefix": {
+ "required": true,
+ "type": "list",
+ "entry_schema": {
+ "type": "string"
+ }
+ },
+ "resource-assignment-properties": {
+ "description": "Dynamic PropertyDefinition for workflow(resource-assignment).",
+ "required": true,
+ "type": "dt-resource-assignment-properties"
+ }
+ },
+ "outputs": {
+ "meshed-template": {
+ "type": "json",
+ "value": {
+ "get_attribute": [
+ "resource-assignment",
+ "assignment-params"
+ ]
+ }
+ }
+ }
+ },
+ "config-assign": {
+ "steps": {
+ "config-assign": {
+ "description": "Config Assign Workflow",
+ "target": "config-assign",
+ "activities": [
+ {
+ "call_operation": ""
+ }
+ ]
+ }
+ },
+ "inputs": {
+ "resolution-key": {
+ "required": true,
+ "type": "string"
+ },
+ "config-assign-properties": {
+ "description": "Dynamic PropertyDefinition for workflow(config-assign).",
+ "required": true,
+ "type": "dt-config-assign-properties"
+ }
+ },
+ "outputs": {
+ "dry-run": {
+ "type": "json",
+ "value": {
+ "get_attribute": [
+ "config-assign",
+ "assignment-params"
+ ]
+ }
+ }
+ }
+ },
+ "config-deploy": {
+ "steps": {
+ "resolve-netconfaccount": {
+ "description": "Resolve VNF Management Ip Address and Netconf username/password for the Netconf operation.",
+ "target": "resolve-netconfaccount",
+ "activities": [
+ {
+ "call_operation": ""
+ }
+ ],
+ "on_success": [
+ "imperative-workflow-step-1"
+ ]
+ },
+ "imperative-workflow-step-1": {
+ "description": "Config Deploy workflow",
+ "target": "execute-post",
+ "activities": [
+ {
+ "call_operation": "ComponentScriptExecutor.process"
+ }
+ ]
+ }
+ },
+ "inputs": {
+ "resolution-key": {
+ "required": false,
+ "type": "string"
+ },
+ "config-deploy-properties": {
+ "description": "Dynamic PropertyDefinition for workflow(config-deploy).",
+ "required": true,
+ "type": "dt-config-deploy-properties"
+ }
+ }
+ }
+ },
+ "node_templates": {
+ "resource-assignment": {
+ "type": "component-resource-resolution",
+ "interfaces": {
+ "ResourceResolutionComponent": {
+ "operations": {
+ "process": {
+ "inputs": {
+ "artifact-prefix-names": {
+ "get_input": "template-prefix"
+ }
+ }
+ }
+ }
+ }
+ },
+ "artifacts": {
+ "vnf-template": {
+ "type": "artifact-template-velocity",
+ "file": "Templates/vnf-template.vtl"
+ },
+ "vnf-mapping": {
+ "type": "artifact-mapping-resource",
+ "file": "Templates/vnf-mapping.json"
+ },
+ "o-ran-simulator-template": {
+ "type": "artifact-template-velocity",
+ "file": "Templates/o-ran-simulator-template.vtl"
+ },
+ "o-ran-simulator-mapping": {
+ "type": "artifact-mapping-resource",
+ "file": "Templates/o-ran-simulator-mapping.json"
+ }
+ }
+ },
+ "config-assign": {
+ "type": "component-resource-resolution",
+ "interfaces": {
+ "ResourceResolutionComponent": {
+ "operations": {
+ "process": {
+ "inputs": {
+ "resolution-key": {
+ "get_input": "resolution-key"
+ },
+ "store-result": true,
+ "artifact-prefix-names": [
+ "ves",
+ "ues",
+ "cells"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "artifacts": {
+ "ves-template": {
+ "type": "artifact-template-velocity",
+ "file": "Templates/ves-template.vtl"
+ },
+ "ves-mapping": {
+ "type": "artifact-mapping-resource",
+ "file": "Templates/ves-mapping.json"
+ },
+ "ues-template": {
+ "type": "artifact-template-velocity",
+ "file": "Templates/ues-template.vtl"
+ },
+ "ues-mapping": {
+ "type": "artifact-mapping-resource",
+ "file": "Templates/ues-mapping.json"
+ },
+ "cells-template": {
+ "type": "artifact-template-velocity",
+ "file": "Templates/cells-template.vtl"
+ },
+ "cells-mapping": {
+ "type": "artifact-mapping-resource",
+ "file": "Templates/cells-mapping.json"
+ }
+ }
+ },
+ "resolve-netconfaccount": {
+ "type": "component-resource-resolution",
+ "interfaces": {
+ "ResourceResolutionComponent": {
+ "operations": {
+ "process": {
+ "inputs": {
+ "resolution-key": {
+ "get_input": "resolution-key"
+ },
+ "store-result": true,
+ "artifact-prefix-names": [
+ "req-input"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "artifacts": {
+ "req-input-template": {
+ "type": "artifact-template-velocity",
+ "file": "Templates/req-input-template.vtl"
+ },
+ "req-input-mapping": {
+ "type": "artifact-mapping-resource",
+ "file": "Templates/req-input-mapping.json"
+ }
+ }
+ },
+ "execute-post": {
+ "type": "component-script-executor",
+ "interfaces": {
+ "ComponentScriptExecutor": {
+ "operations": {
+ "process": {
+ "inputs": {
+ "script-type": "kotlin",
+ "script-class-reference": "org.onap.ccsdk.cds.blueprintsprocessor.services.execution.scripts.DayOneConfig",
+ "dynamic-properties": "*config-deploy-properties"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+}