blob: c72aa3d08a17334ecb4da1c4b8e5cc5a58f8071b [file] [log] [blame]
Scott Bakerbb7d64a2015-12-09 22:55:47 -08001tosca_definitions_version: tosca_simple_yaml_1_0
2
3description: Two services "service_one" and "service_two" with a tenancy relationship.
4
5imports:
6 - custom_types/xos.yaml
7
8topology_template:
9 node_templates:
10
11 Private-Indirect:
12 type: tosca.nodes.NetworkTemplate
13 properties:
14 access: indirect
15
16 mysite:
17 type: tosca.nodes.Site
18
19 service_vcpe:
20 type: tosca.nodes.Service
21 requirements:
22 - helloworld_tenant:
23 node: service_helloworld
24 relationship: tosca.relationships.TenantOfService
25
26 service_helloworld:
27 type: tosca.nodes.Service
Scott Bakeree1b9502015-12-10 15:30:37 -080028 properties:
29 kind: helloworldservice_complete
30 view_url: /admin/helloworldservice_complete/helloworldservicecomplete/$id$/
Scott Bakerbb7d64a2015-12-09 22:55:47 -080031
Scott Bakereeb62522015-12-10 23:04:44 -080032 tenant_helloworld:
33 type: tosca.nodes.Tenant
34 properties:
35 kind: helloworldservice_complete
36 service_specific_attribute: "{\"display_message\": \"Hello World from Tosca\"}"
Scott Bakera894f182015-12-10 23:24:50 -080037 model: helloworldservice_complete.models.HelloWorldTenantComplete
Scott Bakereeb62522015-12-10 23:04:44 -080038 requirements:
39 - provider_service:
40 node: service_helloworld
41 relationship: tosca.relationships.MemberOfService
42
43
Scott Bakerbb7d64a2015-12-09 22:55:47 -080044 mysite_helloworld:
45 type: tosca.nodes.Slice
46 requirements:
47 - service:
48 node: service_helloworld
49 relationship: tosca.relationships.MemberOfService
50 - site:
51 node: mysite
52 relationship: tosca.relationships.MemberOfSite
53
54 helloworld_access:
55 type: tosca.nodes.network.Network
56 properties:
57 ip_version: 4
58 requirements:
59 - network_template:
60 node: Private-Indirect
61 relationship: tosca.relationships.UsesNetworkTemplate
62 - owner:
63 node: mysite_helloworld
64 relationship: tosca.relationships.MemberOfSlice
65 - connection:
66 node: mysite_helloworld
67 relationship: tosca.relationships.ConnectsToSlice
68