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