blob: 2777a158c47ce94f642abca5feb8f85031cc7419 [file] [log] [blame]
sebdetdfa86ca2019-04-05 15:15:31 +02001{
sebdetf9e2cee2019-08-09 18:36:09 +02002 "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-Huawei3121b5b2020-03-04 19:22:08 +053011 "actor": {
12 "actor": "APPC",
Vidyashree-Huawei3ec03cc2020-04-10 17:36:09 +053013 "recipe": "Restart",
Vidyashree-Huawei3121b5b2020-03-04 19:22:08 +053014 "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 },
sebdetf9e2cee2019-08-09 18:36:09 +020016 "id": "policy1",
sebdetf9e2cee2019-08-09 18:36:09 +020017 "retry": "0",
18 "timeout": "0",
sebdetf9e2cee2019-08-09 18:36:09 +020019 "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 },
Vidyashree-Huawei3ec03cc2020-04-10 17:36:09 +053030 {
Vidyashree-Huawei3121b5b2020-03-04 19:22:08 +053031 "actor": {
Vidyashree-Huawei3ec03cc2020-04-10 17:36:09 +053032 "actor": "SO",
33 "recipe": "VF Module Create",
34 "payload": ""
Vidyashree-Huawei3121b5b2020-03-04 19:22:08 +053035 },
sebdetf9e2cee2019-08-09 18:36:09 +020036 "id": "policy2",
sebdetf9e2cee2019-08-09 18:36:09 +020037 "retry": "0",
38 "timeout": "0",
sebdetf9e2cee2019-08-09 18:36:09 +020039 "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 }
Vidyashree-Huawei3ec03cc2020-04-10 17:36:09 +053054 },
55 {
56 "actor": {
57 "actor": "CDS",
58 "recipe": {
59 "recipe": "resource-assignment",
60 "payload": {
61 "artifact_name": "baseconfiguration",
62 "artifact_version": "1.0.0",
63 "mode": "async",
64 "data": {
65 "resource-assignment-properties": {
66 "request-id": "request-id",
67 "service-instance-id": "service-instance-id",
68 "vnf-id": "vnf-id",
69 "action-name": "action-name",
70 "scope-type": "scope-type",
71 "hostname": "hostname",
72 "vnf_name": "vnf_name"
73 }
74 }
75 }
76 }
77 },
78 "id": "policy3",
79 "retry": "0",
80 "timeout": "0",
81 "success": "final_success",
82 "failure": "final_failure",
83 "failure_timeout": "final_failure_timeout",
84 "failure_retries": "final_failure_retries",
85 "failure_exception": "final_failure_exception",
86 "failure_guard": "final_failure_guard",
87 "target": {
88 "type": "VFMODULE",
89 "resourceID": "Vloadbalancerms..vpkg..module-1",
90 "modelInvariantId": "ca052563-eb92-4b5b-ad41-9111768ce043",
91 "modelVersionId": "1e725ccc-b823-4f67-82b9-4f4367070dbc",
92 "modelName": "Vloadbalancerms..vpkg..module-1",
93 "modelVersion": "1",
94 "modelCustomizationId": "1bffdc31-a37d-4dee-b65c-dde623a76e52"
95 }
sebdetf9e2cee2019-08-09 18:36:09 +020096 }
97 ]
98 },
99 "guard_policies": [
100 {
101 "policy-id": "guard.minmax.new",
102 "content": {
103 "actor": "APPC",
104 "recipe": "Restart",
105 "targets": ".*",
106 "clname": "LOOP_ASJOy_v1_0_ResourceInstanceName1_tca",
107 "guardActiveStart": "00:00:00Z",
108 "guardActiveEnd": "10:00:00Z",
109 "min": "0",
110 "max": "1"
111 }
112 },
113 {
114 "policy-id": "guard.frequency.new",
115 "content": {
116 "actor": "APPC",
117 "recipe": "Rebuild",
118 "targets": ".*",
119 "clname": "LOOP_ASJOy_v1_0_ResourceInstanceName1_tca",
120 "guardActiveStart": "00:00:00Z",
121 "guardActiveEnd": "10:00:00Z",
122 "limit": "1",
123 "timeWindow": "2",
124 "timeUnits": "minute"
125 }
126 }
127 ]
sebdetdfa86ca2019-04-05 15:15:31 +0200128}