blob: a5c9aeb79f1bac6ad854d465adcde4354edbb3bd [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
83 # A subscriber
84 My Enterprise:
85 type: tosca.nodes.Subscriber
86 properties:
87 requirements:
88
89 My vEG:
90 type: tosca.nodes.Tenant
91 properties:
92 service_specific_id: 123
93 requirements:
94 - provider_service:
95 node: service#vrouter
96 relationship: tosca.relationships.MemberOfService
97 - subscriber_tenant:
98 node: service#vrouter
99 relationship: tosca.relationships.BelongsToTenant
100
101 My vEE:
102 type: tosca.nodes.Tenant
103 properties:
104 service_specific_id: 123
105 requirements:
106 - provider_service:
107 node: service#veg
108 relationship: tosca.relationships.MemberOfService
Andrea Campanellabd56e782017-02-23 15:43:21 +0100109 - subscriber_tenant:
110 node: service#vee
111 relationship: tosca.relationships.BelongsToTenant
Andrea Campanellabd56e782017-02-23 15:43:21 +0100112 - subscriber:
113 node: My Enterprise
114 relationship: tosca.relationships.BelongsToSubscriber
115 - dependency:
116 node: {{ site_name }}_veg
117 relationship: tosca.relationships.DependsOn