Debian Codegraph @

ansible_collections/dellemc/enterprise_sonic/docs/dellemc.enterprise_sonic.sonic_qos_scheduler_module.rst

raw
1 .. _dellemc.enterprise_sonic.sonic_qos_scheduler_module:
2
3
4 ********************************************
5 dellemc.enterprise_sonic.sonic_qos_scheduler
6 ********************************************
7
8 **Manage QoS scheduler configuration on SONiC**
9
10
11 Version added: 2.5.0
12
13 .. contents::
14 :local:
15 :depth: 1
16
17
18 Synopsis
19 --------
20 - This module provides configuration management of QoS scheduler for devices running SONiC
21
22
23
24
25 Parameters
26 ----------
27
28 .. raw:: html
29
30 <table border=0 cellpadding=0 class="documentation-table">
31 <tr>
32 <th colspan="3">Parameter</th>
33 <th>Choices/<font color="blue">Defaults</font></th>
34 <th width="100%">Comments</th>
35 </tr>
36 <tr>
37 <td colspan="3">
38 <div class="ansibleOptionAnchor" id="parameter-"></div>
39 <b>config</b>
40 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
41 <div style="font-size: small">
42 <span style="color: purple">list</span>
43 / <span style="color: purple">elements=dictionary</span>
44 </div>
45 </td>
46 <td>
47 </td>
48 <td>
49 <div>QoS scheduler configuration</div>
50 </td>
51 </tr>
52 <tr>
53 <td class="elbow-placeholder"></td>
54 <td colspan="2">
55 <div class="ansibleOptionAnchor" id="parameter-"></div>
56 <b>name</b>
57 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
58 <div style="font-size: small">
59 <span style="color: purple">string</span>
60 / <span style="color: red">required</span>
61 </div>
62 </td>
63 <td>
64 </td>
65 <td>
66 <div>Name of scheduler policy</div>
67 </td>
68 </tr>
69 <tr>
70 <td class="elbow-placeholder"></td>
71 <td colspan="2">
72 <div class="ansibleOptionAnchor" id="parameter-"></div>
73 <b>schedulers</b>
74 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
75 <div style="font-size: small">
76 <span style="color: purple">list</span>
77 / <span style="color: purple">elements=dictionary</span>
78 </div>
79 </td>
80 <td>
81 </td>
82 <td>
83 <div>Schedulers configuration for the scheduler policy</div>
84 </td>
85 </tr>
86 <tr>
87 <td class="elbow-placeholder"></td>
88 <td class="elbow-placeholder"></td>
89 <td colspan="1">
90 <div class="ansibleOptionAnchor" id="parameter-"></div>
91 <b>cbs</b>
92 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
93 <div style="font-size: small">
94 <span style="color: purple">integer</span>
95 </div>
96 </td>
97 <td>
98 </td>
99 <td>
100 <div>Committed burst size measured in bytes</div>
101 <div>Range 0-125000000</div>
102 </td>
103 </tr>
104 <tr>
105 <td class="elbow-placeholder"></td>
106 <td class="elbow-placeholder"></td>
107 <td colspan="1">
108 <div class="ansibleOptionAnchor" id="parameter-"></div>
109 <b>cir</b>
110 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
111 <div style="font-size: small">
112 <span style="color: purple">integer</span>
113 </div>
114 </td>
115 <td>
116 </td>
117 <td>
118 <div>Committed information rate measured in bps</div>
119 <div>Range 0-400000000000</div>
120 </td>
121 </tr>
122 <tr>
123 <td class="elbow-placeholder"></td>
124 <td class="elbow-placeholder"></td>
125 <td colspan="1">
126 <div class="ansibleOptionAnchor" id="parameter-"></div>
127 <b>meter_type</b>
128 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
129 <div style="font-size: small">
130 <span style="color: purple">string</span>
131 </div>
132 </td>
133 <td>
134 <ul style="margin: 0; padding: 0"><b>Choices:</b>
135 <li>packets</li>
136 <li>bytes</li>
137 </ul>
138 </td>
139 <td>
140 <div>Metering method used by the scheduler</div>
141 </td>
142 </tr>
143 <tr>
144 <td class="elbow-placeholder"></td>
145 <td class="elbow-placeholder"></td>
146 <td colspan="1">
147 <div class="ansibleOptionAnchor" id="parameter-"></div>
148 <b>pbs</b>
149 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
150 <div style="font-size: small">
151 <span style="color: purple">integer</span>
152 </div>
153 </td>
154 <td>
155 </td>
156 <td>
157 <div>Excess burst size measured in bytes</div>
158 <div>Range 0-125000000</div>
159 </td>
160 </tr>
161 <tr>
162 <td class="elbow-placeholder"></td>
163 <td class="elbow-placeholder"></td>
164 <td colspan="1">
165 <div class="ansibleOptionAnchor" id="parameter-"></div>
166 <b>pir</b>
167 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
168 <div style="font-size: small">
169 <span style="color: purple">integer</span>
170 </div>
171 </td>
172 <td>
173 </td>
174 <td>
175 <div>Peak information rate measured in bps</div>
176 <div>Range 0-400000000000, must be greater than or equal to cir</div>
177 </td>
178 </tr>
179 <tr>
180 <td class="elbow-placeholder"></td>
181 <td class="elbow-placeholder"></td>
182 <td colspan="1">
183 <div class="ansibleOptionAnchor" id="parameter-"></div>
184 <b>scheduler_type</b>
185 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
186 <div style="font-size: small">
187 <span style="color: purple">string</span>
188 </div>
189 </td>
190 <td>
191 <ul style="margin: 0; padding: 0"><b>Choices:</b>
192 <li>dwrr</li>
193 <li>wrr</li>
194 <li>strict</li>
195 </ul>
196 </td>
197 <td>
198 <div>Specifies the type of scheduler</div>
199 <div>Strict priority scheduling cannot be configured with weight</div>
200 </td>
201 </tr>
202 <tr>
203 <td class="elbow-placeholder"></td>
204 <td class="elbow-placeholder"></td>
205 <td colspan="1">
206 <div class="ansibleOptionAnchor" id="parameter-"></div>
207 <b>sequence</b>
208 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
209 <div style="font-size: small">
210 <span style="color: purple">integer</span>
211 / <span style="color: red">required</span>
212 </div>
213 </td>
214 <td>
215 </td>
216 <td>
217 <div>Sequence number of the scheduler</div>
218 <div>Range 0-7 for interface queues</div>
219 <div>Range 0-47 for CPU queues</div>
220 <div>Specify 255 for port queues</div>
221 </td>
222 </tr>
223 <tr>
224 <td class="elbow-placeholder"></td>
225 <td class="elbow-placeholder"></td>
226 <td colspan="1">
227 <div class="ansibleOptionAnchor" id="parameter-"></div>
228 <b>weight</b>
229 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
230 <div style="font-size: small">
231 <span style="color: purple">integer</span>
232 </div>
233 </td>
234 <td>
235 </td>
236 <td>
237 <div>Weight of the scheduler</div>
238 <div>Range 1-100</div>
239 </td>
240 </tr>
241
242
243 <tr>
244 <td colspan="3">
245 <div class="ansibleOptionAnchor" id="parameter-"></div>
246 <b>state</b>
247 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
248 <div style="font-size: small">
249 <span style="color: purple">string</span>
250 </div>
251 </td>
252 <td>
253 <ul style="margin: 0; padding: 0"><b>Choices:</b>
254 <li><div style="color: blue"><b>merged</b>&nbsp;&larr;</div></li>
255 <li>deleted</li>
256 <li>replaced</li>
257 <li>overridden</li>
258 </ul>
259 </td>
260 <td>
261 <div>The state of the configuration after module completion</div>
262 </td>
263 </tr>
264 </table>
265 <br/>
266
267
268 Notes
269 -----
270
271 .. note::
272 - Tested against Enterprise SONiC Distribution by Dell Technologies.
273 - Supports ``check_mode``.
274
275
276
277 Examples
278 --------
279
280 .. code-block:: yaml
281
282 # Using "merged" state
283 #
284 # Before state:
285 # -------------
286 #
287 # sonic# show qos scheduler-policy
288 # (No qos scheduler-policy configuration present)
289
290 - name: Merge QoS scheduler configurations
291 dellemc.enterprise_sonic.sonic_qos_scheduler:
292 config:
293 - name: policy1
294 schedulers:
295 - sequence: 0
296 scheduler_type: dwrr
297 weight: 10
298 meter_type: packets
299 cir: 32000
300 pir: 40000
301 cbs: 30000
302 pbs: 35000
303 state: merged
304
305 # After state:
306 # ------------
307 #
308 # sonic# show qos scheduler-policy
309 # Scheduler Policy: policy1
310 # Queue: 0
311 # type: dwrr
312 # weight: 10
313 # meter-type: packets
314 # cir: 32000 Pps
315 # cbs: 30000 Packets
316 # pir: 40000 Pps
317 # pbs: 35000 Packets
318
319
320 # Using "replaced" state
321 #
322 # Before state:
323 # -------------
324 #
325 # sonic# show qos scheduler-policy
326 # Scheduler Policy: policy1
327 # Queue: 0
328 # type: dwrr
329 # weight: 10
330 # meter-type: packets
331 # cir: 32000 Pps
332 # cbs: 30000 Packets
333 # pir: 40000 Pps
334 # pbs: 35000 Packets
335
336 - name: Replace QoS scheduler configurations
337 dellemc.enterprise_sonic.sonic_qos_scheduler:
338 config:
339 - name: policy1
340 schedulers:
341 - sequence: 0
342 weight: 12
343 state: replaced
344
345 # After state:
346 # ------------
347 #
348 # sonic# show qos scheduler-policy
349 # Scheduler Policy: policy1
350 # Queue: 0
351 # weight: 12
352
353
354 # Using "overridden" state
355 # Before state:
356 # -------------
357 #
358 # sonic# show qos scheduler-policy
359 # Scheduler Policy: policy1
360 # Queue: 0
361 # type: dwrr
362 # weight: 10
363 # meter-type: packets
364 # cir: 32000 Pps
365 # cbs: 30000 Packets
366 # pir: 40000 Pps
367 # pbs: 35000 Packets
368 # Queue: 1
369 # type: dwrr
370 # weight: 14
371 # meter-type: packets
372
373 - name: Override QoS scheduler configurations
374 dellemc.enterprise_sonic.sonic_qos_scheduler:
375 config:
376 - name: policy2
377 schedulers:
378 - sequence: 0
379 scheduler_type: wrr
380 weight: 5
381 meter_type: bytes
382 cir: 50000
383 pir: 60000
384 cbs: 800000
385 pbs: 900000
386 state: overridden
387
388 # After state:
389 # ------------
390 #
391 # sonic# show qos scheduler-policy
392 # Scheduler Policy: policy2
393 # Queue: 0
394 # type: wrr
395 # weight: 5
396 # meter-type: bytes
397 # cir: 50 Kbps
398 # cbs: 800000 Bytes
399 # pir: 60 Kbps
400 # pbs: 900000 Bytes
401
402
403 # Using "deleted" state
404 #
405 # Before state:
406 # -------------
407 #
408 # sonic# show qos scheduler-policy
409 # Scheduler Policy: policy1
410 # Queue: 0
411 # type: dwrr
412 # weight: 10
413 # meter-type: packets
414 # cir: 32000 Pps
415 # cbs: 30000 Packets
416 # pir: 40000 Pps
417 # pbs: 35000 Packets
418 # Queue: 1
419 # type: dwrr
420 # weight: 14
421 # meter-type: packets
422 # Scheduler Policy: policy2
423 # Queue: 0
424 # type: wrr
425 # weight: 5
426 # meter-type: bytes
427 # cir: 50 Kbps
428 # cbs: 800000 Bytes
429 # pir: 60 Kbps
430 # pbs: 900000 Bytes
431
432 - name: Delete QoS scheduler configurations
433 dellemc.enterprise_sonic.sonic_qos_scheduler:
434 config:
435 - name: policy1
436 schedulers:
437 - sequence: 0
438 cir: 32000
439 pir: 40000
440 cbs: 30000
441 pbs: 35000
442 - sequence: 1
443 - name: policy2
444 state: deleted
445
446 # After state:
447 # -------------
448 #
449 # sonic# show qos scheduler-policy
450 # Scheduler Policy: policy1
451 # Queue: 0
452 # type: dwrr
453 # weight: 10
454 # meter-type: packets
455
456
457
458 Return Values
459 -------------
460 Common return values are documented `here <https://docs.ansible.com/projects/ansible/latest/reference_appendices/common_return_values.html#common-return-values>`_, the following are the fields unique to this module:
461
462 .. raw:: html
463
464 <table border=0 cellpadding=0 class="documentation-table">
465 <tr>
466 <th colspan="1">Key</th>
467 <th>Returned</th>
468 <th width="100%">Description</th>
469 </tr>
470 <tr>
471 <td colspan="1">
472 <div class="ansibleOptionAnchor" id="return-"></div>
473 <b>after</b>
474 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
475 <div style="font-size: small">
476 <span style="color: purple">list</span>
477 </div>
478 </td>
479 <td>when changed</td>
480 <td>
481 <div>The resulting configuration from module invocation.</div>
482 <br/>
483 </td>
484 </tr>
485 <tr>
486 <td colspan="1">
487 <div class="ansibleOptionAnchor" id="return-"></div>
488 <b>after_generated</b>
489 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
490 <div style="font-size: small">
491 <span style="color: purple">list</span>
492 </div>
493 </td>
494 <td>when <code>check_mode</code></td>
495 <td>
496 <div>The generated configuration from module invocation.</div>
497 <br/>
498 </td>
499 </tr>
500 <tr>
501 <td colspan="1">
502 <div class="ansibleOptionAnchor" id="return-"></div>
503 <b>before</b>
504 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
505 <div style="font-size: small">
506 <span style="color: purple">list</span>
507 </div>
508 </td>
509 <td>always</td>
510 <td>
511 <div>The configuration prior to the module invocation.</div>
512 <br/>
513 </td>
514 </tr>
515 <tr>
516 <td colspan="1">
517 <div class="ansibleOptionAnchor" id="return-"></div>
518 <b>commands</b>
519 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
520 <div style="font-size: small">
521 <span style="color: purple">list</span>
522 </div>
523 </td>
524 <td>always</td>
525 <td>
526 <div>The set of commands pushed to the remote device.</div>
527 <br/>
528 <div style="font-size: smaller"><b>Sample:</b></div>
529 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">[&#x27;command 1&#x27;, &#x27;command 2&#x27;, &#x27;command 3&#x27;]</div>
530 </td>
531 </tr>
532 </table>
533 <br/><br/>
534
535
536 Status
537 ------
538
539
540 Authors
541 ~~~~~~~
542
543 - S\. Talabi (@stalabi1)