[SDC] Onboarding 1710 rebase.
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / fulltest / nestedOtherScenarios / multiLevel / portSecurityGroupNetPattern1B / 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 topology_template:
10   inputs:
11     security_group_name:
12       hidden: false
13       immutable: false
14       type: string
15       description: security_group_name
16     contrail_net_name:
17       hidden: false
18       immutable: false
19       type: string
20       description: network name of contrail v2 network
21     jsa_net_name:
22       hidden: false
23       immutable: false
24       type: string
25       description: network name of jsa network
26     jsa_name:
27       hidden: false
28       immutable: false
29       type: string
30       description: network name of jsa log network
31   node_templates:
32     test_nested1Level:
33       type: org.openecomp.resource.abstract.nodes.heat.nested1
34       directives:
35       - substitutable
36       properties:
37         p1: jsa_security_group1
38         service_template_filter:
39           substitute_service_template: nested1ServiceTemplate.yaml
40         p2: jsa_security_group2
41         net2:
42           get_attribute:
43           - test_contrailV2_net
44           - fq_name
45         net1: test_net
46       requirements:
47       - link_ps_server_port:
48           capability: tosca.capabilities.network.Linkable
49           node: test_contrailV2_net
50           relationship: tosca.relationships.network.LinksTo
51       - link_pd_server_port:
52           capability: tosca.capabilities.network.Linkable
53           node: test_net
54           relationship: tosca.relationships.network.LinksTo
55     test_contrailV2_net:
56       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
57       properties:
58         network_name:
59           get_input: contrail_net_name
60     test_net:
61       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
62       properties:
63         shared: true
64         network_name:
65           get_input: jsa_net_name
66     jsa_security_group1:
67       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
68       properties:
69         name:
70           get_input: security_group_name
71         description: ems security group
72         rules:
73         - protocol: icmp
74           ethertype: IPv6
75           remote_ip_prefix: ::/0
76           direction: ingress
77       requirements:
78       - port:
79           capability: attachment_oam_server_port_test_nested2Level
80           node: test_nested1Level
81           relationship: org.openecomp.relationships.AttachesTo
82       - port:
83           capability: attachment_ps_server_port
84           node: test_nested1Level
85           relationship: org.openecomp.relationships.AttachesTo
86       - port:
87           capability: attachment_pd_server_port
88           node: test_nested1Level
89           relationship: org.openecomp.relationships.AttachesTo
90       - port:
91           capability: attachment_sm_server_port_test_nested2Level
92           node: test_nested1Level
93           relationship: org.openecomp.relationships.AttachesTo
94     jsa_security_group2:
95       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
96       properties:
97         name:
98           get_input: security_group_name
99         description: ems security group
100         rules:
101         - protocol: tcp
102           ethertype: IPv4
103           port_range_max: 65535
104           remote_ip_prefix: 0.0.0.0/0
105           direction: egress
106           port_range_min: 1
107       requirements:
108       - port:
109           capability: attachment_pd_server_port
110           node: test_nested1Level
111           relationship: org.openecomp.relationships.AttachesTo
112       - port:
113           capability: attachment_sm_server_port_test_nested2Level
114           node: test_nested1Level
115           relationship: org.openecomp.relationships.AttachesTo
116   groups:
117     main_group:
118       type: org.openecomp.groups.heat.HeatStack
119       properties:
120         heat_file: ../Artifacts/main.yml
121         description: |
122           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
123       members:
124       - test_nested1Level
125       - test_contrailV2_net
126       - test_net
127       - jsa_security_group1
128       - jsa_security_group2