push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / neutron_port_translation / 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   node_templates:
33     jsa_net:
34       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
35       properties:
36         shared: true
37         network_name:
38           get_input: jsa_net_name
39     jsa_net1:
40       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
41       properties:
42         shared: true
43         network_name:
44           get_input: jsa_net_name
45     cmaui1_port_0:
46       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
47       properties:
48         replacement_policy: AUTO
49         security_groups:
50         - get_input: security_group_name
51         fixed_ips:
52         - ip_address:
53             get_input:
54             - cmaui_oam_ips
55             - 1
56         network:
57           get_input: oam_net_name
58     cmaui1_port_1:
59       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
60       properties:
61         replacement_policy: AUTO
62         security_groups:
63         - get_input: security_group_name
64         fixed_ips:
65         - subnet: subnetNameVal
66           ip_address:
67             get_input:
68             - cmaui_oam_ips
69             - 1
70         - subnet: subnetNameVal2
71           ip_address:
72             get_input:
73             - cmaui_oam_ips
74             - 1
75         network: jsa_net
76       requirements:
77       - link:
78           capability: tosca.capabilities.network.Linkable
79           node: jsa_net
80           relationship: tosca.relationships.network.LinksTo
81     cmaui1_port_2:
82       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
83       properties:
84         replacement_policy: AUTO
85         security_groups:
86         - get_input: security_group_name
87         fixed_ips:
88         - subnet: subnetNameVal
89           ip_address:
90             get_input:
91             - cmaui_oam_ips
92             - 1
93         - subnet: subnetNameVal2
94           ip_address:
95             get_input:
96             - cmaui_oam_ips
97             - 1
98         network: jsa_net1
99       requirements:
100       - link:
101           capability: tosca.capabilities.network.Linkable
102           node: jsa_net1
103           relationship: tosca.relationships.network.LinksTo
104   groups:
105     hot_template:
106       type: org.openecomp.groups.heat.HeatStack
107       properties:
108         heat_file: ../Artifacts/hot_template.yml
109         description: cmaui server template for vMMSC
110       members:
111       - jsa_net
112       - jsa_net1
113       - cmaui1_port_0
114       - cmaui1_port_1
115       - cmaui1_port_2