Joey Armstrong | 003e83e | 2023-01-09 20:23:48 -0500 | [diff] [blame] | 1 | # Copyright 2017-2023 Open Networking Foundation (ONF) and the ONF Contributors |
Luca Prete | a67d353 | 2018-09-14 10:16:10 -0700 | [diff] [blame] | 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 | 7454871 | 2018-09-19 13:12:43 -0700 | [diff] [blame] | 15 | # curl -H "xos-username: admin@opencord.org" -H "xos-password: letmein" -X POST --data-binary @edgecore-pod1-fabric.yaml http://192.168.99.181: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 |
Luca Prete | 60cf4e6 | 2018-12-04 16:41:51 -0800 | [diff] [blame] | 25 | - custom_types/serviceinstanceattribute.yaml |
| 26 | - custom_types/onosapp.yaml |
Luca Prete | a67d353 | 2018-09-14 10:16:10 -0700 | [diff] [blame] | 27 | |
Luca Prete | 901cc2e | 2018-09-14 14:15:31 -0700 | [diff] [blame] | 28 | description: Configures the EdgeCore SEBA POD with AT&T workflow |
Luca Prete | a67d353 | 2018-09-14 10:16:10 -0700 | [diff] [blame] | 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 |
| 40 | name: leaf_1 |
| 41 | ofId: of:0000000000000001 |
| 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: |
Luca Prete | 11a7eda | 2018-09-17 12:51:36 -0700 | [diff] [blame] | 48 | portId: 49 |
Luca Prete | a67d353 | 2018-09-14 10:16:10 -0700 | [diff] [blame] | 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: |
Luca Prete | 11a7eda | 2018-09-17 12:51:36 -0700 | [diff] [blame] | 59 | portId: 48 |
Luca Prete | a67d353 | 2018-09-14 10:16:10 -0700 | [diff] [blame] | 60 | host_learning: false |
| 61 | requirements: |
| 62 | - switch: |
| 63 | node: switch#leaf_1 |
| 64 | relationship: tosca.relationships.BelongsToOne |
| 65 | |
| 66 | # Setup the fabric switch port where the external |
| 67 | # router is connected to |
| 68 | bngmapping: |
| 69 | type: tosca.nodes.BNGPortMapping |
| 70 | properties: |
| 71 | s_tag: any |
Luca Prete | 11a7eda | 2018-09-17 12:51:36 -0700 | [diff] [blame] | 72 | switch_port: 48 |
Luca Prete | a67d353 | 2018-09-14 10:16:10 -0700 | [diff] [blame] | 73 | |
| 74 | # ONU Whitelist |
| 75 | service#att: |
| 76 | type: tosca.nodes.AttWorkflowDriverService |
| 77 | properties: |
| 78 | name: att-workflow-driver |
| 79 | must-exist: true |
| 80 | |
Luca Prete | 162d462 | 2018-09-17 15:46:50 -0700 | [diff] [blame] | 81 | ALPHe3d1cea3: |
Luca Prete | 901cc2e | 2018-09-14 14:15:31 -0700 | [diff] [blame] | 82 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 83 | properties: |
Luca Prete | 162d462 | 2018-09-17 15:46:50 -0700 | [diff] [blame] | 84 | serial_number: ALPHe3d1cea3 |
Matteo Scandolo | cfd6556 | 2018-09-19 11:58:57 -0700 | [diff] [blame] | 85 | # pon_port_id: 536870912 |
Matteo Scandolo | 3987ed9 | 2018-09-19 12:02:36 -0700 | [diff] [blame] | 86 | pon_port_id: 536870913 |
Luca Prete | 901cc2e | 2018-09-14 14:15:31 -0700 | [diff] [blame] | 87 | device_id: of:00000000c0a863b6 |
| 88 | requirements: |
| 89 | - owner: |
| 90 | node: service#att |
| 91 | relationship: tosca.relationships.BelongsToOne |
| 92 | |
Matteo Scandolo | cfd6556 | 2018-09-19 11:58:57 -0700 | [diff] [blame] | 93 | # ALPHe3d1cee9: |
| 94 | # type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 95 | # properties: |
| 96 | # serial_number: ALPHe3d1cee9 |
| 97 | # pon_port_id: 536870912 |
| 98 | # device_id: of:00000000c0a863b6 |
| 99 | # requirements: |
| 100 | # - owner: |
| 101 | # node: service#att |
| 102 | # relationship: tosca.relationships.BelongsToOne |
Luca Prete | 901cc2e | 2018-09-14 14:15:31 -0700 | [diff] [blame] | 103 | |
Luca Prete | 448d584 | 2018-09-17 16:25:35 -0700 | [diff] [blame] | 104 | ISKT71e810c0: |
Luca Prete | a67d353 | 2018-09-14 10:16:10 -0700 | [diff] [blame] | 105 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 106 | properties: |
Luca Prete | 448d584 | 2018-09-17 16:25:35 -0700 | [diff] [blame] | 107 | serial_number: ISKT71e810c0 |
Luca Prete | bcc5027 | 2018-09-17 10:50:16 -0700 | [diff] [blame] | 108 | pon_port_id: 536870912 |
| 109 | device_id: of:00000000c0a863b6 |
| 110 | requirements: |
| 111 | - owner: |
| 112 | node: service#att |
| 113 | relationship: tosca.relationships.BelongsToOne |
| 114 | |
Luca Prete | 162d462 | 2018-09-17 15:46:50 -0700 | [diff] [blame] | 115 | ISKT71e81130: |
Luca Prete | bcc5027 | 2018-09-17 10:50:16 -0700 | [diff] [blame] | 116 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 117 | properties: |
Luca Prete | 162d462 | 2018-09-17 15:46:50 -0700 | [diff] [blame] | 118 | serial_number: ISKT71e81130 |
Luca Prete | bcc5027 | 2018-09-17 10:50:16 -0700 | [diff] [blame] | 119 | pon_port_id: 536870913 |
| 120 | device_id: of:00000000c0a863b6 |
| 121 | requirements: |
| 122 | - owner: |
| 123 | node: service#att |
| 124 | relationship: tosca.relationships.BelongsToOne |
| 125 | |
Luca Prete | 162d462 | 2018-09-17 15:46:50 -0700 | [diff] [blame] | 126 | ISKT71e81050: |
Luca Prete | bcc5027 | 2018-09-17 10:50:16 -0700 | [diff] [blame] | 127 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 128 | properties: |
Luca Prete | 162d462 | 2018-09-17 15:46:50 -0700 | [diff] [blame] | 129 | serial_number: ISKT71e81050 |
Luca Prete | 901cc2e | 2018-09-14 14:15:31 -0700 | [diff] [blame] | 130 | pon_port_id: 536870913 |
| 131 | device_id: of:00000000c0a863b6 |
Luca Prete | a67d353 | 2018-09-14 10:16:10 -0700 | [diff] [blame] | 132 | requirements: |
| 133 | - owner: |
| 134 | node: service#att |
| 135 | relationship: tosca.relationships.BelongsToOne |
Luca Prete | 019d66b | 2018-12-03 21:46:51 -0800 | [diff] [blame] | 136 | |
| 137 | # DHCP L2 Relay config |
| 138 | onos_app#dhcpl2relay: |
| 139 | type: tosca.nodes.ONOSApp |
| 140 | properties: |
| 141 | name: dhcpl2relay |
| 142 | must-exist: true |
| 143 | |
| 144 | dhcpl2relay-config-attr: |
| 145 | type: tosca.nodes.ServiceInstanceAttribute |
| 146 | properties: |
| 147 | name: /onos/v1/network/configuration/apps/org.opencord.dhcpl2relay |
| 148 | value: > |
| 149 | { |
| 150 | "dhcpl2relay" : { |
| 151 | "useOltUplinkForServerPktInOut" : false, |
| 152 | "dhcpServerConnectPoints" : [ "of:0000000000000001/48" ] |
| 153 | } |
| 154 | } |
| 155 | requirements: |
| 156 | - service_instance: |
| 157 | node: onos_app#dhcpl2relay |
| 158 | relationship: tosca.relationships.BelongsToOne |