push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / porttocontrailv2virtualnetworkconnection / multi / 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 node_types:
32   org.openecomp.resource.vfc.nodes.heat.cmaui:
33     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
34 topology_template:
35   inputs:
36     cmaui_names:
37       hidden: false
38       immutable: false
39       type: list
40       description: CMAUI1, CMAUI2 server names
41       entry_schema:
42         type: string
43     p1:
44       hidden: false
45       immutable: false
46       type: string
47       description: UID of OAM network
48     cmaui_image:
49       hidden: false
50       immutable: false
51       type: string
52       description: Image for CMAUI server
53     cmaui_flavor:
54       hidden: false
55       immutable: false
56       type: string
57       description: Flavor for CMAUI server
58     security_group_name:
59       hidden: false
60       immutable: false
61       type: list
62       description: CMAUI1, CMAUI2 server names
63       entry_schema:
64         type: string
65     availability_zone_0:
66       label: availabilityzone name
67       hidden: false
68       immutable: false
69       type: string
70       description: availabilityzone name
71     cmaui_oam_ips:
72       hidden: false
73       immutable: false
74       type: string
75     shared_network_id:
76       hidden: false
77       immutable: false
78       type: string
79       description: Flavor for CMAUI server
80     jsa_net_name:
81       hidden: false
82       immutable: false
83       type: string
84       description: network name of jsa log network
85   node_templates:
86     server_cmaui:
87       type: org.openecomp.resource.vfc.nodes.heat.cmaui
88       properties:
89         flavor:
90           get_input: cmaui_flavor
91         availability_zone:
92           get_input: availability_zone_0
93         image:
94           get_input: cmaui_image
95         name:
96           get_input:
97           - cmaui_names
98           - 0
99     test_net:
100       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
101       properties:
102         shared: true
103         network_name:
104           get_input: jsa_net_name
105     cmaui_port_0:
106       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
107       properties:
108         replacement_policy: AUTO
109         security_groups:
110         - get_input: security_group_name
111         fixed_ips:
112         - ip_address:
113             get_input:
114             - cmaui_oam_ips
115             - 0
116         network:
117           get_input: shared_network_id
118       requirements:
119       - link:
120           capability: tosca.capabilities.network.Linkable
121           node: test_net
122           relationship: tosca.relationships.network.LinksTo
123       - binding:
124           capability: tosca.capabilities.network.Bindable
125           node: server_cmaui
126           relationship: tosca.relationships.network.BindsTo
127   groups:
128     addOn:
129       type: org.openecomp.groups.heat.HeatStack
130       properties:
131         heat_file: ../Artifacts/addOn.yml
132         description: cmaui server template for vMMSC
133       members:
134       - server_cmaui
135       - cmaui_port_0
136     main:
137       type: org.openecomp.groups.heat.HeatStack
138       properties:
139         heat_file: ../Artifacts/main.yml
140         description: |
141           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
142       members:
143       - test_net