blob: 2dfe376b753d016039d9f8e19dc8a142f0995e45 [file] [log] [blame]
Matteo Scandolo6be6ee92018-05-24 15:07:51 -07001# 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
17tosca_definitions_version: tosca_simple_yaml_1_0
18imports:
19 - custom_types/oltdevice.yaml
20 - custom_types/onudevice.yaml
21 - custom_types/ponport.yaml
22 - custom_types/voltservice.yaml
Matteo Scandolo72f43d02018-07-16 10:54:01 -040023 - custom_types/uniport.yaml
Matteo Scandolo6be6ee92018-05-24 15:07:51 -070024description: Create a simulated OLT Device in VOLTHA
25topology_template:
26 node_templates:
27
28 device#olt:
29 type: tosca.nodes.OLTDevice
30 properties:
Matteo Scandoloe48a4642018-06-26 10:08:34 -070031 name: test_olt
Matteo Scandolo6be6ee92018-05-24 15:07:51 -070032 must-exist: true
33
34 pon_port:
35 type: tosca.nodes.PONPort
36 properties:
Matteo Scandolo2360fd92018-05-29 17:27:51 -070037 name: test_pon_port_1
Matteo Scandolo6be6ee92018-05-24 15:07:51 -070038 port_no: 2
Matteo Scandolo6be6ee92018-05-24 15:07:51 -070039 requirements:
40 - olt_device:
41 node: device#olt
42 relationship: tosca.relationships.BelongsToOne
Matteo Scandolo2360fd92018-05-29 17:27:51 -070043
Matteo Scandolo72f43d02018-07-16 10:54:01 -040044 device#onu:
Matteo Scandolo2360fd92018-05-29 17:27:51 -070045 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 Scandolo72f43d02018-07-16 10:54:01 -040053
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