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