Merge "Add debugging of REST call"
[policy/drools-applications.git] / controlloop / common / policy-yaml / src / test / resources / v2.0.0 / policy_ONAP_demo_vFirewall.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-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a
17   services: 
18     - serviceInvariantUUID: 5cfe6f4a-41bc-4247-8674-ebd4b98e35cc
19       serviceUUID: 0f40bba5-986e-4b3c-803f-ddd1b7b25f24
20       serviceName: 57e66ea7-0ed6-45c7-970f
21 #
22 # OPTIONAL
23 #
24 # IF they want this CL restricted to a particular VFC(s)
25 #
26 #resources:
27 #   -  resourceInvariantUUID: 06fe411e-d006-4ac3-8b0e-fb4f13cd78d3
28 #      resourceUUID: 172ce7c5-c2e4-4f8d-b66c-edb49e8e548a
29 #      resourceVersion: '1.0'
30 #      resourceName: eace9331-04d4-43b4-96b8
31 #      resourceType: VF
32    
33 #  resources: 
34 #    - resourceType: VFC
35 #      resourceInvariantUUID: b19f6643-3db0-4d73-b280-94d6f21caa71
36 #      resourceUUID: 6dca6eb9-330c-4090-a542-7aca5f446e21
37 #      resourceVersion: '1.0'
38 #      resourceName: Eace933104d443b496b8.nodes.heat.vsn
39 #    - resourceName: vFW
40 #      resourceType: VFC
41 #      resourceInvariantUUID: 0129e34c-d9fa-442d-bb2c-f925d018000a
42 #      resourceUUID: 7fa1f6c7-c6bd-4444-8db2-63334a5aed1b
43 #      resourceVersion: '1.0'
44 #      resourceName: Eace933104d443b496b8.nodes.heat.vfw
45 #    - resourceType: VFC
46 #      resourceInvariantUUID: 7654ae14-4e98-45bc-a8c0-2c43e1805bb4
47 #      resourceUUID: 5267d6dd-f676-4f98-abec-6387ce6beaf2
48 #      resourceVersion: '1.0'
49 #      resourceName: Eace933104d443b496b8.nodes.heat.vpg
50   trigger_policy: unique-policy-id-1-modifyConfig
51   timeout: 1200
52
53 policies:
54   - id: unique-policy-id-1-modifyConfig
55     name: Change the Load Balancer
56     description:
57     actor: APPC
58     recipe: ModifyConfig
59     target:
60       resourceID: Eace933104d443b496b8.nodes.heat.vpg
61     payload:
62       generic-vnf.vnf-id: {generic-vnf.vnf-id}
63       ref$: pgstreams.json
64     retry: 0
65     timeout: 300
66     success: final_success
67     failure: final_failure
68     failure_timeout: final_failure_timeout
69     failure_retries: final_failure_retries
70     failure_exception: final_failure_exception
71     failure_guard: final_failure_guard