Luca Prete | da53c89 | 2018-09-26 16:10:43 -0700 | [diff] [blame] | 1 | # 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 Scandolo | 40ea1b1 | 2018-10-17 13:22:57 -0700 | [diff] [blame] | 15 | # curl -H "xos-username: admin@opencord.org" -H "xos-password: letmein" -X POST --data-binary @bbwf-fabric.yaml http://192.168.100.1:30007/run |
Luca Prete | da53c89 | 2018-09-26 16:10:43 -0700 | [diff] [blame] | 16 | |
| 17 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 18 | imports: |
| 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 |
Matteo Scandolo | 99ad376 | 2018-10-12 13:54:30 -0700 | [diff] [blame] | 25 | - custom_types/serviceinstanceattribute.yaml |
| 26 | - custom_types/onosapp.yaml |
Luca Prete | da53c89 | 2018-09-26 16:10:43 -0700 | [diff] [blame] | 27 | |
Luca Prete | dd1e350 | 2018-10-11 09:44:40 -0700 | [diff] [blame] | 28 | description: Configures the fabric and the whitelist |
Luca Prete | da53c89 | 2018-09-26 16:10:43 -0700 | [diff] [blame] | 29 | |
| 30 | topology_template: |
| 31 | node_templates: |
Luca Prete | 044817f | 2018-10-16 19:02:08 +0200 | [diff] [blame] | 32 | switch#agg_sw: |
Luca Prete | da53c89 | 2018-09-26 16:10:43 -0700 | [diff] [blame] | 33 | type: tosca.nodes.Switch |
| 34 | properties: |
| 35 | driver: ofdpa3 |
| 36 | ipv4Loopback: 192.168.0.201 |
| 37 | ipv4NodeSid: 17 |
| 38 | isEdgeRouter: True |
Luca Prete | 044817f | 2018-10-16 19:02:08 +0200 | [diff] [blame] | 39 | name: AGG SWITCH |
Luca Prete | da53c89 | 2018-09-26 16:10:43 -0700 | [diff] [blame] | 40 | ofId: of:0000000000000001 |
| 41 | routerMac: 00:00:02:01:06:01 |
| 42 | |
| 43 | # Setup the EdgeCore OLT switch port |
| 44 | port#edgecore_olt_port: |
| 45 | type: tosca.nodes.SwitchPort |
| 46 | properties: |
| 47 | portId: 49 |
| 48 | host_learning: false |
| 49 | requirements: |
| 50 | - switch: |
Luca Prete | 044817f | 2018-10-16 19:02:08 +0200 | [diff] [blame] | 51 | node: switch#agg_sw |
Luca Prete | da53c89 | 2018-09-26 16:10:43 -0700 | [diff] [blame] | 52 | relationship: tosca.relationships.BelongsToOne |
| 53 | |
Luca Prete | 0b2227a | 2018-10-17 17:34:36 +0200 | [diff] [blame] | 54 | # Setup the Adtran OLT switch port |
Luca Prete | 031b383 | 2018-10-17 17:16:19 +0200 | [diff] [blame] | 55 | port#adtran_olt_port: |
| 56 | type: tosca.nodes.SwitchPort |
| 57 | properties: |
| 58 | portId: 50 |
| 59 | host_learning: false |
| 60 | requirements: |
| 61 | - switch: |
| 62 | node: switch#agg_sw |
| 63 | relationship: tosca.relationships.BelongsToOne |
Luca Prete | da53c89 | 2018-09-26 16:10:43 -0700 | [diff] [blame] | 64 | |
Luca Prete | 03c0ba4 | 2018-10-17 14:09:24 +0200 | [diff] [blame] | 65 | # Setup the CIG OLT switch port |
| 66 | port#cig_olt_port: |
| 67 | type: tosca.nodes.SwitchPort |
| 68 | properties: |
| 69 | portId: 51 |
| 70 | host_learning: false |
| 71 | requirements: |
| 72 | - switch: |
| 73 | node: switch#agg_sw |
| 74 | relationship: tosca.relationships.BelongsToOne |
Luca Prete | da53c89 | 2018-09-26 16:10:43 -0700 | [diff] [blame] | 75 | |
Luca Prete | 031b383 | 2018-10-17 17:16:19 +0200 | [diff] [blame] | 76 | # Setup the Iskratel XGS-PON OLT switch port |
| 77 | port#iskratelx_olt_port: |
| 78 | type: tosca.nodes.SwitchPort |
| 79 | properties: |
| 80 | portId: 46 |
| 81 | host_learning: false |
| 82 | requirements: |
| 83 | - switch: |
| 84 | node: switch#agg_sw |
| 85 | relationship: tosca.relationships.BelongsToOne |
Luca Prete | da53c89 | 2018-09-26 16:10:43 -0700 | [diff] [blame] | 86 | |
Luca Prete | 41dfc97 | 2018-10-17 15:50:16 +0200 | [diff] [blame] | 87 | # Setup the Iskratel GPON OLT switch port |
| 88 | port#iskratelg_olt_port: |
| 89 | type: tosca.nodes.SwitchPort |
| 90 | properties: |
| 91 | portId: 47 |
| 92 | host_learning: false |
| 93 | requirements: |
| 94 | - switch: |
| 95 | node: switch#agg_sw |
| 96 | relationship: tosca.relationships.BelongsToOne |
| 97 | |
Luca Prete | da53c89 | 2018-09-26 16:10:43 -0700 | [diff] [blame] | 98 | # Port connected to the BNG |
| 99 | port#bng_port: |
| 100 | type: tosca.nodes.SwitchPort |
| 101 | properties: |
| 102 | portId: 48 |
Luca Prete | da53c89 | 2018-09-26 16:10:43 -0700 | [diff] [blame] | 103 | requirements: |
| 104 | - switch: |
Luca Prete | 044817f | 2018-10-16 19:02:08 +0200 | [diff] [blame] | 105 | node: switch#agg_sw |
Luca Prete | da53c89 | 2018-09-26 16:10:43 -0700 | [diff] [blame] | 106 | relationship: tosca.relationships.BelongsToOne |
| 107 | |
| 108 | # Setup the fabric switch port where the external |
| 109 | # router is connected to |
| 110 | bngmapping: |
| 111 | type: tosca.nodes.BNGPortMapping |
| 112 | properties: |
| 113 | s_tag: any |
| 114 | switch_port: 48 |
| 115 | |
Matteo Scandolo | 99ad376 | 2018-10-12 13:54:30 -0700 | [diff] [blame] | 116 | # DHCP L2 Relay config |
| 117 | onos_app#dhcpl2relay: |
| 118 | type: tosca.nodes.ONOSApp |
| 119 | properties: |
| 120 | name: dhcpl2relay |
| 121 | must-exist: true |
| 122 | |
| 123 | dhcpl2relay-config-attr: |
| 124 | type: tosca.nodes.ServiceInstanceAttribute |
| 125 | properties: |
| 126 | name: /onos/v1/network/configuration/apps/org.opencord.dhcpl2relay |
| 127 | value: > |
| 128 | { |
| 129 | "dhcpl2relay" : { |
| 130 | "useOltUplinkForServerPktInOut" : false, |
Luca Prete | 9e926c0 | 2018-10-15 15:33:31 +0200 | [diff] [blame] | 131 | "dhcpServerConnectPoints" : [ "of:0000000000000001/48" ] |
Matteo Scandolo | 99ad376 | 2018-10-12 13:54:30 -0700 | [diff] [blame] | 132 | } |
| 133 | } |
| 134 | requirements: |
| 135 | - service_instance: |
| 136 | node: onos_app#dhcpl2relay |
| 137 | relationship: tosca.relationships.BelongsToOne |
| 138 | |
Luca Prete | ae19c59 | 2018-10-17 17:56:41 +0200 | [diff] [blame] | 139 | # # OLT app extra config |
| 140 | # onos_app#olt: |
| 141 | # type: tosca.nodes.ONOSApp |
| 142 | # properties: |
| 143 | # name: olt |
| 144 | # must-exist: true |
| 145 | # |
| 146 | # olt-config-attr: |
| 147 | # type: tosca.nodes.ServiceInstanceAttribute |
| 148 | # properties: |
| 149 | # name: /onos/v1/network/configuration/devices |
| 150 | # value: > |
| 151 | # { |
| 152 | # "of:00000024454a6be4" : { |
| 153 | # "basic" : { |
| 154 | # "name" : "ADTRAN OLT", |
| 155 | # "driver" : "voltha" |
| 156 | # } |
| 157 | # } |
| 158 | # } |
| 159 | # requirements: |
| 160 | # - service_instance: |
| 161 | # node: onos_app#olt |
| 162 | # relationship: tosca.relationships.BelongsToOne |
Matteo Scandolo | c75769d | 2018-10-16 10:55:47 -0700 | [diff] [blame] | 163 | |
Luca Prete | da53c89 | 2018-09-26 16:10:43 -0700 | [diff] [blame] | 164 | # ONU Whitelist |
| 165 | service#att: |
| 166 | type: tosca.nodes.AttWorkflowDriverService |
| 167 | properties: |
| 168 | name: att-workflow-driver |
| 169 | must-exist: true |
| 170 | |
Luca Prete | dd1e350 | 2018-10-11 09:44:40 -0700 | [diff] [blame] | 171 | # ONUs connected to EdgeCore OLT |
Luca Prete | ee52923 | 2018-10-16 12:38:31 +0200 | [diff] [blame] | 172 | ALPHe3d1cee9: |
Luca Prete | da53c89 | 2018-09-26 16:10:43 -0700 | [diff] [blame] | 173 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 174 | properties: |
Luca Prete | ee52923 | 2018-10-16 12:38:31 +0200 | [diff] [blame] | 175 | serial_number: ALPHe3d1cee9 |
Matteo Scandolo | 602c010 | 2018-11-01 13:15:32 -0700 | [diff] [blame] | 176 | pon_port_id: 536870913 |
Luca Prete | ee52923 | 2018-10-16 12:38:31 +0200 | [diff] [blame] | 177 | device_id: of:00000000c0a8646f |
Luca Prete | da53c89 | 2018-09-26 16:10:43 -0700 | [diff] [blame] | 178 | requirements: |
| 179 | - owner: |
| 180 | node: service#att |
| 181 | relationship: tosca.relationships.BelongsToOne |
| 182 | |
Matteo Scandolo | 63b6d6c | 2018-10-17 14:59:12 -0700 | [diff] [blame] | 183 | ISKT71e81130: |
| 184 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 185 | properties: |
| 186 | serial_number: ISKT71e81130 |
Matteo Scandolo | 602c010 | 2018-11-01 13:15:32 -0700 | [diff] [blame] | 187 | pon_port_id: 536870913 |
Matteo Scandolo | 63b6d6c | 2018-10-17 14:59:12 -0700 | [diff] [blame] | 188 | device_id: of:00000000c0a8646f |
| 189 | requirements: |
| 190 | - owner: |
| 191 | node: service#att |
| 192 | relationship: tosca.relationships.BelongsToOne |
Luca Prete | dd1e350 | 2018-10-11 09:44:40 -0700 | [diff] [blame] | 193 | |
Luca Prete | 031b383 | 2018-10-17 17:16:19 +0200 | [diff] [blame] | 194 | # ONUs connected to Adtran OLT |
| 195 | ADTN17510028: |
| 196 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 197 | properties: |
| 198 | serial_number: ADTN17510028 |
| 199 | pon_port_id: 5 |
Matteo Scandolo | 10193df | 2018-10-17 18:21:30 -0700 | [diff] [blame] | 200 | device_id: of:00000024454a6be4 |
Luca Prete | 031b383 | 2018-10-17 17:16:19 +0200 | [diff] [blame] | 201 | requirements: |
| 202 | - owner: |
| 203 | node: service#att |
| 204 | relationship: tosca.relationships.BelongsToOne |
Luca Prete | dd1e350 | 2018-10-11 09:44:40 -0700 | [diff] [blame] | 205 | |
Luca Prete | 5aa1b30 | 2018-10-17 11:55:04 +0200 | [diff] [blame] | 206 | # ADTN16180345: |
| 207 | # type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 208 | # properties: |
| 209 | # serial_number: ADTN16180345 |
| 210 | # pon_port_id: 6 |
| 211 | # device_id: of:00000024454A6BE4 |
| 212 | # requirements: |
| 213 | # - owner: |
| 214 | # node: service#att |
| 215 | # relationship: tosca.relationships.BelongsToOne |
Luca Prete | dd1e350 | 2018-10-11 09:44:40 -0700 | [diff] [blame] | 216 | |
Luca Prete | 03c0ba4 | 2018-10-17 14:09:24 +0200 | [diff] [blame] | 217 | # ONUs connected to CIG OLT |
| 218 | CIGG18a00002: |
| 219 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 220 | properties: |
| 221 | serial_number: CIGG18a00002 |
| 222 | pon_port_id: 536870913 |
| 223 | device_id: of:00000000c0a86471 |
| 224 | requirements: |
| 225 | - owner: |
| 226 | node: service#att |
| 227 | relationship: tosca.relationships.BelongsToOne |
Luca Prete | da53c89 | 2018-09-26 16:10:43 -0700 | [diff] [blame] | 228 | |
Luca Prete | 031b383 | 2018-10-17 17:16:19 +0200 | [diff] [blame] | 229 | # # ONUs connected to Iskratel XGS-PON OLT |
| 230 | ISKT71e81070: |
| 231 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 232 | properties: |
| 233 | serial_number: ISKT71e81070 |
| 234 | pon_port_id: 536870912 |
| 235 | device_id: of:00000000c0a86472 |
| 236 | requirements: |
| 237 | - owner: |
| 238 | node: service#att |
| 239 | relationship: tosca.relationships.BelongsToOne |
Luca Prete | da53c89 | 2018-09-26 16:10:43 -0700 | [diff] [blame] | 240 | |
Luca Prete | 5aa1b30 | 2018-10-17 11:55:04 +0200 | [diff] [blame] | 241 | # ISKT71e81071: |
| 242 | # type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 243 | # properties: |
| 244 | # serial_number: ISKT71e81071 |
| 245 | # pon_port_id: 536870912 |
| 246 | # device_id: of:00000000c0a86472 |
| 247 | # requirements: |
| 248 | # - owner: |
| 249 | # node: service#att |
| 250 | # relationship: tosca.relationships.BelongsToOne |
Luca Prete | dd1e350 | 2018-10-11 09:44:40 -0700 | [diff] [blame] | 251 | |
Luca Prete | 41dfc97 | 2018-10-17 15:50:16 +0200 | [diff] [blame] | 252 | # ONUs connected to Iskratel GPON OLT |
| 253 | ISKT45f2c688: |
| 254 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 255 | properties: |
| 256 | serial_number: ISKT45f2c688 |
| 257 | pon_port_id: 536870912 |
| 258 | device_id: of:00000000c0a86473 |
| 259 | requirements: |
| 260 | - owner: |
| 261 | node: service#att |
| 262 | relationship: tosca.relationships.BelongsToOne |
Luca Prete | dd1e350 | 2018-10-11 09:44:40 -0700 | [diff] [blame] | 263 | |
Luca Prete | 5aa1b30 | 2018-10-17 11:55:04 +0200 | [diff] [blame] | 264 | # ISKT45f2bd61: |
| 265 | # type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 266 | # properties: |
| 267 | # serial_number: ISKT45f2bd61 |
| 268 | # pon_port_id: 536870912 |
| 269 | # device_id: of:00000000c0a86473 |
| 270 | # requirements: |
| 271 | # - owner: |
| 272 | # node: service#att |
| 273 | # relationship: tosca.relationships.BelongsToOne |
Luca Prete | dd1e350 | 2018-10-11 09:44:40 -0700 | [diff] [blame] | 274 | |
Luca Prete | 5aa1b30 | 2018-10-17 11:55:04 +0200 | [diff] [blame] | 275 | # ISKT45f2c1e4: |
| 276 | # type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 277 | # properties: |
| 278 | # serial_number: ISKT45f2c1e4 |
| 279 | # pon_port_id: 536870912 |
| 280 | # device_id: of:00000000c0a86473 |
| 281 | # requirements: |
| 282 | # - owner: |
| 283 | # node: service#att |
| 284 | # relationship: tosca.relationships.BelongsToOne |