blob: cbe33774c82a679624ab8709081dd37849b5f77c [file] [log] [blame]
Matteo Scandolo97d853b2018-08-29 16:22:08 -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
Matteo Scandolo77171952018-09-04 14:43:43 -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
Matteo Scandolo97d853b2018-08-29 16:22:08 -070016
17tosca_definitions_version: tosca_simple_yaml_1_0
18imports:
19 - custom_types/oltdevice.yaml
20 - custom_types/onudevice.yaml
21 - custom_types/voltservice.yaml
Matteo Scandolo7b81da92019-06-11 09:11:23 -070022 - custom_types/technologyprofile.yaml
Matteo Scandolo97d853b2018-08-29 16:22:08 -070023description: 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:
Matteo Scandoloa4a89ca2018-12-18 08:06:56 -080036 name: ONF OLT
Matteo Scandolo97d853b2018-08-29 16:22:08 -070037 device_type: openolt
Matteo Scandoloa4a89ca2018-12-18 08:06:56 -080038 host: 10.90.0.114
39 port: 9191
Matteo Scandolo97d853b2018-08-29 16:22:08 -070040 switch_datapath_id: of:0000000000000001
Matteo Scandoloa4a89ca2018-12-18 08:06:56 -080041 switch_port: "1"
Matteo Scandolo97d853b2018-08-29 16:22:08 -070042 outer_tpid: "0x8100"
Scott Baker970d5d52018-12-11 07:00:17 +000043 uplink: "65536"
Matteo Scandolo77171952018-09-04 14:43:43 -070044 nas_id: "NAS_ID"
Matteo Scandolo97d853b2018-08-29 16:22:08 -070045 requirements:
46 - volt_service:
47 node: service#volt
Matteo Scandolo50b27102019-06-11 08:40:58 -070048 relationship: tosca.relationships.BelongsToOne
49
50 technologyProfile:
51 type: tosca.nodes.TechnologyProfile
52 properties:
53 profile_id: 64
54 technology: xgspon
55 profile_value: >
56 {
57 "name": "4QueueHybridProfileMap1",
58 "profile Type": "XPON",
59 "version": 1.0,
60 "instance_control": {
61 "onu": "multi-instance",
62 "uni": "single-instance",
63 "num_gem_ports": 4,
64 "Max_GEM_Payload_Size": "auto"
65 },
66 "u_s_scheduler": {
67 "additional_bw": "auto",
68 "priority": 0,
69 "weight": 0,
70 "q_sched_policy": "hybrid"
71 },
72 "d_s_scheduler": {
73 "priority": 0,
74 "weight": 0,
75 "q_sched_policy": "hybrid"
76 },
77 "Upstream GEM_Port_attribute_List": [{
78 "pbit_map": "0b00000101",
79 "AES_Encryption": "TRUE",
80 "Scheduling_Policy": "WRR",
81 "Priority_Q": 4,
82 "Weight": 25,
83 "Discard_Policy": "Tail-Drop",
84 "Max_Q_Size": "auto",
85 "Discard_Config": {
86 "Min_Threshold": 0,
87 "Max_Threshold": 0,
88 "Max_Probability": 0
89 }
90 },
91 {
92 "pbit_map": "0b00011010",
93 "AES_Encryption": "TRUE",
94 "Scheduling_Policy": "WRR",
95 "Priority_Q": 3,
96 "Weight": 75,
97 "Discard_Policy": "Tail-Drop",
98 "Max_Q_Size": "auto",
99 "Discard_Config": {
100 "Min_Threshold": 0,
101 "Max_Threshold": 0,
102 "Max_Probability": 0
103 }
104 },
105 {
106 "pbit_map": "0b00100000",
107 "AES_Encryption": "TRUE",
108 "Scheduling_Policy": "Strict-Priority",
109 "Priority_Q": 2,
110 "Weight": 0,
111 "Discard_Policy": "Tail-Drop",
112 "Max_Q_Size": "auto",
113 "Discard_Config": {
114 "Min_Threshold": 0,
115 "Max_Threshold": 0,
116 "Max_Probability": 0
117 }
118 },
119 {
120 "pbit_map": "0b11000000",
121 "AES_Encryption": "TRUE",
122 "Scheduling_Policy": "Strict-Priority",
123 "Priority_Q": 1,
124 "Weight": 0,
125 "Discard_Policy": "Tail-Drop",
126 "Max_Q_Size": "auto",
127 "Discard_Config": {
128 "Min_Threshold": 0,
129 "Max_Threshold": 0,
130 "Max_Probability": 0
131 }
132 }
133 ],
134 "Downstream GEM_Port_attribute_List": [{
135 "pbit_map": "0b00000101",
136 "AES_Encryption": "TRUE",
137 "Scheduling_Policy": "WRR",
138 "Priority_Q": 4,
139 "Weight": 10,
140 "Discard_Policy": "Tail-Drop",
141 "Max_Q_Size": "auto",
142 "Discard_Config": {
143 "Min_Threshold": 0,
144 "Max_Threshold": 0,
145 "Max_Probability": 0
146 }
147 },
148 {
149 "pbit_map": "0b00011010",
150 "AES_Encryption": "TRUE",
151 "Scheduling_Policy": "WRR",
152 "Priority_Q": 3,
153 "Weight": 90,
154 "Discard_Policy": "Tail-Drop",
155 "Max_Q_Size": "auto",
156 "Discard_Config": {
157 "Min_Threshold": 0,
158 "Max_Threshold": 0,
159 "Max_Probability": 0
160 }
161 },
162 {
163 "pbit_map": "0b00100000",
164 "AES_Encryption": "TRUE",
165 "Scheduling_Policy": "Strict-Priority",
166 "Priority_Q": 2,
167 "Weight": 0,
168 "Discard_Policy": "Tail-Drop",
169 "Max_Q_Size": "auto",
170 "Discard_Config": {
171 "Min_Threshold": 0,
172 "Max_Threshold": 0,
173 "Max_Probability": 0
174 }
175 },
176 {
177 "pbit_map": "0b11000000",
178 "AES_Encryption": "TRUE",
179 "Scheduling_Policy": "Strict-Priority",
180 "Priority_Q": 1,
181 "Weight": 0,
182 "Discard_Policy": "Tail-Drop",
183 "Max_Q_Size": "auto",
184 "Discard_Config": {
185 "Min_Threshold": 0,
186 "Max_Threshold": 0,
187 "Max_Probability": 0
188 }
189 }
190 ]
191 }