blob: 4a6d5f5f365f8fc23d702a304a3f76b8bbc85b7a [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
Zack Williams682450e2016-11-19 09:04:41 -070019tosca_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
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
37# vsg slice, volt service, fully created in cord-services.yaml
38 {{ site_name }}_vsg:
39 type: tosca.nodes.Slice
40 properties:
41 no-delete: true
42 no-create: true
43 no-update: true
44
45 service#volt:
46 type: tosca.nodes.VOLTService
47 properties:
48 no-delete: true
49 no-create: true
50 no-update: true
51
52# Test subscriber
53
54 # Let's add a user who can be administrator of the household
55 johndoe@myhouse.com:
56 type: tosca.nodes.User
57 properties:
58 password: letmein
59 firstname: john
60 lastname: doe
61 requirements:
62 - site:
63 node: {{ site_name }}
64 relationship: tosca.relationships.MemberOfSite
65 - dependency:
66 node: {{ site_name }}_vsg
67 relationship: tosca.relationships.DependsOn
68
69 # A subscriber
70 My House:
71 type: tosca.nodes.CORDSubscriber
72 properties:
73 service_specific_id: 123
74 firewall_enable: false
75 cdn_enable: false
76 url_filter_enable: false
77 url_filter_level: R
78 requirements:
79 - house_admin:
80 node: johndoe@myhouse.com
81 relationship: tosca.relationships.AdminPrivilege
82
83 Mom's PC:
84 type: tosca.nodes.CORDUser
85 properties:
86 mac: 01:02:03:04:05:06
87 level: PG_13
88 requirements:
89 - household:
90 node: My House
91 relationship: tosca.relationships.SubscriberDevice
92
93 Dad's PC:
94 type: tosca.nodes.CORDUser
95 properties:
96 mac: 90:E2:BA:82:F9:75
97 level: PG_13
98 requirements:
99 - household:
100 node: My House
101 relationship: tosca.relationships.SubscriberDevice
102
103 Jack's Laptop:
104 type: tosca.nodes.CORDUser
105 properties:
106 mac: 68:5B:35:9D:91:D5
107 level: PG_13
108 requirements:
109 - household:
110 node: My House
111 relationship: tosca.relationships.SubscriberDevice
112
113 Jill's Laptop:
114 type: tosca.nodes.CORDUser
115 properties:
116 mac: 34:36:3B:C9:B6:A6
117 level: PG_13
118 requirements:
119 - household:
120 node: My House
121 relationship: tosca.relationships.SubscriberDevice
122
123 My Volt:
124 type: tosca.nodes.VOLTTenant
125 properties:
126 service_specific_id: 123
127 s_tag: 222
128 c_tag: 111
129 requirements:
130 - provider_service:
131 node: service#volt
132 relationship: tosca.relationships.MemberOfService
133 - subscriber:
134 node: My House
135 relationship: tosca.relationships.BelongsToSubscriber
136 - dependency:
137 node: {{ site_name }}_vsg
138 relationship: tosca.relationships.DependsOn
139