Debian Codegraph @

ansible_collections/dellemc/enterprise_sonic/docs/dellemc.enterprise_sonic.sonic_system_module.rst

raw
1 .. _dellemc.enterprise_sonic.sonic_system_module:
2
3
4 *************************************
5 dellemc.enterprise_sonic.sonic_system
6 *************************************
7
8 **Configure system parameters**
9
10
11 Version added: 1.0.0
12
13 .. contents::
14 :local:
15 :depth: 1
16
17
18 Synopsis
19 --------
20 - This module is used for configuration management of global system parameters on devices running Enterprise 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 the system related 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>adjust_txrx_clock_freq</b>
56 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
57 <div style="font-size: small">
58 <span style="color: purple">boolean</span>
59 </div>
60 <div style="font-style: italic; font-size: small; color: darkgreen">added in 3.1.0</div>
61 </td>
62 <td>
63 <ul style="margin: 0; padding: 0"><b>Choices:</b>
64 <li>no</li>
65 <li>yes</li>
66 </ul>
67 </td>
68 <td>
69 <div>Adjust TX/RX clock frequency to platform specific value.</div>
70 <div>Operational default value is <code>false</code>.</div>
71 </td>
72 </tr>
73 <tr>
74 <td class="elbow-placeholder"></td>
75 <td colspan="2">
76 <div class="ansibleOptionAnchor" id="parameter-"></div>
77 <b>anycast_address</b>
78 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
79 <div style="font-size: small">
80 <span style="color: purple">dictionary</span>
81 </div>
82 </td>
83 <td>
84 </td>
85 <td>
86 <div>Specifies different types of anycast address that can be configured on the device</div>
87 </td>
88 </tr>
89 <tr>
90 <td class="elbow-placeholder"></td>
91 <td class="elbow-placeholder"></td>
92 <td colspan="1">
93 <div class="ansibleOptionAnchor" id="parameter-"></div>
94 <b>ipv4</b>
95 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
96 <div style="font-size: small">
97 <span style="color: purple">boolean</span>
98 </div>
99 </td>
100 <td>
101 <ul style="margin: 0; padding: 0"><b>Choices:</b>
102 <li>no</li>
103 <li>yes</li>
104 </ul>
105 </td>
106 <td>
107 <div>Enable or disable ipv4 anycast-address</div>
108 </td>
109 </tr>
110 <tr>
111 <td class="elbow-placeholder"></td>
112 <td class="elbow-placeholder"></td>
113 <td colspan="1">
114 <div class="ansibleOptionAnchor" id="parameter-"></div>
115 <b>ipv6</b>
116 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
117 <div style="font-size: small">
118 <span style="color: purple">boolean</span>
119 </div>
120 </td>
121 <td>
122 <ul style="margin: 0; padding: 0"><b>Choices:</b>
123 <li>no</li>
124 <li>yes</li>
125 </ul>
126 </td>
127 <td>
128 <div>Enable or disable ipv6 anycast-address</div>
129 </td>
130 </tr>
131 <tr>
132 <td class="elbow-placeholder"></td>
133 <td class="elbow-placeholder"></td>
134 <td colspan="1">
135 <div class="ansibleOptionAnchor" id="parameter-"></div>
136 <b>mac_address</b>
137 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
138 <div style="font-size: small">
139 <span style="color: purple">string</span>
140 </div>
141 </td>
142 <td>
143 </td>
144 <td>
145 <div>Specifies the mac anycast-address</div>
146 </td>
147 </tr>
148
149 <tr>
150 <td class="elbow-placeholder"></td>
151 <td colspan="2">
152 <div class="ansibleOptionAnchor" id="parameter-"></div>
153 <b>audit_rules</b>
154 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
155 <div style="font-size: small">
156 <span style="color: purple">string</span>
157 </div>
158 <div style="font-style: italic; font-size: small; color: darkgreen">added in 2.5.0</div>
159 </td>
160 <td>
161 <ul style="margin: 0; padding: 0"><b>Choices:</b>
162 <li>BASIC</li>
163 <li>DETAIL</li>
164 <li>CUSTOM</li>
165 <li>NONE</li>
166 </ul>
167 </td>
168 <td>
169 <div>Specifies audit rule profile type.</div>
170 <div>Can be used on SONiC release versions 4.4.0 and above.</div>
171 </td>
172 </tr>
173 <tr>
174 <td class="elbow-placeholder"></td>
175 <td colspan="2">
176 <div class="ansibleOptionAnchor" id="parameter-"></div>
177 <b>auto_breakout</b>
178 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
179 <div style="font-size: small">
180 <span style="color: purple">string</span>
181 </div>
182 <div style="font-style: italic; font-size: small; color: darkgreen">added in 2.5.0</div>
183 </td>
184 <td>
185 <ul style="margin: 0; padding: 0"><b>Choices:</b>
186 <li>ENABLE</li>
187 <li>DISABLE</li>
188 </ul>
189 </td>
190 <td>
191 <div>Specifies auto-breakout status in the device</div>
192 </td>
193 </tr>
194 <tr>
195 <td class="elbow-placeholder"></td>
196 <td colspan="2">
197 <div class="ansibleOptionAnchor" id="parameter-"></div>
198 <b>banner</b>
199 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
200 <div style="font-size: small">
201 <span style="color: purple">dictionary</span>
202 </div>
203 <div style="font-style: italic; font-size: small; color: darkgreen">added in 4.0.0</div>
204 </td>
205 <td>
206 </td>
207 <td>
208 <div>The set of banner attribute configurations</div>
209 </td>
210 </tr>
211 <tr>
212 <td class="elbow-placeholder"></td>
213 <td class="elbow-placeholder"></td>
214 <td colspan="1">
215 <div class="ansibleOptionAnchor" id="parameter-"></div>
216 <b>login</b>
217 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
218 <div style="font-size: small">
219 <span style="color: purple">string</span>
220 </div>
221 </td>
222 <td>
223 </td>
224 <td>
225 <div>Banner message to display before login.</div>
226 <div>Format is &#x27;c\r\n{banner text}\r\nc&#x27;, where &#x27;c&#x27; is a delimiting character</div>
227 </td>
228 </tr>
229 <tr>
230 <td class="elbow-placeholder"></td>
231 <td class="elbow-placeholder"></td>
232 <td colspan="1">
233 <div class="ansibleOptionAnchor" id="parameter-"></div>
234 <b>login_banner_disable</b>
235 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
236 <div style="font-size: small">
237 <span style="color: purple">boolean</span>
238 </div>
239 </td>
240 <td>
241 <ul style="margin: 0; padding: 0"><b>Choices:</b>
242 <li>no</li>
243 <li>yes</li>
244 </ul>
245 </td>
246 <td>
247 <div>Disable login banner.</div>
248 </td>
249 </tr>
250 <tr>
251 <td class="elbow-placeholder"></td>
252 <td class="elbow-placeholder"></td>
253 <td colspan="1">
254 <div class="ansibleOptionAnchor" id="parameter-"></div>
255 <b>motd</b>
256 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
257 <div style="font-size: small">
258 <span style="color: purple">string</span>
259 </div>
260 </td>
261 <td>
262 </td>
263 <td>
264 <div>Banner message to display after login.</div>
265 <div>Format is &#x27;c\r\n{banner text}\r\nc&#x27;, where &#x27;c&#x27; is a delimiting character</div>
266 </td>
267 </tr>
268 <tr>
269 <td class="elbow-placeholder"></td>
270 <td class="elbow-placeholder"></td>
271 <td colspan="1">
272 <div class="ansibleOptionAnchor" id="parameter-"></div>
273 <b>motd_banner_disable</b>
274 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
275 <div style="font-size: small">
276 <span style="color: purple">boolean</span>
277 </div>
278 </td>
279 <td>
280 <ul style="margin: 0; padding: 0"><b>Choices:</b>
281 <li>no</li>
282 <li>yes</li>
283 </ul>
284 </td>
285 <td>
286 <div>Disable motd banner.</div>
287 </td>
288 </tr>
289
290 <tr>
291 <td class="elbow-placeholder"></td>
292 <td colspan="2">
293 <div class="ansibleOptionAnchor" id="parameter-"></div>
294 <b>concurrent_session_limit</b>
295 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
296 <div style="font-size: small">
297 <span style="color: purple">integer</span>
298 </div>
299 <div style="font-style: italic; font-size: small; color: darkgreen">added in 3.1.0</div>
300 </td>
301 <td>
302 </td>
303 <td>
304 <div>Specifies limit on number of concurrent sessions</div>
305 <div>Range 1-12</div>
306 </td>
307 </tr>
308 <tr>
309 <td class="elbow-placeholder"></td>
310 <td colspan="2">
311 <div class="ansibleOptionAnchor" id="parameter-"></div>
312 <b>hostname</b>
313 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
314 <div style="font-size: small">
315 <span style="color: purple">string</span>
316 </div>
317 </td>
318 <td>
319 </td>
320 <td>
321 <div>Specifies the hostname of the SONiC device</div>
322 </td>
323 </tr>
324 <tr>
325 <td class="elbow-placeholder"></td>
326 <td colspan="2">
327 <div class="ansibleOptionAnchor" id="parameter-"></div>
328 <b>interface_naming</b>
329 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
330 <div style="font-size: small">
331 <span style="color: purple">string</span>
332 </div>
333 </td>
334 <td>
335 <ul style="margin: 0; padding: 0"><b>Choices:</b>
336 <li>standard</li>
337 <li>standard_extended</li>
338 <li>native</li>
339 </ul>
340 </td>
341 <td>
342 <div>Specifies the type of interface-naming in device</div>
343 </td>
344 </tr>
345 <tr>
346 <td class="elbow-placeholder"></td>
347 <td colspan="2">
348 <div class="ansibleOptionAnchor" id="parameter-"></div>
349 <b>load_share_hash_algo</b>
350 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
351 <div style="font-size: small">
352 <span style="color: purple">string</span>
353 </div>
354 <div style="font-style: italic; font-size: small; color: darkgreen">added in 2.5.0</div>
355 </td>
356 <td>
357 <ul style="margin: 0; padding: 0"><b>Choices:</b>
358 <li>CRC</li>
359 <li>XOR</li>
360 <li>CRC_32LO</li>
361 <li>CRC_32HI</li>
362 <li>CRC_CCITT</li>
363 <li>CRC_XOR</li>
364 <li>JENKINS_HASH_LO</li>
365 <li>JENKINS_HASH_HI</li>
366 </ul>
367 </td>
368 <td>
369 <div>Specifies different types of ECMP Load share hash algorithm</div>
370 </td>
371 </tr>
372 <tr>
373 <td class="elbow-placeholder"></td>
374 <td colspan="2">
375 <div class="ansibleOptionAnchor" id="parameter-"></div>
376 <b>login_exec_timeout</b>
377 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
378 <div style="font-size: small">
379 <span style="color: purple">integer</span>
380 </div>
381 <div style="font-style: italic; font-size: small; color: darkgreen">added in 4.0.0</div>
382 </td>
383 <td>
384 </td>
385 <td>
386 <div>CLI session timeout value.</div>
387 <div>The range is from 0 to 3600</div>
388 <div>Default is 600</div>
389 </td>
390 </tr>
391 <tr>
392 <td class="elbow-placeholder"></td>
393 <td colspan="2">
394 <div class="ansibleOptionAnchor" id="parameter-"></div>
395 <b>password_complexity</b>
396 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
397 <div style="font-size: small">
398 <span style="color: purple">dictionary</span>
399 </div>
400 </td>
401 <td>
402 </td>
403 <td>
404 <div>The set of login password attribute configurations</div>
405 </td>
406 </tr>
407 <tr>
408 <td class="elbow-placeholder"></td>
409 <td class="elbow-placeholder"></td>
410 <td colspan="1">
411 <div class="ansibleOptionAnchor" id="parameter-"></div>
412 <b>min_length</b>
413 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
414 <div style="font-size: small">
415 <span style="color: purple">integer</span>
416 </div>
417 </td>
418 <td>
419 </td>
420 <td>
421 <div>Minimum number of required alphanumeric characters</div>
422 <div>The range is from 6 to 32</div>
423 <div>Default is 8</div>
424 </td>
425 </tr>
426 <tr>
427 <td class="elbow-placeholder"></td>
428 <td class="elbow-placeholder"></td>
429 <td colspan="1">
430 <div class="ansibleOptionAnchor" id="parameter-"></div>
431 <b>min_lower_case</b>
432 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
433 <div style="font-size: small">
434 <span style="color: purple">integer</span>
435 </div>
436 </td>
437 <td>
438 </td>
439 <td>
440 <div>Minimum number of lowercase characters required</div>
441 <div>The range is from 0 to 31</div>
442 </td>
443 </tr>
444 <tr>
445 <td class="elbow-placeholder"></td>
446 <td class="elbow-placeholder"></td>
447 <td colspan="1">
448 <div class="ansibleOptionAnchor" id="parameter-"></div>
449 <b>min_numerals</b>
450 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
451 <div style="font-size: small">
452 <span style="color: purple">integer</span>
453 </div>
454 </td>
455 <td>
456 </td>
457 <td>
458 <div>Minimum number of numeric characters required</div>
459 <div>The range is from 0 to 31</div>
460 </td>
461 </tr>
462 <tr>
463 <td class="elbow-placeholder"></td>
464 <td class="elbow-placeholder"></td>
465 <td colspan="1">
466 <div class="ansibleOptionAnchor" id="parameter-"></div>
467 <b>min_spl_char</b>
468 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
469 <div style="font-size: small">
470 <span style="color: purple">integer</span>
471 </div>
472 </td>
473 <td>
474 </td>
475 <td>
476 <div>Minimum number of special characters required</div>
477 <div>The range is from 0 to 31</div>
478 </td>
479 </tr>
480 <tr>
481 <td class="elbow-placeholder"></td>
482 <td class="elbow-placeholder"></td>
483 <td colspan="1">
484 <div class="ansibleOptionAnchor" id="parameter-"></div>
485 <b>min_upper_case</b>
486 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
487 <div style="font-size: small">
488 <span style="color: purple">integer</span>
489 </div>
490 </td>
491 <td>
492 </td>
493 <td>
494 <div>Minimum number of uppercase characters required</div>
495 <div>The range is from 0 to 31</div>
496 </td>
497 </tr>
498
499 <tr>
500 <td class="elbow-placeholder"></td>
501 <td colspan="2">
502 <div class="ansibleOptionAnchor" id="parameter-"></div>
503 <b>switching_mode</b>
504 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
505 <div style="font-size: small">
506 <span style="color: purple">string</span>
507 </div>
508 <div style="font-style: italic; font-size: small; color: darkgreen">added in 3.1.0</div>
509 </td>
510 <td>
511 <ul style="margin: 0; padding: 0"><b>Choices:</b>
512 <li>CUT_THROUGH</li>
513 <li>STORE_AND_FORWARD</li>
514 </ul>
515 </td>
516 <td>
517 <div>Specifies switching mode in the device.</div>
518 <div>Operational default value is STORE_AND_FORWARD.</div>
519 </td>
520 </tr>
521
522 <tr>
523 <td colspan="3">
524 <div class="ansibleOptionAnchor" id="parameter-"></div>
525 <b>state</b>
526 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
527 <div style="font-size: small">
528 <span style="color: purple">string</span>
529 </div>
530 </td>
531 <td>
532 <ul style="margin: 0; padding: 0"><b>Choices:</b>
533 <li><div style="color: blue"><b>merged</b>&nbsp;&larr;</div></li>
534 <li>replaced</li>
535 <li>overridden</li>
536 <li>deleted</li>
537 </ul>
538 </td>
539 <td>
540 <div>Specifies the operation to be performed on the system parameters configured on the device.</div>
541 <div>In case of merged, the input configuration will be merged with the existing system configuration on the device.</div>
542 <div>In case of deleted the existing system configuration will be removed from the device.</div>
543 </td>
544 </tr>
545 </table>
546 <br/>
547
548
549 Notes
550 -----
551
552 .. note::
553 - Tested against Enterprise SONiC Distribution by Dell Technologies.
554 - Supports ``check_mode``.
555
556
557
558 Examples
559 --------
560
561 .. code-block:: yaml
562
563 # Using "deleted" state
564 #
565 # Before state:
566 # -------------
567 # !
568 # SONIC(config)#do show running-configuration
569 # !
570 # banner login @
571 # banner - Welcome to DELL SONiC
572 # @
573 # banner motd @
574 # banner - Enjoy the DELL OS
575 # @
576 # banner motd disable
577 # ip anycast-mac-address aa:bb:cc:dd:ee:ff
578 # ip anycast-address enable
579 # ipv6 anycast-address enable
580 # interface-naming standard
581 # ip load-share hash algorithm JENKINS_HASH_HI
582 # login concurrent-session limit 4
583 # system adjust-txrx-clock-freq
584 # login password-attribute character-restriction lower 2
585
586 - name: Delete System configuration
587 dellemc.enterprise_sonic.sonic_system:
588 config:
589 hostname: SONIC
590 interface_naming: standard
591 anycast_address:
592 ipv6: true
593 load_share_hash_algo: JENKINS_HASH_HI
594 concurrent_session_limit: 4
595 adjust_txrx_clock_freq: true
596 password_complexity:
597 min_lower_case: 2
598 banner:
599 login: "@
600 banner_login_message
601 @"
602 motd: "@
603 banner_motd_message
604 @"
605 state: deleted
606
607 # After state:
608 # ------------
609 # !
610 # sonic(config)#do show running-configuration
611 # !
612 # ip anycast-mac-address aa:bb:cc:dd:ee:ff
613 # ip anycast-address enable
614
615
616 # Using "deleted" state
617 #
618 # Before state:
619 # -------------
620 # !
621 # SONIC(config)#do show running-configuration
622 # !
623 # ip anycast-mac-address aa:bb:cc:dd:ee:ff
624 # ip anycast-address enable
625 # ipv6 anycast-address enable
626 # interface-naming standard
627 # ip load-share hash algorithm JENKINS_HASH_HI
628 # login concurrent-session limit 4
629
630 - name: Delete all system related configs in device configuration
631 dellemc.enterprise_sonic.sonic_system:
632 config:
633 state: deleted
634
635 # After state:
636 # ------------
637 # !
638 # sonic(config)#do show running-configuration
639 # !
640
641
642 # Using "merged" state
643 #
644 # Before state:
645 # -------------
646 # !
647 # sonic(config)#do show running-configuration
648 # !
649
650 - name: Merge provided configuration with device configuration
651 dellemc.enterprise_sonic.sonic_system:
652 config:
653 hostname: SONIC
654 interface_naming: standard
655 anycast_address:
656 ipv6: true
657 ipv4: true
658 mac_address: aa:bb:cc:dd:ee:ff
659 load_share_hash_algo: JENKINS_HASH_HI
660 concurrent_session_limit: 4
661 adjust_txrx_clock_freq: true
662 password_complexity:
663 min_upper_case: 2
664 min_spl_char: 2
665 banner:
666 login_banner_disable: true
667 motd: "@
668 motd_banner_message
669 @"
670 state: merged
671
672 # After state:
673 # ------------
674 # !
675 # SONIC(config)#do show running-configuration
676 # !
677 # banner motd @
678 # motd_banner_message
679 # @
680 # banner login disable
681 # hostname SONIC
682 # ip anycast-mac-address aa:bb:cc:dd:ee:ff
683 # ip anycast-address enable
684 # ipv6 anycast-address enable
685 # interface-naming standard
686 # ip load-share hash algorithm JENKINS_HASH_HI
687 # login concurrent-session limit 4
688 # system adjust-txrx-clock-freq
689 # login password-attribute character-restriction upper 2
690 # login password-attribute character-restriction special-char 2
691
692 # Using "replaced" state
693 #
694 # Before state:
695 # -------------
696 # !
697 # sonic(config)#do show running-configuration
698 # !
699 # banner login @
700 # banner_login_message
701 # @
702 # banner motd @
703 # @
704 # banner_motd_message
705 # banner motd disable
706 # ip anycast-mac-address aa:bb:cc:dd:ee:ff
707 # ip anycast-address enable
708 # ipv6 anycast-address enable
709 # interface-naming standard
710 # login concurrent-session limit 4
711 # login password-attribute character-restriction upper 2
712 # login password-attribute character-restriction special-char 2
713
714 - name: Replace system configuration.
715 sonic_system:
716 config:
717 hostname: SONIC
718 anycast_address:
719 ipv6: true
720 concurrent_session_limit: 5
721 password_complexity:
722 min_lower_case: 2
723 banner:
724 login: "@
725 login_banner_message
726 @"
727 state: replaced
728
729 # After state:
730 # ------------
731 # !
732 # SONIC(config)#do show running-configuration
733 # !
734 # banner login @
735 # login_banner_message
736 # @
737 # hostname SONIC
738 # ipv6 anycast-address enable
739 # login concurrent-session limit 5
740 # login password-attribute character-restriction lower 2
741
742 # Using "replaced" state
743 #
744 # Before state:
745 # -------------
746 # !
747 # sonic(config)#do show running-configuration
748 # !
749 # banner login @
750 # login_banner_message
751 # @
752 # ip anycast-mac-address aa:bb:cc:dd:ee:ff
753 # interface-naming standard
754 # login concurrent-session limit 5
755 # login password-attribute character-restriction lower 2
756
757 - name: Replace system device configuration.
758 sonic_system:
759 config:
760 hostname: sonic
761 interface_naming: standard
762 anycast_address:
763 ipv6: true
764 ipv4: true
765 load_share_hash_algo: JENKINS_HASH_HI
766 password_complexity:
767 min_numerals: 2
768 state: replaced
769
770 # After state:
771 # ------------
772 # !
773 # sonic(config)#do show running-configuration
774 # !
775 # ip anycast-address enable
776 # ipv6 anycast-address enable
777 # interface-naming standard
778 # ip load-share hash algorithm JENKINS_HASH_HI
779 # login password-attribute character-restriction numeric 2
780
781 # Using "overridden" state
782 #
783 # Before state:
784 # -------------
785 # !
786 # sonic(config)#do show running-configuration
787 # !
788 # banner motd @
789 # banner - Enjoy the DELL OS
790 # @
791 # banner login disable
792 # ipv6 anycast-address enable
793 # ip load-share hash algorithm JENKINS_HASH_HI
794 # login concurrent-session limit 5
795 # login password-attribute character-restriction numeric 2
796
797 - name: Override system configuration.
798 sonic_system:
799 config:
800 hostname: SONIC
801 interface_naming: standard
802 anycast_address:
803 ipv4: true
804 mac_address: bb:aa:cc:dd:ee:ff
805 load_share_hash_algo: CRC_XOR
806 concurrent_session_limit: 4
807 password_complexity:
808 min_upper_case: 1
809 banner:
810 motd_banner_disable: true
811 login: "@
812 banner_login_message
813 @"
814 motd: "@
815 banner_motd_message
816 @"
817 login_banner_disable: false
818 state: overridden
819
820 # After state:
821 # ------------
822 # !
823 # SONIC(config)#do show running-configuration
824 # !
825 # banner login @
826 # banner_login_message
827 # @
828 # banner motd @
829 # banner_motd_message
830 # @
831 # banner motd disable
832 # hostname SONIC
833 # ip anycast-mac-address bb:aa:cc:dd:ee:ff
834 # ip anycast-address enable
835 # interface-naming standard
836 # ip load-share hash algorithm CRC_XOR
837 # login concurrent-session limit 4
838 # login password-attribute character-restriction upper 1
839
840 # Using "merged" state
841 #
842 # Before state:
843 # -------------
844 # !
845 # sonic(config)#do show running-configuration
846 # !
847
848 - name: Merge provided configuration with device configuration
849 dellemc.enterprise_sonic.sonic_system:
850 config:
851 hostname: SONIC
852 interface_naming: standard
853 auto_breakout: ENABLE
854 load_share_hash_algo: JENKINS_HASH_HI
855 audit_rules: BASIC
856 exec_timeout: 15
857 state: merged
858
859 # After state:
860 # ------------
861 # !
862 # SONIC(config)#do show running-configuration
863 # !
864 # hostname SONIC
865 # interface-naming standard
866 # auto-breakout
867 # ip load-share hash algorithm JENKINS_HASH_HI
868 # auditd-system rules basic
869 # login exec-timeout 15
870
871 # Using "deleted" state
872 #
873 # Before state:
874 # -------------
875 # !
876 # SONIC(config)#do show running-configuration
877 # !
878 # hostname SONIC
879 # interface-naming standard
880 # auto-breakout
881 # ip load-share hash algorithm JENKINS_HASH_HI
882 # auditd-system rules basic
883 # login exec-timeout 15
884
885 - name: Delete auto-breakout configuration on the device
886 dellemc.enterprise_sonic.sonic_system:
887 config:
888 hostname: SONIC
889 auto_breakout: ENABLE
890 load_share_hash_algo: JENKINS_HASH_HI
891 audit_rules: BASIC
892 login_exec_timeout: 15
893 state: deleted
894
895 # After state:
896 # ------------
897 # !
898 # sonic(config)#do show running-configuration
899 # !
900 # interface-naming standard
901
902
903
904 Return Values
905 -------------
906 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:
907
908 .. raw:: html
909
910 <table border=0 cellpadding=0 class="documentation-table">
911 <tr>
912 <th colspan="1">Key</th>
913 <th>Returned</th>
914 <th width="100%">Description</th>
915 </tr>
916 <tr>
917 <td colspan="1">
918 <div class="ansibleOptionAnchor" id="return-"></div>
919 <b>after</b>
920 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
921 <div style="font-size: small">
922 <span style="color: purple">list</span>
923 </div>
924 </td>
925 <td>when changed</td>
926 <td>
927 <div>The resulting configuration module invocation.</div>
928 <br/>
929 <div style="font-size: smaller"><b>Sample:</b></div>
930 <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 as the parameters above.</div>
931 </td>
932 </tr>
933 <tr>
934 <td colspan="1">
935 <div class="ansibleOptionAnchor" id="return-"></div>
936 <b>before</b>
937 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
938 <div style="font-size: small">
939 <span style="color: purple">list</span>
940 </div>
941 </td>
942 <td>always</td>
943 <td>
944 <div>The configuration prior to the module invocation.</div>
945 <br/>
946 <div style="font-size: smaller"><b>Sample:</b></div>
947 <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 as the parameters above.</div>
948 </td>
949 </tr>
950 <tr>
951 <td colspan="1">
952 <div class="ansibleOptionAnchor" id="return-"></div>
953 <b>commands</b>
954 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
955 <div style="font-size: small">
956 <span style="color: purple">list</span>
957 </div>
958 </td>
959 <td>always</td>
960 <td>
961 <div>The set of commands pushed to the remote device.</div>
962 <br/>
963 <div style="font-size: smaller"><b>Sample:</b></div>
964 <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>
965 </td>
966 </tr>
967 </table>
968 <br/><br/>
969
970
971 Status
972 ------
973
974
975 Authors
976 ~~~~~~~
977
978 - Abirami N (@abirami-n)