Matteo Scandolo | 1760e9b | 2018-10-08 10:17:51 -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 | 9d21ae7 | 2018-10-09 20:09:29 -0700 | [diff] [blame] | 15 | # curl -H "xos-username: admin@opencord.org" -H "xos-password: letmein" -X POST --data-binary @onlab-pod2-fabric.yaml http://10.90.0.120:30007/run |
Matteo Scandolo | 1760e9b | 2018-10-08 10:17:51 -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 | 63813df | 2018-10-12 10:45:13 -0700 | [diff] [blame] | 25 | - custom_types/serviceinstanceattribute.yaml |
Matteo Scandolo | 99ad376 | 2018-10-12 13:54:30 -0700 | [diff] [blame] | 26 | - custom_types/onosapp.yaml |
Matteo Scandolo | 1760e9b | 2018-10-08 10:17:51 -0700 | [diff] [blame] | 27 | |
| 28 | description: Configures the ONF SEBA POD2 with AT&T workflow |
| 29 | |
| 30 | topology_template: |
| 31 | node_templates: |
| 32 | # Fabric configuration |
| 33 | switch#leaf_1: |
| 34 | type: tosca.nodes.Switch |
| 35 | properties: |
| 36 | driver: ofdpa3 |
| 37 | ipv4Loopback: 192.168.0.201 |
| 38 | ipv4NodeSid: 17 |
| 39 | isEdgeRouter: True |
Matteo Scandolo | 08c9c80 | 2018-10-12 10:00:03 -0700 | [diff] [blame] | 40 | name: AGG_SWITCH |
Matteo Scandolo | 1675aa1 | 2018-10-08 14:54:36 -0700 | [diff] [blame] | 41 | ofId: of:0000000000000002 |
Matteo Scandolo | 1760e9b | 2018-10-08 10:17:51 -0700 | [diff] [blame] | 42 | routerMac: 00:00:02:01:06:01 |
| 43 | |
| 44 | # Setup the OLT switch port |
| 45 | port#olt_port: |
| 46 | type: tosca.nodes.SwitchPort |
| 47 | properties: |
| 48 | portId: 1 |
| 49 | host_learning: false |
| 50 | requirements: |
| 51 | - switch: |
| 52 | node: switch#leaf_1 |
| 53 | relationship: tosca.relationships.BelongsToOne |
| 54 | |
| 55 | # Port connected to the BNG |
| 56 | port#bng_port: |
| 57 | type: tosca.nodes.SwitchPort |
| 58 | properties: |
| 59 | portId: 32 |
Matteo Scandolo | 1760e9b | 2018-10-08 10:17:51 -0700 | [diff] [blame] | 60 | requirements: |
| 61 | - switch: |
| 62 | node: switch#leaf_1 |
| 63 | relationship: tosca.relationships.BelongsToOne |
| 64 | |
| 65 | # Setup the fabric switch port where the external |
| 66 | # router is connected to |
| 67 | bngmapping: |
| 68 | type: tosca.nodes.BNGPortMapping |
| 69 | properties: |
| 70 | s_tag: any |
| 71 | switch_port: 32 |
| 72 | |
Matteo Scandolo | 63813df | 2018-10-12 10:45:13 -0700 | [diff] [blame] | 73 | # DHCP L2 Relay config |
Matteo Scandolo | 99ad376 | 2018-10-12 13:54:30 -0700 | [diff] [blame] | 74 | onos_app#dhcpl2relay: |
| 75 | type: tosca.nodes.ONOSApp |
| 76 | properties: |
| 77 | name: dhcpl2relay |
| 78 | must-exist: true |
| 79 | |
Matteo Scandolo | 63813df | 2018-10-12 10:45:13 -0700 | [diff] [blame] | 80 | dhcpl2relay-config-attr: |
| 81 | type: tosca.nodes.ServiceInstanceAttribute |
| 82 | properties: |
| 83 | name: /onos/v1/network/configuration/apps/org.opencord.dhcpl2relay |
| 84 | value: > |
| 85 | { |
| 86 | "dhcpl2relay" : { |
| 87 | "useOltUplinkForServerPktInOut" : false, |
| 88 | "dhcpServerConnectPoints" : [ "of:0000000000000002/32" ] |
| 89 | } |
| 90 | } |
| 91 | requirements: |
| 92 | - service_instance: |
| 93 | node: onos_app#dhcpl2relay |
| 94 | relationship: tosca.relationships.BelongsToOne |
| 95 | |
Matteo Scandolo | 1760e9b | 2018-10-08 10:17:51 -0700 | [diff] [blame] | 96 | # ONU Whitelist |
| 97 | service#att: |
| 98 | type: tosca.nodes.AttWorkflowDriverService |
| 99 | properties: |
| 100 | name: att-workflow-driver |
| 101 | must-exist: true |
| 102 | |
| 103 | ALPHe3d1cfe3: |
| 104 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 105 | properties: |
| 106 | serial_number: ALPHe3d1cfe3 |
| 107 | pon_port_id: 536870912 |
Matteo Scandolo | 9d21ae7 | 2018-10-09 20:09:29 -0700 | [diff] [blame] | 108 | device_id: of:000000000a5a007a |
Matteo Scandolo | 1760e9b | 2018-10-08 10:17:51 -0700 | [diff] [blame] | 109 | requirements: |
| 110 | - owner: |
| 111 | node: service#att |
| 112 | relationship: tosca.relationships.BelongsToOne |
| 113 | |
| 114 | ISKT71e80080: |
| 115 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 116 | properties: |
| 117 | serial_number: ISKT71e80080 |
Matteo Scandolo | 9d21ae7 | 2018-10-09 20:09:29 -0700 | [diff] [blame] | 118 | pon_port_id: 536870927 |
| 119 | device_id: of:000000000a5a007a |
Matteo Scandolo | 1760e9b | 2018-10-08 10:17:51 -0700 | [diff] [blame] | 120 | requirements: |
| 121 | - owner: |
| 122 | node: service#att |
| 123 | relationship: tosca.relationships.BelongsToOne |
Matteo Scandolo | 0241e6a | 2018-12-12 13:27:42 -0800 | [diff] [blame] | 124 | |
| 125 | ALPHe3d1cf8e: |
| 126 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 127 | properties: |
| 128 | serial_number: ALPHe3d1cf8e |
Matteo Scandolo | 33b2d46 | 2018-12-13 15:18:16 -0800 | [diff] [blame] | 129 | pon_port_id: 536870912 |
Matteo Scandolo | 0241e6a | 2018-12-12 13:27:42 -0800 | [diff] [blame] | 130 | device_id: of:000000000a5a007a |
| 131 | requirements: |
| 132 | - owner: |
| 133 | node: service#att |
| 134 | relationship: tosca.relationships.BelongsToOne |
| 135 | |
| 136 | ALPHe3d1cf9d: |
| 137 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 138 | properties: |
| 139 | serial_number: ALPHe3d1cf9d |
Matteo Scandolo | 33b2d46 | 2018-12-13 15:18:16 -0800 | [diff] [blame] | 140 | pon_port_id: 536870912 |
Matteo Scandolo | 0241e6a | 2018-12-12 13:27:42 -0800 | [diff] [blame] | 141 | device_id: of:000000000a5a007a |
| 142 | requirements: |
| 143 | - owner: |
| 144 | node: service#att |
| 145 | relationship: tosca.relationships.BelongsToOne |
| 146 | |
| 147 | ALPHe3d1ced5: |
| 148 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 149 | properties: |
| 150 | serial_number: ALPHe3d1ced5 |
Matteo Scandolo | 33b2d46 | 2018-12-13 15:18:16 -0800 | [diff] [blame] | 151 | pon_port_id: 536870912 |
Matteo Scandolo | 0241e6a | 2018-12-12 13:27:42 -0800 | [diff] [blame] | 152 | device_id: of:000000000a5a007a |
| 153 | requirements: |
| 154 | - owner: |
| 155 | node: service#att |
| 156 | relationship: tosca.relationships.BelongsToOne |
| 157 | |
| 158 | ALPHe3d1cf70: |
| 159 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 160 | properties: |
| 161 | serial_number: ALPHe3d1cf70 |
Matteo Scandolo | 33b2d46 | 2018-12-13 15:18:16 -0800 | [diff] [blame] | 162 | pon_port_id: 536870912 |
Matteo Scandolo | 0241e6a | 2018-12-12 13:27:42 -0800 | [diff] [blame] | 163 | device_id: of:000000000a5a007a |
| 164 | requirements: |
| 165 | - owner: |
| 166 | node: service#att |
| 167 | relationship: tosca.relationships.BelongsToOne |