Adding 'name' to yamls and json in model
[policy/models.git] / models-examples / src / main / resources / policies / vCPE.policy.operational.input.tosca.json
index 793334e..d5bae5f 100644 (file)
@@ -1,5 +1,5 @@
 {
-  "tosca_definitions_version": "tosca_simple_yaml_1_0_0",
+  "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
   "topology_template": {
     "policies": [
       {
@@ -7,8 +7,10 @@
           "type": "onap.policies.controlloop.operational.common.Drools",
           "type_version": "1.0.0",
           "version": "1.0.0",
+          "name": "operational.restart",
           "metadata": {
-            "policy-id": "operational.restart"
+            "policy-id": "operational.restart",
+            "policy-version": 1
           },
           "properties": {
             "id": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
@@ -21,9 +23,9 @@
                 "description": "Restart the VM",
                 "operation": {
                   "actor": "APPC",
-                  "recipe": "Restart",
+                  "operation": "Restart",
                   "target": {
-                    "type": "VNF"
+                    "targetType": "VNF"
                   }
                 },
                 "timeout": 1200,
                 "failure_guard": "final_failure_guard"
               }
             ],
-            "controllerName": "usecases"
+            "controllerName": "frankfurt"
           }
         }
       }
     ]
   }
-}
\ No newline at end of file
+}