Matteo Scandolo | 97d853b | 2018-08-29 16:22:08 -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 | 7717195 | 2018-09-04 14:43:43 -0700 | [diff] [blame] | 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 |
Matteo Scandolo | 97d853b | 2018-08-29 16:22:08 -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 | |
| 26 | description: Configures the ONF SEBA POD with AT&T workflow |
| 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: |
| 46 | portId: 1 |
| 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: |
| 57 | portId: 31 |
| 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 |
| 70 | switch_port: 31 |
| 71 | |
| 72 | # ONU Whitelist |
| 73 | service#att: |
| 74 | type: tosca.nodes.AttWorkflowDriverService |
| 75 | properties: |
| 76 | name: att-workflow-driver |
| 77 | must-exist: true |
| 78 | |
| 79 | BRCM22222222: |
| 80 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 81 | properties: |
| 82 | serial_number: BRCM22222222 |
| 83 | pon_port_id: 536870912 |
| 84 | device_id: of:000000000a5a0072 |
| 85 | requirements: |
| 86 | - owner: |
| 87 | node: service#att |
| 88 | relationship: tosca.relationships.BelongsToOne |
| 89 | |
| 90 | ALPHe3d1cfe3: |
| 91 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 92 | properties: |
| 93 | serial_number: ALPHe3d1cfe3 |
| 94 | pon_port_id: 536870912 |
| 95 | device_id: of:000000000a5a0097 |
| 96 | requirements: |
| 97 | - owner: |
| 98 | node: service#att |
| 99 | relationship: tosca.relationships.BelongsToOne |
| 100 | |
| 101 | ALPHe3d1cfde: |
| 102 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 103 | properties: |
| 104 | serial_number: ALPHe3d1cfde |
| 105 | pon_port_id: 536870912 |
| 106 | device_id: of:000000000a5a0097 |
| 107 | requirements: |
| 108 | - owner: |
| 109 | node: service#att |
| 110 | relationship: tosca.relationships.BelongsToOne |
| 111 | |
| 112 | # BRCM12345678: |
| 113 | # type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 114 | # properties: |
| 115 | # serial_number: BRCM12345678 |
| 116 | # pon_port_id: 536870916 |
| 117 | # device_id: of:000000000a5a0097 |
| 118 | # requirements: |
| 119 | # - owner: |
| 120 | # node: service#att |
| 121 | # relationship: tosca.relationships.BelongsToOne |
| 122 | |
| 123 | ISKT71E80080: |
| 124 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 125 | properties: |
| 126 | serial_number: ISKT71e80080 |
| 127 | pon_port_id: 536870912 |
| 128 | device_id: of:000000000a5a0072 |
| 129 | requirements: |
| 130 | - owner: |
| 131 | node: service#att |
| 132 | relationship: tosca.relationships.BelongsToOne |
Matteo Scandolo | 7717195 | 2018-09-04 14:43:43 -0700 | [diff] [blame] | 133 | |
| 134 | ISKT71e801a0: |
| 135 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 136 | properties: |
| 137 | serial_number: ISKT71e801a0 |
| 138 | pon_port_id: 536870912 |
| 139 | device_id: of:000000000a5a0072 |
| 140 | requirements: |
| 141 | - owner: |
| 142 | node: service#att |
| 143 | relationship: tosca.relationships.BelongsToOne |
| 144 | |
| 145 | |
| 146 | ALPHE3D1CEA3: |
| 147 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 148 | properties: |
| 149 | serial_number: ALPHe3d1cea3 |
| 150 | pon_port_id: 536870912 |
| 151 | device_id: of:000000000a5a0072 |
| 152 | requirements: |
| 153 | - owner: |
| 154 | node: service#att |
| 155 | relationship: tosca.relationships.BelongsToOne |
| 156 | |
| 157 | ALPHE3D1CEE9: |
| 158 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 159 | properties: |
| 160 | serial_number: ALPHe3d1cee9 |
| 161 | pon_port_id: 536870912 |
| 162 | device_id: of:000000000a5a0072 |
| 163 | requirements: |
| 164 | - owner: |
| 165 | node: service#att |
| 166 | relationship: tosca.relationships.BelongsToOne |