168732c1db70f4219bfd74a0e74cc8c2bdd8257f
[ccsdk/cds.git] /
1 {
2   "tosca_definitions_version" : "controller_blueprint_1_0_0",
3   "metadata" : {
4     "template_author" : "Alexis de TalhouĆ«t",
5     "author-email" : "adetalhouet89@gmail.com",
6     "user-groups" : "ADMIN, OPERATION",
7     "template_name" : "capability_python",
8     "template_version" : "1.0.0",
9     "template_tags" : "test"
10   },
11   "imports" : [ {
12     "file" : "Definitions/data_types.json"
13   }, {
14     "file" : "Definitions/relationship_types.json"
15   }, {
16     "file" : "Definitions/artifact_types.json"
17   }, {
18     "file" : "Definitions/node_types.json"
19   }, {
20     "file" : "Definitions/policy_types.json"
21   } ],
22   "topology_template" : {
23     "inputs" : {
24       "request-id" : {
25         "required" : true,
26         "type" : "string"
27       },
28       "action-name" : {
29         "required" : true,
30         "type" : "string"
31       }
32     },
33     "workflows" : {
34       "assign-activate" : {
35         "steps" : {
36           "activate-process" : {
37             "description" : "Resource Assign and Netconf Activation Workflow",
38             "target" : "assign-activate-process",
39             "activities" : [ {
40               "call_operation" : ""
41             } ]
42           }
43         },
44         "inputs" : {
45           "assign-activate-properties" : {
46             "description" : "Dynamic PropertyDefinition for workflow(assign-activate).",
47             "required" : true,
48             "type" : "dt-assign-activate-properties"
49           }
50         }
51       }
52     },
53     "node_templates" : {
54       "assign-activate-process" : {
55         "type" : "dg-generic",
56         "properties" : {
57           "content" : {
58             "get_artifact" : [ "SELF", "dg-assign-activate-process" ]
59           },
60           "dependency-node-templates" : [ "resource-assignment", "activate-jython" ]
61         },
62         "artifacts" : {
63           "dg-assign-activate-process" : {
64             "type" : "artifact-directed-graph",
65             "file" : "Plans/CONFIG_AssignActivateNetconf_1.0.0.xml"
66           }
67         }
68       },
69       "resource-assignment" : {
70         "type" : "component-resource-resolution",
71         "interfaces" : {
72           "ResourceResolutionComponent" : {
73             "operations" : {
74               "process" : {
75                 "inputs" : {
76                   "artifact-prefix-names" : [ "baseconfig" ]
77                 },
78                 "outputs" : {
79                   "resource-assignment-params" : {
80                     "get_attribute" : [ "SELF", "assignment-params" ]
81                   },
82                   "status" : "success"
83                 }
84               }
85             }
86           }
87         },
88         "artifacts" : {
89           "baseconfig-template" : {
90             "type" : "artifact-template-velocity",
91             "file" : "Templates/baseconfig-template.vtl"
92           },
93           "baseconfig-mapping" : {
94             "type" : "artifact-mapping-resource",
95             "file" : "Definitions/baseconfig-mapping.json"
96           }
97         }
98       },
99       "activate-jython" : {
100         "type" : "component-jython-executor",
101         "interfaces" : {
102           "ComponentJythonExecutor" : {
103             "operations" : {
104               "process" : {
105                 "implementation" : {
106                   "primary" : "component-script"
107                 },
108                 "inputs" : {
109                   "instance-dependencies" : [ ]
110                 },
111                 "outputs" : {
112                   "response-data" : "",
113                   "status" : ""
114                 }
115               }
116             }
117           }
118         },
119         "artifacts" : {
120           "component-script" : {
121             "type" : "artifact-script-jython",
122             "file" : "Scripts/SamplePythonComponentNode.py"
123           }
124         }
125       }
126     }
127   }
128 }