96ea133c2676b96f83f75216033d88378a62a264
[policy/clamp.git] /
1 # ============LICENSE_START=======================================================
2 # Copyright (C) 2021 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 #
16 # SPDX-License-Identifier: Apache-2.0
17 # ============LICENSE_END=========================================================
18
19 tosca_definitions_version: tosca_simple_yaml_1_3
20
21 imports:
22   - cloop_base_types.yaml
23   - cloop_dcae_types.yaml
24
25 topology_template:
26   inputs:
27     some_property_input:
28       type: string
29
30   substitution_mappings:
31     node_type: org.onap.DCAE_VES_TCA
32     properties:
33       some_property: { get_input: some_property_input }
34     capabilities:
35       VES-5.28.4-publisher: [ node1_VES_Collector, VES-5.28.4-publisher ]
36       VES-7.30.1-publisher: [ node1_VES_Collector, VES-7.30.1-publisher ]
37       TCA-handle-out-publisher: [ node2_TCA_GEN_2, TCA-handle-out-publisher ]
38       VES_specification-subscriber: [ node2_TCA_GEN_2, VES_specification-subscriber ]
39
40   node_templates:
41   ################################################################################
42   #alt1: without relay
43
44   node1_VES_Collector:
45     type: org.onap.VESCollector
46
47   node2_TCA_GEN_2:
48     type:  org.onap.TCA_GEN_2
49     requirements:
50       - receive:
51           capability: VES-5.28.4-publisher
52           node: node1_VES_Collector
53           relationship:
54             type: org.onap.PropagateEvent
55             properties:
56               config-keys: [ ves-measurement ]
57
58
59   ################################################################################
60   #alt2: with relay
61
62   node1_VES_Collector:
63     type: org.onap.VESCollector
64
65   node2_TCA_GEN_2:
66     type:  org.onap.TCA_GEN_2
67
68   node3_Relay:
69     type: org.onap.EventRelay
70     properties:
71       event_format: "VES_specification"
72       event_format_version: "5.28.4"
73       supported_carrier_protocols: [{ DMAAP_message_router: DMAAP_message_router }]
74       supported_data_formats: [{ JSON: JSON }]
75     requirements:
76       - receive:
77           node: node1_VES_Collector
78           properties:
79             config_keys: [ ves-measurement ]
80       - send:
81           node: node2_TCA_GEN_2
82           properties:
83             config_keys: [ ves-measurement ]