| Scott Baker | bb7d64a | 2015-12-09 22:55:47 -0800 | [diff] [blame] | 1 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 2 | |
| 3 | description: Two services "service_one" and "service_two" with a tenancy relationship. |
| 4 | |
| 5 | imports: |
| 6 | - custom_types/xos.yaml |
| 7 | |
| 8 | topology_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 Baker | ee1b950 | 2015-12-10 15:30:37 -0800 | [diff] [blame] | 28 | properties: |
| 29 | kind: helloworldservice_complete |
| 30 | view_url: /admin/helloworldservice_complete/helloworldservicecomplete/$id$/ |
| Scott Baker | bb7d64a | 2015-12-09 22:55:47 -0800 | [diff] [blame] | 31 | |
| Scott Baker | eeb6252 | 2015-12-10 23:04:44 -0800 | [diff] [blame] | 32 | tenant_helloworld: |
| 33 | type: tosca.nodes.Tenant |
| 34 | properties: |
| 35 | kind: helloworldservice_complete |
| 36 | service_specific_attribute: "{\"display_message\": \"Hello World from Tosca\"}" |
| Scott Baker | a894f18 | 2015-12-10 23:24:50 -0800 | [diff] [blame] | 37 | model: helloworldservice_complete.models.HelloWorldTenantComplete |
| Scott Baker | eeb6252 | 2015-12-10 23:04:44 -0800 | [diff] [blame] | 38 | requirements: |
| 39 | - provider_service: |
| 40 | node: service_helloworld |
| 41 | relationship: tosca.relationships.MemberOfService |
| 42 | |
| 43 | |
| Scott Baker | bb7d64a | 2015-12-09 22:55:47 -0800 | [diff] [blame] | 44 | 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 | |