You Wang | a069ccb | 2018-11-13 13:25:59 -0800 | [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 | 7d843b7 | 2019-05-13 17:30:38 -0700 | [diff] [blame] | 15 | # curl -H "xos-username: admin@opencord.org" -H "xos-password: letmein" -X POST --data-binary @onlab-pod1-qa-fabric.yaml http://10.90.0.101:30007/run |
You Wang | a069ccb | 2018-11-13 13:25:59 -0800 | [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 | - custom_types/serviceinstanceattribute.yaml |
| 26 | - custom_types/onosapp.yaml |
Matteo Scandolo | c84d724 | 2019-06-26 15:58:27 -0700 | [diff] [blame] | 27 | - custom_types/technologyprofile.yaml |
You Wang | a069ccb | 2018-11-13 13:25:59 -0800 | [diff] [blame] | 28 | |
| 29 | description: Configures the ONF SEBA POD with AT&T workflow |
| 30 | |
| 31 | topology_template: |
| 32 | node_templates: |
| 33 | # Fabric configuration |
| 34 | switch#leaf_1: |
| 35 | type: tosca.nodes.Switch |
| 36 | properties: |
| 37 | driver: ofdpa3 |
| 38 | ipv4Loopback: 192.168.0.201 |
| 39 | ipv4NodeSid: 17 |
| 40 | isEdgeRouter: True |
| 41 | name: AGG_SWITCH |
| 42 | ofId: of:0000000000000001 |
| 43 | routerMac: 00:00:02:01:06:01 |
| 44 | |
| 45 | # Setup the OLT switch port |
| 46 | port#olt_port: |
| 47 | type: tosca.nodes.SwitchPort |
| 48 | properties: |
| 49 | portId: 1 |
| 50 | host_learning: false |
| 51 | requirements: |
| 52 | - switch: |
| 53 | node: switch#leaf_1 |
| 54 | relationship: tosca.relationships.BelongsToOne |
| 55 | |
| 56 | # Port connected to the BNG |
| 57 | port#bng_port: |
| 58 | type: tosca.nodes.SwitchPort |
| 59 | properties: |
| 60 | portId: 31 |
| 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 |
| 72 | switch_port: 31 |
| 73 | |
| 74 | # DHCP L2 Relay config |
| 75 | onos_app#dhcpl2relay: |
| 76 | type: tosca.nodes.ONOSApp |
| 77 | properties: |
| 78 | name: dhcpl2relay |
| 79 | must-exist: true |
| 80 | |
| 81 | dhcpl2relay-config-attr: |
| 82 | type: tosca.nodes.ServiceInstanceAttribute |
| 83 | properties: |
| 84 | name: /onos/v1/network/configuration/apps/org.opencord.dhcpl2relay |
| 85 | value: > |
| 86 | { |
| 87 | "dhcpl2relay" : { |
| 88 | "useOltUplinkForServerPktInOut" : false, |
| 89 | "dhcpServerConnectPoints" : [ "of:0000000000000001/31" ] |
| 90 | } |
| 91 | } |
| 92 | requirements: |
| 93 | - service_instance: |
| 94 | node: onos_app#dhcpl2relay |
| 95 | relationship: tosca.relationships.BelongsToOne |
| 96 | |
| 97 | # ONU Whitelist |
| 98 | service#att: |
| 99 | type: tosca.nodes.AttWorkflowDriverService |
| 100 | properties: |
| 101 | name: att-workflow-driver |
| 102 | must-exist: true |
| 103 | |
Matteo Scandolo | 069eaa9 | 2019-06-27 13:12:06 -0700 | [diff] [blame] | 104 | ISKT71e801a0: |
You Wang | a069ccb | 2018-11-13 13:25:59 -0800 | [diff] [blame] | 105 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 106 | properties: |
Matteo Scandolo | 069eaa9 | 2019-06-27 13:12:06 -0700 | [diff] [blame] | 107 | serial_number: ISKT71e801a0 |
Matteo Scandolo | 9825d5e | 2019-06-27 13:30:17 -0700 | [diff] [blame] | 108 | pon_port_id: 536870912 |
You Wang | a069ccb | 2018-11-13 13:25:59 -0800 | [diff] [blame] | 109 | device_id: of:000000000a5a0072 |
| 110 | requirements: |
| 111 | - owner: |
| 112 | node: service#att |
| 113 | relationship: tosca.relationships.BelongsToOne |
| 114 | |
| 115 | ALPHe3d1cfde: |
| 116 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 117 | properties: |
| 118 | serial_number: ALPHe3d1cfde |
| 119 | pon_port_id: 536870912 |
| 120 | device_id: of:000000000a5a0072 |
| 121 | requirements: |
| 122 | - owner: |
| 123 | node: service#att |
| 124 | relationship: tosca.relationships.BelongsToOne |
| 125 | |
Matteo Scandolo | 7d843b7 | 2019-05-13 17:30:38 -0700 | [diff] [blame] | 126 | ISKT71e80080: |
You Wang | a069ccb | 2018-11-13 13:25:59 -0800 | [diff] [blame] | 127 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 128 | properties: |
Matteo Scandolo | 7d843b7 | 2019-05-13 17:30:38 -0700 | [diff] [blame] | 129 | serial_number: ISKT71e80080 |
You Wang | a069ccb | 2018-11-13 13:25:59 -0800 | [diff] [blame] | 130 | pon_port_id: 536870912 |
| 131 | device_id: of:000000000a5a0072 |
| 132 | requirements: |
| 133 | - owner: |
| 134 | node: service#att |
| 135 | relationship: tosca.relationships.BelongsToOne |
Matteo Scandolo | c84d724 | 2019-06-26 15:58:27 -0700 | [diff] [blame] | 136 | |
| 137 | technologyProfile: |
| 138 | type: tosca.nodes.TechnologyProfile |
| 139 | properties: |
| 140 | profile_id: 64 |
| 141 | technology: xgspon |
| 142 | profile_value: > |
| 143 | { |
| 144 | "name": "4QueueHybridProfileMap1", |
| 145 | "profile_type": "XPON", |
Suchitra Vemuri | c484e94 | 2019-06-26 18:39:34 -0700 | [diff] [blame] | 146 | "version": 1.0, |
| 147 | "num_gem_ports": 1, |
Matteo Scandolo | c84d724 | 2019-06-26 15:58:27 -0700 | [diff] [blame] | 148 | "instance_control": { |
| 149 | "onu": "multi-instance", |
| 150 | "uni": "single-instance", |
| 151 | "max_gem_payload_size": "auto" |
| 152 | }, |
| 153 | "us_scheduler": { |
| 154 | "additional_bw": "auto", |
| 155 | "direction": "UPSTREAM", |
| 156 | "priority": 0, |
| 157 | "weight": 0, |
Matteo Scandolo | 069eaa9 | 2019-06-27 13:12:06 -0700 | [diff] [blame] | 158 | "q_sched_policy": "hybrid" |
Matteo Scandolo | c84d724 | 2019-06-26 15:58:27 -0700 | [diff] [blame] | 159 | }, |
| 160 | "ds_scheduler": { |
| 161 | "additional_bw": "auto", |
| 162 | "direction": "DOWNSTREAM", |
| 163 | "priority": 0, |
| 164 | "weight": 0, |
Matteo Scandolo | 069eaa9 | 2019-06-27 13:12:06 -0700 | [diff] [blame] | 165 | "q_sched_policy": "hybrid" |
Matteo Scandolo | c84d724 | 2019-06-26 15:58:27 -0700 | [diff] [blame] | 166 | }, |
Suchitra Vemuri | c484e94 | 2019-06-26 18:39:34 -0700 | [diff] [blame] | 167 | "upstream_gem_port_attribute_list": [{ |
Suchitra Vemuri | 9b616c9 | 2019-06-26 19:09:28 -0700 | [diff] [blame] | 168 | "pbit_map": "0b11111111", |
Matteo Scandolo | c84d724 | 2019-06-26 15:58:27 -0700 | [diff] [blame] | 169 | "aes_encryption": "True", |
Matteo Scandolo | 069eaa9 | 2019-06-27 13:12:06 -0700 | [diff] [blame] | 170 | "scheduling_policy": "StrictPriority", |
| 171 | "priority_q": 1, |
Suchitra Vemuri | c484e94 | 2019-06-26 18:39:34 -0700 | [diff] [blame] | 172 | "weight": 0, |
Matteo Scandolo | c84d724 | 2019-06-26 15:58:27 -0700 | [diff] [blame] | 173 | "discard_policy": "TailDrop", |
| 174 | "max_q_size": "auto", |
| 175 | "discard_config": { |
| 176 | "min_threshold": 0, |
| 177 | "max_threshold": 0, |
| 178 | "max_probability": 0 |
| 179 | } |
| 180 | } |
| 181 | ], |
Suchitra Vemuri | c484e94 | 2019-06-26 18:39:34 -0700 | [diff] [blame] | 182 | "downstream_gem_port_attribute_list": [{ |
Suchitra Vemuri | 9b616c9 | 2019-06-26 19:09:28 -0700 | [diff] [blame] | 183 | "pbit_map": "0b11111111", |
Matteo Scandolo | c84d724 | 2019-06-26 15:58:27 -0700 | [diff] [blame] | 184 | "aes_encryption": "True", |
Matteo Scandolo | 069eaa9 | 2019-06-27 13:12:06 -0700 | [diff] [blame] | 185 | "scheduling_policy": "StrictPriority", |
| 186 | "priority_q": 1, |
Suchitra Vemuri | c484e94 | 2019-06-26 18:39:34 -0700 | [diff] [blame] | 187 | "weight": 0, |
Matteo Scandolo | c84d724 | 2019-06-26 15:58:27 -0700 | [diff] [blame] | 188 | "discard_policy": "TailDrop", |
| 189 | "max_q_size": "auto", |
| 190 | "discard_config": { |
| 191 | "min_threshold": 0, |
| 192 | "max_threshold": 0, |
| 193 | "max_probability": 0 |
| 194 | } |
| 195 | } |
| 196 | ] |
| 197 | } |