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 |
| 23 | description: Create a simulated OLT Device in VOLTHA |
| 24 | topology_template: |
| 25 | node_templates: |
| 26 | |
| 27 | device#olt: |
| 28 | type: tosca.nodes.OLTDevice |
| 29 | properties: |
| 30 | device_type: simulated_olt |
| 31 | host: 172.17.0.1 |
| 32 | port: 50060 |
| 33 | must-exist: true |
| 34 | |
| 35 | pon_port: |
| 36 | type: tosca.nodes.PONPort |
| 37 | properties: |
Matteo Scandolo | 2360fd9 | 2018-05-29 17:27:51 -0700 | [diff] [blame^] | 38 | name: test_pon_port_1 |
Matteo Scandolo | 6be6ee9 | 2018-05-24 15:07:51 -0700 | [diff] [blame] | 39 | port_no: 2 |
| 40 | s_tag: 222 |
| 41 | requirements: |
| 42 | - olt_device: |
| 43 | node: device#olt |
| 44 | relationship: tosca.relationships.BelongsToOne |
Matteo Scandolo | 2360fd9 | 2018-05-29 17:27:51 -0700 | [diff] [blame^] | 45 | |
| 46 | onu: |
| 47 | type: tosca.nodes.ONUDevice |
| 48 | properties: |
| 49 | serial_number: BRCM1234 |
| 50 | vendor: Broadcom |
| 51 | requirements: |
| 52 | - pon_port: |
| 53 | node: pon_port |
| 54 | relationship: tosca.relationships.BelongsToOne |