blob: 950fea3b5dffe2eec48c30126e91869f5dc0b92c [file] [log] [blame]
Andy Bavier7a080492018-08-30 14:26:09 -07001---
2# Copyright 2018-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16tosca_definitions_version: tosca_simple_yaml_1_0
17imports:
18 - custom_types/oltdevice.yaml
19 - custom_types/onudevice.yaml
20 - custom_types/ponport.yaml
21 - custom_types/voltservice.yaml
22description: Create a simulated OLT Device in VOLTHA
23topology_template:
24 node_templates:
25
26 service#volt:
27 type: tosca.nodes.VOLTService
28 properties:
29 name: volt
30 must-exist: true
31
32 olt_device:
33 type: tosca.nodes.OLTDevice
34 properties:
35 name: PONSIM OLT
36 device_type: ponsim_olt
37 host: olt
38 port: 50060
39 switch_datapath_id: of:0000000000000001
40 switch_port: "2"
41 outer_tpid: "0x8100"
42 dp_id: of:0000aabbccddeeff
43 uplink: "2"
44 requirements:
45 - volt_service:
46 node: service#volt
47 relationship: tosca.relationships.BelongsToOne
48
49 pon_port:
50 type: tosca.nodes.PONPort
51 properties:
52 name: pon0
53 port_no: 1
54 requirements:
55 - olt_device:
56 node: olt_device
57 relationship: tosca.relationships.BelongsToOne