blob: e0c7ffb0ce708159c35d7e07b628279a6f6540b7 [file] [log] [blame]
Matteo Scandolo3896c472017-08-01 13:31:42 -07001{#
2Copyright 2017-present Open Networking Foundation
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15#}
16
Andrea Campanellabd56e782017-02-23 15:43:21 +010017tosca_definitions_version: tosca_simple_yaml_1_0
18
19description: Creates a CORD test subscriber, created by platform-install
20
21imports:
22 - custom_types/xos.yaml
23 - custom_types/vee.yaml
24 - custom_types/veg.yaml
Andrea Campanellabd56e782017-02-23 15:43:21 +010025
26topology_template:
27 node_templates:
28
29# site, fully created in deployment.yaml
30 {{ site_name }}:
31 type: tosca.nodes.Site
32 properties:
33 no-delete: true
34 no-create: true
35 no-update: true
36# vsg slice, volt service, fully created in cord-services.yaml
37 {{ site_name }}_veg:
38 type: tosca.nodes.Slice
39 properties:
40 no-delete: true
41 no-create: true
42 no-update: true
43
44 service#vee:
45 type: tosca.nodes.VEEService
46 properties:
47 no-delete: true
48 no-create: true
49 no-update: true
50
51 service#vrouter:
52 type: tosca.nodes.VRouterService
53 properties:
54 no-delete: true
55 no-create: true
56 no-update: true
57
58 service#veg:
59 type: tosca.nodes.VEGService
60 requirements:
61 properties:
62 no-delete: true
63 no-create: true
64 no-update: true
65
Andrea Campanellabd56e782017-02-23 15:43:21 +010066# Test subscriber
67
68 # Let's add a user who can be administrator of the household
69 johndoe@myhouse.com:
70 type: tosca.nodes.User
71 properties:
72 password: letmein
73 firstname: john
74 lastname: doe
75 requirements:
76 - site:
77 node: {{ site_name }}
78 relationship: tosca.relationships.MemberOfSite
79 - dependency:
80 node: {{ site_name }}_veg
81 relationship: tosca.relationships.DependsOn
82
Scott Baker1862ba82017-10-12 08:57:55 -070083 # Subscribers require a service in 4.0, so make sure we have an ecordlocal service.
84 # FIXME: Move to a different tosca recipe?
85 service#ecordlocal:
86 type: tosca.nodes.Service
87
Andrea Campanellabd56e782017-02-23 15:43:21 +010088 # A subscriber
89 My Enterprise:
Andrea Campanellabd56e782017-02-23 15:43:21 +010090 type: tosca.nodes.Tenant
91 properties:
92 service_specific_id: 123
93 requirements:
94 - provider_service:
Scott Baker1862ba82017-10-12 08:57:55 -070095 node: service#ecordlocal
Andrea Campanellabd56e782017-02-23 15:43:21 +010096 relationship: tosca.relationships.MemberOfService
Andrea Campanellabd56e782017-02-23 15:43:21 +010097
Scott Baker1862ba82017-10-12 08:57:55 -070098 My vEG:
Scott Bakerd25f0e92017-10-13 14:27:37 -070099 type: tosca.nodes.VEGTenant
Andrea Campanellabd56e782017-02-23 15:43:21 +0100100 properties:
101 service_specific_id: 123
102 requirements:
103 - provider_service:
104 node: service#veg
105 relationship: tosca.relationships.MemberOfService
Andrea Campanellabd56e782017-02-23 15:43:21 +0100106 - subscriber_tenant:
Scott Baker1862ba82017-10-12 08:57:55 -0700107 node: My vEE
Andrea Campanellabd56e782017-02-23 15:43:21 +0100108 relationship: tosca.relationships.BelongsToTenant
Scott Baker1862ba82017-10-12 08:57:55 -0700109
110 My vEE:
Scott Bakerd25f0e92017-10-13 14:27:37 -0700111 type: tosca.nodes.VEEServiceInstance
Scott Baker1862ba82017-10-12 08:57:55 -0700112 properties:
113 service_specific_id: 123
Scott Bakerd25f0e92017-10-13 14:27:37 -0700114 s_tag: 123
115 c_tag: 123
Scott Baker1862ba82017-10-12 08:57:55 -0700116 requirements:
117 - provider_service:
118 node: service#vee
119 relationship: tosca.relationships.MemberOfService
Andrea Campanellabd56e782017-02-23 15:43:21 +0100120 - subscriber:
121 node: My Enterprise
122 relationship: tosca.relationships.BelongsToSubscriber
Scott Baker1862ba82017-10-12 08:57:55 -0700123# - dependency:
124# node: {{ site_name }}_veg
125# relationship: tosca.relationships.DependsOn