Luca Prete | a67d353 | 2018-09-14 10:16:10 -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 | |
Luca Prete | 901cc2e | 2018-09-14 14:15:31 -0700 | [diff] [blame] | 15 | # curl -H "xos-username: admin@opencord.org" -H "xos-password: letmein" -X POST --data-binary @edgecore-pod1-fabric.yaml http://10.90.0.101:30007/run |
Luca Prete | a67d353 | 2018-09-14 10:16:10 -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 |
| 25 | |
Luca Prete | 901cc2e | 2018-09-14 14:15:31 -0700 | [diff] [blame] | 26 | description: Configures the EdgeCore SEBA POD with AT&T workflow |
Luca Prete | a67d353 | 2018-09-14 10:16:10 -0700 | [diff] [blame] | 27 | |
| 28 | topology_template: |
| 29 | node_templates: |
| 30 | # Fabric configuration |
| 31 | switch#leaf_1: |
| 32 | type: tosca.nodes.Switch |
| 33 | properties: |
| 34 | driver: ofdpa3 |
| 35 | ipv4Loopback: 192.168.0.201 |
| 36 | ipv4NodeSid: 17 |
| 37 | isEdgeRouter: True |
| 38 | name: leaf_1 |
| 39 | ofId: of:0000000000000001 |
| 40 | routerMac: 00:00:02:01:06:01 |
| 41 | |
| 42 | # Setup the OLT switch port |
| 43 | port#olt_port: |
| 44 | type: tosca.nodes.SwitchPort |
| 45 | properties: |
Luca Prete | 11a7eda | 2018-09-17 12:51:36 -0700 | [diff] [blame] | 46 | portId: 49 |
Luca Prete | a67d353 | 2018-09-14 10:16:10 -0700 | [diff] [blame] | 47 | host_learning: false |
| 48 | requirements: |
| 49 | - switch: |
| 50 | node: switch#leaf_1 |
| 51 | relationship: tosca.relationships.BelongsToOne |
| 52 | |
| 53 | # Port connected to the BNG |
| 54 | port#bng_port: |
| 55 | type: tosca.nodes.SwitchPort |
| 56 | properties: |
Luca Prete | 11a7eda | 2018-09-17 12:51:36 -0700 | [diff] [blame] | 57 | portId: 48 |
Luca Prete | a67d353 | 2018-09-14 10:16:10 -0700 | [diff] [blame] | 58 | host_learning: false |
| 59 | requirements: |
| 60 | - switch: |
| 61 | node: switch#leaf_1 |
| 62 | relationship: tosca.relationships.BelongsToOne |
| 63 | |
| 64 | # Setup the fabric switch port where the external |
| 65 | # router is connected to |
| 66 | bngmapping: |
| 67 | type: tosca.nodes.BNGPortMapping |
| 68 | properties: |
| 69 | s_tag: any |
Luca Prete | 11a7eda | 2018-09-17 12:51:36 -0700 | [diff] [blame] | 70 | switch_port: 48 |
Luca Prete | a67d353 | 2018-09-14 10:16:10 -0700 | [diff] [blame] | 71 | |
| 72 | # ONU Whitelist |
| 73 | service#att: |
| 74 | type: tosca.nodes.AttWorkflowDriverService |
| 75 | properties: |
| 76 | name: att-workflow-driver |
| 77 | must-exist: true |
| 78 | |
Luca Prete | 162d462 | 2018-09-17 15:46:50 -0700 | [diff] [blame] | 79 | ALPHe3d1cea3: |
Luca Prete | 901cc2e | 2018-09-14 14:15:31 -0700 | [diff] [blame] | 80 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 81 | properties: |
Luca Prete | 162d462 | 2018-09-17 15:46:50 -0700 | [diff] [blame] | 82 | serial_number: ALPHe3d1cea3 |
Matteo Scandolo | cfd6556 | 2018-09-19 11:58:57 -0700 | [diff] [blame^] | 83 | # pon_port_id: 536870912 |
| 84 | pon_port_id: 123456789 |
Luca Prete | 901cc2e | 2018-09-14 14:15:31 -0700 | [diff] [blame] | 85 | device_id: of:00000000c0a863b6 |
| 86 | requirements: |
| 87 | - owner: |
| 88 | node: service#att |
| 89 | relationship: tosca.relationships.BelongsToOne |
| 90 | |
Matteo Scandolo | cfd6556 | 2018-09-19 11:58:57 -0700 | [diff] [blame^] | 91 | # ALPHe3d1cee9: |
| 92 | # type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 93 | # properties: |
| 94 | # serial_number: ALPHe3d1cee9 |
| 95 | # pon_port_id: 536870912 |
| 96 | # device_id: of:00000000c0a863b6 |
| 97 | # requirements: |
| 98 | # - owner: |
| 99 | # node: service#att |
| 100 | # relationship: tosca.relationships.BelongsToOne |
Luca Prete | 901cc2e | 2018-09-14 14:15:31 -0700 | [diff] [blame] | 101 | |
Luca Prete | 448d584 | 2018-09-17 16:25:35 -0700 | [diff] [blame] | 102 | ISKT71e810c0: |
Luca Prete | a67d353 | 2018-09-14 10:16:10 -0700 | [diff] [blame] | 103 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 104 | properties: |
Luca Prete | 448d584 | 2018-09-17 16:25:35 -0700 | [diff] [blame] | 105 | serial_number: ISKT71e810c0 |
Luca Prete | bcc5027 | 2018-09-17 10:50:16 -0700 | [diff] [blame] | 106 | pon_port_id: 536870912 |
| 107 | device_id: of:00000000c0a863b6 |
| 108 | requirements: |
| 109 | - owner: |
| 110 | node: service#att |
| 111 | relationship: tosca.relationships.BelongsToOne |
| 112 | |
Luca Prete | 162d462 | 2018-09-17 15:46:50 -0700 | [diff] [blame] | 113 | ISKT71e81130: |
Luca Prete | bcc5027 | 2018-09-17 10:50:16 -0700 | [diff] [blame] | 114 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 115 | properties: |
Luca Prete | 162d462 | 2018-09-17 15:46:50 -0700 | [diff] [blame] | 116 | serial_number: ISKT71e81130 |
Luca Prete | bcc5027 | 2018-09-17 10:50:16 -0700 | [diff] [blame] | 117 | pon_port_id: 536870913 |
| 118 | device_id: of:00000000c0a863b6 |
| 119 | requirements: |
| 120 | - owner: |
| 121 | node: service#att |
| 122 | relationship: tosca.relationships.BelongsToOne |
| 123 | |
Luca Prete | 162d462 | 2018-09-17 15:46:50 -0700 | [diff] [blame] | 124 | ISKT71e81050: |
Luca Prete | bcc5027 | 2018-09-17 10:50:16 -0700 | [diff] [blame] | 125 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 126 | properties: |
Luca Prete | 162d462 | 2018-09-17 15:46:50 -0700 | [diff] [blame] | 127 | serial_number: ISKT71e81050 |
Luca Prete | 901cc2e | 2018-09-14 14:15:31 -0700 | [diff] [blame] | 128 | pon_port_id: 536870913 |
| 129 | device_id: of:00000000c0a863b6 |
Luca Prete | a67d353 | 2018-09-14 10:16:10 -0700 | [diff] [blame] | 130 | requirements: |
| 131 | - owner: |
| 132 | node: service#att |
| 133 | relationship: tosca.relationships.BelongsToOne |