diff options
Diffstat (limited to 'components/model-catalog/blueprint-model/service-blueprint/5GC_Simulator_CNF_CDS/Definitions/5G_Core.json')
-rw-r--r-- | components/model-catalog/blueprint-model/service-blueprint/5GC_Simulator_CNF_CDS/Definitions/5G_Core.json | 435 |
1 files changed, 435 insertions, 0 deletions
diff --git a/components/model-catalog/blueprint-model/service-blueprint/5GC_Simulator_CNF_CDS/Definitions/5G_Core.json b/components/model-catalog/blueprint-model/service-blueprint/5GC_Simulator_CNF_CDS/Definitions/5G_Core.json new file mode 100644 index 000000000..376c00ae3 --- /dev/null +++ b/components/model-catalog/blueprint-model/service-blueprint/5GC_Simulator_CNF_CDS/Definitions/5G_Core.json @@ -0,0 +1,435 @@ +{ + "tosca_definitions_version": "controller_blueprint_1_0_0", + "metadata": { + "template_author": "Thamlur Raju <TR00568434@TechMahindra.com>", + "author-email": "TR00568434@TechMahindra.com", + "user-groups": "ADMIN, OPERATION", + "template_name": "5G_Core", + "template_version": "1.0.37", + "template_tags": "Thamlur Raju, Malinconico Aniello Paolo, Vamshi Namilikonda, 5G_Core", + "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": { + "vpkg-rest-api": { + "type": "basic-auth", + "url": "http://", + "username": "admin", + "password": "admin" + }, + "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" + }, + "profile-upload-properties": { + "assignment-params": { + "get_attribute": [ + "resource-assignment", + "assignment-params" + ] + }, + "api-access": "*multicloud-k8s-api" + }, + "config-deploy-properties": { + "resolution-key": { + "get_input": "resolution-key" + }, + "api-access": "*multicloud-k8s-api", + "aai-access": "*aai-api" + }, + "config-deploy-day-2-properties": { + "resolution-key": { + "get_input": "resolution-key" + }, + "api-access": "*multicloud-k8s-api", + "aai-access": "*aai-api" + } + }, + "topology_template": { + "workflows": { + "resource-assignment": { + "steps": { + "resource-assignment": { + "description": "Resource Assign Workflow", + "target": "resource-assignment", + "activities": [ + { + "call_operation": "ResourceResolutionComponent.process" + } + ], + "on_success": [ + "profile-upload" + ] + }, + "profile-upload": { + "description": "Upload K8s Profile", + "target": "profile-upload", + "activities": [ + { + "call_operation": "ComponentScriptExecutor.process" + } + ] + } + }, + "inputs": { + "template-prefix": { + "required": true, + "type": "list", + "entry_schema": { + "type": "string" + } + }, + "resolution-key": { + "required": false, + "type": "string", + "entry_schema": { + "type": "" + } + }, + "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" + }, + "store-result": { + "required": true, + "type": "boolean" + }, + "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-assign-day-2": { + "steps": { + "config-assign": { + "description": "Config Assign Workflow", + "target": "config-assign-day-2", + "activities": [ + { + "call_operation": "" + } + ] + } + }, + "inputs": { + "resolution-key": { + "required": true, + "type": "string" + }, + "store-result": { + "required": true, + "type": "boolean" + }, + "config-assign-day-2-properties": { + "description": "Dynamic PropertyDefinition for workflow(config-assign).", + "required": true, + "type": "dt-config-assign-day-2-properties" + } + }, + "outputs": { + "dry-run": { + "type": "json", + "value": { + "get_attribute": [ + "config-assign-day-2", + "assignment-params" + ] + } + } + } + }, + "config-deploy": { + "steps": { + "imperative-workflow-step-1": { + "description": "Config Deploy workflow", + "target": "execute-post", + "activities": [ + { + "call_operation": "ComponentScriptExecutor.process" + } + ] + } + }, + "inputs": { + "resolution-key": { + "required": false, + "type": "string" + }, + "service-instance-id": { + "required": false, + "type": "string" + }, + "config-deploy-properties": { + "description": "Dynamic PropertyDefinition for workflow(config-deploy).", + "required": true, + "type": "dt-config-deploy-properties" + } + } + }, + "config-deploy-day-2": { + "steps": { + "imperative-workflow-step-1": { + "description": "Config Deploy workflow", + "target": "execute-put", + "activities": [ + { + "call_operation": "ComponentScriptExecutor.process" + } + ] + } + }, + "inputs": { + "resolution-key": { + "required": false, + "type": "string" + }, + "service-instance-id": { + "required": false, + "type": "string" + }, + "config-deploy-day-2-properties": { + "description": "Dynamic PropertyDefinition for workflow(config-deploy).", + "required": true, + "type": "dt-config-deploy-day-2-properties" + } + } + } + }, + "node_templates": { + "resource-assignment": { + "type": "component-resource-resolution", + "interfaces": { + "ResourceResolutionComponent": { + "operations": { + "process": { + "inputs": { + "artifact-prefix-names": { + "get_input": "template-prefix" + } + } + } + } + } + }, + "artifacts": { + "base_template-template": { + "type": "artifact-template-velocity", + "file": "Templates/base_template-template.vtl" + }, + "base_template-mapping": { + "type": "artifact-mapping-resource", + "file": "Templates/base_template-mapping.json" + }, + "amf-template": { + "type": "artifact-template-velocity", + "file": "Templates/amf-template.vtl" + }, + "amf-mapping": { + "type": "artifact-mapping-resource", + "file": "Templates/amf-mapping.json" + }, + "smf-template": { + "type": "artifact-template-velocity", + "file": "Templates/smf-template.vtl" + }, + "smf-mapping": { + "type": "artifact-mapping-resource", + "file": "Templates/smf-mapping.json" + }, + "upf-template": { + "type": "artifact-template-velocity", + "file": "Templates/upf-template.vtl" + }, + "upf-mapping": { + "type": "artifact-mapping-resource", + "file": "Templates/upf-mapping.json" + }, + "vnf-template": { + "type": "artifact-template-velocity", + "file": "Templates/vnf-template.vtl" + }, + "vnf-mapping": { + "type": "artifact-mapping-resource", + "file": "Templates/vnf-mapping.json" + } + } + }, + "profile-upload": { + "type": "component-script-executor", + "interfaces": { + "ComponentScriptExecutor": { + "operations": { + "process": { + "inputs": { + "script-type": "kotlin", + "script-class-reference": "org.onap.ccsdk.cds.blueprintsprocessor.services.execution.scripts.K8sProfileUpload", + "dynamic-properties": "*profile-upload-properties" + } + } + } + } + } + }, + "config-assign": { + "type": "component-resource-resolution", + "interfaces": { + "ResourceResolutionComponent": { + "operations": { + "process": { + "inputs": { + "resolution-key": { + "get_input": "resolution-key" + }, + "store-result": true, + "artifact-prefix-names": [ + "baseconfig" + ] + } + } + } + } + }, + "artifacts": { + "baseconfig-template": { + "type": "artifact-template-velocity", + "file": "Templates/baseconfig-template.vtl" + }, + "baseconfig-mapping": { + "type": "artifact-mapping-resource", + "file": "Templates/baseconfig-mapping.json" + } + } + }, + "config-assign-day-2": { + "type": "component-resource-resolution", + "interfaces": { + "ResourceResolutionComponent": { + "operations": { + "process": { + "inputs": { + "resolution-key": { + "get_input": "resolution-key" + }, + "store-result": true, + "artifact-prefix-names": [ + "baseconfigput" + ] + } + } + } + } + }, + "artifacts": { + "baseconfigput-template": { + "type": "artifact-template-velocity", + "file": "Templates/baseconfigput-template.vtl" + }, + "baseconfigput-mapping": { + "type": "artifact-mapping-resource", + "file": "Templates/baseconfigput-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" + } + } + } + } + } + }, + "execute-put": { + "type": "component-script-executor", + "interfaces": { + "ComponentScriptExecutor": { + "operations": { + "process": { + "inputs": { + "script-type": "kotlin", + "script-class-reference": "org.onap.ccsdk.cds.blueprintsprocessor.services.execution.scripts.KotlinK8sUpdateConfig", + "dynamic-properties": "*config-deploy-day-2-properties" + } + } + } + } + } + } + } + } +} |