[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 / porttonetconnection / sharedAddOn / 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 node_types:
8   org.openecomp.resource.vfc.nodes.heat.cmaui:
9     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
10 topology_template:
11   inputs:
12     cmaui_names:
13       hidden: false
14       immutable: false
15       type: list
16       description: CMAUI1, CMAUI2 server names
17       entry_schema:
18         type: string
19     p1:
20       hidden: false
21       immutable: false
22       type: string
23       description: UID of OAM network
24     cmaui_image:
25       hidden: false
26       immutable: false
27       type: string
28       description: Image for CMAUI server
29     cmaui_flavor:
30       hidden: false
31       immutable: false
32       type: string
33       description: Flavor for CMAUI server
34     security_group_name:
35       hidden: false
36       immutable: false
37       type: list
38       description: CMAUI1, CMAUI2 server names
39       entry_schema:
40         type: string
41     availability_zone_0:
42       label: availabilityzone name
43       hidden: false
44       immutable: false
45       type: string
46       description: availabilityzone name
47     cmaui_oam_ips:
48       hidden: false
49       immutable: false
50       type: string
51     shared_network_id:
52       hidden: false
53       immutable: false
54       type: string
55       description: Flavor for CMAUI server
56     jsa_net_name:
57       hidden: false
58       immutable: false
59       type: string
60       description: network name of jsa log network
61   node_templates:
62     server_cmaui:
63       type: org.openecomp.resource.vfc.nodes.heat.cmaui
64       properties:
65         flavor:
66           get_input: cmaui_flavor
67         availability_zone:
68           get_input: availability_zone_0
69         image:
70           get_input: cmaui_image
71         name:
72           get_input:
73           - cmaui_names
74           - 0
75     test_net:
76       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
77       properties:
78         shared: true
79         network_name:
80           get_input: jsa_net_name
81     cmaui_port_0:
82       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
83       properties:
84         replacement_policy: AUTO
85         ip_requirements:
86         - ip_version: 4
87           ip_count_required:
88             is_required: true
89           floating_ip_count_required:
90             is_required: false
91         security_groups:
92         - get_input: security_group_name
93         fixed_ips:
94         - ip_address:
95             get_input:
96             - cmaui_oam_ips
97             - 0
98         mac_requirements:
99           mac_count_required:
100             is_required: false
101         network:
102           get_input: shared_network_id
103       requirements:
104       - link:
105           capability: tosca.capabilities.network.Linkable
106           node: test_net
107           relationship: tosca.relationships.network.LinksTo
108       - binding:
109           capability: tosca.capabilities.network.Bindable
110           node: server_cmaui
111           relationship: tosca.relationships.network.BindsTo
112   groups:
113     main_group:
114       type: org.openecomp.groups.heat.HeatStack
115       properties:
116         heat_file: ../Artifacts/main.yml
117         description: |
118           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
119       members:
120       - test_net
121     addOn_group:
122       type: org.openecomp.groups.heat.HeatStack
123       properties:
124         heat_file: ../Artifacts/addOn.yml
125         description: cmaui server template for vMMSC
126       members:
127       - server_cmaui
128       - cmaui_port_0