Debian Codegraph @

ansible_collections/dellemc/enterprise_sonic/docs/dellemc.enterprise_sonic.sonic_poe_module.rst

raw
1 .. _dellemc.enterprise_sonic.sonic_poe_module:
2
3
4 **********************************
5 dellemc.enterprise_sonic.sonic_poe
6 **********************************
7
8 **Manage PoE 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 PoE at global and card level 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">dictionary</span>
43 </div>
44 </td>
45 <td>
46 </td>
47 <td>
48 <div>Specifies PoE configurations</div>
49 </td>
50 </tr>
51 <tr>
52 <td class="elbow-placeholder"></td>
53 <td colspan="2">
54 <div class="ansibleOptionAnchor" id="parameter-"></div>
55 <b>cards</b>
56 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
57 <div style="font-size: small">
58 <span style="color: purple">list</span>
59 / <span style="color: purple">elements=dictionary</span>
60 </div>
61 </td>
62 <td>
63 </td>
64 <td>
65 <div>PoE card (power controller hardware) configuration.</div>
66 <div>currently not supported on platforms.</div>
67 </td>
68 </tr>
69 <tr>
70 <td class="elbow-placeholder"></td>
71 <td class="elbow-placeholder"></td>
72 <td colspan="1">
73 <div class="ansibleOptionAnchor" id="parameter-"></div>
74 <b>auto_reset</b>
75 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
76 <div style="font-size: small">
77 <span style="color: purple">boolean</span>
78 </div>
79 </td>
80 <td>
81 <ul style="margin: 0; padding: 0"><b>Choices:</b>
82 <li>no</li>
83 <li>yes</li>
84 </ul>
85 </td>
86 <td>
87 <div>enable PoE auto reset mode for this card</div>
88 </td>
89 </tr>
90 <tr>
91 <td class="elbow-placeholder"></td>
92 <td class="elbow-placeholder"></td>
93 <td colspan="1">
94 <div class="ansibleOptionAnchor" id="parameter-"></div>
95 <b>card_id</b>
96 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
97 <div style="font-size: small">
98 <span style="color: purple">integer</span>
99 / <span style="color: red">required</span>
100 </div>
101 </td>
102 <td>
103 </td>
104 <td>
105 <div>Identifier for the card.</div>
106 <div>must be number in range of 0-7.</div>
107 </td>
108 </tr>
109 <tr>
110 <td class="elbow-placeholder"></td>
111 <td class="elbow-placeholder"></td>
112 <td colspan="1">
113 <div class="ansibleOptionAnchor" id="parameter-"></div>
114 <b>power_mgmt_model</b>
115 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
116 <div style="font-size: small">
117 <span style="color: purple">string</span>
118 </div>
119 </td>
120 <td>
121 <ul style="margin: 0; padding: 0"><b>Choices:</b>
122 <li>dynamic</li>
123 <li>dynamic-priority</li>
124 <li>static</li>
125 <li>static-priority</li>
126 <li>class</li>
127 </ul>
128 </td>
129 <td>
130 <div>the power management algorithm.</div>
131 <div>dynamic means that power consumption of each port is measured and calculated in real-time.</div>
132 <div>static means that power allocated for each port depends on the type of power threshold configured on the port</div>
133 </td>
134 </tr>
135 <tr>
136 <td class="elbow-placeholder"></td>
137 <td class="elbow-placeholder"></td>
138 <td colspan="1">
139 <div class="ansibleOptionAnchor" id="parameter-"></div>
140 <b>usage_threshold</b>
141 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
142 <div style="font-size: small">
143 <span style="color: purple">integer</span>
144 </div>
145 </td>
146 <td>
147 </td>
148 <td>
149 <div>Inline power usage threshold.</div>
150 <div>Range is 0-99 inclusive</div>
151 </td>
152 </tr>
153
154 <tr>
155 <td class="elbow-placeholder"></td>
156 <td colspan="2">
157 <div class="ansibleOptionAnchor" id="parameter-"></div>
158 <b>global</b>
159 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
160 <div style="font-size: small">
161 <span style="color: purple">dictionary</span>
162 </div>
163 </td>
164 <td>
165 </td>
166 <td>
167 <div>configuration for global PoE card</div>
168 </td>
169 </tr>
170 <tr>
171 <td class="elbow-placeholder"></td>
172 <td class="elbow-placeholder"></td>
173 <td colspan="1">
174 <div class="ansibleOptionAnchor" id="parameter-"></div>
175 <b>auto_reset</b>
176 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
177 <div style="font-size: small">
178 <span style="color: purple">boolean</span>
179 </div>
180 </td>
181 <td>
182 <ul style="margin: 0; padding: 0"><b>Choices:</b>
183 <li>no</li>
184 <li>yes</li>
185 </ul>
186 </td>
187 <td>
188 <div>enable PoE auto reset mode for global.</div>
189 <div>currently not supported on platforms.</div>
190 </td>
191 </tr>
192 <tr>
193 <td class="elbow-placeholder"></td>
194 <td class="elbow-placeholder"></td>
195 <td colspan="1">
196 <div class="ansibleOptionAnchor" id="parameter-"></div>
197 <b>power_mgmt_model</b>
198 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
199 <div style="font-size: small">
200 <span style="color: purple">string</span>
201 </div>
202 </td>
203 <td>
204 <ul style="margin: 0; padding: 0"><b>Choices:</b>
205 <li>dynamic</li>
206 <li>dynamic-priority</li>
207 <li>static</li>
208 <li>static-priority</li>
209 <li>class</li>
210 </ul>
211 </td>
212 <td>
213 <div>the power management algorithm to use.</div>
214 <div>dynamic means that power consumption of each port is measured and calculated in real-time.</div>
215 <div>static means that power allocated for each port depends on the type of power threshold configured on the port.</div>
216 <div>currently only &#x27;dynamic&#x27; and &#x27;class&#x27; values are supported</div>
217 </td>
218 </tr>
219 <tr>
220 <td class="elbow-placeholder"></td>
221 <td class="elbow-placeholder"></td>
222 <td colspan="1">
223 <div class="ansibleOptionAnchor" id="parameter-"></div>
224 <b>usage_threshold</b>
225 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
226 <div style="font-size: small">
227 <span style="color: purple">integer</span>
228 </div>
229 </td>
230 <td>
231 </td>
232 <td>
233 <div>Inline power usage threshold.</div>
234 <div>Range is 0-99 inclusive.</div>
235 <div>currently not supported on platforms.</div>
236 </td>
237 </tr>
238
239 <tr>
240 <td class="elbow-placeholder"></td>
241 <td colspan="2">
242 <div class="ansibleOptionAnchor" id="parameter-"></div>
243 <b>interfaces</b>
244 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
245 <div style="font-size: small">
246 <span style="color: purple">list</span>
247 / <span style="color: purple">elements=dictionary</span>
248 </div>
249 </td>
250 <td>
251 </td>
252 <td>
253 <div>PoE configuration for ethernet interfaces</div>
254 </td>
255 </tr>
256 <tr>
257 <td class="elbow-placeholder"></td>
258 <td class="elbow-placeholder"></td>
259 <td colspan="1">
260 <div class="ansibleOptionAnchor" id="parameter-"></div>
261 <b>detection</b>
262 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
263 <div style="font-size: small">
264 <span style="color: purple">string</span>
265 </div>
266 </td>
267 <td>
268 <ul style="margin: 0; padding: 0"><b>Choices:</b>
269 <li>2pt-dot3af</li>
270 <li>2pt-dot3af+legacy</li>
271 <li>4pt-dot3af</li>
272 <li>4pt-dot3af+legacy</li>
273 <li>dot3bt</li>
274 <li>dot3bt+legacy</li>
275 <li>legacy</li>
276 </ul>
277 </td>
278 <td>
279 <div>Device detection mechanism performed by this PSE port.</div>
280 <div>Legacy is capacitive detection scheme, which can be used alone or as a backup if other detection schemes fail.</div>
281 <div>Those schemes are IEEE 802 standard schemes.</div>
282 <div>None cannot be forcibly set by adminstrator.</div>
283 <div>currently only &#x27;dot3bt&#x27; and &#x27;dot3bt+legacy&#x27; values are supported</div>
284 </td>
285 </tr>
286 <tr>
287 <td class="elbow-placeholder"></td>
288 <td class="elbow-placeholder"></td>
289 <td colspan="1">
290 <div class="ansibleOptionAnchor" id="parameter-"></div>
291 <b>disconnect_type</b>
292 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
293 <div style="font-size: small">
294 <span style="color: purple">string</span>
295 </div>
296 </td>
297 <td>
298 <ul style="margin: 0; padding: 0"><b>Choices:</b>
299 <li>ac</li>
300 <li>dc</li>
301 </ul>
302 </td>
303 <td>
304 <div>PoE port disconnect type.</div>
305 <div>currently not supported on platforms.</div>
306 </td>
307 </tr>
308 <tr>
309 <td class="elbow-placeholder"></td>
310 <td class="elbow-placeholder"></td>
311 <td colspan="1">
312 <div class="ansibleOptionAnchor" id="parameter-"></div>
313 <b>enabled</b>
314 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
315 <div style="font-size: small">
316 <span style="color: purple">boolean</span>
317 </div>
318 </td>
319 <td>
320 <ul style="margin: 0; padding: 0"><b>Choices:</b>
321 <li>no</li>
322 <li>yes</li>
323 </ul>
324 </td>
325 <td>
326 <div>enable PoE per port</div>
327 </td>
328 </tr>
329 <tr>
330 <td class="elbow-placeholder"></td>
331 <td class="elbow-placeholder"></td>
332 <td colspan="1">
333 <div class="ansibleOptionAnchor" id="parameter-"></div>
334 <b>four_pair</b>
335 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
336 <div style="font-size: small">
337 <span style="color: purple">boolean</span>
338 </div>
339 </td>
340 <td>
341 <ul style="margin: 0; padding: 0"><b>Choices:</b>
342 <li>no</li>
343 <li>yes</li>
344 </ul>
345 </td>
346 <td>
347 <div>Enables four pair mode for port.</div>
348 <div>currently not supported on platforms.</div>
349 </td>
350 </tr>
351 <tr>
352 <td class="elbow-placeholder"></td>
353 <td class="elbow-placeholder"></td>
354 <td colspan="1">
355 <div class="ansibleOptionAnchor" id="parameter-"></div>
356 <b>high_power</b>
357 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
358 <div style="font-size: small">
359 <span style="color: purple">boolean</span>
360 </div>
361 </td>
362 <td>
363 <ul style="margin: 0; padding: 0"><b>Choices:</b>
364 <li>no</li>
365 <li>yes</li>
366 </ul>
367 </td>
368 <td>
369 <div>Enables high power mode on a PSE port.</div>
370 <div>currently not supported on platforms.</div>
371 </td>
372 </tr>
373 <tr>
374 <td class="elbow-placeholder"></td>
375 <td class="elbow-placeholder"></td>
376 <td colspan="1">
377 <div class="ansibleOptionAnchor" id="parameter-"></div>
378 <b>name</b>
379 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
380 <div style="font-size: small">
381 <span style="color: purple">string</span>
382 / <span style="color: red">required</span>
383 </div>
384 </td>
385 <td>
386 </td>
387 <td>
388 <div>Name of the interface</div>
389 </td>
390 </tr>
391 <tr>
392 <td class="elbow-placeholder"></td>
393 <td class="elbow-placeholder"></td>
394 <td colspan="1">
395 <div class="ansibleOptionAnchor" id="parameter-"></div>
396 <b>power_classification</b>
397 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
398 <div style="font-size: small">
399 <span style="color: purple">string</span>
400 </div>
401 </td>
402 <td>
403 <ul style="margin: 0; padding: 0"><b>Choices:</b>
404 <li>normal</li>
405 <li>bypass</li>
406 </ul>
407 </td>
408 <td>
409 <div>PoE power-classification mode for port.</div>
410 <div>currently not supported on platforms.</div>
411 </td>
412 </tr>
413 <tr>
414 <td class="elbow-placeholder"></td>
415 <td class="elbow-placeholder"></td>
416 <td colspan="1">
417 <div class="ansibleOptionAnchor" id="parameter-"></div>
418 <b>power_limit</b>
419 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
420 <div style="font-size: small">
421 <span style="color: purple">integer</span>
422 </div>
423 </td>
424 <td>
425 </td>
426 <td>
427 <div>The configured maximum power this port can provide to an attached device measured in Milliwatts.</div>
428 <div>Range is 0-99900 inclusive.</div>
429 <div>currently not supported on platforms.</div>
430 </td>
431 </tr>
432 <tr>
433 <td class="elbow-placeholder"></td>
434 <td class="elbow-placeholder"></td>
435 <td colspan="1">
436 <div class="ansibleOptionAnchor" id="parameter-"></div>
437 <b>power_limit_type</b>
438 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
439 <div style="font-size: small">
440 <span style="color: purple">string</span>
441 </div>
442 </td>
443 <td>
444 <ul style="margin: 0; padding: 0"><b>Choices:</b>
445 <li>class-based</li>
446 <li>user-defined</li>
447 </ul>
448 </td>
449 <td>
450 <div>Controls the maximum power that a port can deliver.</div>
451 <div>class-based means that the port power limit is as per the dot3af class of the powered device attached.</div>
452 <div>user-defined means limit is specified by config.</div>
453 <div>currently not supported on platforms.</div>
454 </td>
455 </tr>
456 <tr>
457 <td class="elbow-placeholder"></td>
458 <td class="elbow-placeholder"></td>
459 <td colspan="1">
460 <div class="ansibleOptionAnchor" id="parameter-"></div>
461 <b>power_pairs</b>
462 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
463 <div style="font-size: small">
464 <span style="color: purple">string</span>
465 </div>
466 </td>
467 <td>
468 <ul style="margin: 0; padding: 0"><b>Choices:</b>
469 <li>signal</li>
470 <li>spare</li>
471 </ul>
472 </td>
473 <td>
474 <div>PoE port power-pairs settings.</div>
475 <div>currently not supported on platforms.</div>
476 </td>
477 </tr>
478 <tr>
479 <td class="elbow-placeholder"></td>
480 <td class="elbow-placeholder"></td>
481 <td colspan="1">
482 <div class="ansibleOptionAnchor" id="parameter-"></div>
483 <b>power_up_mode</b>
484 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
485 <div style="font-size: small">
486 <span style="color: purple">string</span>
487 </div>
488 </td>
489 <td>
490 <ul style="margin: 0; padding: 0"><b>Choices:</b>
491 <li>dot3af</li>
492 <li>dot3at</li>
493 <li>dot3bt</li>
494 <li>dot3bt-type3</li>
495 <li>dot3bt-type4</li>
496 <li>high-inrush</li>
497 <li>pre-dot3at</li>
498 <li>pre-dot3bt</li>
499 </ul>
500 </td>
501 <td>
502 <div>The mode configured for a PSE port to deliver high power.</div>
503 <div>pre-dot3at means that a port is powered in the IEEE 802.3af mode initially, switched to the high-power IEEE 802.3at mode.</div>
504 <div>dot3at means that a port is powered in the IEEE 802.3at mode.</div>
505 <div>dot3bt, type3 and pre-dot3bt are to support 802.3bt interfaces.</div>
506 <div>currently not supported on platforms.</div>
507 </td>
508 </tr>
509 <tr>
510 <td class="elbow-placeholder"></td>
511 <td class="elbow-placeholder"></td>
512 <td colspan="1">
513 <div class="ansibleOptionAnchor" id="parameter-"></div>
514 <b>priority</b>
515 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
516 <div style="font-size: small">
517 <span style="color: purple">string</span>
518 </div>
519 </td>
520 <td>
521 <ul style="margin: 0; padding: 0"><b>Choices:</b>
522 <li>low</li>
523 <li>medium</li>
524 <li>high</li>
525 <li>critical</li>
526 </ul>
527 </td>
528 <td>
529 <div>PoE port priority in power management algorithm.</div>
530 <div>Priority could be used by a control mechanism that prevents over current situations by disconnecting ports with lower power priority first.</div>
531 <div>currently only &#x27;low&#x27;, &#x27;high&#x27; and &#x27;critical&#x27; values are supported</div>
532 </td>
533 </tr>
534 <tr>
535 <td class="elbow-placeholder"></td>
536 <td class="elbow-placeholder"></td>
537 <td colspan="1">
538 <div class="ansibleOptionAnchor" id="parameter-"></div>
539 <b>use_spare_pair</b>
540 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
541 <div style="font-size: small">
542 <span style="color: purple">boolean</span>
543 </div>
544 </td>
545 <td>
546 <ul style="margin: 0; padding: 0"><b>Choices:</b>
547 <li>no</li>
548 <li>yes</li>
549 </ul>
550 </td>
551 <td>
552 <div>Enables spare pair power for port.</div>
553 <div>currently not supported on platforms.</div>
554 </td>
555 </tr>
556
557
558 <tr>
559 <td colspan="3">
560 <div class="ansibleOptionAnchor" id="parameter-"></div>
561 <b>state</b>
562 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
563 <div style="font-size: small">
564 <span style="color: purple">string</span>
565 </div>
566 </td>
567 <td>
568 <ul style="margin: 0; padding: 0"><b>Choices:</b>
569 <li><div style="color: blue"><b>merged</b>&nbsp;&larr;</div></li>
570 <li>deleted</li>
571 <li>replaced</li>
572 <li>overridden</li>
573 </ul>
574 </td>
575 <td>
576 <div>The state of the configuration after module completion</div>
577 </td>
578 </tr>
579 </table>
580 <br/>
581
582
583
584
585 Examples
586 --------
587
588 .. code-block:: yaml
589
590 # Using "merged" state to add or change poe global settings
591 # Before state:
592 # config:
593 # global:
594 # auto_reset: false
595
596 # Example:
597 - name: "add poe global settings"
598 sonic_poe:
599 config:
600 global:
601 auto_reset: true
602 power_mgmt_model: 'class'
603 usage_threshold: 300
604 state: merged
605
606 # After state:
607 # config:
608 # global:
609 # auto_reset: true
610 # power_mgmt_model: 'class'
611 # usage_threshold: 300
612 # ------
613
614 # Using "merged" state to add cards
615 # Note that platform must support adding multiple cards to do this
616 # Before state:
617 # config:
618 # global:
619 # auto_reset: true
620
621 # Example:
622 - name: "add poe cards"
623 sonic_poe:
624 config:
625 cards:
626 - card_id: 0
627 usage_threshold: 39
628 state: merged
629
630 # After state:
631 # config:
632 # global:
633 # auto_reset: true
634 # cards:
635 # - card_id: 0
636 # usage_threshold: 39
637 # ------
638
639 # Using "merged" state to add or change card settings
640 # Before state:
641 # config:
642 # cards:
643 # - card_id: 0
644 # usage_threshold: 39
645
646 # Example:
647 - name: "add poe cards settings"
648 sonic_poe:
649 config:
650 cards:
651 - card_id: 0
652 usage_threshold: 60
653 power_mgmt_model: dymanic
654 state: merged
655
656 # After state:
657 # config:
658 # cards:
659 # - card_id: 0
660 # usage_threshold: 60
661 # power_mgmt_model: dymanic
662 # ------
663
664 # Using "merged" state to add interfaces
665 # Before state:
666 # config: {}
667
668 # Example:
669 - name: "add poe interfaces"
670 sonic_poe:
671 config:
672 interfaces:
673 - name: Ethernet0
674 enabled: true
675 state: merged
676
677 # After state:
678 # config:
679 # interfaces:
680 # - name: Ethernet0
681 # enabled: true
682 # ------
683
684 # Using "merged" state to add or change interface settings
685 # Before state:
686 # config:
687 # interfaces:
688 # - name: Ethernet0
689 # enabled: true
690 # disconnect_type: dc
691
692 # Example:
693 - name: "add poe interface settings"
694 sonic_poe:
695 config:
696 interfaces:
697 - name: Ethernet0
698 four_pair: true
699 high_power: true
700 detection: dot3bt
701 power_classification: normal
702 power_limit: 5000
703 power_limit_type: class-based
704 power_pairs: signal
705 power_up_mode: dot3bt
706 priority: medium
707 use_spare_pair: false
708 disconnect_type: ac
709 state: merged
710
711 # After state:
712 # config:
713 # interfaces:
714 # - name: Ethernet0
715 # four_pair: true
716 # high_power: true
717 # detection: dot3bt
718 # power_classification: normal
719 # power_limit: 5000
720 # power_limit_type: class-based
721 # power_pairs: signal
722 # power_up_mode: dot3bt
723 # priority: medium
724 # use_spare_pair: false
725 # disconnect_type: ac
726 # enabled: true
727 # ------
728
729
730 # Using "deleted" state to remove poe global settings
731 # Before state:
732 # config:
733 # global:
734 # auto_reset: true
735 # power_mgmt_model: 'class'
736 # usage_threshold: 300
737
738 # Example:
739 - name: "delete matching poe global settings"
740 sonic_poe:
741 config:
742 global:
743 auto_reset: false
744 usage_threshold: 300
745 state: deleted
746
747 # After state:
748 # config:
749 # global:
750 # power_mgmt_model: 'class'
751 # auto_reset: true
752 # ------
753
754 # Using "deleted" state to delete cards or card settings
755 # Note: to delete whole card, either need just the name or specify all current settings and values
756 # Before state:
757 # config:
758 # global:
759 # auto_reset: true
760 # cards:
761 # - card_id: 0
762 # usage_threshold: 39
763 # - card_id: 1
764 # auto_reset: true
765 # usage_threshold: 60
766 # power_mgmt_model: class
767 # - card_id: 2
768 # usage_threshold: 39
769 # power_mgmt_model: dymanic
770
771 # Example:
772 - name: "delete poe cards"
773 sonic_poe:
774 config:
775 cards:
776 - card_id: 0
777 - card_id: 1
778 auto_reset: true
779 usage_threshold: 60
780 power_mgmt_model: class
781 - card_id: 2
782 usage_threshold: 39
783 power_mgmt_model: static
784 state: deleted
785
786 # After state:
787 # config:
788 # global:
789 # auto_reset: true
790 # cards:
791 # - card_id: 2
792 # power_mgmt_model: dymanic
793 # ------
794
795 # Using "deleted" state to delete interfaces or interface settings
796 # Note: to delete whole interface, either need just the name or specify all current settings and values
797 # Before state:
798 # config:
799 # interfaces:
800 # - name: Ethernet0
801 # enabled: true
802 # - name: Ethernet1
803 # enabled: false
804 # four_pair: true
805 # - name: Ethernet2
806 # detection: 4pt-dot3af+legacy
807 # power_up_mode: dot3bt
808 # use_spare_pair: true
809
810 # Example:
811 - name: "delete poe interfaces"
812 sonic_poe:
813 config:
814 interfaces:
815 - name: Ethernet0
816 - name: Ethernet1
817 enabled: false
818 four_pair: true
819 - name: Ethernet2
820 detection: 4pt-dot3af+legacy
821 power_up_mode: pre-dot3at
822 state: deleted
823
824 # After state:
825 # config:
826 # interfaces:
827 # - name: Ethernet2
828 # power_up_mode: dot3bt
829 # use_spare_pair: true
830 # ------
831
832 # Using "deleted" state to clear all interfaces or cards
833 # Before state:
834 # config:
835 # cards:
836 # - card_id: 0
837 # usage_threshold: 39
838 # interfaces:
839 # - name: Ethernet0
840 # enabled: true
841
842 # Example:
843 - name: "clear poe interfaces and cards"
844 sonic_poe:
845 config:
846 interfaces: []
847 cards: []
848 state: deleted
849
850 # After state:
851 # config: {}
852 # ------
853
854 # Using "deleted" state to delete attributes of interfaces or cards
855 # Before state:
856 # config:
857 # cards:
858 # - card_id: 1
859 # auto_reset: true
860 # usage_threshold: 60
861 # interfaces:
862 # - name: Ethernet1
863 # enabled: false
864 # four_pair: true
865 # power_classification: normal
866
867 # Example:
868 - name: "clear poe interfaces and cards"
869 sonic_poe:
870 config:
871 interfaces:
872 - name: Ethernet1
873 four_pair: true
874 cards:
875 - card_id: 1
876 usage_threshold: 60
877 state: deleted
878
879 # After state:
880 # config:
881 # interfaces:
882 # - name: Ethernet1
883 # enabled: false
884 # power_classification: normal
885 # cards:
886 # - card_id: 1
887 # auto_reset: true
888 # ------
889
890
891 # Using "overridden" state to set poe config
892 # Before state:
893 # config:
894 # global:
895 # auto_reset: true
896 # power_mgmt_model: 'class'
897 # usage_threshold: 300
898 # interfaces:
899 # - name: Ethernet1
900 # power_classification: normal
901 # enabled: true
902 # cards:
903 # - card_id: 0
904 # usage_threshold: 60
905 # power_mgmt_model: dymanic
906
907 # Example:
908 - name: "overridden to exactly specified"
909 sonic_poe:
910 config:
911 global:
912 auto_reset: false
913 interfaces:
914 - name: Ethernet0
915 enabled: true
916 disconnect_type: ac
917 - name: Ethernet1
918 power_pairs: signal
919 state: overridden
920
921 # After state:
922 # config:
923 # global:
924 # auto_reset: false
925 # interfaces:
926 # - name: Ethernet0
927 # disconnect_type: ac
928 # enabled: true
929 # - name: Ethernet1
930 # power_pairs: signal
931 # ------
932
933
934 # Using "replaced" state to replace sections of poe config
935 # Before state:
936 # config:
937 # global:
938 # auto_reset: true
939 # power_mgmt_model: 'class'
940 # usage_threshold: 300
941 # interfaces:
942 # - name: Ethernet1
943 # power_classification: normal
944 # enabled: true
945 # - name: Ethernet0
946 # enabled: true
947 # power_limit_type: class-based
948 # cards:
949 # - card_id: 0
950 # usage_threshold: 60
951 # power_mgmt_model: dymanic
952
953 # Example:
954 - name: "replace sections of config to exactly specified"
955 sonic_poe:
956 config:
957 global:
958 auto_reset: false
959 interfaces:
960 - name: Ethernet0
961 enabled: true
962 disconnect_type: ac
963 state: repalced
964
965 # After state:
966 # config:
967 # global:
968 # auto_reset: false
969 # interfaces:
970 # - name: Ethernet0
971 # disconnect_type: ac
972 # enabled: true
973 # cards:
974 # - card_id: 0
975 # usage_threshold: 60
976 # power_mgmt_model: dymanic
977 # ------
978
979
980
981 Return Values
982 -------------
983 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:
984
985 .. raw:: html
986
987 <table border=0 cellpadding=0 class="documentation-table">
988 <tr>
989 <th colspan="1">Key</th>
990 <th>Returned</th>
991 <th width="100%">Description</th>
992 </tr>
993 <tr>
994 <td colspan="1">
995 <div class="ansibleOptionAnchor" id="return-"></div>
996 <b>after</b>
997 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
998 <div style="font-size: small">
999 <span style="color: purple">dictionary</span>
1000 </div>
1001 </td>
1002 <td>when changed</td>
1003 <td>
1004 <div>The resulting configuration after module invocation.</div>
1005 <br/>
1006 <div style="font-size: smaller"><b>Sample:</b></div>
1007 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">The configuration returned will always be in the same format
1008 as the parameters above.</div>
1009 </td>
1010 </tr>
1011 <tr>
1012 <td colspan="1">
1013 <div class="ansibleOptionAnchor" id="return-"></div>
1014 <b>before</b>
1015 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
1016 <div style="font-size: small">
1017 <span style="color: purple">dictionary</span>
1018 </div>
1019 </td>
1020 <td>always</td>
1021 <td>
1022 <div>The configuration prior to the module invocation.</div>
1023 <br/>
1024 <div style="font-size: smaller"><b>Sample:</b></div>
1025 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">The configuration returned will always be in the same format
1026 as the parameters above.</div>
1027 </td>
1028 </tr>
1029 <tr>
1030 <td colspan="1">
1031 <div class="ansibleOptionAnchor" id="return-"></div>
1032 <b>commands</b>
1033 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
1034 <div style="font-size: small">
1035 <span style="color: purple">list</span>
1036 </div>
1037 </td>
1038 <td>always</td>
1039 <td>
1040 <div>The set of commands pushed to the remote device.</div>
1041 <br/>
1042 <div style="font-size: smaller"><b>Sample:</b></div>
1043 <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>
1044 </td>
1045 </tr>
1046 </table>
1047 <br/><br/>
1048
1049
1050 Status
1051 ------
1052
1053
1054 Authors
1055 ~~~~~~~
1056
1057 - S\. Talabi (@stalabi1), Xiao Han (@Xiao_Han2)