X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=models-examples%2Fsrc%2Fmain%2Fresources%2Fpolicies%2Fv5gSonA1.policy.operational.input.tosca.json;h=c2790188efa16300dc2277a2289c41606a9a2531;hb=af8eea569e5e91f09c454746c177885597ea2c32;hp=2a53db2a353b2e6a51d577d50fe875f009c648df;hpb=84f728930527d34821a827ec6681ce9313989cab;p=policy%2Fmodels.git diff --git a/models-examples/src/main/resources/policies/v5gSonA1.policy.operational.input.tosca.json b/models-examples/src/main/resources/policies/v5gSonA1.policy.operational.input.tosca.json index 2a53db2a3..c2790188e 100644 --- a/models-examples/src/main/resources/policies/v5gSonA1.policy.operational.input.tosca.json +++ b/models-examples/src/main/resources/policies/v5gSonA1.policy.operational.input.tosca.json @@ -1,35 +1,44 @@ { - "type": "onap.policies.controlloop.operational.common.Drools", - "type_version": "1.0.0", - "name": "op.5g.son.a1", - "version": "1.0.0", - "metadata": { - "policy-id": "op.5g.son.a1" - }, - "properties": { - "id": "ControlLoop-SONA1-7d4baf04-8875-4d1f-946d-06b874048b61", - "timeout": 1200, - "abatement": false, - "trigger": "modify-a1-policy", - "operations": [ + "tosca_definitions_version": "tosca_simple_yaml_1_1_0", + "topology_template": { + "policies": [ { - "id": "modify-a1-policy", - "description": "Control Loop Modify A1 Policy", - "operation": { - "actor": "SDNR", - "operation": "ModifyA1Policy", - "target": { - "targetType": "PNF" + "op.5g.son.a1": { + "type": "onap.policies.controlloop.operational.common.Drools", + "type_version": "1.0.0", + "name": "op.5g.son.a1", + "version": "1.0.0", + "metadata": { + "policy-id": "op.5g.son.a1" + }, + "properties": { + "id": "ControlLoop-SONA1-7d4baf04-8875-4d1f-946d-06b874048b61", + "timeout": 1200, + "abatement": false, + "trigger": "modify-a1-policy", + "operations": [ + { + "id": "modify-a1-policy", + "description": "Control Loop Modify A1 Policy", + "operation": { + "actor": "SDNR", + "operation": "ModifyA1Policy", + "target": { + "targetType": "PNF" + } + }, + "timeout": 60, + "retries": 0, + "success": "final_success", + "failure": "final_failure", + "failure_timeout": "final_failure_timeout", + "failure_retries": "final_failure_retries", + "failure_exception": "final_failure_exception", + "failure_guard": "final_failure_guard" + } + ] } - }, - "timeout": 60, - "retries": 0, - "success": "final_success", - "failure": "final_failure", - "failure_timeout": "final_failure_timeout", - "failure_retries": "final_failure_retries", - "failure_exception": "final_failure_exception", - "failure_guard": "final_failure_guard" + } } ] }