blob: f7eb1ed37cce975f6b3210a0d9a6bedb6ed4a537 [file] [log] [blame]
Matteo Scandolo3896c472017-08-01 13:31:42 -07001
2{#
3Copyright 2017-present Open Networking Foundation
4
5Licensed under the Apache License, Version 2.0 (the "License");
6you may not use this file except in compliance with the License.
7You may obtain a copy of the License at
8
9http://www.apache.org/licenses/LICENSE-2.0
10
11Unless required by applicable law or agreed to in writing, software
12distributed under the License is distributed on an "AS IS" BASIS,
13WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14See the License for the specific language governing permissions and
15limitations under the License.
16#}
17
18
Andrea Campanellabd56e782017-02-23 15:43:21 +010019tosca_definitions_version: tosca_simple_yaml_1_0
20
21description: Creates a CORD test subscriber, created by platform-install
22
23imports:
24 - custom_types/xos.yaml
25 - custom_types/vee.yaml
26 - custom_types/veg.yaml
27 - custom_types/vnodlocal.yaml
28
29topology_template:
30 node_templates:
31
32# site, fully created in deployment.yaml
33 {{ site_name }}:
34 type: tosca.nodes.Site
35 properties:
36 no-delete: true
37 no-create: true
38 no-update: true
39# vsg slice, volt service, fully created in cord-services.yaml
40 {{ site_name }}_veg:
41 type: tosca.nodes.Slice
42 properties:
43 no-delete: true
44 no-create: true
45 no-update: true
46
47 service#vee:
48 type: tosca.nodes.VEEService
49 properties:
50 no-delete: true
51 no-create: true
52 no-update: true
53
54 service#vrouter:
55 type: tosca.nodes.VRouterService
56 properties:
57 no-delete: true
58 no-create: true
59 no-update: true
60
61 service#veg:
62 type: tosca.nodes.VEGService
63 requirements:
64 properties:
65 no-delete: true
66 no-create: true
67 no-update: true
68
69 service#vnodlocal:
70 type: tosca.nodes.VNodLocalService
71 properties:
72 no-delete: true
73 no-create: true
74 no-update: true
75 requirements:
76
77# Test subscriber
78
79 # Let's add a user who can be administrator of the household
80 johndoe@myhouse.com:
81 type: tosca.nodes.User
82 properties:
83 password: letmein
84 firstname: john
85 lastname: doe
86 requirements:
87 - site:
88 node: {{ site_name }}
89 relationship: tosca.relationships.MemberOfSite
90 - dependency:
91 node: {{ site_name }}_veg
92 relationship: tosca.relationships.DependsOn
93
94 # A subscriber
95 My Enterprise:
96 type: tosca.nodes.Subscriber
97 properties:
98 requirements:
99
100 My vEG:
101 type: tosca.nodes.Tenant
102 properties:
103 service_specific_id: 123
104 requirements:
105 - provider_service:
106 node: service#vrouter
107 relationship: tosca.relationships.MemberOfService
108 - subscriber_tenant:
109 node: service#vrouter
110 relationship: tosca.relationships.BelongsToTenant
111
112 My vEE:
113 type: tosca.nodes.Tenant
114 properties:
115 service_specific_id: 123
116 requirements:
117 - provider_service:
118 node: service#veg
119 relationship: tosca.relationships.MemberOfService
120 node: service#vnodlocal
121 relationship: tosca.relationships.MemberOfService
122 - subscriber_tenant:
123 node: service#vee
124 relationship: tosca.relationships.BelongsToTenant
125 node: service#vnodlocal
126 relationship: tosca.relationships.BelongsToTenant
127 - subscriber:
128 node: My Enterprise
129 relationship: tosca.relationships.BelongsToSubscriber
130 - dependency:
131 node: {{ site_name }}_veg
132 relationship: tosca.relationships.DependsOn