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