blob: 1ae6947fef05d01a6fcf127c041eaf10c10e6cb5 [file] [log] [blame]
You Wanga069ccb2018-11-13 13:25:59 -08001# 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
Suchitra Vemuri58ffc072019-06-21 15:03:34 -070015# curl -H "xos-username: admin@opencord.org" -H "xos-password: letmein" -X POST --data-binary @onlab-pod1-olt.yaml http://10.90.0.101:30007/run
You Wanga069ccb2018-11-13 13:25:59 -080016
17tosca_definitions_version: tosca_simple_yaml_1_0
18imports:
19 - custom_types/oltdevice.yaml
20 - custom_types/onudevice.yaml
21 - custom_types/voltservice.yaml
Suchitra Vemuri58ffc072019-06-21 15:03:34 -070022 - custom_types/technologyprofile.yaml
You Wanga069ccb2018-11-13 13:25:59 -080023description: Create a simulated OLT Device in VOLTHA
24topology_template:
25 node_templates:
26
27 service#volt:
28 type: tosca.nodes.VOLTService
29 properties:
30 name: volt
31 must-exist: true
32
33 olt_device:
34 type: tosca.nodes.OLTDevice
35 properties:
36 name: ONF OLT
37 device_type: openolt
38 host: 10.90.0.114
39 port: 9191
40 switch_datapath_id: of:0000000000000001
41 switch_port: "1"
42 outer_tpid: "0x8100"
Scott Baker970d5d52018-12-11 07:00:17 +000043 uplink: "65536"
You Wanga069ccb2018-11-13 13:25:59 -080044 nas_id: "NAS_ID"
45 requirements:
46 - volt_service:
47 node: service#volt
48 relationship: tosca.relationships.BelongsToOne
Suchitra Vemuri58ffc072019-06-21 15:03:34 -070049
50 technologyProfile:
51 type: tosca.nodes.TechnologyProfile
52 properties:
53 profile_id: 64
54 technology: xgspon
55 profile_value: >
Suchitra Vemurif1e9d4f2019-06-23 16:18:45 -070056 {
Suchitra Vemuri960395f2019-06-23 15:28:36 -070057 "name": "4QueueHybridProfileMap1",
58 "profile_type": "XPON",
59 "version": 1.0,
60 "num_gem_ports": 1,
61 "instance_control": {
62 "onu": "multi-instance",
63 "uni": "single-instance",
64 "max_gem_payload_size": "auto"
65 },
66 "us_scheduler": {
67 "additional_bw": "auto",
68 "direction": "UPSTREAM",
69 "priority": 0,
70 "weight": 0,
71 "q_sched_policy": "hybrid"
72 },
73 "ds_scheduler": {
74 "additional_bw": "auto",
75 "direction": "DOWNSTREAM",
76 "priority": 0,
77 "weight": 0,
78 "q_sched_policy": "hybrid"
79 },
80 "upstream_gem_port_attribute_list": [{
81 "pbit_map": "0b11000000",
82 "aes_encryption": "TRUE",
83 "scheduling_policy": "Strict-Priority",
84 "priority_q": 1,
85 "weight": 0,
86 "discard_policy": "Tail-Drop",
87 "max_q_size": "auto",
88 "discard_config": {
89 "min_threshold": 0,
90 "max_threshold": 0,
91 "max_probability": 0
92 }
93 }
94 ],
95 "downstream_gem_port_attribute_list": [{
96 "pbit_map": "0b11000000",
97 "aes_encryption": "TRUE",
98 "scheduling_policy": "Strict-Priority",
99 "priority_q": 1,
100 "weight": 0,
101 "discard_policy": "Tail-Drop",
102 "max_q_size": "auto",
103 "discard_config": {
104 "min_threshold": 0,
105 "max_threshold": 0,
106 "max_probability": 0
107 }
108 }
109 ]
Suchitra Vemuri58ffc072019-06-21 15:03:34 -0700110 }