[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / openecomp-be / lib / openecomp-tosca-lib / src / test / resources / mock / analyzerService / toscasubstitution / MainServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Main
4 imports:
5 - NeutronPortGlobalTypes:
6     file: NeutronPortGlobalTypesServiceTemplate.yaml
7 - NeutronNetGlobalTypes:
8     file: NeutronNetGlobalTypesServiceTemplate.yaml
9 - CommonGlobalTypes:
10     file: CommonGlobalTypesServiceTemplate.yaml
11 - CinderVolumeGlobalTypes:
12     file: CinderVolumeGlobalTypesServiceTemplate.yaml
13 - ContrailNetworkRuleGlobalType:
14     file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml
15 - NeutronSecurityRulesGlobalTypes:
16     file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml
17 - NovaServerGlobalTypes:
18     file: NovaServerGlobalTypesServiceTemplate.yaml
19 - ContrailVirtualNetworkGlobalType:
20     file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml
21 - AbstractSubstituteGlobalTypes:
22     file: AbstractSubstituteGlobalTypesServiceTemplate.yaml
23 topology_template:
24   inputs:
25     shared_network_id:
26       hidden: false
27       immutable: false
28       type: string
29       description: network name of jsa log network
30     jsa_net_name:
31       hidden: false
32       immutable: false
33       type: string
34       description: network name of jsa log network
35   node_templates:
36     test_net:
37       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
38       properties:
39         shared: true
40         network_name:
41           get_input: jsa_net_name
42     test_nested:
43       type: org.openecomp.resource.abstract.nodes.heat.nested
44       directives:
45       - substitutable
46       properties:
47         p1:
48           get_input: shared_network_id
49         service_template_filter:
50           substitute_service_template: nestedServiceTemplate.yaml
51       requirements:
52       - link_cmaui_port_0:
53           capability: tosca.capabilities.network.Linkable
54           node: test_net
55           relationship: tosca.relationships.network.LinksTo
56   groups:
57     addOn:
58       type: org.openecomp.groups.heat.HeatStack
59       properties:
60         heat_file: ../Artifacts/addOn.yml
61         description: |
62           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
63       members:
64       - test_nested
65     main:
66       type: org.openecomp.groups.heat.HeatStack
67       properties:
68         heat_file: ../Artifacts/main.yml
69         description: |
70           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
71       members:
72       - test_net
73   outputs:
74     shared_network_id:
75       value: test_net