sebdet | dfa86ca | 2019-04-05 15:15:31 +0200 | [diff] [blame] | 1 | { |
| 2 | "guard_policies": { |
| 3 | "guard1":{ |
| 4 | "recipe": "Rebuild", |
| 5 | "actor": "SO", |
| 6 | "clname": "testloop", |
sebdet | b9a405e | 2019-05-06 13:51:45 +0200 | [diff] [blame] | 7 | "targets": ".*", |
| 8 | "min": "3", |
| 9 | "max": "7", |
| 10 | "limit": "", |
| 11 | "timeUnits": "", |
| 12 | "timeWindow": "", |
sebdet | dfa86ca | 2019-04-05 15:15:31 +0200 | [diff] [blame] | 13 | "guardActiveStart": "00:00:01-05:00", |
| 14 | "guardActiveEnd": "23:59:01-05:00" |
| 15 | }, |
| 16 | "guard2":{ |
| 17 | "recipe": "Migrate", |
| 18 | "actor": "SO", |
| 19 | "clname": "testloop", |
sebdet | b9a405e | 2019-05-06 13:51:45 +0200 | [diff] [blame] | 20 | "targets": ".*", |
| 21 | "min": "1", |
| 22 | "max": "2", |
| 23 | "limit": "", |
| 24 | "timeUnits": "", |
| 25 | "timeWindow": "", |
sebdet | dfa86ca | 2019-04-05 15:15:31 +0200 | [diff] [blame] | 26 | "guardActiveStart": "00:00:01-05:00", |
| 27 | "guardActiveEnd": "23:59:01-05:00" |
| 28 | } |
| 29 | }, |
| 30 | "operational_policy": { |
| 31 | "controlLoop": { |
| 32 | "controlLoopName": "control loop", |
| 33 | "version": "2.0.0", |
| 34 | "trigger_policy": "new1", |
| 35 | "timeout": "30", |
| 36 | "abatement": "true" |
| 37 | }, |
| 38 | "policies": [ |
| 39 | { |
| 40 | "id": "new1", |
| 41 | "recipe": "Rebuild", |
| 42 | "retry": "10", |
| 43 | "timeout": "20", |
| 44 | "actor": "SO", |
Determe, Sebastien (sd378r) | 785b177 | 2019-05-28 11:54:27 +0200 | [diff] [blame] | 45 | "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\"}]'", |
sebdet | dfa86ca | 2019-04-05 15:15:31 +0200 | [diff] [blame] | 46 | "success": "new2", |
| 47 | "failure": "new2", |
| 48 | "failure_timeout": "new2", |
| 49 | "failure_retries": "new2", |
| 50 | "failure_exception": "new2", |
| 51 | "failure_guard": "new2", |
| 52 | "target": { |
| 53 | "type": "VFC", |
| 54 | "resourceTargetId": "test" |
| 55 | } |
| 56 | }, |
| 57 | { |
| 58 | "id": "new2", |
| 59 | "recipe": "Migrate", |
| 60 | "retry": "30", |
| 61 | "timeout": "40", |
| 62 | "actor": "SDNC", |
Determe, Sebastien (sd378r) | 785b177 | 2019-05-28 11:54:27 +0200 | [diff] [blame] | 63 | "payload": "", |
sebdet | dfa86ca | 2019-04-05 15:15:31 +0200 | [diff] [blame] | 64 | "target": { |
| 65 | "type": "VFC", |
| 66 | "resourceTargetId": "test" |
| 67 | } |
| 68 | } |
| 69 | ] |
| 70 | } |
| 71 | } |