blob: 03245b80853324c952056b88d87bcdd48c36350d [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 Scandolo10f7ba82018-05-16 14:15:36 -070024 - custom_types/oltdevice.yaml
Matteo Scandolo6ac82dc2018-04-05 13:44:34 -070025 - custom_types/ponport.yaml
Matteo Scandolo10f7ba82018-05-16 14:15:36 -070026 - custom_types/rcordsubscriber.yaml
27 - custom_types/serviceinstancelink.yaml
Matteo Scandolo55bb0962017-12-20 16:06:19 -080028 - custom_types/site.yaml
29 - custom_types/slice.yaml
30 - custom_types/user.yaml
31 - custom_types/voltservice.yaml
Zack Williams682450e2016-11-19 09:04:41 -070032
33topology_template:
34 node_templates:
35
Matteo Scandolo3b4c3b72018-03-02 13:20:13 -080036 # site, fully created in deployment.yaml
Zack Williams682450e2016-11-19 09:04:41 -070037 {{ site_name }}:
38 type: tosca.nodes.Site
39 properties:
Matteo Scandolo55bb0962017-12-20 16:06:19 -080040 name: {{ site_name }}
41 must-exist: true
Zack Williams682450e2016-11-19 09:04:41 -070042
Matteo Scandolo3b4c3b72018-03-02 13:20:13 -080043 # vsg slice, volt service, fully created in cord-services.yaml
Zack Williams682450e2016-11-19 09:04:41 -070044 {{ site_name }}_vsg:
45 type: tosca.nodes.Slice
46 properties:
Matteo Scandolo55bb0962017-12-20 16:06:19 -080047 name: {{ site_name }}_vsg
48 must-exist: true
Zack Williams682450e2016-11-19 09:04:41 -070049
50 service#volt:
51 type: tosca.nodes.VOLTService
52 properties:
Matteo Scandolo55bb0962017-12-20 16:06:19 -080053 name: volt
54 must-exist: true
Zack Williams682450e2016-11-19 09:04:41 -070055
Matteo Scandolo3b4c3b72018-03-02 13:20:13 -080056 # Setup an OLT Device
Matteo Scandolo539bb282018-04-06 15:58:27 -070057 olt_device:
Matteo Scandolo6ac82dc2018-04-05 13:44:34 -070058 type: tosca.nodes.OLTDevice
Matteo Scandolo3b4c3b72018-03-02 13:20:13 -080059 properties:
Matteo Scandolob7bb8ce2018-04-06 10:08:29 -070060 name: volt-1
Matteo Scandolo3b4c3b72018-03-02 13:20:13 -080061 host: 8.8.8.8
62 port: 2194
Scott Bakera5508162018-04-16 08:31:43 -070063 device_type: simulated_olt
Matteo Scandolo3b4c3b72018-03-02 13:20:13 -080064 requirements:
65 - volt_service:
66 node: service#volt
67 relationship: tosca.relationships.BelongsToOne
68
Matteo Scandolo539bb282018-04-06 15:58:27 -070069 pon_port:
Matteo Scandolo6ac82dc2018-04-05 13:44:34 -070070 type: tosca.nodes.PONPort
Matteo Scandolo3b4c3b72018-03-02 13:20:13 -080071 properties:
Matteo Scandolob7bb8ce2018-04-06 10:08:29 -070072 name: volt-port-1
Matteo Scandolo3b4c3b72018-03-02 13:20:13 -080073 s_tag: 222
Scott Baker50877692018-05-01 20:47:03 -070074 port_id: "7"
Matteo Scandolo3b4c3b72018-03-02 13:20:13 -080075 requirements:
Matteo Scandolo539bb282018-04-06 15:58:27 -070076 - olt_device:
77 node: olt_device
Matteo Scandolo3b4c3b72018-03-02 13:20:13 -080078 relationship: tosca.relationships.BelongsToOne
Zack Williams682450e2016-11-19 09:04:41 -070079
Matteo Scandolo02984a62018-05-18 16:34:26 -070080 onu:
81 type: tosca.nodes.ONUDevice
82 properties:
83 serial_number: BRCM1234
84 vendor: Broadcom
85 device_type: broadcom_onu
86 requirements:
87 - pon_port:
88 node: pon_port
89 relationship: tosca.relationships.BelongsToOne
90
Zack Williams682450e2016-11-19 09:04:41 -070091 # A subscriber
Matteo Scandolo55bb0962017-12-20 16:06:19 -080092 my_house:
Matteo Scandolo10f7ba82018-05-16 14:15:36 -070093 type: tosca.nodes.RCORDSubscriber
Zack Williams682450e2016-11-19 09:04:41 -070094 properties:
Matteo Scandolo55bb0962017-12-20 16:06:19 -080095 name: My House
96 service_specific_id: "123"
Zack Williams682450e2016-11-19 09:04:41 -070097 firewall_enable: false
98 cdn_enable: false
99 url_filter_enable: false
100 url_filter_level: R
Matteo Scandolo7b1f3082018-02-28 14:37:47 -0800101 c_tag: 111
Matteo Scandolo02984a62018-05-18 16:34:26 -0700102 onu_device: BRCM1234
Zack Williams682450e2016-11-19 09:04:41 -0700103
Matteo Scandolo10f7ba82018-05-16 14:15:36 -0700104
Matteo Scandolo7b1f3082018-02-28 14:37:47 -0800105 # TODO needs to be moved to a new model (now they are JSON encoded)
Matteo Scandolo55bb0962017-12-20 16:06:19 -0800106 # Mom's PC:
107 # type: tosca.nodes.CORDUser
108 # properties:
109 # mac: 01:02:03:04:05:06
110 # level: PG_13
111 # requirements:
112 # - household:
113 # node: My House
114 # relationship: tosca.relationships.SubscriberDevice
Zack Williams682450e2016-11-19 09:04:41 -0700115
Matteo Scandolo55bb0962017-12-20 16:06:19 -0800116 # Dad's PC:
117 # type: tosca.nodes.CORDUser
118 # properties:
119 # mac: 90:E2:BA:82:F9:75
120 # level: PG_13
121 # requirements:
122 # - household:
123 # node: My House
124 # relationship: tosca.relationships.SubscriberDevice
Zack Williams682450e2016-11-19 09:04:41 -0700125
Matteo Scandolo55bb0962017-12-20 16:06:19 -0800126 # Jack's Laptop:
127 # type: tosca.nodes.CORDUser
128 # properties:
129 # mac: 68:5B:35:9D:91:D5
130 # level: PG_13
131 # requirements:
132 # - household:
133 # node: My House
134 # relationship: tosca.relationships.SubscriberDevice
Zack Williams682450e2016-11-19 09:04:41 -0700135
Matteo Scandolo55bb0962017-12-20 16:06:19 -0800136 # Jill's Laptop:
137 # type: tosca.nodes.CORDUser
138 # properties:
139 # mac: 34:36:3B:C9:B6:A6
140 # level: PG_13
141 # requirements:
142 # - household:
143 # node: My House
144 # relationship: tosca.relationships.SubscriberDevice