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