[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / unifiedComposition / updNodesConnectedIn / noConsolidation / in / 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 node_types:
8   org.openecomp.resource.vfc.nodes.heat.QRouter:
9     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
10 topology_template:
11   inputs:
12     oam_private_net_name:
13       hidden: false
14       immutable: false
15       type: string
16       description: A string specifying a symbolic name for the network
17     packet_mirror_network_name:
18       hidden: false
19       immutable: false
20       type: string
21       description: A string specifying a symbolic name for the network
22     security_group_name:
23       hidden: false
24       immutable: false
25       type: string
26       description: Security group name
27     cdr_network:
28       hidden: false
29       immutable: false
30       type: string
31       description: A string specifying a symbolic name for the network
32   node_templates:
33     QRouter:
34       type: org.openecomp.resource.vfc.nodes.heat.QRouter
35       properties:
36         flavor: FLAVOR-test
37         availability_zone: Availability-test
38         image: Image-test
39         config_drive: true
40         name: QRouter-name
41     packet_mirror_network:
42       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
43       properties:
44         network_name:
45           get_input: packet_mirror_network_name
46       requirements:
47       - dependency:
48           capability: tosca.capabilities.Node
49           node: QRouter
50           relationship: tosca.relationships.DependsOn
51     cdr_network_port:
52       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
53       properties:
54         network:
55           get_input: cdr_network
56       requirements:
57       - binding:
58           capability: tosca.capabilities.network.Bindable
59           node: QRouter
60           relationship: tosca.relationships.network.BindsTo
61     oam_private_net_network_port:
62       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
63       properties:
64         network:
65           get_input: oam_private_net_name
66       requirements:
67       - binding:
68           capability: tosca.capabilities.network.Bindable
69           node: QRouter
70           relationship: tosca.relationships.network.BindsTo
71     jsa_security_group:
72       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
73       properties:
74         name:
75           get_input: security_group_name
76         description: ems security group
77         rules:
78         - protocol: tcp
79           ethertype: IPv4
80           port_range_max: 65535
81           remote_ip_prefix: 0.0.0.0/0
82           direction: egress
83           port_range_min: 1
84       requirements:
85       - port:
86           capability: tosca.capabilities.Attachment
87           node: cdr_network_port
88           relationship: org.openecomp.relationships.AttachesTo
89       - port:
90           capability: tosca.capabilities.Attachment
91           node: oam_private_net_network_port
92           relationship: org.openecomp.relationships.AttachesTo
93   groups:
94     input_group:
95       type: org.openecomp.groups.heat.HeatStack
96       properties:
97         heat_file: ../Artifacts/input.yaml
98       members:
99       - QRouter
100       - packet_mirror_network
101       - packet_internal_network
102       - cdr_network_port
103       - oam_private_net_network_port