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-olt.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/oltdevice.yaml |
| 20 | - custom_types/onudevice.yaml |
| 21 | - custom_types/voltservice.yaml |
Scott Baker | 133d0f3 | 2018-11-29 09:08:01 -0800 | [diff] [blame] | 22 | - custom_types/attworkflowdriverwhitelistentry.yaml |
| 23 | - custom_types/attworkflowdriverservice.yaml |
| 24 | - custom_types/rcordsubscriber.yaml |
| 25 | - custom_types/switch.yaml |
| 26 | - custom_types/switchport.yaml |
Matteo Scandolo | 97d853b | 2018-08-29 16:22:08 -0700 | [diff] [blame] | 27 | description: Create a simulated OLT Device in VOLTHA |
| 28 | topology_template: |
| 29 | node_templates: |
| 30 | |
| 31 | service#volt: |
| 32 | type: tosca.nodes.VOLTService |
| 33 | properties: |
| 34 | name: volt |
| 35 | must-exist: true |
| 36 | |
Scott Baker | 133d0f3 | 2018-11-29 09:08:01 -0800 | [diff] [blame] | 37 | # CIG |
Matteo Scandolo | 97d853b | 2018-08-29 16:22:08 -0700 | [diff] [blame] | 38 | olt_device: |
| 39 | type: tosca.nodes.OLTDevice |
| 40 | properties: |
Scott Baker | 133d0f3 | 2018-11-29 09:08:01 -0800 | [diff] [blame] | 41 | name: CIG |
Matteo Scandolo | 97d853b | 2018-08-29 16:22:08 -0700 | [diff] [blame] | 42 | device_type: openolt |
Scott Baker | 133d0f3 | 2018-11-29 09:08:01 -0800 | [diff] [blame] | 43 | host: 10.90.0.115 |
| 44 | port: 10400 |
Matteo Scandolo | 97d853b | 2018-08-29 16:22:08 -0700 | [diff] [blame] | 45 | switch_datapath_id: of:0000000000000001 |
Scott Baker | 133d0f3 | 2018-11-29 09:08:01 -0800 | [diff] [blame] | 46 | switch_port: "4" |
Matteo Scandolo | 97d853b | 2018-08-29 16:22:08 -0700 | [diff] [blame] | 47 | outer_tpid: "0x8100" |
Matteo Scandolo | 5b0284c | 2018-09-12 16:13:17 -0700 | [diff] [blame] | 48 | uplink: "65536" |
Matteo Scandolo | 7717195 | 2018-09-04 14:43:43 -0700 | [diff] [blame] | 49 | nas_id: "NAS_ID" |
Matteo Scandolo | 97d853b | 2018-08-29 16:22:08 -0700 | [diff] [blame] | 50 | requirements: |
| 51 | - volt_service: |
| 52 | node: service#volt |
| 53 | relationship: tosca.relationships.BelongsToOne |
Scott Baker | 133d0f3 | 2018-11-29 09:08:01 -0800 | [diff] [blame] | 54 | |
| 55 | # Whitelist |
| 56 | service#att: |
| 57 | type: tosca.nodes.AttWorkflowDriverService |
| 58 | properties: |
| 59 | name: att-workflow-driver |
| 60 | must-exist: true |
| 61 | |
| 62 | CIG: |
| 63 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 64 | properties: |
| 65 | serial_number: CIGG70606829 |
| 66 | pon_port_id: 536870913 |
| 67 | device_id: of:000000000a5a0073 |
| 68 | requirements: |
| 69 | - owner: |
| 70 | node: service#att |
| 71 | relationship: tosca.relationships.BelongsToOne |
| 72 | |
| 73 | # Pre-provision the subscriber |
| 74 | cig_subscriber_1: |
| 75 | type: tosca.nodes.RCORDSubscriber |
| 76 | properties: |
| 77 | name: Sub_CIGG70606829 |
| 78 | status: pre-provisioned |
| 79 | c_tag: 444 |
| 80 | s_tag: 444 |
| 81 | onu_device: CIGG70606829 |
| 82 | nas_port_id : "PON 1/1/03/1:1.1.1" |
| 83 | circuit_id: foo1 |
| 84 | remote_id: bar1 |
| 85 | |
| 86 | switch#leaf_1: |
| 87 | type: tosca.nodes.Switch |
| 88 | properties: |
| 89 | name: AGG_SWITCH |
| 90 | must-exist: true |
| 91 | |
| 92 | port#cig_olt_port: |
| 93 | type: tosca.nodes.SwitchPort |
| 94 | properties: |
| 95 | portId: 4 |
| 96 | host_learning: false |
| 97 | requirements: |
| 98 | - switch: |
| 99 | node: switch#leaf_1 |
| 100 | relationship: tosca.relationships.BelongsToOne |