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 | |
| 15 | # curl -H "xos-username: admin@opencord.org" -H "xos-password: letmein" -X POST --data-binary @onlab-pod1-fabric.yaml http://10.90.0.101:30007/run |
| 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 | da53c89 | 2018-09-26 16:10:43 -0700 | [diff] [blame] | 32 | switch#leaf_1: |
| 33 | type: tosca.nodes.Switch |
| 34 | properties: |
| 35 | driver: ofdpa3 |
| 36 | ipv4Loopback: 192.168.0.201 |
| 37 | ipv4NodeSid: 17 |
| 38 | isEdgeRouter: True |
| 39 | name: leaf_1 |
| 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: |
| 51 | node: switch#leaf_1 |
| 52 | relationship: tosca.relationships.BelongsToOne |
| 53 | |
| 54 | # Setup the Adtran OLT switch port |
| 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#leaf_1 |
| 63 | relationship: tosca.relationships.BelongsToOne |
| 64 | |
| 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#leaf_1 |
| 74 | relationship: tosca.relationships.BelongsToOne |
| 75 | |
| 76 | # Setup the Iskratel XGS-PON OLT switch port |
| 77 | port#iskratelx_olt_port: |
| 78 | type: tosca.nodes.SwitchPort |
| 79 | properties: |
Luca Prete | fa3de9a | 2018-10-15 12:26:10 +0200 | [diff] [blame] | 80 | portId: 46 |
Luca Prete | da53c89 | 2018-09-26 16:10:43 -0700 | [diff] [blame] | 81 | host_learning: false |
| 82 | requirements: |
| 83 | - switch: |
| 84 | node: switch#leaf_1 |
| 85 | relationship: tosca.relationships.BelongsToOne |
| 86 | |
| 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#leaf_1 |
| 96 | relationship: tosca.relationships.BelongsToOne |
| 97 | |
| 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: |
| 105 | node: switch#leaf_1 |
| 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 | da53c89 | 2018-09-26 16:10:43 -0700 | [diff] [blame] | 139 | # ONU Whitelist |
| 140 | service#att: |
| 141 | type: tosca.nodes.AttWorkflowDriverService |
| 142 | properties: |
| 143 | name: att-workflow-driver |
| 144 | must-exist: true |
| 145 | |
Luca Prete | dd1e350 | 2018-10-11 09:44:40 -0700 | [diff] [blame] | 146 | # ONUs connected to EdgeCore OLT |
| 147 | ALPHE3D1CEE9: |
Luca Prete | da53c89 | 2018-09-26 16:10:43 -0700 | [diff] [blame] | 148 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 149 | properties: |
Luca Prete | dd1e350 | 2018-10-11 09:44:40 -0700 | [diff] [blame] | 150 | serial_number: ALPHE3D1CEE9 |
Luca Prete | da53c89 | 2018-09-26 16:10:43 -0700 | [diff] [blame] | 151 | pon_port_id: 536870912 |
Luca Prete | 7523d05 | 2018-10-11 14:48:59 -0700 | [diff] [blame] | 152 | device_id: of:00000000C0A8646F |
Luca Prete | da53c89 | 2018-09-26 16:10:43 -0700 | [diff] [blame] | 153 | requirements: |
| 154 | - owner: |
| 155 | node: service#att |
| 156 | relationship: tosca.relationships.BelongsToOne |
| 157 | |
Luca Prete | dd1e350 | 2018-10-11 09:44:40 -0700 | [diff] [blame] | 158 | ISKT71E81130: |
| 159 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 160 | properties: |
| 161 | serial_number: ISKT71E81130 |
Luca Prete | 663cb46 | 2018-10-11 09:49:45 -0700 | [diff] [blame] | 162 | pon_port_id: 536870912 |
Luca Prete | 7523d05 | 2018-10-11 14:48:59 -0700 | [diff] [blame] | 163 | device_id: of:00000000C0A8646F |
Luca Prete | dd1e350 | 2018-10-11 09:44:40 -0700 | [diff] [blame] | 164 | requirements: |
| 165 | - owner: |
| 166 | node: service#att |
| 167 | relationship: tosca.relationships.BelongsToOne |
| 168 | |
| 169 | # ONUs connected to Adtran OLT |
| 170 | ADTN17510028: |
| 171 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 172 | properties: |
| 173 | serial_number: ADTN17510028 |
Luca Prete | 67639c3 | 2018-10-12 11:44:09 -0700 | [diff] [blame] | 174 | pon_port_id: 5 |
Luca Prete | 260538a | 2018-10-15 11:16:41 +0200 | [diff] [blame] | 175 | device_id: of:00000024454A6BE4 |
Luca Prete | dd1e350 | 2018-10-11 09:44:40 -0700 | [diff] [blame] | 176 | requirements: |
| 177 | - owner: |
| 178 | node: service#att |
| 179 | relationship: tosca.relationships.BelongsToOne |
| 180 | |
| 181 | ADTN16180345: |
| 182 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 183 | properties: |
| 184 | serial_number: ADTN16180345 |
Luca Prete | 67639c3 | 2018-10-12 11:44:09 -0700 | [diff] [blame] | 185 | pon_port_id: 6 |
Luca Prete | 260538a | 2018-10-15 11:16:41 +0200 | [diff] [blame] | 186 | device_id: of:00000024454A6BE4 |
Luca Prete | dd1e350 | 2018-10-11 09:44:40 -0700 | [diff] [blame] | 187 | requirements: |
| 188 | - owner: |
| 189 | node: service#att |
| 190 | relationship: tosca.relationships.BelongsToOne |
| 191 | |
| 192 | # ONUs connected to CIG OLT |
Luca Prete | cc7f3bf | 2018-10-15 19:43:32 +0200 | [diff] [blame] | 193 | CIGG18a00002: |
Luca Prete | da53c89 | 2018-09-26 16:10:43 -0700 | [diff] [blame] | 194 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 195 | properties: |
Luca Prete | cc7f3bf | 2018-10-15 19:43:32 +0200 | [diff] [blame] | 196 | serial_number: CIGG18a00002 |
Luca Prete | 8530bcf | 2018-10-15 18:51:08 +0200 | [diff] [blame] | 197 | pon_port_id: 536870913 |
Luca Prete | 7523d05 | 2018-10-11 14:48:59 -0700 | [diff] [blame] | 198 | device_id: of:00000000C0A86471 |
Luca Prete | da53c89 | 2018-09-26 16:10:43 -0700 | [diff] [blame] | 199 | requirements: |
| 200 | - owner: |
| 201 | node: service#att |
| 202 | relationship: tosca.relationships.BelongsToOne |
| 203 | |
Luca Prete | dd1e350 | 2018-10-11 09:44:40 -0700 | [diff] [blame] | 204 | # ONUs connected to Iskratel XGS-PON OLT |
| 205 | ISKT71E81070: |
Luca Prete | da53c89 | 2018-09-26 16:10:43 -0700 | [diff] [blame] | 206 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 207 | properties: |
Luca Prete | dd1e350 | 2018-10-11 09:44:40 -0700 | [diff] [blame] | 208 | serial_number: ISKT71E81070 |
Luca Prete | da53c89 | 2018-09-26 16:10:43 -0700 | [diff] [blame] | 209 | pon_port_id: 536870912 |
Luca Prete | 7523d05 | 2018-10-11 14:48:59 -0700 | [diff] [blame] | 210 | device_id: of:00000000C0A86472 |
Luca Prete | da53c89 | 2018-09-26 16:10:43 -0700 | [diff] [blame] | 211 | requirements: |
| 212 | - owner: |
| 213 | node: service#att |
| 214 | relationship: tosca.relationships.BelongsToOne |
| 215 | |
Luca Prete | 0f7e8eb | 2018-10-11 11:34:42 -0700 | [diff] [blame] | 216 | ISKT71E81071: |
Luca Prete | da53c89 | 2018-09-26 16:10:43 -0700 | [diff] [blame] | 217 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 218 | properties: |
Luca Prete | 0f7e8eb | 2018-10-11 11:34:42 -0700 | [diff] [blame] | 219 | serial_number: ISKT71E81071 |
Luca Prete | 663cb46 | 2018-10-11 09:49:45 -0700 | [diff] [blame] | 220 | pon_port_id: 536870912 |
Luca Prete | 7523d05 | 2018-10-11 14:48:59 -0700 | [diff] [blame] | 221 | device_id: of:00000000C0A86472 |
Luca Prete | dd1e350 | 2018-10-11 09:44:40 -0700 | [diff] [blame] | 222 | requirements: |
| 223 | - owner: |
| 224 | node: service#att |
| 225 | relationship: tosca.relationships.BelongsToOne |
| 226 | |
| 227 | # ONUs connected to Iskratel GPON OLT |
| 228 | ISKT45F2C688: |
| 229 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 230 | properties: |
| 231 | serial_number: ISKT45F2C688 |
Luca Prete | da53c89 | 2018-09-26 16:10:43 -0700 | [diff] [blame] | 232 | pon_port_id: 536870912 |
Luca Prete | 7523d05 | 2018-10-11 14:48:59 -0700 | [diff] [blame] | 233 | device_id: of:00000000C0A86473 |
Luca Prete | da53c89 | 2018-09-26 16:10:43 -0700 | [diff] [blame] | 234 | requirements: |
| 235 | - owner: |
| 236 | node: service#att |
Luca Prete | dd1e350 | 2018-10-11 09:44:40 -0700 | [diff] [blame] | 237 | relationship: tosca.relationships.BelongsToOne |
| 238 | |
| 239 | ISKT45F2BD61: |
| 240 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 241 | properties: |
| 242 | serial_number: ISKT45F2BD61 |
Luca Prete | 663cb46 | 2018-10-11 09:49:45 -0700 | [diff] [blame] | 243 | pon_port_id: 536870912 |
Luca Prete | 7523d05 | 2018-10-11 14:48:59 -0700 | [diff] [blame] | 244 | device_id: of:00000000C0A86473 |
Luca Prete | dd1e350 | 2018-10-11 09:44:40 -0700 | [diff] [blame] | 245 | requirements: |
| 246 | - owner: |
| 247 | node: service#att |
| 248 | relationship: tosca.relationships.BelongsToOne |
| 249 | |
| 250 | ISKT45F2C1E4: |
| 251 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 252 | properties: |
| 253 | serial_number: ISKT45F2C1E4 |
Luca Prete | 663cb46 | 2018-10-11 09:49:45 -0700 | [diff] [blame] | 254 | pon_port_id: 536870912 |
Luca Prete | 7523d05 | 2018-10-11 14:48:59 -0700 | [diff] [blame] | 255 | device_id: of:00000000C0A86473 |
Luca Prete | dd1e350 | 2018-10-11 09:44:40 -0700 | [diff] [blame] | 256 | requirements: |
| 257 | - owner: |
| 258 | node: service#att |
| 259 | relationship: tosca.relationships.BelongsToOne |