50de04d451bf49d86865df20ecab8a12d455f156
[policy/drools-applications.git] / controlloop / common / policy-yaml / src / test / resources / v2.0.0 / policy_ONAP_demo_vDNS.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 #
22 # OPTIONAL to specify the exact resource VF and/or VFC(s)
23 #
24 #  resources:
25 #    - resourceInvariantUUID: 4b8d4018-068b-4c33-b9bb-d980798e52c2
26 #      resourceUUID: d7d28881-b24d-4512-bfee-1e2eb335591f
27 #      resourceVersion: '1.0'
28 #      resourceName: 59a2ee3f-b580-45fe-b5a1
29 #      resourceType: VF
30 #    
31 #  resources: 
32 #    - resourceInvariantUUID: ee585c30-127b-492e-b2c1-871dc61d1dde
33 #      resourceUUID: d816cb01-b5d0-4bbb-b614-f7c3e230ab19
34 #      resourceVersion: '1.0'
35 #      resourceName: 59a2ee3fB58045feB5a1.nodes.heat.vdns
36 #      resourceType: VFC
37 #    - resourceInvariantUUID: f7f1d745-cfb1-4aa9-83fc-31280d0ce513
38 #      resourceUUID: 1821f13e-411f-4b29-87a5-ae935897b2e1
39 #      resourceVersion: '1.0'
40 #      resourceName: 59a2ee3fB58045feB5a1.nodes.heat.vlb
41 #      resourceType: VFC
42   trigger_policy: unique-policy-id-1-scale-up
43   timeout: 1200
44
45 policies:
46   - id: unique-policy-id-1-scale-up
47     name: Create a new VF Module
48     description:
49     actor: SO
50     recipe: VF Module Create
51     target:
52       type: VNF
53     payload:
54       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]"}]'
55     retry: 0
56     timeout: 1200
57     success: final_success
58     failure: final_failure
59     failure_timeout: final_failure_timeout
60     failure_retries: final_failure_retries
61     failure_exception: final_failure_exception
62     failure_guard: final_failure_guard