Updates to support fixed guard policy types
[policy/xacml-pdp.git] / applications / guard / src / test / resources / test-policies.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_1_0
2 topology_template:
3   policies:
4     -
5       frequency-default:
6         type: onap.policies.controlloop.guard.common.FrequencyLimiter
7         type_version: 1.0.0
8         version: 1.0.0
9         description: |
10             This is the default APPC Restart frequency limiter policy for all control loops.
11         metadata:
12           policy-id: frequency-default
13           policy-version: 1.0.0
14         properties:
15           actor: APPC
16           operation: Restart
17           timeWindow: 10
18           timeUnits: minute
19           limit: 1
20     -
21       frequency-loop-1:
22         type: onap.policies.controlloop.guard.common.FrequencyLimiter
23         type_version: 1.0.0
24         version: 1.0.0
25         description: |
26             This frequency limiter is for APPC Restart on a specific control loop. It allows more restarts.
27         metadata:
28           policy-id: frequency-loop-1
29           policy-version: 1.0.0
30         properties:
31           actor: APPC
32           operation: Restart
33           id: loop-1
34           timeWindow: 10
35           timeUnits: minute
36           limit: 3
37     -
38       frequency-loop-3:
39         type: onap.policies.controlloop.guard.common.FrequencyLimiter
40         type_version: 1.0.0
41         version: 1.0.0
42         description: |
43             This frequency limiter is for APPC Restart on a specific control loop. It allows
44             NO restarts in a time frame.
45         metadata:
46           policy-id: frequency-loop-3
47           policy-version: 1.0.0
48         properties:
49           actor: APPC
50           operation: Restart
51           timeRange:
52             start_time: T00:00:00Z
53             end_time: T08:00:00Z
54           id: loop-3
55           timeWindow: 8
56           timeUnits: hour
57           limit: 0
58     -
59       minmax-default:
60         type: onap.policies.controlloop.guard.common.MinMax
61         type_version: 1.0.0
62         version: 1.0.0
63         metadata:
64           policy-id : minmax-default
65           policy-version: 1.0.0
66         properties:
67           actor: SO
68           operation: VF Module Create
69           target: vf-module-id-1
70           min: 1
71           max: 5
72     -
73       minmax-vfmodule-loop2:
74         type: onap.policies.controlloop.guard.common.MinMax
75         type_version: 1.0.0
76         version: 1.0.0
77         metadata:
78           policy-id : minmax-vfmodule-loop2
79           policy-version: 1.0.0
80         properties:
81           actor: SO
82           operation: VF Module Create
83           id: loop-2
84           target: vf-module-id-2
85           min: 3
86           max: 6
87     -
88       blacklist-1:
89         type: onap.policies.controlloop.guard.common.Blacklist
90         type_version: 1.0.0
91         version: 1.0.0
92         metadata:
93           policy-id : blacklist-1
94           policy-version: 1.0.0
95         properties:
96           actor: APPC
97           operation: Migrate
98           id: loop-5
99           blacklist:
100               - vnf1
101               - vnf2
102     -
103       unknown-1:
104         type: onap.policies.controlloop.guard.common.Unknown
105         type_version: 1.0.0
106         version: 1.0.0
107         metadata:
108           policy-id : unknown-1
109           policy-version: 1.0.0
110         properties:
111           actor: APPC
112           operation: Migrate
113           id: loop-5
114           blacklist:
115               - vnf1
116               - vnf2