fdf5d1a6b10c71232cd81790c8718b838cdca644
[policy/drools-applications.git] / controlloop / templates / template.demo / src / test / resources / yaml / policy_ControlLoop_SO-test.yaml
1 # Copyright 2018 AT&T Intellectual Property. All rights reserved
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #         http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14 controlLoop:
15   version: 2.0.0
16   controlLoopName: ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3
17   services:
18     - serviceName: d4738992-6497-4dca-9db9
19       serviceInvariantUUID: dc112d6e-7e73-4777-9c6f-1a7fb5fd1b6f
20       serviceUUID: 2eea06c6-e1d3-4c3a-b9c4-478c506eeedf
21   trigger_policy: unique-policy-id-1-scale-up
22   timeout: 60
23  
24 policies:
25   - id: unique-policy-id-1-scale-up
26     name: Create a new VF Module
27     description:
28     actor: SO
29     recipe: VF Module Create
30     target:
31       type: VNF
32     payload:
33       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]"}]'
34     retry: 0
35     timeout: 30
36     success: final_success
37     failure: final_failure
38     failure_timeout: final_failure_timeout
39     failure_retries: final_failure_retries
40     failure_exception: final_failure_exception
41     failure_guard: final_failure_guard