blob: 684238ec31e975d6d15fb9f3436ef22bf2b7a747 [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
39 s_tag: 222
40 requirements:
41 - olt_device:
42 node: device#olt
43 relationship: tosca.relationships.BelongsToOne
Matteo Scandolo2360fd92018-05-29 17:27:51 -070044
Matteo Scandolo72f43d02018-07-16 10:54:01 -040045 device#onu:
Matteo Scandolo2360fd92018-05-29 17:27:51 -070046 type: tosca.nodes.ONUDevice
47 properties:
48 serial_number: BRCM1234
49 vendor: Broadcom
50 requirements:
51 - pon_port:
52 node: pon_port
53 relationship: tosca.relationships.BelongsToOne
Matteo Scandolo72f43d02018-07-16 10:54:01 -040054
55 uni_port:
56 type: tosca.nodes.UNIPort
57 properties:
58 name: test_uni_port_1
59 port_no: 2
60 requirements:
61 - onu_device:
62 node: device#onu
63 relationship: tosca.relationships.BelongsToOne