move plugins from from ccsdk to dcaegen2
[dcaegen2/platform/plugins.git] / relationships / example_register_to_blueprint.yaml
1 # ================================================================================
2 # Copyright (c) 2017-2020 AT&T Intellectual Property. All rights reserved.
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 # ============LICENSE_END=========================================================
16 #
17 tosca_definitions_version: cloudify_dsl_1_3
18
19 imports:
20   - http://www.getcloudify.org/spec/cloudify/3.4/types.yaml
21   - {{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2 }}/type_files/relationship/1.0.0/node-type.yaml
22
23 node_templates:
24
25     src:
26         type: cloudify.nodes.Root
27         relationships:
28           - type: dcae.relationships.component_registered_to
29             target: tgt #agree this is kind of weird to be a relationship type now with a dummy target
30             target_interfaces:
31                 cloudify.interfaces.relationship_lifecycle:
32                     preconfigure:
33                         inputs:
34                             address_to_register: "666.666.666.666"
35                             port_to_register: "666"
36                             name_to_register: "TEST_REGISTERED_TO_SERVICE"
37                             location_id: "rework-central"
38
39     tgt: #do relationships always need targets? 
40         type: cloudify.nodes.Root