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 / expectedoutputfiles / MainServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Main
4 imports:
5   ContrailComputeGlobalTypes:
6     file: ContrailComputeGlobalTypesServiceTemplate.yaml
7   CinderVolumeGlobalTypes:
8     file: CinderVolumeGlobalTypesServiceTemplate.yaml
9   ContrailVirtualNetworkGlobalType:
10     file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml
11   AbstractSubstituteGlobalTypes:
12     file: AbstractSubstituteGlobalTypesServiceTemplate.yaml
13   ContrailPortGlobalTypes:
14     file: ContrailPortGlobalTypesServiceTemplate.yaml
15   NeutronPortGlobalTypes:
16     file: NeutronPortGlobalTypesServiceTemplate.yaml
17   NeutronNetGlobalTypes:
18     file: NeutronNetGlobalTypesServiceTemplate.yaml
19   CommonGlobalTypes:
20     file: CommonGlobalTypesServiceTemplate.yaml
21   ContrailAbstractSubstituteGlobalTypes:
22     file: ContrailAbstractSubstituteGlobalTypesServiceTemplate.yaml
23   ContrailNetworkRuleGlobalType:
24     file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml
25   NeutronSecurityRulesGlobalTypes:
26     file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml
27   NovaServerGlobalTypes:
28     file: NovaServerGlobalTypesServiceTemplate.yaml
29   ContrailV2VirtualMachineInterfaceGlobalType:
30     file: ContrailV2VirtualMachineInterfaceGlobalTypeServiceTemplate.yaml
31 topology_template:
32   inputs:
33     left_vn_fqdn:
34       hidden: false
35       immutable: false
36       type: string
37       description: dummy
38     Internal1_cidr:
39       hidden: false
40       immutable: false
41       type: string
42     src_port_start:
43       hidden: false
44       immutable: false
45       type: string
46       description: dummy
47     Internal1_default_gateway:
48       hidden: false
49       immutable: false
50       type: string
51     Internal1_dhcp:
52       hidden: false
53       immutable: false
54       type: string
55     src_port_end:
56       hidden: false
57       immutable: false
58       type: string
59       description: dummy
60     policy_name:
61       hidden: false
62       immutable: false
63       type: string
64       description: dummy
65     dst_port_end:
66       hidden: false
67       immutable: false
68       type: string
69       description: dummy
70     simple_action:
71       hidden: false
72       immutable: false
73       type: string
74       description: dummy
75     service_instance_fq_name:
76       hidden: false
77       immutable: false
78       type: string
79     Internal2_cidr:
80       hidden: false
81       immutable: false
82       type: string
83     protocol:
84       hidden: false
85       immutable: false
86       type: string
87       description: dummy
88     Internal2_dhcp:
89       hidden: false
90       immutable: false
91       type: string
92     dst_port_start:
93       hidden: false
94       immutable: false
95       type: string
96       description: dummy
97     network_ipam_refs_data_ipam_subnets_addr_from_start_true:
98       hidden: false
99       immutable: false
100       type: string
101       description: dummy
102     Internal2_default_gateway:
103       hidden: false
104       immutable: false
105       type: string
106     right_vn_fqdn:
107       hidden: false
108       immutable: false
109       type: string
110       description: dummy
111     network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2:
112       hidden: false
113       immutable: false
114       type: string
115       description: dummy
116     left_vn:
117       hidden: false
118       immutable: false
119       type: string
120       description: dummy
121     direction:
122       hidden: false
123       immutable: false
124       type: string
125       description: dummy
126     network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2:
127       hidden: false
128       immutable: false
129       type: string
130       description: dummy
131   node_templates:
132     template_NetworkPolicy:
133       type: org.openecomp.resource.vfc.rules.nodes.heat.network.contrail.NetworkRules
134       properties:
135         name:
136           get_input: policy_name
137     template_VirtualNetwork_2:
138       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
139       properties:
140         dhcp_enabled:
141           get_input: Internal1_dhcp
142         network_ipam_refs_data:
143         - network_ipam_refs_data_ipam_subnets:
144           - network_ipam_refs_data_ipam_subnets_subnet:
145               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
146                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2
147               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
148                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2
149             network_ipam_refs_data_ipam_subnets_addr_from_start:
150               get_input: network_ipam_refs_data_ipam_subnets_addr_from_start_true
151         network_policy_refs_data:
152         - network_policy_refs_data_sequence:
153             network_policy_refs_data_sequence_major: 0
154             network_policy_refs_data_sequence_minor: 0
155         network_name:
156           get_input: left_vn
157         network_ipam_refs:
158         - UNSUPPORTED_RESOURCE_template_NetworkIpam_2
159         network_policy_refs:
160         - list_join:
161           - ':'
162           - get_attribute:
163             - template_NetworkPolicy
164             - fq_name
165         subnets:
166           Internal-subnet-1:
167             enable_dhcp:
168               get_input: Internal1_dhcp
169             cidr:
170               get_input: Internal1_cidr
171             gateway_ip:
172               get_input: Internal1_default_gateway
173           Internal-subnet-2:
174             enable_dhcp:
175               get_input: Internal2_dhcp
176             cidr:
177               get_input: Internal2_cidr
178             gateway_ip:
179               get_input: Internal2_default_gateway
180       requirements:
181       - dependency:
182           capability: tosca.capabilities.Node
183           node: template_NetworkPolicy
184           relationship: tosca.relationships.DependsOn
185   groups:
186     main:
187       type: org.openecomp.groups.heat.HeatStack
188       properties:
189         heat_file: ../Artifacts/main.yml
190         description: cmaui server template for vMMSC
191       members:
192       - template_NetworkPolicy
193       - template_VirtualNetwork_2