blob: aaf9dc37864253947ae5d40fd569704a66b967a8 [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 }
Vidyashree-Huawei472dc122020-04-20 12:18:50 +053096 },
97 {
98 "actor": {
99 "actor": "CDS",
100 "recipe": {
101 "recipe": "modify-config",
102 "payload": {
103 "artifact_name": "baseconfiguration",
104 "artifact_version": "1.0.0",
105 "mode": "async",
106 "data": {
107 }
108 }
109 }
110 },
111 "id": "policy4",
112 "retry": "0",
113 "timeout": "0",
114 "success": "final_success",
115 "failure": "final_failure",
116 "failure_timeout": "final_failure_timeout",
117 "failure_retries": "final_failure_retries",
118 "failure_exception": "final_failure_exception",
119 "failure_guard": "final_failure_guard",
120 "target": {
121 "type": "VFMODULE",
122 "resourceID": "Vloadbalancerms..vpkg..module-1",
123 "modelInvariantId": "ca052563-eb92-4b5b-ad41-9111768ce043",
124 "modelVersionId": "1e725ccc-b823-4f67-82b9-4f4367070dbc",
125 "modelName": "Vloadbalancerms..vpkg..module-1",
126 "modelVersion": "1",
127 "modelCustomizationId": "1bffdc31-a37d-4dee-b65c-dde623a76e52"
128 }
sebdetf9e2cee2019-08-09 18:36:09 +0200129 }
130 ]
131 },
132 "guard_policies": [
133 {
134 "policy-id": "guard.minmax.new",
135 "content": {
136 "actor": "APPC",
137 "recipe": "Restart",
138 "targets": ".*",
139 "clname": "LOOP_ASJOy_v1_0_ResourceInstanceName1_tca",
140 "guardActiveStart": "00:00:00Z",
141 "guardActiveEnd": "10:00:00Z",
142 "min": "0",
143 "max": "1"
144 }
145 },
146 {
147 "policy-id": "guard.frequency.new",
148 "content": {
149 "actor": "APPC",
150 "recipe": "Rebuild",
151 "targets": ".*",
152 "clname": "LOOP_ASJOy_v1_0_ResourceInstanceName1_tca",
153 "guardActiveStart": "00:00:00Z",
154 "guardActiveEnd": "10:00:00Z",
155 "limit": "1",
156 "timeWindow": "2",
157 "timeUnits": "minute"
158 }
159 }
160 ]
sebdetdfa86ca2019-04-05 15:15:31 +0200161}