sebdet | dfa86ca | 2019-04-05 15:15:31 +0200 | [diff] [blame] | 1 | { |
sebdet | f9e2cee | 2019-08-09 18:36:09 +0200 | [diff] [blame] | 2 | "operational_policy": { |
| 3 | "controlLoop": { |
| 4 | "timeout": "0", |
| 5 | "abatement": "True", |
| 6 | "trigger_policy": "policy1", |
| 7 | "controlLoopName": "LOOP_ASJOy_v1_0_ResourceInstanceName1_tca" |
| 8 | }, |
| 9 | "policies": [ |
| 10 | { |
Vidyashree-Huawei | 3121b5b | 2020-03-04 19:22:08 +0530 | [diff] [blame^] | 11 | "actor": { |
| 12 | "actor": "APPC", |
| 13 | "type": "Restart", |
| 14 | "payload": "requestParameters: '{\"usePreload\":true,\"userParams\":[]}'\r\nconfigurationParameters: '[{\"ip-addr\":\"$.vf-module-topology.vf-module-parameters.param[10].value\",\"oam-ip-addr\":\"$.vf-module-topology.vf-module-parameters.param[15].value\",\"enabled\":\"$.vf-module-topology.vf-module-parameters.param[22].value\"}]'" |
| 15 | }, |
sebdet | f9e2cee | 2019-08-09 18:36:09 +0200 | [diff] [blame] | 16 | "id": "policy1", |
sebdet | f9e2cee | 2019-08-09 18:36:09 +0200 | [diff] [blame] | 17 | "retry": "0", |
| 18 | "timeout": "0", |
sebdet | f9e2cee | 2019-08-09 18:36:09 +0200 | [diff] [blame] | 19 | "success": "final_success", |
| 20 | "failure": "policy2", |
| 21 | "failure_timeout": "final_failure_timeout", |
| 22 | "failure_retries": "final_failure_retries", |
| 23 | "failure_exception": "final_failure_exception", |
| 24 | "failure_guard": "final_failure_guard", |
| 25 | "target": { |
| 26 | "type": "VNF", |
| 27 | "resourceID": "vLoadBalancerMS" |
| 28 | } |
| 29 | }, |
| 30 | { |
Vidyashree-Huawei | 3121b5b | 2020-03-04 19:22:08 +0530 | [diff] [blame^] | 31 | "actor": { |
| 32 | "actor": "SO", |
| 33 | "type": "VF Module Create", |
| 34 | "payload": "" |
| 35 | }, |
sebdet | f9e2cee | 2019-08-09 18:36:09 +0200 | [diff] [blame] | 36 | "id": "policy2", |
sebdet | f9e2cee | 2019-08-09 18:36:09 +0200 | [diff] [blame] | 37 | "retry": "0", |
| 38 | "timeout": "0", |
sebdet | f9e2cee | 2019-08-09 18:36:09 +0200 | [diff] [blame] | 39 | "success": "final_success", |
| 40 | "failure": "final_failure", |
| 41 | "failure_timeout": "final_failure_timeout", |
| 42 | "failure_retries": "final_failure_retries", |
| 43 | "failure_exception": "final_failure_exception", |
| 44 | "failure_guard": "final_failure_guard", |
| 45 | "target": { |
| 46 | "type": "VFMODULE", |
| 47 | "resourceID": "Vloadbalancerms..vpkg..module-1", |
| 48 | "modelInvariantId": "ca052563-eb92-4b5b-ad41-9111768ce043", |
| 49 | "modelVersionId": "1e725ccc-b823-4f67-82b9-4f4367070dbc", |
| 50 | "modelName": "Vloadbalancerms..vpkg..module-1", |
| 51 | "modelVersion": "1", |
| 52 | "modelCustomizationId": "1bffdc31-a37d-4dee-b65c-dde623a76e52" |
| 53 | } |
| 54 | } |
| 55 | ] |
| 56 | }, |
| 57 | "guard_policies": [ |
| 58 | { |
| 59 | "policy-id": "guard.minmax.new", |
| 60 | "content": { |
| 61 | "actor": "APPC", |
| 62 | "recipe": "Restart", |
| 63 | "targets": ".*", |
| 64 | "clname": "LOOP_ASJOy_v1_0_ResourceInstanceName1_tca", |
| 65 | "guardActiveStart": "00:00:00Z", |
| 66 | "guardActiveEnd": "10:00:00Z", |
| 67 | "min": "0", |
| 68 | "max": "1" |
| 69 | } |
| 70 | }, |
| 71 | { |
| 72 | "policy-id": "guard.frequency.new", |
| 73 | "content": { |
| 74 | "actor": "APPC", |
| 75 | "recipe": "Rebuild", |
| 76 | "targets": ".*", |
| 77 | "clname": "LOOP_ASJOy_v1_0_ResourceInstanceName1_tca", |
| 78 | "guardActiveStart": "00:00:00Z", |
| 79 | "guardActiveEnd": "10:00:00Z", |
| 80 | "limit": "1", |
| 81 | "timeWindow": "2", |
| 82 | "timeUnits": "minute" |
| 83 | } |
| 84 | } |
| 85 | ] |
sebdet | dfa86ca | 2019-04-05 15:15:31 +0200 | [diff] [blame] | 86 | } |