Matteo Scandolo | 6be6ee9 | 2018-05-24 15:07:51 -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 | |
| 15 | # curl -H "xos-username: admin@opencord.org" -H "xos-password: letmein" -X POST --data-binary @pon_port.yaml http://192.168.99.100:30007/run |
| 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/ponport.yaml |
| 22 | - custom_types/voltservice.yaml |
Matteo Scandolo | 72f43d0 | 2018-07-16 10:54:01 -0400 | [diff] [blame] | 23 | - custom_types/uniport.yaml |
Matteo Scandolo | 6be6ee9 | 2018-05-24 15:07:51 -0700 | [diff] [blame] | 24 | description: Create a simulated OLT Device in VOLTHA |
| 25 | topology_template: |
| 26 | node_templates: |
| 27 | |
| 28 | device#olt: |
| 29 | type: tosca.nodes.OLTDevice |
| 30 | properties: |
Matteo Scandolo | e48a464 | 2018-06-26 10:08:34 -0700 | [diff] [blame] | 31 | name: test_olt |
Matteo Scandolo | 6be6ee9 | 2018-05-24 15:07:51 -0700 | [diff] [blame] | 32 | must-exist: true |
| 33 | |
| 34 | pon_port: |
| 35 | type: tosca.nodes.PONPort |
| 36 | properties: |
Matteo Scandolo | 2360fd9 | 2018-05-29 17:27:51 -0700 | [diff] [blame] | 37 | name: test_pon_port_1 |
Matteo Scandolo | 6be6ee9 | 2018-05-24 15:07:51 -0700 | [diff] [blame] | 38 | port_no: 2 |
Matteo Scandolo | 6be6ee9 | 2018-05-24 15:07:51 -0700 | [diff] [blame] | 39 | requirements: |
| 40 | - olt_device: |
| 41 | node: device#olt |
| 42 | relationship: tosca.relationships.BelongsToOne |
Matteo Scandolo | 2360fd9 | 2018-05-29 17:27:51 -0700 | [diff] [blame] | 43 | |
Matteo Scandolo | 72f43d0 | 2018-07-16 10:54:01 -0400 | [diff] [blame] | 44 | device#onu: |
Matteo Scandolo | 2360fd9 | 2018-05-29 17:27:51 -0700 | [diff] [blame] | 45 | type: tosca.nodes.ONUDevice |
| 46 | properties: |
| 47 | serial_number: BRCM1234 |
| 48 | vendor: Broadcom |
| 49 | requirements: |
| 50 | - pon_port: |
| 51 | node: pon_port |
| 52 | relationship: tosca.relationships.BelongsToOne |
Matteo Scandolo | 72f43d0 | 2018-07-16 10:54:01 -0400 | [diff] [blame] | 53 | |
| 54 | uni_port: |
| 55 | type: tosca.nodes.UNIPort |
| 56 | properties: |
| 57 | name: test_uni_port_1 |
| 58 | port_no: 2 |
| 59 | requirements: |
| 60 | - onu_device: |
| 61 | node: device#onu |
| 62 | relationship: tosca.relationships.BelongsToOne |