[SDC-29] Amdocs OnBoard 1707 initial commit.
[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 - openecomp_heat_index:
6     file: openecomp-heat/_index.yml
7 topology_template:
8   inputs:
9     left_vn_fqdn:
10       hidden: false
11       immutable: false
12       type: string
13       description: dummy
14     Internal1_cidr:
15       hidden: false
16       immutable: false
17       type: string
18     src_port_start:
19       hidden: false
20       immutable: false
21       type: string
22       description: dummy
23     Internal1_default_gateway:
24       hidden: false
25       immutable: false
26       type: string
27     Internal1_dhcp:
28       hidden: false
29       immutable: false
30       type: string
31     src_port_end:
32       hidden: false
33       immutable: false
34       type: string
35       description: dummy
36     policy_name:
37       hidden: false
38       immutable: false
39       type: string
40       description: dummy
41     dst_port_end:
42       hidden: false
43       immutable: false
44       type: string
45       description: dummy
46     simple_action:
47       hidden: false
48       immutable: false
49       type: string
50       description: dummy
51     service_instance_fq_name:
52       hidden: false
53       immutable: false
54       type: string
55     Internal2_cidr:
56       hidden: false
57       immutable: false
58       type: string
59     protocol:
60       hidden: false
61       immutable: false
62       type: string
63       description: dummy
64     Internal2_dhcp:
65       hidden: false
66       immutable: false
67       type: string
68     dst_port_start:
69       hidden: false
70       immutable: false
71       type: string
72       description: dummy
73     network_ipam_refs_data_ipam_subnets_addr_from_start_true:
74       hidden: false
75       immutable: false
76       type: string
77       description: dummy
78     Internal2_default_gateway:
79       hidden: false
80       immutable: false
81       type: string
82     right_vn_fqdn:
83       hidden: false
84       immutable: false
85       type: string
86       description: dummy
87     network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2:
88       hidden: false
89       immutable: false
90       type: string
91       description: dummy
92     left_vn:
93       hidden: false
94       immutable: false
95       type: string
96       description: dummy
97     direction:
98       hidden: false
99       immutable: false
100       type: string
101       description: dummy
102     network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2:
103       hidden: false
104       immutable: false
105       type: string
106       description: dummy
107   node_templates:
108     template_NetworkPolicy:
109       type: org.openecomp.resource.vfc.rules.nodes.heat.network.contrail.NetworkRules
110       properties:
111         name:
112           get_input: policy_name
113     template_VirtualNetwork_2:
114       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
115       properties:
116         dhcp_enabled:
117           get_input: Internal1_dhcp
118         network_ipam_refs_data:
119         - network_ipam_refs_data_ipam_subnets:
120           - network_ipam_refs_data_ipam_subnets_subnet:
121               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
122                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2
123               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
124                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2
125             network_ipam_refs_data_ipam_subnets_addr_from_start:
126               get_input: network_ipam_refs_data_ipam_subnets_addr_from_start_true
127         network_policy_refs_data:
128         - network_policy_refs_data_sequence:
129             network_policy_refs_data_sequence_major: 0
130             network_policy_refs_data_sequence_minor: 0
131         network_name:
132           get_input: left_vn
133         network_ipam_refs:
134         - UNSUPPORTED_RESOURCE_template_NetworkIpam_2
135         network_policy_refs:
136         - list_join:
137           - ':'
138           - get_attribute:
139             - template_NetworkPolicy
140             - fq_name
141         subnets:
142           Internal-subnet-1:
143             enable_dhcp:
144               get_input: Internal1_dhcp
145             cidr:
146               get_input: Internal1_cidr
147             gateway_ip:
148               get_input: Internal1_default_gateway
149           Internal-subnet-2:
150             enable_dhcp:
151               get_input: Internal2_dhcp
152             cidr:
153               get_input: Internal2_cidr
154             gateway_ip:
155               get_input: Internal2_default_gateway
156       requirements:
157       - dependency:
158           capability: tosca.capabilities.Node
159           node: template_NetworkPolicy
160           relationship: tosca.relationships.DependsOn
161   groups:
162     main_group:
163       type: org.openecomp.groups.heat.HeatStack
164       properties:
165         heat_file: ../Artifacts/main.yml
166         description: cmaui server template for vMMSC
167       members:
168       - template_NetworkPolicy
169       - template_VirtualNetwork_2