blob: f33efc58196e924d63c1e68a063c35b00535051b [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,
Suchitra Vemuri8c655362019-06-26 15:34:06 -070060 "num_gem_ports": 4,
Suchitra Vemuri960395f2019-06-23 15:28:36 -070061 "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",
Matteo Scandolob60bd042019-06-25 10:38:24 -070082 "aes_encryption": "True",
Matteo Scandolo4132e442019-06-25 12:55:01 -070083 "scheduling_policy": "StrictPriority",
Suchitra Vemuri960395f2019-06-23 15:28:36 -070084 "priority_q": 1,
85 "weight": 0,
Matteo Scandolo56ccdec2019-06-25 12:02:34 -070086 "discard_policy": "TailDrop",
Suchitra Vemuri960395f2019-06-23 15:28:36 -070087 "max_q_size": "auto",
88 "discard_config": {
89 "min_threshold": 0,
90 "max_threshold": 0,
91 "max_probability": 0
92 }
Suchitra Vemuri8c655362019-06-26 15:34:06 -070093 },
94 {
95 "pbit_map": "0b00011010",
96 "aes_encryption": "True",
97 "scheduling_policy": "WRR",
98 "priority_q": 3,
99 "weight": 75,
100 "discard_policy": "TailDrop",
101 "max_q_size": "auto",
102 "discard_config": {
103 "min_threshold": 0,
104 "max_threshold": 0,
105 "max_probability": 0
106 }
107 },
108 {
109 "pbit_map": "0b00100000",
110 "aes_encryption": "True",
111 "scheduling_policy": "StrictPriority",
112 "priority_q": 2,
113 "weight": 0,
114 "discard_policy": "TailDrop",
115 "max_q_size": "auto",
116 "discard_config": {
117 "min_threshold": 0,
118 "max_threshold": 0,
119 "max_probability": 0
120 }
121 },
122 {
123 "pbit_map": "0b11000000",
124 "aes_encryption": "True",
125 "scheduling_policy": "StrictPriority",
126 "priority_q": 1,
127 "weight": 25,
128 "discard_policy": "TailDrop",
129 "max_q_size": "auto",
130 "discard_config": {
131 "min_threshold": 0,
132 "max_threshold": 0,
133 "max_probability": 0
134 }
Suchitra Vemuri960395f2019-06-23 15:28:36 -0700135 }
136 ],
137 "downstream_gem_port_attribute_list": [{
138 "pbit_map": "0b11000000",
Matteo Scandolob60bd042019-06-25 10:38:24 -0700139 "aes_encryption": "True",
Matteo Scandolo4132e442019-06-25 12:55:01 -0700140 "scheduling_policy": "StrictPriority",
Suchitra Vemuri960395f2019-06-23 15:28:36 -0700141 "priority_q": 1,
142 "weight": 0,
Matteo Scandolo56ccdec2019-06-25 12:02:34 -0700143 "discard_policy": "TailDrop",
Suchitra Vemuri960395f2019-06-23 15:28:36 -0700144 "max_q_size": "auto",
145 "discard_config": {
146 "min_threshold": 0,
147 "max_threshold": 0,
148 "max_probability": 0
149 }
Suchitra Vemuri8c655362019-06-26 15:34:06 -0700150 },
151 {
152 "pbit_map": "0b00011010",
153 "aes_encryption": "True",
154 "scheduling_policy": "StrictPriority",
155 "priority_q": 3,
156 "weight": 90,
157 "discard_policy": "TailDrop",
158 "max_q_size": "auto",
159 "discard_config": {
160 "min_threshold": 0,
161 "max_threshold": 0,
162 "max_probability": 0
163 }
164 },
165 {
166 "pbit_map": "0b00100000",
167 "aes_encryption": "True",
168 "scheduling_policy": "StrictPriority",
169 "priority_q": 2,
170 "weight": 0,
171 "discard_policy": "TailDrop",
172 "max_q_size": "auto",
173 "discard_config": {
174 "min_threshold": 0,
175 "max_threshold": 0,
176 "max_probability": 0
177 }
178 },
179 {
180 "pbit_map": "0b11000000",
181 "aes_encryption": "True",
182 "scheduling_policy": "StrictPriority",
183 "priority_q": 1,
184 "weight": 25,
185 "discard_policy": "TailDrop",
186 "max_q_size": "auto",
187 "discard_config": {
188 "min_threshold": 0,
189 "max_threshold": 0,
190 "max_probability": 0
191 }
Suchitra Vemuri960395f2019-06-23 15:28:36 -0700192 }
193 ]
Suchitra Vemuri58ffc072019-06-21 15:03:34 -0700194 }