aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/policy/drools-apps/policies.json
blob: b47756616145f295dcadbed6a6b25658198e0adf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
{
	"messageName": "PDP_UPDATE",
	"requestId": "88891208-2a73-452c-8d71-c93b422a7e03",
	"timestampMs": 1584652299629,
	"name": "drools",
	"pdpGroup": "defaultGroup",
	"pdpSubgroup": "drools",
	"policies": [
		{
		    "type": "onap.policies.controlloop.operational.common.Drools",
		    "type_version": "1.0.0",
		    "version": "1.0.0",
		    "name": "operational.restart",
		    "metadata": {
		        "policy-id": "operational.restart"
		    },
		    "properties": {
		        "controllerName": "frankfurt",
		        "id": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
		        "timeout": 3600,
		        "abatement": false,
		        "trigger": "unique-policy-id-1-restart",
		        "operations": [
		            {
		                "id": "unique-policy-id-1-restart",
		                "description": "Restart the VM",
		                "operation": {
		                    "actor": "APPC",
		                    "operation": "Restart",
		                    "target": {
		                        "targetType": "VM"
		                    }
		                },
		                "timeout": 1200,
		                "retries": 3,
		                "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"
		            }
		        ]
		    }
		},
        {
            "type": "onap.policies.controlloop.operational.common.Drools",
            "type_version": "1.0.0",
            "version": "1.0.0",
            "name": "operational.scale.up",
            "metadata": {
                "policy-id": "operational.scale.up"
            },
            "properties": {
                "controllerName": "frankfurt",
                "id": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3",
                "timeout": 60,
                "abatement": false,
                "trigger": "unique-policy-id-1-scale-up",
                "operations": [
                    {
                        "id": "unique-policy-id-1-scale-up",
                        "description": "Scale up",
                        "operation": {
                            "actor": "SO",
                            "operation": "VF Module Create",
                            "target": {
                                "targetType": "VFMODULE",
                                "entityIds": {
                                    "modelInvariantId": "e6130d03-56f1-4b0a-9a1d-e1b2ebc30e0e",
                                    "modelVersionId": "94b18b1d-cc91-4f43-911a-e6348665f292",
                                    "modelName": "VfwclVfwsnkBbefb8ce2bde..base_vfw..module-0",
                                    "modelVersion": 1,
                                    "modelCustomizationId": "47958575-138f-452a-8c8d-d89b595f8164"
                                }
                            },
                            "payload": {
                                "requestParameters": "{\"usePreload\":true,\"userParams\":[]}",
                                "configurationParameters": "[{\"ip-addr\":\"$.vf-module-topology.vf-module-parameters.param[9]\",\"oam-ip-addr\":\"$.vf-module-topology.vf-module-parameters.param[16]\",\"enabled\":\"$.vf-module-topology.vf-module-parameters.param[23]\"}]"
                            }
                        },
                        "timeout": 30,
                        "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"
                    }
                ]
            }
        },
        {
            "type": "onap.policies.controlloop.operational.common.Drools",
            "type_version": "1.0.0",
            "name": "operational.modifyconfig",
            "version": "1.0.0",
            "metadata": {
                "policy-id": "operational.modifyconfig"
            },
            "properties": {
                "controllerName": "frankfurt",
                "id": "ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a",
                "timeout": 60,
                "abatement": false,
                "trigger": "unique-policy-id-1-modifyConfig",
                "operations": [
                    {
                        "id": "unique-policy-id-1-modifyConfig",
                        "description": "Modify the packet generator",
                        "operation": {
                            "actor": "APPC",
                            "operation": "ModifyConfig",
                            "target": {
                                "targetType": "VNF",
                                "entityIds": {
                                    "resourceID": "bbb3cefd-01c8-413c-9bdd-2b92f9ca3d38"
                                }
                            }
                        },
                        "timeout": 7,
                        "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"
                    }
                ]
            }
        }
    ]
}