--- /dev/null
+{\r
+ "tosca_definitions_version" : "controller_blueprint_1_0_0",\r
+ "metadata" : {\r
+ "template_author" : "Abdelmuhaimen Seaudi",\r
+ "author-email" : "abdelmuhaimen.seaudi@orange.com",\r
+ "user-groups" : "ADMIN, OPERATION",\r
+ "template_name" : "vLB_CDS_KOTLIN",\r
+ "template_version" : "1.0.0",\r
+ "template_tags" : "test, vDNS-CDS, SCALE-OUT, MARCO"\r
+ },\r
+ "imports" : [ {\r
+ "file" : "Definitions/data_types.json"\r
+ }, {\r
+ "file" : "Definitions/relationship_types.json"\r
+ }, {\r
+ "file" : "Definitions/artifact_types.json"\r
+ }, {\r
+ "file" : "Definitions/node_types.json"\r
+ }, {\r
+ "file" : "Definitions/policy_types.json"\r
+ } ],\r
+ "dsl_definitions" : {\r
+ "ipam-1" : {\r
+ "type" : "token-auth",\r
+ "url" : "http://netbox-nginx:8080",\r
+ "token" : "Token 0123456789abcdef0123456789abcdef01234567"\r
+ },\r
+ "config-deploy-properties" : {\r
+ "resolution-key" : {\r
+ "get_input" : "resolution-key"\r
+ }\r
+ },\r
+ "dynamic-db-source" : {\r
+ "type" : "maria-db",\r
+ "url" : "jdbc:mysql://mariadb-galera:3306/sdnctl",\r
+ "username" : "root",\r
+ "password" : "secretpassword"\r
+ }\r
+ },\r
+ "topology_template" : {\r
+ "workflows" : {\r
+ "resource-assignment" : {\r
+ "steps" : {\r
+ "resource-assignment" : {\r
+ "description" : "Resource Assign Workflow",\r
+ "target" : "resource-assignment"\r
+ }\r
+ },\r
+ "inputs" : {\r
+ "template-prefix" : {\r
+ "required" : true,\r
+ "type" : "list",\r
+ "entry_schema" : {\r
+ "type" : "string"\r
+ }\r
+ },\r
+ "resource-assignment-properties" : {\r
+ "description" : "Dynamic PropertyDefinition for workflow(resource-assignment).",\r
+ "required" : true,\r
+ "type" : "dt-resource-assignment-properties"\r
+ }\r
+ },\r
+ "outputs" : {\r
+ "meshed-template" : {\r
+ "type" : "json",\r
+ "value" : {\r
+ "get_attribute" : [ "resource-assignment", "assignment-params" ]\r
+ }\r
+ }\r
+ }\r
+ },\r
+ "config-assign" : {\r
+ "steps" : {\r
+ "config-assign" : {\r
+ "description" : "Config Assign Workflow",\r
+ "target" : "config-assign",\r
+ "activities" : [ {\r
+ "call_operation" : ""\r
+ } ]\r
+ }\r
+ },\r
+ "inputs" : {\r
+ "resolution-key" : {\r
+ "required" : true,\r
+ "type" : "string"\r
+ },\r
+ "config-assign-properties" : {\r
+ "description" : "Dynamic PropertyDefinition for workflow(config-assign).",\r
+ "required" : true,\r
+ "type" : "dt-config-assign-properties"\r
+ }\r
+ },\r
+ "outputs" : {\r
+ "dry-run" : {\r
+ "type" : "json",\r
+ "value" : {\r
+ "get_attribuxte" : [ "config-assign", "assignment-params" ]\r
+ }\r
+ }\r
+ }\r
+ },\r
+ "config-deploy" : {\r
+ "steps" : {\r
+ "config-deploy" : {\r
+ "description" : "Resource Assign and Kotlin Netconf Activation Workflow",\r
+ "target" : "config-deploy-process",\r
+ "activities" : [ {\r
+ "call_operation" : ""\r
+ } ]\r
+ }\r
+ },\r
+ "inputs" : {\r
+ "resolution-key" : {\r
+ "required" : false,\r
+ "type" : "string"\r
+ },\r
+ "service-instance-id" : {\r
+ "required" : false,\r
+ "type" : "string"\r
+ },\r
+ "config-deploy-properties" : {\r
+ "description" : "Dynamic PropertyDefinition for workflow(config-deploy).",\r
+ "required" : true,\r
+ "type" : "dt-config-deploy-properties"\r
+ }\r
+ }\r
+ }\r
+ },\r
+ "node_templates" : {\r
+ "resource-assignment" : {\r
+ "type" : "component-resource-resolution",\r
+ "interfaces" : {\r
+ "ResourceResolutionComponent" : {\r
+ "operations" : {\r
+ "process" : {\r
+ "inputs" : {\r
+ "artifact-prefix-names" : {\r
+ "get_input" : "template-prefix"\r
+ }\r
+ }\r
+ }\r
+ }\r
+ }\r
+ },\r
+ "artifacts" : {\r
+ "base_template-template" : {\r
+ "type" : "artifact-template-velocity",\r
+ "file" : "Templates/base_template-template.vtl"\r
+ },\r
+ "base_template-mapping" : {\r
+ "type" : "artifact-mapping-resource",\r
+ "file" : "Templates/base_template-mapping.json"\r
+ },\r
+ "vpkg-template" : {\r
+ "type" : "artifact-template-velocity",\r
+ "file" : "Templates/vpkg-template.vtl"\r
+ },\r
+ "vpkg-mapping" : {\r
+ "type" : "artifact-mapping-resource",\r
+ "file" : "Templates/vpkg-mapping.json"\r
+ },\r
+ "vdns-template" : {\r
+ "type" : "artifact-template-velocity",\r
+ "file" : "Templates/vdns-template.vtl"\r
+ },\r
+ "vdns-mapping" : {\r
+ "type" : "artifact-mapping-resource",\r
+ "file" : "Templates/vdns-mapping.json"\r
+ },\r
+ "vnf-template" : {\r
+ "type" : "artifact-template-velocity",\r
+ "file" : "Templates/vnf-template.vtl"\r
+ },\r
+ "vnf-mapping" : {\r
+ "type" : "artifact-mapping-resource",\r
+ "file" : "Templates/vnf-mapping.json"\r
+ },\r
+ "vlb-template" : {\r
+ "type" : "artifact-template-velocity",\r
+ "file" : "Templates/vlb-template.vtl"\r
+ },\r
+ "vlb-mapping" : {\r
+ "type" : "artifact-mapping-resource",\r
+ "file" : "Templates/vlb-mapping.json"\r
+ }\r
+ }\r
+ },\r
+ "config-assign" : {\r
+ "type" : "component-resource-resolution",\r
+ "interfaces" : {\r
+ "ResourceResolutionComponent" : {\r
+ "operations" : {\r
+ "process" : {\r
+ "inputs" : {\r
+ "resolution-key" : {\r
+ "get_input" : "resolution-key"\r
+ },\r
+ "store-result" : true,\r
+ "artifact-prefix-names" : [ "baseconfig", "incremental-config" ]\r
+ }\r
+ }\r
+ }\r
+ }\r
+ },\r
+ "artifacts" : {\r
+ "baseconfig-template" : {\r
+ "type" : "artifact-template-velocity",\r
+ "file" : "Templates/baseconfig-template.vtl"\r
+ },\r
+ "baseconfig-mapping" : {\r
+ "type" : "artifact-mapping-resource",\r
+ "file" : "Templates/baseconfig-mapping.json"\r
+ },\r
+ "incremental-config-template" : {\r
+ "type" : "artifact-template-velocity",\r
+ "file" : "Templates/incremental-config-template.vtl"\r
+ },\r
+ "incremental-config-mapping" : {\r
+ "type" : "artifact-mapping-resource",\r
+ "file" : "Templates/incremental-config-mapping.json"\r
+ }\r
+ }\r
+ },\r
+ "netconf-device" : {\r
+ "type" : "vnf-netconf-device",\r
+ "capabilities" : {\r
+ "netconf" : {\r
+ "properties" : {\r
+ "login-key" : "admin",\r
+ "login-account" : "admin",\r
+ "target-ip-address" : {\r
+ "get_attribute" : [ "nf-account-collection", "", "assignment-params", "nf-params" ]\r
+ },\r
+ "port-number" : 2831,\r
+ "connection-time-out" : 5\r
+ }\r
+ }\r
+ }\r
+ },\r
+ "config-deploy-process" : {\r
+ "type" : "dg-generic",\r
+ "properties" : {\r
+ "content" : {\r
+ "get_artifact" : [ "SELF", "dg-config-deploy-process" ]\r
+ },\r
+ "dependency-node-templates" : [ "nf-account-collection", "execute" ]\r
+ },\r
+ "artifacts" : {\r
+ "dg-config-deploy-process" : {\r
+ "type" : "artifact-directed-graph",\r
+ "file" : "Plans/CONFIG_ConfigDeploy.xml"\r
+ }\r
+ }\r
+ },\r
+ "nf-account-collection" : {\r
+ "type" : "component-resource-resolution",\r
+ "interfaces" : {\r
+ "ResourceResolutionComponent" : {\r
+ "operations" : {\r
+ "process" : {\r
+ "inputs" : {\r
+ "artifact-prefix-names" : [ "nf-params" ]\r
+ }\r
+ }\r
+ }\r
+ }\r
+ },\r
+ "artifacts" : {\r
+ "nf-params-template" : {\r
+ "type" : "artifact-template-velocity",\r
+ "file" : "Templates/nf-params-template.vtl"\r
+ },\r
+ "nf-params-mapping" : {\r
+ "type" : "artifact-mapping-resource",\r
+ "file" : "Templates/nf-params-mapping.json"\r
+ }\r
+ }\r
+ },\r
+ "execute" : {\r
+ "type" : "component-script-executor",\r
+ "requirements" : {\r
+ "netconf-connection" : {\r
+ "capability" : "netconf",\r
+ "node" : "netconf-device",\r
+ "relationship" : "tosca.relationships.ConnectsTo"\r
+ }\r
+ },\r
+ "interfaces" : {\r
+ "ComponentScriptExecutor" : {\r
+ "operations" : {\r
+ "process" : {\r
+ "inputs" : {\r
+ "script-type" : "kotlin",\r
+ "script-class-reference" : "org.onap.ccsdk.cds.blueprintsprocessor.services.execution.scripts.ConfigDeploy",\r
+ "instance-dependencies" : [ ],\r
+ "dynamic-properties" : "*config-deploy-properties"\r
+ }\r
+ }\r
+ }\r
+ }\r
+ }\r
+ }\r
+ }\r
+ }\r
+}
\ No newline at end of file