Adding 'name' to yamls and json in model
[policy/models.git] / models-examples / src / main / resources / policies / vCPE.policy.operational.input.tosca.json
1 {
2   "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
3   "topology_template": {
4     "policies": [
5       {
6         "operational.restart": {
7           "type": "onap.policies.controlloop.operational.common.Drools",
8           "type_version": "1.0.0",
9           "version": "1.0.0",
10           "name": "operational.restart",
11           "metadata": {
12             "policy-id": "operational.restart",
13             "policy-version": 1
14           },
15           "properties": {
16             "id": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
17             "timeout": 3600,
18             "abatement": true,
19             "trigger": "unique-policy-id-1-restart",
20             "operations": [
21               {
22                 "id": "unique-policy-id-1-restart",
23                 "description": "Restart the VM",
24                 "operation": {
25                   "actor": "APPC",
26                   "operation": "Restart",
27                   "target": {
28                     "targetType": "VNF"
29                   }
30                 },
31                 "timeout": 1200,
32                 "retries": 3,
33                 "success": "final_success",
34                 "failure": "final_failure",
35                 "failure_timeout": "final_failure_timeout",
36                 "failure_retries": "final_failure_retries",
37                 "failure_exception": "final_failure_exception",
38                 "failure_guard": "final_failure_guard"
39               }
40             ],
41             "controllerName": "frankfurt"
42           }
43         }
44       }
45     ]
46   }
47 }