Scott Baker | 59b1e07 | 2018-08-23 15:59:05 -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 | - custom_types/uniport.yaml |
| 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: |
| 31 | name: test_olt |
| 32 | must-exist: true |
| 33 | |
| 34 | pon_port2: |
| 35 | type: tosca.nodes.PONPort |
| 36 | properties: |
| 37 | name: test_pon_port_2 |
| 38 | port_no: 3 |
| 39 | requirements: |
| 40 | - olt_device: |
| 41 | node: device#olt |
| 42 | relationship: tosca.relationships.BelongsToOne |
| 43 | |
| 44 | device#onu2: |
| 45 | type: tosca.nodes.ONUDevice |
| 46 | properties: |
| 47 | serial_number: BRCM1235 |
| 48 | vendor: Broadcom |
| 49 | requirements: |
| 50 | - pon_port: |
| 51 | node: pon_port2 |
| 52 | relationship: tosca.relationships.BelongsToOne |
| 53 | |
| 54 | uni_port2: |
| 55 | type: tosca.nodes.UNIPort |
| 56 | properties: |
| 57 | name: test_uni_port_2 |
| 58 | port_no: 3 |
| 59 | requirements: |
| 60 | - onu_device: |
| 61 | node: device#onu2 |
| 62 | relationship: tosca.relationships.BelongsToOne |