remove dependency of drool-application/yaml in actors
[policy/models.git] / models-interactions / model-yaml / src / test / resources / v2.0.0 / policy_ONAP_demo_vDNS.yaml
1 # Copyright 2018 AT&T Intellectual Property. All rights reserved
2 # Modifications Copyright (C) 2019 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: 2.0.0
17   controlLoopName: ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3
18   services: 
19     - serviceName: d4738992-6497-4dca-9db9
20       serviceInvariantUUID: dc112d6e-7e73-4777-9c6f-1a7fb5fd1b6f
21       serviceUUID: 2eea06c6-e1d3-4c3a-b9c4-478c506eeedf
22 #
23 # OPTIONAL to specify the exact resource VF and/or VFC(s)
24 #
25 #  resources:
26 #    - resourceInvariantUUID: 4b8d4018-068b-4c33-b9bb-d980798e52c2
27 #      resourceUUID: d7d28881-b24d-4512-bfee-1e2eb335591f
28 #      resourceVersion: '1.0'
29 #      resourceName: 59a2ee3f-b580-45fe-b5a1
30 #      resourceType: VF
31 #    
32 #  resources: 
33 #    - resourceInvariantUUID: ee585c30-127b-492e-b2c1-871dc61d1dde
34 #      resourceUUID: d816cb01-b5d0-4bbb-b614-f7c3e230ab19
35 #      resourceVersion: '1.0'
36 #      resourceName: 59a2ee3fB58045feB5a1.nodes.heat.vdns
37 #      resourceType: VFC
38 #    - resourceInvariantUUID: f7f1d745-cfb1-4aa9-83fc-31280d0ce513
39 #      resourceUUID: 1821f13e-411f-4b29-87a5-ae935897b2e1
40 #      resourceVersion: '1.0'
41 #      resourceName: 59a2ee3fB58045feB5a1.nodes.heat.vlb
42 #      resourceType: VFC
43   trigger_policy: unique-policy-id-1-scale-up
44   timeout: 1200
45
46 policies:
47   - id: unique-policy-id-1-scale-up
48     name: Create a new VF Module
49     description:
50     actor: SO
51     recipe: VF Module Create
52     target:
53       type: VNF
54     payload:
55       requestParameters: '{"usePreload":true,"userParams":[]}'
56       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]"}]'
57     retry: 0
58     timeout: 1200
59     success: final_success
60     failure: final_failure
61     failure_timeout: final_failure_timeout
62     failure_retries: final_failure_retries
63     failure_exception: final_failure_exception
64     failure_guard: final_failure_guard