add view feature and decompress zip file
[ccsdk/cds.git] / components / model-catalog / blueprint-model / uat-blueprints / pnf_config_aai / Definitions / pnf_config_aai.json
1 {
2   "tosca_definitions_version" : "controller_blueprint_1_0_0",
3   "metadata" : {
4     "template_author" : "Rahul Tyagi",
5     "author-email" : "rahul.tyagi@est.tech",
6     "user-groups" : "ADMIN, OPERATION",
7     "template_name" : "pnf_config_aai",
8     "template_version" : "1.0.0",
9     "template_tags" : "pnf, restconf, config, configuration"
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   "dsl_definitions" : {
23     "config-deploy-properties" : {
24       "resolution-key" : {
25         "get_input" : "resolution-key"
26       }
27     }
28   },
29   "topology_template" : {
30     "workflows" : {
31       "config-assign" : {
32         "steps" : {
33           "activate-process" : {
34             "description" : "Create a configlet",
35             "target" : "config-assign",
36             "activities" : [ {
37               "call_operation" : ""
38             } ]
39           }
40         },
41         "inputs" : {
42           "resolution-key" : {
43             "required" : true,
44             "type" : "string"
45           },
46           "store-result" : {
47             "required" : true,
48             "type" : "boolean"
49           },
50           "config-assign-properties" : {
51             "description" : "Dynamic PropertyDefinition for workflow(config-assign).",
52             "required" : true,
53             "type" : "dt-config-assign-properties"
54           }
55         }
56       },
57       "config-deploy" : {
58         "steps" : {
59           "activate-process" : {
60             "description" : "Send a configlet to the pnf",
61             "target" : "config-deploy",
62             "activities" : [ {
63               "call_operation" : ""
64             } ]
65           }
66         },
67         "inputs" : {
68           "resolution-key" : {
69             "required" : true,
70             "type" : "string"
71           },
72           "config-deploy-properties" : {
73             "description" : "Dynamic PropertyDefinition for workflow(config-deploy).",
74             "required" : true,
75             "type" : "dt-config-deploy-properties"
76           }
77         }
78       }
79     },
80     "node_templates" : {
81       "config-assign" : {
82         "type" : "component-resource-resolution",
83         "interfaces" : {
84           "ResourceResolutionComponent" : {
85             "operations" : {
86               "process" : {
87                 "inputs" : {
88                   "resolution-key" : {
89                     "get_input" : "resolution-key"
90                   },
91                   "store-result" : true,
92                   "artifact-prefix-names" : [ "config-assign" ]
93                 },
94                 "outputs" : {
95                   "resource-assignment-params" : {
96                     "get_attribute" : [ "SELF", "assignment-params" ]
97                   },
98                   "status" : "success"
99                 }
100               }
101             }
102           }
103         },
104         "artifacts" : {
105           "config-assign-template" : {
106             "type" : "artifact-template-velocity",
107             "file" : "Templates/config-assign-restconf-configlet-template.vtl"
108           },
109           "config-assign-mapping" : {
110             "type" : "artifact-mapping-resource",
111             "file" : "Definitions/config-assign-pnf-mapping.json"
112           }
113         }
114       },
115       "config-deploy" : {
116         "type" : "component-script-executor",
117         "interfaces" : {
118           "ComponentScriptExecutor" : {
119             "operations" : {
120               "process" : {
121                 "implementation" : {
122                   "primary" : "component-script",
123                   "timeout" : 180,
124                   "operation_host" : "SELF"
125                 },
126                 "inputs" : {
127                   "script-type" : "kotlin",
128                   "script-class-reference" : "cba.pnf.config.aai.RestconfConfigDeploy",
129                   "dynamic-properties" : "*config-deploy-properties"
130                 },
131                 "outputs" : {
132                   "response-data" : "",
133                   "status" : "success"
134                 }
135               }
136             }
137           }
138         },
139         "artifacts" : {
140           "config-deploy-template" : {
141             "type" : "artifact-template-velocity",
142             "file" : "Templates/config-deploy-restconf-mount-template.vtl"
143           },
144           "config-deploy-mapping" : {
145             "type" : "artifact-mapping-resource",
146             "file" : "Definitions/config-deploy-pnf-mapping.json"
147           }
148         }
149       }
150     }
151   }
152 }