Sonar Fixes policy/models, removing model-yaml
[policy/models.git] / models-interactions / model-yaml / src / test / resources / v1.0.0 / policy_vService.yaml
1 # Copyright 2018 AT&T Intellectual Property. All rights reserved
2 # Modifications Copyright (C) 2019-2020 Nordix Foundation.
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #         http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 controlLoop:
16   version: 1.0.0
17   controlLoopName: ControlLoop-vUSP-vCTS-cbed919f-2212-4ef7-8051-fe6308da1bda
18   services:
19     - serviceName: vUSP
20   resources:
21     - resourceName: vCTS
22       resourceType: VF
23     - resourceName: vCOM
24       resourceType: VF
25     - resourceName: vRAR
26       resourceType: VF
27     - resourceName: vLCS
28       resourceType: VF
29     - resourceName: v3CB
30       resourceType: VF
31   trigger_policy: unique-policy-id-1-restart
32   timeout: 1200
33
34 policies:
35   - id: unique-policy-id-1-restart
36     name: Restart Policy
37     description:
38     actor: APPC
39     recipe: Restart
40     target:
41       type: VM
42     retry: 2
43     timeout: 300
44     success: final_success
45     failure: unique-policy-id-2-rebuild
46     failure_timeout: unique-policy-id-2-rebuild
47     failure_retries: unique-policy-id-2-rebuild
48     failure_exception: final_failure_exception
49
50   - id: unique-policy-id-2-rebuild
51     name: Rebuild Policy
52     description:
53     actor: APPC
54     recipe: Rebuild
55     target:
56       type: VM
57     retry: 0
58     timeout: 600
59     success: final_success
60     failure: unique-policy-id-3-migrate
61     failure_timeout: unique-policy-id-3-migrate
62     failure_retries: unique-policy-id-3-migrate
63     failure_exception: final_failure_exception
64
65   - id: unique-policy-id-3-migrate
66     name: Migrate Policy
67     description:
68     actor: APPC
69     recipe: Migrate
70     target:
71       type: VM
72     retry: 0
73     timeout: 600
74     success: final_success
75     failure: final_failure
76     failure_timeout: final_failure_timeout
77     failure_retries: final_failure_retries
78     failure_exception: final_failure_exception