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 |
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 | 4e7cbf1 | 2019-04-17 15:09:35 -0700 | [diff] [blame] | 27 | - custom_types/onosservice.yaml |
| 28 | - custom_types/serviceinstanceattribute.yaml |
Matteo Scandolo | 97d853b | 2018-08-29 16:22:08 -0700 | [diff] [blame] | 29 | |
| 30 | description: Configures the ONF SEBA POD with AT&T workflow |
| 31 | |
| 32 | topology_template: |
| 33 | node_templates: |
Matteo Scandolo | 4e7cbf1 | 2019-04-17 15:09:35 -0700 | [diff] [blame] | 34 | # ONOS Apps for tech-profiles |
| 35 | service#onos: |
| 36 | type: tosca.nodes.ONOSService |
| 37 | properties: |
| 38 | name: onos |
| 39 | must-exist: true |
| 40 | |
| 41 | onos_app#sadis: |
| 42 | type: tosca.nodes.ONOSApp |
| 43 | properties: |
| 44 | name: sadis |
| 45 | must-exist: true |
| 46 | requirements: |
| 47 | - owner: |
| 48 | node: service#onos |
| 49 | relationship: tosca.relationships.BelongsToOne |
| 50 | |
| 51 | sadis-config-attr: |
| 52 | type: tosca.nodes.ServiceInstanceAttribute |
| 53 | properties: |
| 54 | name: /onos/v1/network/configuration/apps/org.opencord.sadis |
| 55 | value: > |
| 56 | { |
| 57 | "sadis" : { |
| 58 | "integration" : { |
| 59 | "cache" : { |
| 60 | "maxsize" : 1000, |
| 61 | "ttl": "PT300S" |
| 62 | }, |
| 63 | "url" : "http://sadis-service:8000/subscriber/%s" |
| 64 | } |
| 65 | }, |
| 66 | "bandwidthprofile":{ |
| 67 | "integration":{ |
| 68 | "url": "http://sadis-service:8000/bandwidthprofiles/%s", |
| 69 | "cache":{ |
| 70 | "enabled":true, |
| 71 | "maxsize":40, |
| 72 | "ttl":"PT1m" |
| 73 | } |
| 74 | } |
| 75 | } |
| 76 | } |
| 77 | requirements: |
| 78 | - service_instance: |
| 79 | node: onos_app#sadis |
| 80 | relationship: tosca.relationships.BelongsToOne |
| 81 | |
Matteo Scandolo | 97d853b | 2018-08-29 16:22:08 -0700 | [diff] [blame] | 82 | # Fabric configuration |
| 83 | switch#leaf_1: |
| 84 | type: tosca.nodes.Switch |
| 85 | properties: |
| 86 | driver: ofdpa3 |
| 87 | ipv4Loopback: 192.168.0.201 |
| 88 | ipv4NodeSid: 17 |
| 89 | isEdgeRouter: True |
Matteo Scandolo | 9679000 | 2018-10-12 11:56:44 -0700 | [diff] [blame] | 90 | name: AGG_SWITCH |
Matteo Scandolo | 97d853b | 2018-08-29 16:22:08 -0700 | [diff] [blame] | 91 | ofId: of:0000000000000001 |
| 92 | routerMac: 00:00:02:01:06:01 |
| 93 | |
| 94 | # Setup the OLT switch port |
| 95 | port#olt_port: |
| 96 | type: tosca.nodes.SwitchPort |
| 97 | properties: |
| 98 | portId: 1 |
| 99 | host_learning: false |
| 100 | requirements: |
| 101 | - switch: |
| 102 | node: switch#leaf_1 |
| 103 | relationship: tosca.relationships.BelongsToOne |
| 104 | |
| 105 | # Port connected to the BNG |
| 106 | port#bng_port: |
| 107 | type: tosca.nodes.SwitchPort |
| 108 | properties: |
| 109 | portId: 31 |
Matteo Scandolo | 97d853b | 2018-08-29 16:22:08 -0700 | [diff] [blame] | 110 | requirements: |
| 111 | - switch: |
| 112 | node: switch#leaf_1 |
| 113 | relationship: tosca.relationships.BelongsToOne |
| 114 | |
| 115 | # Setup the fabric switch port where the external |
| 116 | # router is connected to |
| 117 | bngmapping: |
| 118 | type: tosca.nodes.BNGPortMapping |
| 119 | properties: |
| 120 | s_tag: any |
| 121 | switch_port: 31 |
| 122 | |
Matteo Scandolo | 63813df | 2018-10-12 10:45:13 -0700 | [diff] [blame] | 123 | # DHCP L2 Relay config |
Matteo Scandolo | 99ad376 | 2018-10-12 13:54:30 -0700 | [diff] [blame] | 124 | onos_app#dhcpl2relay: |
| 125 | type: tosca.nodes.ONOSApp |
| 126 | properties: |
| 127 | name: dhcpl2relay |
| 128 | must-exist: true |
| 129 | |
Matteo Scandolo | 63813df | 2018-10-12 10:45:13 -0700 | [diff] [blame] | 130 | dhcpl2relay-config-attr: |
| 131 | type: tosca.nodes.ServiceInstanceAttribute |
| 132 | properties: |
| 133 | name: /onos/v1/network/configuration/apps/org.opencord.dhcpl2relay |
| 134 | value: > |
| 135 | { |
| 136 | "dhcpl2relay" : { |
| 137 | "useOltUplinkForServerPktInOut" : false, |
| 138 | "dhcpServerConnectPoints" : [ "of:0000000000000001/31" ] |
| 139 | } |
| 140 | } |
| 141 | requirements: |
| 142 | - service_instance: |
| 143 | node: onos_app#dhcpl2relay |
| 144 | relationship: tosca.relationships.BelongsToOne |
| 145 | |
Matteo Scandolo | 97d853b | 2018-08-29 16:22:08 -0700 | [diff] [blame] | 146 | # ONU Whitelist |
| 147 | service#att: |
| 148 | type: tosca.nodes.AttWorkflowDriverService |
| 149 | properties: |
| 150 | name: att-workflow-driver |
| 151 | must-exist: true |
| 152 | |
Matteo Scandolo | 93ef8bd | 2019-06-11 13:58:40 -0700 | [diff] [blame] | 153 | ALPHe3d1cfac: |
Matteo Scandolo | 97d853b | 2018-08-29 16:22:08 -0700 | [diff] [blame] | 154 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 155 | properties: |
Matteo Scandolo | 93ef8bd | 2019-06-11 13:58:40 -0700 | [diff] [blame] | 156 | serial_number: ALPHe3d1cfac |
| 157 | pon_port_id: 536870912 |
| 158 | # pon_port_id: 12345678 |
Matteo Scandolo | 97d853b | 2018-08-29 16:22:08 -0700 | [diff] [blame] | 159 | device_id: of:000000000a5a0072 |
| 160 | requirements: |
| 161 | - owner: |
| 162 | node: service#att |
| 163 | relationship: tosca.relationships.BelongsToOne |
| 164 | |
Matteo Scandolo | 69a5e22 | 2018-09-13 16:09:14 -0700 | [diff] [blame] | 165 | ALPHe3d1cfde: |
| 166 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 167 | properties: |
| 168 | serial_number: ALPHe3d1cfde |
| 169 | pon_port_id: 536870912 |
| 170 | device_id: of:000000000a5a0072 |
| 171 | requirements: |
| 172 | - owner: |
| 173 | node: service#att |
| 174 | relationship: tosca.relationships.BelongsToOne |
Matteo Scandolo | 7717195 | 2018-09-04 14:43:43 -0700 | [diff] [blame] | 175 | |
Matteo Scandolo | 93ef8bd | 2019-06-11 13:58:40 -0700 | [diff] [blame] | 176 | ISKT71e80080: |
Matteo Scandolo | 7717195 | 2018-09-04 14:43:43 -0700 | [diff] [blame] | 177 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 178 | properties: |
Matteo Scandolo | 93ef8bd | 2019-06-11 13:58:40 -0700 | [diff] [blame] | 179 | serial_number: ISKT71e80080 |
Matteo Scandolo | aa32785 | 2018-09-13 15:12:51 -0700 | [diff] [blame] | 180 | pon_port_id: 536870912 |
Matteo Scandolo | 7717195 | 2018-09-04 14:43:43 -0700 | [diff] [blame] | 181 | device_id: of:000000000a5a0072 |
| 182 | requirements: |
| 183 | - owner: |
| 184 | node: service#att |
| 185 | relationship: tosca.relationships.BelongsToOne |