Wrap sample SON policies with topology template
[policy/models.git] / models-examples / src / main / resources / policies / v5gSonO1.policy.operational.input.tosca.json
1 {
2   "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
3   "topology_template": {
4     "policies": [
5       {
6         "op.5g.son.o1": {
7           "type": "onap.policies.controlloop.operational.common.Drools",
8           "type_version": "1.0.0",
9           "name": "op.5g.son.o1",
10           "version": "1.0.0",
11           "metadata": {
12             "policy-id": "op.5g.son.o1"
13           },
14           "properties": {
15             "id": "ControlLoop-SONO1-fb41f388-a5f2-11e8-98d0-529269fb1459",
16             "timeout": 1200,
17             "abatement": false,
18             "trigger": "modify-o1-config",
19             "operations": [
20               {
21                 "id": "modify-o1-config",
22                 "description": "Control Loop Modify O1 Configuration",
23                 "operation": {
24                   "actor": "SDNR",
25                   "operation": "ModifyO1Config",
26                   "target": {
27                     "targetType": "PNF"
28                   }
29                 },
30                 "timeout": 60,
31                 "retries": 0,
32                 "success": "final_success",
33                 "failure": "final_failure",
34                 "failure_timeout": "final_failure_timeout",
35                 "failure_retries": "final_failure_retries",
36                 "failure_exception": "final_failure_exception",
37                 "failure_guard": "final_failure_guard"
38               }
39             ]
40           }
41         }
42       }
43     ]
44   }
45 }