blob: 28218e20d817dc9cc584f1ef0f21e0a71e00b60a [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
23description: Create a simulated OLT Device in VOLTHA
24topology_template:
25 node_templates:
26
27 device#olt:
28 type: tosca.nodes.OLTDevice
29 properties:
Matteo Scandoloe48a4642018-06-26 10:08:34 -070030 name: test_olt
Matteo Scandolo6be6ee92018-05-24 15:07:51 -070031 must-exist: true
32
33 pon_port:
34 type: tosca.nodes.PONPort
35 properties:
Matteo Scandolo2360fd92018-05-29 17:27:51 -070036 name: test_pon_port_1
Matteo Scandolo6be6ee92018-05-24 15:07:51 -070037 port_no: 2
38 s_tag: 222
39 requirements:
40 - olt_device:
41 node: device#olt
42 relationship: tosca.relationships.BelongsToOne
Matteo Scandolo2360fd92018-05-29 17:27:51 -070043
44 onu:
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