push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / porttocontrailv2virtualnetworkconnection / nested / inputfiles / 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   Internal1_cidr:
8     type: string
9   Internal2_cidr:
10     type: string
11   Internal1_default_gateway:
12     type: string
13   Internal2_default_gateway:
14     type: string
15   Internal1_dhcp:
16       type: string
17   Internal2_dhcp:
18     type: string
19   direction:
20     description: dummy
21     type: string
22   dst_port_end:
23     description: dummy
24     type: string
25   dst_port_start:
26     description: dummy
27     type: string
28   left_vn:
29     description: dummy
30     type: string
31   left_vn_fqdn:
32     description: dummy
33     type: string
34   network_ipam_refs_data_ipam_subnets_addr_from_start_true:
35     description: dummy
36     type: string
37   network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2:
38     description: dummy
39     type: string
40   network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2:
41     description: dummy
42     type: string
43   policy_name:
44     description: dummy
45     type: string
46   protocol:
47     description: dummy
48     type: string
49   right_vn_fqdn:
50     description: dummy
51     type: string
52   simple_action:
53     description: dummy
54     type: string
55   src_port_end:
56     description: dummy
57     type: string
58   src_port_start:
59     description: dummy
60     type: string
61   service_instance_fq_name:
62     type: string
63
64 resources:
65   template_NetworkIpam_2:
66     properties:
67       name:
68         get_param: left_vn
69     type: "OS::ContrailV2::NetworkIpam"
70   template_NetworkPolicy:
71     properties:
72       name:
73         get_param: policy_name
74       network_policy_entries:
75         network_policy_entries_policy_rule:
76           -
77             network_policy_entries_policy_rule_action_list:
78               network_policy_entries_policy_rule_action_list_apply_service:
79                 -
80                   get_param: service_instance_fq_name
81               network_policy_entries_policy_rule_action_list_simple_action:
82                 get_param: simple_action
83             network_policy_entries_policy_rule_direction:
84               get_param: direction
85             network_policy_entries_policy_rule_dst_addresses:
86               -
87                 network_policy_entries_policy_rule_dst_addresses_virtual_network:
88                   get_param: right_vn_fqdn
89             network_policy_entries_policy_rule_dst_ports:
90               -
91                 network_policy_entries_policy_rule_dst_ports_end_port:
92                   get_param: dst_port_end
93                 network_policy_entries_policy_rule_dst_ports_start_port:
94                   get_param: dst_port_start
95             network_policy_entries_policy_rule_protocol:
96               get_param: protocol
97             network_policy_entries_policy_rule_src_addresses:
98               -
99                 network_policy_entries_policy_rule_src_addresses_virtual_network:
100                   get_param: left_vn_fqdn
101             network_policy_entries_policy_rule_src_ports:
102               -
103                 network_policy_entries_policy_rule_src_ports_end_port:
104                   get_param: src_port_end
105                 network_policy_entries_policy_rule_src_ports_start_port:
106                   get_param: src_port_start
107     type: "OS::ContrailV2::NetworkPolicy"
108   test_net:
109     depends_on:
110       - template_NetworkIpam_2
111       - template_NetworkPolicy
112     properties:
113       name:
114         get_param: left_vn
115       network_ipam_refs:
116         -
117           get_resource: template_NetworkIpam_2
118       network_ipam_refs_data:
119         -
120           network_ipam_refs_data_ipam_subnets:
121             -
122               network_ipam_refs_data_ipam_subnets_addr_from_start:
123                 get_param: network_ipam_refs_data_ipam_subnets_addr_from_start_true
124               network_ipam_refs_data_ipam_subnets_subnet:
125                 network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
126                   get_param: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2
127                 network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
128                   get_param: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2
129       network_policy_refs: [ { list_join: [':', { get_attr: [ template_NetworkPolicy, fq_name ] } ] } ]
130       network_policy_refs_data:
131         -
132           network_policy_refs_data_sequence:
133             network_policy_refs_data_sequence_major: 0
134             network_policy_refs_data_sequence_minor: 0
135     type: "OS::ContrailV2::VirtualNetwork"
136
137   test_nested:
138     type: nested.yml
139     properties:
140       p1: { get_resource: test_net}