[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 / in / main.yml
1 heat_template_version: 2013-05-23
2
3 description: >
4   Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
5
6 parameters:
7   jsa_name:
8     type: string
9     description: network name of jsa log network
10   security_group_name:
11     type: string
12     description: security_group_name
13   jsa_net_name:
14     type: string
15     description: network name of jsa network
16   contrail_net_name:
17     type: string
18     description: network name of contrail v2 network
19
20 resources:
21   jsa_security_group1:
22     type: OS::Neutron::SecurityGroup
23     properties:
24       description: ems security group
25       name: {get_param: security_group_name}
26       rules: [
27               {"direction": ingress, "ethertype": IPv6, "protocol": icmp, "remote_ip_prefix": "::/0"}
28               ]
29
30   jsa_security_group2:
31     type: OS::Neutron::SecurityGroup
32     properties:
33       description: ems security group
34       name: {get_param: security_group_name}
35       rules: [{"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0}]
36
37   test_net:
38     type: OS::Neutron::Net
39     properties:
40       name: {get_param: jsa_net_name}
41       shared: True
42
43   test_contrailV2_net:
44     type: OS::ContrailV2::VirtualNetwork
45     properties:
46       name: { get_param: contrail_net_name }
47
48   test_nested1Level:
49     type: nested1.yml
50     properties:
51       p1: { get_resource: jsa_security_group1}
52       p2: { get_resource: jsa_security_group2}
53       net1: { get_resource: test_net}
54       net2: { get_attr: [ test_contrailV2_net, fq_name ] }