Matteo Scandolo | 26f19ca | 2018-09-17 10:22:29 -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 | 768d9d1 | 2018-09-18 15:21:24 -0700 | [diff] [blame] | 15 | # curl -H "xos-username: admin@opencord.org" -H "xos-password: letmein" -X POST --data-binary @onlab-pod1-shad.yaml http://10.90.0.101:30007/run |
Matteo Scandolo | 26f19ca | 2018-09-17 10:22:29 -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 |
Matteo Scandolo | 209c186 | 2018-09-17 15:08:44 -0700 | [diff] [blame] | 22 | - custom_types/rcordsubscriber.yaml |
| 23 | - custom_types/attworkflowdriverwhitelistentry.yaml |
| 24 | - custom_types/attworkflowdriverservice.yaml |
Matteo Scandolo | 26f19ca | 2018-09-17 10:22:29 -0700 | [diff] [blame] | 25 | description: Create a simulated OLT Device in VOLTHA |
| 26 | topology_template: |
| 27 | node_templates: |
| 28 | |
| 29 | service#volt: |
| 30 | type: tosca.nodes.VOLTService |
| 31 | properties: |
| 32 | name: volt |
| 33 | must-exist: true |
| 34 | |
| 35 | # OLT ------------------------------------------------ |
| 36 | olt_device: |
| 37 | type: tosca.nodes.OLTDevice |
| 38 | properties: |
Matteo Scandolo | 209c186 | 2018-09-17 15:08:44 -0700 | [diff] [blame] | 39 | name: SHAD OLT |
Matteo Scandolo | 26f19ca | 2018-09-17 10:22:29 -0700 | [diff] [blame] | 40 | device_type: openolt |
Matteo Scandolo | 1760e9b | 2018-10-08 10:17:51 -0700 | [diff] [blame] | 41 | host: 10.90.0.122 |
Matteo Scandolo | 26f19ca | 2018-09-17 10:22:29 -0700 | [diff] [blame] | 42 | port: 9191 |
| 43 | switch_datapath_id: of:0000000000000001 |
Matteo Scandolo | 209c186 | 2018-09-17 15:08:44 -0700 | [diff] [blame] | 44 | switch_port: "2" |
Matteo Scandolo | 26f19ca | 2018-09-17 10:22:29 -0700 | [diff] [blame] | 45 | outer_tpid: "0x8100" |
Scott Baker | 970d5d5 | 2018-12-11 07:00:17 +0000 | [diff] [blame] | 46 | uplink: "65536" |
Matteo Scandolo | 26f19ca | 2018-09-17 10:22:29 -0700 | [diff] [blame] | 47 | nas_id: "NAS_ID" |
| 48 | requirements: |
| 49 | - volt_service: |
| 50 | node: service#volt |
| 51 | relationship: tosca.relationships.BelongsToOne |
| 52 | |
| 53 | # Whitelist ------------------------------------------------ |
Matteo Scandolo | 209c186 | 2018-09-17 15:08:44 -0700 | [diff] [blame] | 54 | service#att: |
| 55 | type: tosca.nodes.AttWorkflowDriverService |
| 56 | properties: |
| 57 | name: att-workflow-driver |
| 58 | must-exist: true |
| 59 | |
Matteo Scandolo | 26f19ca | 2018-09-17 10:22:29 -0700 | [diff] [blame] | 60 | ALPHe3d1cfe3: |
| 61 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 62 | properties: |
| 63 | serial_number: ALPHe3d1cfe3 |
| 64 | pon_port_id: 536870912 |
| 65 | device_id: of:000000000a5a0097 |
| 66 | requirements: |
| 67 | - owner: |
| 68 | node: service#att |
| 69 | relationship: tosca.relationships.BelongsToOne |
| 70 | |
| 71 | ISKT71E80080: |
| 72 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 73 | properties: |
| 74 | serial_number: ISKT71E80080 |
| 75 | pon_port_id: 536870912 |
| 76 | device_id: of:000000000a5a0097 |
| 77 | requirements: |
| 78 | - owner: |
| 79 | node: service#att |
| 80 | relationship: tosca.relationships.BelongsToOne |
| 81 | |
| 82 | # Subscriber ------------------------------------------------ |
| 83 | shad_1: |
| 84 | type: tosca.nodes.RCORDSubscriber |
| 85 | properties: |
| 86 | name: Sub_ALPHe3d1cfe3 |
| 87 | status: pre-provisioned |
Matteo Scandolo | 209c186 | 2018-09-17 15:08:44 -0700 | [diff] [blame] | 88 | c_tag: 115 |
Matteo Scandolo | 26f19ca | 2018-09-17 10:22:29 -0700 | [diff] [blame] | 89 | s_tag: 222 |
| 90 | onu_device: ALPHe3d1cfe3 |
| 91 | nas_port_id : "PON 1/1/03/1:1.1.1" |
| 92 | circuit_id: foo1 |
| 93 | remote_id: bar1 |
| 94 | |
| 95 | shad_2: |
| 96 | type: tosca.nodes.RCORDSubscriber |
| 97 | properties: |
| 98 | name: Sub_ISKT71E80080 |
| 99 | status: pre-provisioned |
| 100 | c_tag: 222 |
| 101 | s_tag: 222 |
Matteo Scandolo | 209c186 | 2018-09-17 15:08:44 -0700 | [diff] [blame] | 102 | onu_device: ISKT71e80080 |
Matteo Scandolo | 26f19ca | 2018-09-17 10:22:29 -0700 | [diff] [blame] | 103 | nas_port_id : "PON 1/1/04/1:1.1.1" |
| 104 | circuit_id: foo2 |
| 105 | remote_id: bar2 |