Wrap sample SON policies with topology template
[policy/models.git] / models-examples / src / main / resources / policies / v5gSonA1.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.a1": {
7           "type": "onap.policies.controlloop.operational.common.Drools",
8           "type_version": "1.0.0",
9           "name": "op.5g.son.a1",
10           "version": "1.0.0",
11           "metadata": {
12             "policy-id": "op.5g.son.a1"
13           },
14           "properties": {
15             "id": "ControlLoop-SONA1-7d4baf04-8875-4d1f-946d-06b874048b61",
16             "timeout": 1200,
17             "abatement": false,
18             "trigger": "modify-a1-policy",
19             "operations": [
20               {
21                 "id": "modify-a1-policy",
22                 "description": "Control Loop Modify A1 Policy",
23                 "operation": {
24                   "actor": "SDNR",
25                   "operation": "ModifyA1Policy",
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 }