blob: b723c19c6c3b3a5f5bd98064c81f985c27d20378 [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
29 - custom_types/volttenant.yaml
30 - custom_types/serviceinstancelink.yaml
Zack Williams682450e2016-11-19 09:04:41 -070031
32topology_template:
33 node_templates:
34
35# site, fully created in deployment.yaml
36 {{ site_name }}:
37 type: tosca.nodes.Site
38 properties:
Matteo Scandolo55bb0962017-12-20 16:06:19 -080039 name: {{ site_name }}
40 must-exist: true
Zack Williams682450e2016-11-19 09:04:41 -070041
42# vsg slice, volt service, fully created in cord-services.yaml
43 {{ site_name }}_vsg:
44 type: tosca.nodes.Slice
45 properties:
Matteo Scandolo55bb0962017-12-20 16:06:19 -080046 name: {{ site_name }}_vsg
47 must-exist: true
Zack Williams682450e2016-11-19 09:04:41 -070048
49 service#volt:
50 type: tosca.nodes.VOLTService
51 properties:
Matteo Scandolo55bb0962017-12-20 16:06:19 -080052 name: volt
53 must-exist: true
Zack Williams682450e2016-11-19 09:04:41 -070054
55# Test subscriber
56
Zack Williams682450e2016-11-19 09:04:41 -070057 # A subscriber
Matteo Scandolo55bb0962017-12-20 16:06:19 -080058 my_house:
59 type: tosca.nodes.CordSubscriberRoot
Zack Williams682450e2016-11-19 09:04:41 -070060 properties:
Matteo Scandolo55bb0962017-12-20 16:06:19 -080061 name: My House
62 service_specific_id: "123"
Zack Williams682450e2016-11-19 09:04:41 -070063 firewall_enable: false
64 cdn_enable: false
65 url_filter_enable: false
66 url_filter_level: R
Matteo Scandolo7b1f3082018-02-28 14:37:47 -080067 s_tag: 222
68 c_tag: 111
Zack Williams682450e2016-11-19 09:04:41 -070069
Matteo Scandolo7b1f3082018-02-28 14:37:47 -080070 # TODO needs to be moved to a new model (now they are JSON encoded)
Matteo Scandolo55bb0962017-12-20 16:06:19 -080071 # Mom's PC:
72 # type: tosca.nodes.CORDUser
73 # properties:
74 # mac: 01:02:03:04:05:06
75 # level: PG_13
76 # requirements:
77 # - household:
78 # node: My House
79 # relationship: tosca.relationships.SubscriberDevice
Zack Williams682450e2016-11-19 09:04:41 -070080
Matteo Scandolo55bb0962017-12-20 16:06:19 -080081 # Dad's PC:
82 # type: tosca.nodes.CORDUser
83 # properties:
84 # mac: 90:E2:BA:82:F9:75
85 # level: PG_13
86 # requirements:
87 # - household:
88 # node: My House
89 # relationship: tosca.relationships.SubscriberDevice
Zack Williams682450e2016-11-19 09:04:41 -070090
Matteo Scandolo55bb0962017-12-20 16:06:19 -080091 # Jack's Laptop:
92 # type: tosca.nodes.CORDUser
93 # properties:
94 # mac: 68:5B:35:9D:91:D5
95 # level: PG_13
96 # requirements:
97 # - household:
98 # node: My House
99 # relationship: tosca.relationships.SubscriberDevice
Zack Williams682450e2016-11-19 09:04:41 -0700100
Matteo Scandolo55bb0962017-12-20 16:06:19 -0800101 # Jill's Laptop:
102 # type: tosca.nodes.CORDUser
103 # properties:
104 # mac: 34:36:3B:C9:B6:A6
105 # level: PG_13
106 # requirements:
107 # - household:
108 # node: My House
109 # relationship: tosca.relationships.SubscriberDevice