blob: b9fe2fec30ab274b1d360951e0b028e840fa9885 [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:
Matteo Scandolo55bb0962017-12-20 16:06:19 -080024 - custom_types/cordsubscriberroot.yaml
25 - custom_types/site.yaml
26 - custom_types/slice.yaml
27 - custom_types/user.yaml
28 - custom_types/voltservice.yaml
Matteo Scandolo55bb0962017-12-20 16:06:19 -080029 - custom_types/serviceinstancelink.yaml
Zack Williams682450e2016-11-19 09:04:41 -070030
31topology_template:
32 node_templates:
33
34# site, fully created in deployment.yaml
35 {{ site_name }}:
36 type: tosca.nodes.Site
37 properties:
Matteo Scandolo55bb0962017-12-20 16:06:19 -080038 name: {{ site_name }}
39 must-exist: true
Zack Williams682450e2016-11-19 09:04:41 -070040
41# vsg slice, volt service, fully created in cord-services.yaml
42 {{ site_name }}_vsg:
43 type: tosca.nodes.Slice
44 properties:
Matteo Scandolo55bb0962017-12-20 16:06:19 -080045 name: {{ site_name }}_vsg
46 must-exist: true
Zack Williams682450e2016-11-19 09:04:41 -070047
48 service#volt:
49 type: tosca.nodes.VOLTService
50 properties:
Matteo Scandolo55bb0962017-12-20 16:06:19 -080051 name: volt
52 must-exist: true
Zack Williams682450e2016-11-19 09:04:41 -070053
54# Test subscriber
55
Zack Williams682450e2016-11-19 09:04:41 -070056 # A subscriber
Matteo Scandolo55bb0962017-12-20 16:06:19 -080057 my_house:
58 type: tosca.nodes.CordSubscriberRoot
Zack Williams682450e2016-11-19 09:04:41 -070059 properties:
Matteo Scandolo55bb0962017-12-20 16:06:19 -080060 name: My House
61 service_specific_id: "123"
Zack Williams682450e2016-11-19 09:04:41 -070062 firewall_enable: false
63 cdn_enable: false
64 url_filter_enable: false
65 url_filter_level: R
Matteo Scandolo7b1f3082018-02-28 14:37:47 -080066 s_tag: 222
67 c_tag: 111
Zack Williams682450e2016-11-19 09:04:41 -070068
Matteo Scandolo7b1f3082018-02-28 14:37:47 -080069 # TODO needs to be moved to a new model (now they are JSON encoded)
Matteo Scandolo55bb0962017-12-20 16:06:19 -080070 # Mom's PC:
71 # type: tosca.nodes.CORDUser
72 # properties:
73 # mac: 01:02:03:04:05:06
74 # level: PG_13
75 # requirements:
76 # - household:
77 # node: My House
78 # relationship: tosca.relationships.SubscriberDevice
Zack Williams682450e2016-11-19 09:04:41 -070079
Matteo Scandolo55bb0962017-12-20 16:06:19 -080080 # Dad's PC:
81 # type: tosca.nodes.CORDUser
82 # properties:
83 # mac: 90:E2:BA:82:F9:75
84 # level: PG_13
85 # requirements:
86 # - household:
87 # node: My House
88 # relationship: tosca.relationships.SubscriberDevice
Zack Williams682450e2016-11-19 09:04:41 -070089
Matteo Scandolo55bb0962017-12-20 16:06:19 -080090 # Jack's Laptop:
91 # type: tosca.nodes.CORDUser
92 # properties:
93 # mac: 68:5B:35:9D:91:D5
94 # level: PG_13
95 # requirements:
96 # - household:
97 # node: My House
98 # relationship: tosca.relationships.SubscriberDevice
Zack Williams682450e2016-11-19 09:04:41 -070099
Matteo Scandolo55bb0962017-12-20 16:06:19 -0800100 # Jill's Laptop:
101 # type: tosca.nodes.CORDUser
102 # properties:
103 # mac: 34:36:3B:C9:B6:A6
104 # level: PG_13
105 # requirements:
106 # - household:
107 # node: My House
108 # relationship: tosca.relationships.SubscriberDevice