blob: 1d19cd02c842dc78663d438fd8533583529814e5 [file] [log] [blame]
You Wanga069ccb2018-11-13 13:25:59 -08001# Copyright 2017-present Open Networking Foundation
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
Matteo Scandolo7d843b72019-05-13 17:30:38 -070015# curl -H "xos-username: admin@opencord.org" -H "xos-password: letmein" -X POST --data-binary @onlab-pod1-qa-fabric.yaml http://10.90.0.101:30007/run
You Wanga069ccb2018-11-13 13:25:59 -080016
17tosca_definitions_version: tosca_simple_yaml_1_0
18imports:
19 - custom_types/switch.yaml
20 - custom_types/switchport.yaml
21 - custom_types/portinterface.yaml
22 - custom_types/bngportmapping.yaml
23 - custom_types/attworkflowdriverwhitelistentry.yaml
24 - custom_types/attworkflowdriverservice.yaml
25 - custom_types/serviceinstanceattribute.yaml
26 - custom_types/onosapp.yaml
Matteo Scandoloc84d7242019-06-26 15:58:27 -070027 - custom_types/technologyprofile.yaml
You Wanga069ccb2018-11-13 13:25:59 -080028
29description: Configures the ONF SEBA POD with AT&T workflow
30
31topology_template:
32 node_templates:
33 # Fabric configuration
34 switch#leaf_1:
35 type: tosca.nodes.Switch
36 properties:
37 driver: ofdpa3
38 ipv4Loopback: 192.168.0.201
39 ipv4NodeSid: 17
40 isEdgeRouter: True
41 name: AGG_SWITCH
42 ofId: of:0000000000000001
43 routerMac: 00:00:02:01:06:01
44
45 # Setup the OLT switch port
46 port#olt_port:
47 type: tosca.nodes.SwitchPort
48 properties:
49 portId: 1
50 host_learning: false
51 requirements:
52 - switch:
53 node: switch#leaf_1
54 relationship: tosca.relationships.BelongsToOne
55
56 # Port connected to the BNG
57 port#bng_port:
58 type: tosca.nodes.SwitchPort
59 properties:
60 portId: 31
61 requirements:
62 - switch:
63 node: switch#leaf_1
64 relationship: tosca.relationships.BelongsToOne
65
66 # Setup the fabric switch port where the external
67 # router is connected to
68 bngmapping:
69 type: tosca.nodes.BNGPortMapping
70 properties:
71 s_tag: any
72 switch_port: 31
73
74 # DHCP L2 Relay config
75 onos_app#dhcpl2relay:
76 type: tosca.nodes.ONOSApp
77 properties:
78 name: dhcpl2relay
79 must-exist: true
80
81 dhcpl2relay-config-attr:
82 type: tosca.nodes.ServiceInstanceAttribute
83 properties:
84 name: /onos/v1/network/configuration/apps/org.opencord.dhcpl2relay
85 value: >
86 {
87 "dhcpl2relay" : {
88 "useOltUplinkForServerPktInOut" : false,
89 "dhcpServerConnectPoints" : [ "of:0000000000000001/31" ]
90 }
91 }
92 requirements:
93 - service_instance:
94 node: onos_app#dhcpl2relay
95 relationship: tosca.relationships.BelongsToOne
96
97 # ONU Whitelist
98 service#att:
99 type: tosca.nodes.AttWorkflowDriverService
100 properties:
101 name: att-workflow-driver
102 must-exist: true
103
104 BRCM22222222:
105 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
106 properties:
107 serial_number: BRCM22222222
108 # pon_port_id: 536870912
109 pon_port_id: 12345678
110 device_id: of:000000000a5a0072
111 requirements:
112 - owner:
113 node: service#att
114 relationship: tosca.relationships.BelongsToOne
115
116 ALPHe3d1cfde:
117 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
118 properties:
119 serial_number: ALPHe3d1cfde
120 pon_port_id: 536870912
121 device_id: of:000000000a5a0072
122 requirements:
123 - owner:
124 node: service#att
125 relationship: tosca.relationships.BelongsToOne
126
Matteo Scandolo7d843b72019-05-13 17:30:38 -0700127 ISKT71e80080:
You Wanga069ccb2018-11-13 13:25:59 -0800128 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
129 properties:
Matteo Scandolo7d843b72019-05-13 17:30:38 -0700130 serial_number: ISKT71e80080
You Wanga069ccb2018-11-13 13:25:59 -0800131 pon_port_id: 536870912
132 device_id: of:000000000a5a0072
133 requirements:
134 - owner:
135 node: service#att
136 relationship: tosca.relationships.BelongsToOne
Matteo Scandoloc84d7242019-06-26 15:58:27 -0700137
138 technologyProfile:
139 type: tosca.nodes.TechnologyProfile
140 properties:
141 profile_id: 64
142 technology: xgspon
143 profile_value: >
144 {
145 "name": "4QueueHybridProfileMap1",
146 "profile_type": "XPON",
Matteo Scandolo898343f2019-06-26 16:15:47 -0700147 "version": 1,
148 "num_gem_ports": 4,
Matteo Scandoloc84d7242019-06-26 15:58:27 -0700149 "instance_control": {
150 "onu": "multi-instance",
151 "uni": "single-instance",
152 "max_gem_payload_size": "auto"
153 },
154 "us_scheduler": {
155 "additional_bw": "auto",
156 "direction": "UPSTREAM",
157 "priority": 0,
158 "weight": 0,
159 "q_sched_policy": "hybrid"
160 },
161 "ds_scheduler": {
162 "additional_bw": "auto",
163 "direction": "DOWNSTREAM",
164 "priority": 0,
165 "weight": 0,
166 "q_sched_policy": "hybrid"
167 },
Matteo Scandolo898343f2019-06-26 16:15:47 -0700168 "upstream_gem_port_attribute_list": [
169 {
170 "pbit_map": "0b00000101",
171 "aes_encryption": "True",
172 "scheduling_policy": "WRR",
173 "priority_q": 4,
174 "weight": 25,
175 "discard_policy": "TailDrop",
176 "max_q_size": "auto",
177 "discard_config": {
178 "max_threshold": 0,
179 "min_threshold": 0,
180 "max_probability": 0
181 }
182 },
183 {
184 "pbit_map": "0b00011010",
185 "aes_encryption": "True",
186 "scheduling_policy": "WRR",
187 "priority_q": 3,
188 "weight": 75,
189 "discard_policy": "TailDrop",
190 "max_q_size": "auto",
191 "discard_config": {
192 "min_threshold": 0,
193 "max_threshold": 0,
194 "max_probability": 0
195 }
196 },
197 {
198 "pbit_map": "0b00100000",
199 "aes_encryption": "True",
200 "scheduling_policy": "StrictPriority",
201 "priority_q": 2,
202 "weight": 0,
203 "discard_policy": "TailDrop",
204 "max_q_size": "auto",
205 "discard_config": {
206 "min_threshold": 0,
207 "max_threshold": 0,
208 "max_probability": 0
209 }
210 },
211 {
Matteo Scandoloc84d7242019-06-26 15:58:27 -0700212 "pbit_map": "0b11000000",
213 "aes_encryption": "True",
214 "scheduling_policy": "StrictPriority",
215 "priority_q": 1,
Matteo Scandolo898343f2019-06-26 16:15:47 -0700216 "weight": 25,
Matteo Scandoloc84d7242019-06-26 15:58:27 -0700217 "discard_policy": "TailDrop",
218 "max_q_size": "auto",
219 "discard_config": {
220 "min_threshold": 0,
221 "max_threshold": 0,
222 "max_probability": 0
223 }
224 }
225 ],
Matteo Scandolo898343f2019-06-26 16:15:47 -0700226 "downstream_gem_port_attribute_list": [
227 {
228 "pbit_map": "0b00000101",
229 "aes_encryption": "True",
230 "scheduling_policy": "WRR",
231 "priority_q": 4,
232 "weight": 10,
233 "discard_policy": "TailDrop",
234 "max_q_size": "auto",
235 "discard_config": {
236 "min_threshold": 0,
237 "max_threshold": 0,
238 "max_probability": 0
239 }
240 },
241 {
242 "pbit_map": "0b00011010",
243 "aes_encryption": "True",
244 "scheduling_policy": "WRR",
245 "priority_q": 3,
246 "weight": 90,
247 "discard_policy": "TailDrop",
248 "max_q_size": "auto",
249 "discard_config": {
250 "min_threshold": 0,
251 "max_threshold": 0,
252 "max_probability": 0
253 }
254 },
255 {
256 "pbit_map": "0b00100000",
257 "aes_encryption": "True",
258 "scheduling_policy": "StrictPriority",
259 "priority_q": 2,
260 "weight": 0,
261 "discard_policy": "TailDrop",
262 "max_q_size": "auto",
263 "discard_config": {
264 "min_threshold": 0,
265 "max_threshold": 0,
266 "max_probability": 0
267 }
268 },
269 {
Matteo Scandoloc84d7242019-06-26 15:58:27 -0700270 "pbit_map": "0b11000000",
271 "aes_encryption": "True",
272 "scheduling_policy": "StrictPriority",
273 "priority_q": 1,
Matteo Scandolo898343f2019-06-26 16:15:47 -0700274 "weight": 25,
Matteo Scandoloc84d7242019-06-26 15:58:27 -0700275 "discard_policy": "TailDrop",
276 "max_q_size": "auto",
277 "discard_config": {
278 "min_threshold": 0,
279 "max_threshold": 0,
280 "max_probability": 0
281 }
282 }
283 ]
284 }