[SDC-29] rebase continue work to align source
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / unifiedComposition / updNodesConnectedIn / noConsolidation / out / MainServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Main
4 imports:
5 - openecomp_heat_index:
6     file: openecomp-heat/_index.yml
7 - GlobalSubstitutionTypes:
8     file: GlobalSubstitutionTypesServiceTemplate.yaml
9 node_types:
10   org.openecomp.resource.vfc.nodes.heat.QRouter:
11     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
12 topology_template:
13   inputs:
14     oam_private_net_name:
15       hidden: false
16       immutable: false
17       type: string
18       description: A string specifying a symbolic name for the network
19     packet_mirror_network_name:
20       hidden: false
21       immutable: false
22       type: string
23       description: A string specifying a symbolic name for the network
24     security_group_name:
25       hidden: false
26       immutable: false
27       type: string
28       description: Security group name
29     cdr_network:
30       hidden: false
31       immutable: false
32       type: string
33       description: A string specifying a symbolic name for the network
34   node_templates:
35     QRouter:
36       type: org.openecomp.resource.vfc.nodes.heat.QRouter
37       properties:
38         flavor: FLAVOR-test
39         availability_zone: Availability-test
40         image: Image-test
41         config_drive: true
42         name: QRouter-name
43     packet_mirror_network:
44       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
45       properties:
46         network_name:
47           get_input: packet_mirror_network_name
48       requirements:
49       - dependency:
50           capability: feature_QRouter
51           node: abstract_QRouter
52           relationship: tosca.relationships.DependsOn
53     cdr_network_port:
54       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
55       properties:
56         network:
57           get_input: cdr_network
58       requirements:
59       - binding:
60           capability: tosca.capabilities.network.Bindable
61           node: QRouter
62           relationship: tosca.relationships.network.BindsTo
63     oam_private_net_network_port:
64       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
65       properties:
66         network:
67           get_input: oam_private_net_name
68       requirements:
69       - binding:
70           capability: tosca.capabilities.network.Bindable
71           node: QRouter
72           relationship: tosca.relationships.network.BindsTo
73     jsa_security_group:
74       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
75       properties:
76         name:
77           get_input: security_group_name
78         description: ems security group
79         rules:
80         - protocol: tcp
81           ethertype: IPv4
82           port_range_max: 65535
83           remote_ip_prefix: 0.0.0.0/0
84           direction: egress
85           port_range_min: 1
86       requirements:
87       - port:
88           capability: attachment_QRouter_cdr_network_port
89           node: abstract_QRouter
90           relationship: org.openecomp.relationships.AttachesTo
91       - port:
92           capability: attachment_QRouter_oam_private_net_network_port
93           node: abstract_QRouter
94           relationship: org.openecomp.relationships.AttachesTo
95     abstract_QRouter:
96       type: org.openecomp.resource.abstract.nodes.QRouter
97       directives:
98       - substitutable
99       properties:
100         compute_QRouter_availability_zone:
101         - Availability-test
102         compute_QRouter_config_drive:
103         - true
104         port_cdr_network_port_network:
105         - get_input: cdr_network
106         vm_flavor_name: FLAVOR-test
107         port_oam_private_net_network_port_network:
108         - get_input: oam_private_net_name
109         vm_image_name: Image-test
110         compute_QRouter_name:
111         - QRouter-name
112         service_template_filter:
113           substitute_service_template: Nested_QRouterServiceTemplate.yaml
114           count: 1
115         index_value:
116           get_property:
117           - SELF
118           - service_template_filter
119           - index_value
120   groups:
121     input_group:
122       type: org.openecomp.groups.heat.HeatStack
123       properties:
124         heat_file: ../Artifacts/input.yaml
125       members:
126       - QRouter
127       - packet_mirror_network
128       - packet_internal_network
129       - cdr_network_port
130       - oam_private_net_network_port