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 |
| 25 | |
Luca Prete | dd1e350 | 2018-10-11 09:44:40 -0700 | [diff] [blame] | 26 | description: Configures the fabric and the whitelist |
Luca Prete | da53c89 | 2018-09-26 16:10:43 -0700 | [diff] [blame] | 27 | |
| 28 | topology_template: |
| 29 | node_templates: |
Luca Prete | da53c89 | 2018-09-26 16:10:43 -0700 | [diff] [blame] | 30 | switch#leaf_1: |
| 31 | type: tosca.nodes.Switch |
| 32 | properties: |
| 33 | driver: ofdpa3 |
| 34 | ipv4Loopback: 192.168.0.201 |
| 35 | ipv4NodeSid: 17 |
| 36 | isEdgeRouter: True |
| 37 | name: leaf_1 |
| 38 | ofId: of:0000000000000001 |
| 39 | routerMac: 00:00:02:01:06:01 |
| 40 | |
| 41 | # Setup the EdgeCore OLT switch port |
| 42 | port#edgecore_olt_port: |
| 43 | type: tosca.nodes.SwitchPort |
| 44 | properties: |
| 45 | portId: 49 |
| 46 | host_learning: false |
| 47 | requirements: |
| 48 | - switch: |
| 49 | node: switch#leaf_1 |
| 50 | relationship: tosca.relationships.BelongsToOne |
| 51 | |
| 52 | # Setup the Adtran OLT switch port |
| 53 | port#adtran_olt_port: |
| 54 | type: tosca.nodes.SwitchPort |
| 55 | properties: |
| 56 | portId: 50 |
| 57 | host_learning: false |
| 58 | requirements: |
| 59 | - switch: |
| 60 | node: switch#leaf_1 |
| 61 | relationship: tosca.relationships.BelongsToOne |
| 62 | |
| 63 | # Setup the CIG OLT switch port |
| 64 | port#cig_olt_port: |
| 65 | type: tosca.nodes.SwitchPort |
| 66 | properties: |
| 67 | portId: 51 |
| 68 | host_learning: false |
| 69 | requirements: |
| 70 | - switch: |
| 71 | node: switch#leaf_1 |
| 72 | relationship: tosca.relationships.BelongsToOne |
| 73 | |
| 74 | # Setup the Iskratel XGS-PON OLT switch port |
| 75 | port#iskratelx_olt_port: |
| 76 | type: tosca.nodes.SwitchPort |
| 77 | properties: |
| 78 | portId: 52 |
| 79 | host_learning: false |
| 80 | requirements: |
| 81 | - switch: |
| 82 | node: switch#leaf_1 |
| 83 | relationship: tosca.relationships.BelongsToOne |
| 84 | |
| 85 | # Setup the Iskratel GPON OLT switch port |
| 86 | port#iskratelg_olt_port: |
| 87 | type: tosca.nodes.SwitchPort |
| 88 | properties: |
| 89 | portId: 47 |
| 90 | host_learning: false |
| 91 | requirements: |
| 92 | - switch: |
| 93 | node: switch#leaf_1 |
| 94 | relationship: tosca.relationships.BelongsToOne |
| 95 | |
| 96 | # Port connected to the BNG |
| 97 | port#bng_port: |
| 98 | type: tosca.nodes.SwitchPort |
| 99 | properties: |
| 100 | portId: 48 |
| 101 | host_learning: false |
| 102 | requirements: |
| 103 | - switch: |
| 104 | node: switch#leaf_1 |
| 105 | relationship: tosca.relationships.BelongsToOne |
| 106 | |
| 107 | # Setup the fabric switch port where the external |
| 108 | # router is connected to |
| 109 | bngmapping: |
| 110 | type: tosca.nodes.BNGPortMapping |
| 111 | properties: |
| 112 | s_tag: any |
| 113 | switch_port: 48 |
| 114 | |
| 115 | # ONU Whitelist |
| 116 | service#att: |
| 117 | type: tosca.nodes.AttWorkflowDriverService |
| 118 | properties: |
| 119 | name: att-workflow-driver |
| 120 | must-exist: true |
| 121 | |
Luca Prete | dd1e350 | 2018-10-11 09:44:40 -0700 | [diff] [blame] | 122 | # ONUs connected to EdgeCore OLT |
| 123 | ALPHE3D1CEE9: |
Luca Prete | da53c89 | 2018-09-26 16:10:43 -0700 | [diff] [blame] | 124 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 125 | properties: |
Luca Prete | dd1e350 | 2018-10-11 09:44:40 -0700 | [diff] [blame] | 126 | serial_number: ALPHE3D1CEE9 |
Luca Prete | da53c89 | 2018-09-26 16:10:43 -0700 | [diff] [blame] | 127 | pon_port_id: 536870912 |
Luca Prete | 7523d05 | 2018-10-11 14:48:59 -0700 | [diff] [blame] | 128 | device_id: of:00000000C0A8646F |
Luca Prete | da53c89 | 2018-09-26 16:10:43 -0700 | [diff] [blame] | 129 | requirements: |
| 130 | - owner: |
| 131 | node: service#att |
| 132 | relationship: tosca.relationships.BelongsToOne |
| 133 | |
Luca Prete | dd1e350 | 2018-10-11 09:44:40 -0700 | [diff] [blame] | 134 | ISKT71E81130: |
| 135 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 136 | properties: |
| 137 | serial_number: ISKT71E81130 |
Luca Prete | 663cb46 | 2018-10-11 09:49:45 -0700 | [diff] [blame] | 138 | pon_port_id: 536870912 |
Luca Prete | 7523d05 | 2018-10-11 14:48:59 -0700 | [diff] [blame] | 139 | device_id: of:00000000C0A8646F |
Luca Prete | dd1e350 | 2018-10-11 09:44:40 -0700 | [diff] [blame] | 140 | requirements: |
| 141 | - owner: |
| 142 | node: service#att |
| 143 | relationship: tosca.relationships.BelongsToOne |
| 144 | |
| 145 | # ONUs connected to Adtran OLT |
| 146 | ADTN17510028: |
| 147 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 148 | properties: |
| 149 | serial_number: ADTN17510028 |
Luca Prete | 67639c3 | 2018-10-12 11:44:09 -0700 | [diff] [blame^] | 150 | pon_port_id: 5 |
Luca Prete | 7523d05 | 2018-10-11 14:48:59 -0700 | [diff] [blame] | 151 | device_id: of:00000000C0A86470 |
Luca Prete | dd1e350 | 2018-10-11 09:44:40 -0700 | [diff] [blame] | 152 | requirements: |
| 153 | - owner: |
| 154 | node: service#att |
| 155 | relationship: tosca.relationships.BelongsToOne |
| 156 | |
| 157 | ADTN16180345: |
| 158 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 159 | properties: |
| 160 | serial_number: ADTN16180345 |
Luca Prete | 67639c3 | 2018-10-12 11:44:09 -0700 | [diff] [blame^] | 161 | pon_port_id: 6 |
Luca Prete | 7523d05 | 2018-10-11 14:48:59 -0700 | [diff] [blame] | 162 | device_id: of:00000000C0A86470 |
Luca Prete | dd1e350 | 2018-10-11 09:44:40 -0700 | [diff] [blame] | 163 | requirements: |
| 164 | - owner: |
| 165 | node: service#att |
| 166 | relationship: tosca.relationships.BelongsToOne |
| 167 | |
| 168 | # ONUs connected to CIG OLT |
Luca Prete | da53c89 | 2018-09-26 16:10:43 -0700 | [diff] [blame] | 169 | CIG: |
| 170 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 171 | properties: |
| 172 | serial_number: CIG |
| 173 | pon_port_id: 536870912 |
Luca Prete | 7523d05 | 2018-10-11 14:48:59 -0700 | [diff] [blame] | 174 | device_id: of:00000000C0A86471 |
Luca Prete | da53c89 | 2018-09-26 16:10:43 -0700 | [diff] [blame] | 175 | requirements: |
| 176 | - owner: |
| 177 | node: service#att |
| 178 | relationship: tosca.relationships.BelongsToOne |
| 179 | |
Luca Prete | dd1e350 | 2018-10-11 09:44:40 -0700 | [diff] [blame] | 180 | # ONUs connected to Iskratel XGS-PON OLT |
| 181 | ISKT71E81070: |
Luca Prete | da53c89 | 2018-09-26 16:10:43 -0700 | [diff] [blame] | 182 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 183 | properties: |
Luca Prete | dd1e350 | 2018-10-11 09:44:40 -0700 | [diff] [blame] | 184 | serial_number: ISKT71E81070 |
Luca Prete | da53c89 | 2018-09-26 16:10:43 -0700 | [diff] [blame] | 185 | pon_port_id: 536870912 |
Luca Prete | 7523d05 | 2018-10-11 14:48:59 -0700 | [diff] [blame] | 186 | device_id: of:00000000C0A86472 |
Luca Prete | da53c89 | 2018-09-26 16:10:43 -0700 | [diff] [blame] | 187 | requirements: |
| 188 | - owner: |
| 189 | node: service#att |
| 190 | relationship: tosca.relationships.BelongsToOne |
| 191 | |
Luca Prete | 0f7e8eb | 2018-10-11 11:34:42 -0700 | [diff] [blame] | 192 | ISKT71E81071: |
Luca Prete | da53c89 | 2018-09-26 16:10:43 -0700 | [diff] [blame] | 193 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 194 | properties: |
Luca Prete | 0f7e8eb | 2018-10-11 11:34:42 -0700 | [diff] [blame] | 195 | serial_number: ISKT71E81071 |
Luca Prete | 663cb46 | 2018-10-11 09:49:45 -0700 | [diff] [blame] | 196 | pon_port_id: 536870912 |
Luca Prete | 7523d05 | 2018-10-11 14:48:59 -0700 | [diff] [blame] | 197 | device_id: of:00000000C0A86472 |
Luca Prete | dd1e350 | 2018-10-11 09:44:40 -0700 | [diff] [blame] | 198 | requirements: |
| 199 | - owner: |
| 200 | node: service#att |
| 201 | relationship: tosca.relationships.BelongsToOne |
| 202 | |
| 203 | # ONUs connected to Iskratel GPON OLT |
| 204 | ISKT45F2C688: |
| 205 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 206 | properties: |
| 207 | serial_number: ISKT45F2C688 |
Luca Prete | da53c89 | 2018-09-26 16:10:43 -0700 | [diff] [blame] | 208 | pon_port_id: 536870912 |
Luca Prete | 7523d05 | 2018-10-11 14:48:59 -0700 | [diff] [blame] | 209 | device_id: of:00000000C0A86473 |
Luca Prete | da53c89 | 2018-09-26 16:10:43 -0700 | [diff] [blame] | 210 | requirements: |
| 211 | - owner: |
| 212 | node: service#att |
Luca Prete | dd1e350 | 2018-10-11 09:44:40 -0700 | [diff] [blame] | 213 | relationship: tosca.relationships.BelongsToOne |
| 214 | |
| 215 | ISKT45F2BD61: |
| 216 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 217 | properties: |
| 218 | serial_number: ISKT45F2BD61 |
Luca Prete | 663cb46 | 2018-10-11 09:49:45 -0700 | [diff] [blame] | 219 | pon_port_id: 536870912 |
Luca Prete | 7523d05 | 2018-10-11 14:48:59 -0700 | [diff] [blame] | 220 | device_id: of:00000000C0A86473 |
Luca Prete | dd1e350 | 2018-10-11 09:44:40 -0700 | [diff] [blame] | 221 | requirements: |
| 222 | - owner: |
| 223 | node: service#att |
| 224 | relationship: tosca.relationships.BelongsToOne |
| 225 | |
| 226 | ISKT45F2C1E4: |
| 227 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 228 | properties: |
| 229 | serial_number: ISKT45F2C1E4 |
Luca Prete | 663cb46 | 2018-10-11 09:49:45 -0700 | [diff] [blame] | 230 | pon_port_id: 536870912 |
Luca Prete | 7523d05 | 2018-10-11 14:48:59 -0700 | [diff] [blame] | 231 | device_id: of:00000000C0A86473 |
Luca Prete | dd1e350 | 2018-10-11 09:44:40 -0700 | [diff] [blame] | 232 | requirements: |
| 233 | - owner: |
| 234 | node: service#att |
| 235 | relationship: tosca.relationships.BelongsToOne |