{ "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": "2.0.1", "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": "ResourceResolutionComponent.process" } ], "on_success": [ "profile-upload" ] }, "profile-upload": { "description": "Generate and upload K8s Profile", "target": "k8s-profile-upload", "activities": [ { "call_operation": "ComponentScriptExecutor.process" } ] } }, "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" }, "helm_simulator-template": { "type": "artifact-template-velocity", "file": "Templates/helm_simulator-template.vtl" }, "helm_simulator-mapping": { "type": "artifact-mapping-resource", "file": "Templates/helm_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" } } }, "k8s-profile-upload": { "type": "component-k8s-profile-upload", "interfaces": { "K8sProfileUploadComponent": { "operations": { "process": { "inputs": { "artifact-prefix-names": { "get_input": "template-prefix" }, "resource-assignment-map": { "get_attribute": [ "resource-assignment", "assignment-map" ] } } } } } }, "artifacts": { "simple-profile": { "type": "artifact-k8sprofile-content", "file": "Templates/k8s-profiles/simple.tgz" } } }, "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" } } } } } } } } }