blob: 7f9499f060d131c6bb651edf289baf00c5b8bc39 [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 Scandolo3b4c3b72018-03-02 13:20:13 -080029 - custom_types/voltdevice.yaml
30 - custom_types/voltdeviceport.yaml
Matteo Scandolo55bb0962017-12-20 16:06:19 -080031 - custom_types/serviceinstancelink.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
57 volt_device:
58 type: tosca.nodes.VOLTDevice
59 properties:
60 name: test-volt-device
61 device_id: volt-1
62 host: 8.8.8.8
63 port: 2194
64 requirements:
65 - volt_service:
66 node: service#volt
67 relationship: tosca.relationships.BelongsToOne
68
69 volt_port:
70 type: tosca.nodes.VOLTDevicePort
71 properties:
72 port_id: volt-port-1
73 s_tag: 222
74 requirements:
75 - volt_device:
76 node: volt_device
77 relationship: tosca.relationships.BelongsToOne
Zack Williams682450e2016-11-19 09:04:41 -070078
Zack Williams682450e2016-11-19 09:04:41 -070079 # A subscriber
Matteo Scandolo55bb0962017-12-20 16:06:19 -080080 my_house:
81 type: tosca.nodes.CordSubscriberRoot
Zack Williams682450e2016-11-19 09:04:41 -070082 properties:
Matteo Scandolo55bb0962017-12-20 16:06:19 -080083 name: My House
84 service_specific_id: "123"
Zack Williams682450e2016-11-19 09:04:41 -070085 firewall_enable: false
86 cdn_enable: false
87 url_filter_enable: false
88 url_filter_level: R
Matteo Scandolo7b1f3082018-02-28 14:37:47 -080089 c_tag: 111
Matteo Scandolo3b4c3b72018-03-02 13:20:13 -080090 olt_device: volt-1
91 olt_port: volt-port-1
Zack Williams682450e2016-11-19 09:04:41 -070092
Matteo Scandolo7b1f3082018-02-28 14:37:47 -080093 # TODO needs to be moved to a new model (now they are JSON encoded)
Matteo Scandolo55bb0962017-12-20 16:06:19 -080094 # Mom's PC:
95 # type: tosca.nodes.CORDUser
96 # properties:
97 # mac: 01:02:03:04:05:06
98 # level: PG_13
99 # requirements:
100 # - household:
101 # node: My House
102 # relationship: tosca.relationships.SubscriberDevice
Zack Williams682450e2016-11-19 09:04:41 -0700103
Matteo Scandolo55bb0962017-12-20 16:06:19 -0800104 # Dad's PC:
105 # type: tosca.nodes.CORDUser
106 # properties:
107 # mac: 90:E2:BA:82:F9:75
108 # level: PG_13
109 # requirements:
110 # - household:
111 # node: My House
112 # relationship: tosca.relationships.SubscriberDevice
Zack Williams682450e2016-11-19 09:04:41 -0700113
Matteo Scandolo55bb0962017-12-20 16:06:19 -0800114 # Jack's Laptop:
115 # type: tosca.nodes.CORDUser
116 # properties:
117 # mac: 68:5B:35:9D:91:D5
118 # level: PG_13
119 # requirements:
120 # - household:
121 # node: My House
122 # relationship: tosca.relationships.SubscriberDevice
Zack Williams682450e2016-11-19 09:04:41 -0700123
Matteo Scandolo55bb0962017-12-20 16:06:19 -0800124 # Jill's Laptop:
125 # type: tosca.nodes.CORDUser
126 # properties:
127 # mac: 34:36:3B:C9:B6:A6
128 # level: PG_13
129 # requirements:
130 # - household:
131 # node: My House
132 # relationship: tosca.relationships.SubscriberDevice