Debian Codegraph @

ansible_collections/dellemc/enterprise_sonic/docs/dellemc.enterprise_sonic.sonic_ptp_default_ds_module.rst

raw
1 .. _dellemc.enterprise_sonic.sonic_ptp_default_ds_module:
2
3
4 *********************************************
5 dellemc.enterprise_sonic.sonic_ptp_default_ds
6 *********************************************
7
8 **Manage global PTP configurations on SONiC**
9
10
11 Version added: 3.1.0
12
13 .. contents::
14 :local:
15 :depth: 1
16
17
18 Synopsis
19 --------
20 - This module provides configuration management of global PTP parameters for devices running SONiC.
21 - The device should have timing chip support.
22
23
24
25
26 Parameters
27 ----------
28
29 .. raw:: html
30
31 <table border=0 cellpadding=0 class="documentation-table">
32 <tr>
33 <th colspan="2">Parameter</th>
34 <th>Choices/<font color="blue">Defaults</font></th>
35 <th width="100%">Comments</th>
36 </tr>
37 <tr>
38 <td colspan="2">
39 <div class="ansibleOptionAnchor" id="parameter-"></div>
40 <b>config</b>
41 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
42 <div style="font-size: small">
43 <span style="color: purple">dictionary</span>
44 </div>
45 </td>
46 <td>
47 </td>
48 <td>
49 <div>Specifies global PTP clock configurations.</div>
50 </td>
51 </tr>
52 <tr>
53 <td class="elbow-placeholder"></td>
54 <td colspan="1">
55 <div class="ansibleOptionAnchor" id="parameter-"></div>
56 <b>announce_receipt_timeout</b>
57 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
58 <div style="font-size: small">
59 <span style="color: purple">integer</span>
60 </div>
61 </td>
62 <td>
63 </td>
64 <td>
65 <div>The number of announceIntervals that have to pass without receipt of an Announce message before the occurrence of the event ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES.</div>
66 </td>
67 </tr>
68 <tr>
69 <td class="elbow-placeholder"></td>
70 <td colspan="1">
71 <div class="ansibleOptionAnchor" id="parameter-"></div>
72 <b>clock_type</b>
73 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
74 <div style="font-size: small">
75 <span style="color: purple">string</span>
76 </div>
77 </td>
78 <td>
79 <ul style="margin: 0; padding: 0"><b>Choices:</b>
80 <li>BC</li>
81 <li>E2E_TC</li>
82 <li>P2P_TC</li>
83 <li>disable</li>
84 </ul>
85 </td>
86 <td>
87 <div>Specifies the type of clock configured in the PTP domain.</div>
88 </td>
89 </tr>
90 <tr>
91 <td class="elbow-placeholder"></td>
92 <td colspan="1">
93 <div class="ansibleOptionAnchor" id="parameter-"></div>
94 <b>domain_number</b>
95 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
96 <div style="font-size: small">
97 <span style="color: purple">integer</span>
98 </div>
99 </td>
100 <td>
101 </td>
102 <td>
103 <div>The domain number of the current syntonization domain.</div>
104 <div>The range is from 0 to 127.</div>
105 </td>
106 </tr>
107 <tr>
108 <td class="elbow-placeholder"></td>
109 <td colspan="1">
110 <div class="ansibleOptionAnchor" id="parameter-"></div>
111 <b>domain_profile</b>
112 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
113 <div style="font-size: small">
114 <span style="color: purple">string</span>
115 </div>
116 </td>
117 <td>
118 <ul style="margin: 0; padding: 0"><b>Choices:</b>
119 <li>ieee1588</li>
120 <li>G.8275.1</li>
121 <li>G.8275.2</li>
122 </ul>
123 </td>
124 <td>
125 <div>The method to be used when comparing data sets during the Best Master Clock Algorithm.</div>
126 </td>
127 </tr>
128 <tr>
129 <td class="elbow-placeholder"></td>
130 <td colspan="1">
131 <div class="ansibleOptionAnchor" id="parameter-"></div>
132 <b>log_announce_interval</b>
133 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
134 <div style="font-size: small">
135 <span style="color: purple">integer</span>
136 </div>
137 </td>
138 <td>
139 </td>
140 <td>
141 <div>The base-2 logarithm of the mean announceInterval (mean time interval between successive Announce messages).</div>
142 </td>
143 </tr>
144 <tr>
145 <td class="elbow-placeholder"></td>
146 <td colspan="1">
147 <div class="ansibleOptionAnchor" id="parameter-"></div>
148 <b>log_min_delay_req_interval</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>The base-2 logarithm of the minDelayReqInterval.</div>
158 <div>The minimum permitted mean time interval between successive Delay_Req messages.</div>
159 </td>
160 </tr>
161 <tr>
162 <td class="elbow-placeholder"></td>
163 <td colspan="1">
164 <div class="ansibleOptionAnchor" id="parameter-"></div>
165 <b>log_sync_interval</b>
166 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
167 <div style="font-size: small">
168 <span style="color: purple">integer</span>
169 </div>
170 </td>
171 <td>
172 </td>
173 <td>
174 <div>The base-2 logarithm of the mean SyncInterval for multicast messages.</div>
175 </td>
176 </tr>
177 <tr>
178 <td class="elbow-placeholder"></td>
179 <td colspan="1">
180 <div class="ansibleOptionAnchor" id="parameter-"></div>
181 <b>network_transport</b>
182 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
183 <div style="font-size: small">
184 <span style="color: purple">string</span>
185 </div>
186 </td>
187 <td>
188 <ul style="margin: 0; padding: 0"><b>Choices:</b>
189 <li>L2</li>
190 <li>UDPv4</li>
191 <li>UDPv6</li>
192 </ul>
193 </td>
194 <td>
195 <div>The network transport used for communication.</div>
196 </td>
197 </tr>
198 <tr>
199 <td class="elbow-placeholder"></td>
200 <td colspan="1">
201 <div class="ansibleOptionAnchor" id="parameter-"></div>
202 <b>priority1</b>
203 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
204 <div style="font-size: small">
205 <span style="color: purple">integer</span>
206 </div>
207 </td>
208 <td>
209 </td>
210 <td>
211 <div>The priority1 attribute of the local clock.</div>
212 <div>The range is from 0 to 255.</div>
213 </td>
214 </tr>
215 <tr>
216 <td class="elbow-placeholder"></td>
217 <td colspan="1">
218 <div class="ansibleOptionAnchor" id="parameter-"></div>
219 <b>priority2</b>
220 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
221 <div style="font-size: small">
222 <span style="color: purple">integer</span>
223 </div>
224 </td>
225 <td>
226 </td>
227 <td>
228 <div>The priority2 attribute of the local clock.</div>
229 <div>The range is from 0 to 255.</div>
230 </td>
231 </tr>
232 <tr>
233 <td class="elbow-placeholder"></td>
234 <td colspan="1">
235 <div class="ansibleOptionAnchor" id="parameter-"></div>
236 <b>source_interface</b>
237 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
238 <div style="font-size: small">
239 <span style="color: purple">string</span>
240 </div>
241 </td>
242 <td>
243 </td>
244 <td>
245 <div>Source interface whose IP to use as source ip for PTP IPv4 and IPv6 multicast transport mode.</div>
246 </td>
247 </tr>
248 <tr>
249 <td class="elbow-placeholder"></td>
250 <td colspan="1">
251 <div class="ansibleOptionAnchor" id="parameter-"></div>
252 <b>two_step_flag</b>
253 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
254 <div style="font-size: small">
255 <span style="color: purple">integer</span>
256 </div>
257 </td>
258 <td>
259 </td>
260 <td>
261 <div>The clockAccuracy indicates the expected accuracy of the clock.</div>
262 </td>
263 </tr>
264 <tr>
265 <td class="elbow-placeholder"></td>
266 <td colspan="1">
267 <div class="ansibleOptionAnchor" id="parameter-"></div>
268 <b>unicast_multicast</b>
269 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
270 <div style="font-size: small">
271 <span style="color: purple">string</span>
272 </div>
273 </td>
274 <td>
275 <ul style="margin: 0; padding: 0"><b>Choices:</b>
276 <li>unicast</li>
277 <li>multicast</li>
278 </ul>
279 </td>
280 <td>
281 <div>Specifies whether the network transport uses unicast or multicast communication.</div>
282 </td>
283 </tr>
284
285 <tr>
286 <td colspan="2">
287 <div class="ansibleOptionAnchor" id="parameter-"></div>
288 <b>state</b>
289 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
290 <div style="font-size: small">
291 <span style="color: purple">string</span>
292 </div>
293 </td>
294 <td>
295 <ul style="margin: 0; padding: 0"><b>Choices:</b>
296 <li><div style="color: blue"><b>merged</b>&nbsp;&larr;</div></li>
297 <li>deleted</li>
298 <li>replaced</li>
299 <li>overridden</li>
300 </ul>
301 </td>
302 <td>
303 <div>The state of the configuration after module completion.</div>
304 <div><code>merged</code> - Merges provided PTP configuration with on-device configuration.</div>
305 <div><code>replaced</code> - Replaces on-device PTP configuration with provided configuration.</div>
306 <div><code>overridden</code> - Overrides all on-device PTP configurations with the provided configuration.</div>
307 <div><code>deleted</code> - Deletes on-device PTP configuration.</div>
308 </td>
309 </tr>
310 </table>
311 <br/>
312
313
314
315
316 Examples
317 --------
318
319 .. code-block:: yaml
320
321 # Using deleted
322 #
323 # Before State:
324 # -------------
325 #
326 # sonic# show running-configuration ptp
327 # ptp network-transport l2 multicast
328 # ptp domain 25
329 # ptp domain-profile default
330 # ptp priority1 101
331 # ptp priority2 91
332 # ptp log-announce-interval 1
333 # ptp log-sync-interval -3
334 # sonic#
335
336 - name: Delete specified PTP configurations
337 dellemc.enterprise_sonic.sonic_ptp:
338 config:
339 log-sync-interval: -3
340 log-announce-interval: 1
341 network-transport: 'L2'
342 unicast-multicast: 'multicast'
343 priority1: 101
344 priority2: 91
345 domain-number: 25
346 state: deleted
347
348 # After State:
349 # ------------
350 #
351 # sonic# show running-configuration ptp
352 # ptp domain-profile default
353 # sonic#
354
355
356 # Using deleted
357 #
358 # Before State:
359 # -------------
360 #
361 # sonic# show running-configuration ptp
362 # ptp mode boundary-clock
363 # ptp network-transport ipv6 unicast
364 # ptp domain 45
365 # ptp domain-profile g8275.2
366 # ptp announce-timeout 3
367 # sonic#
368
369 - name: Delete all PTP configurations
370 dellemc.enterprise_sonic.sonic_ptp:
371 config:
372 state: deleted
373
374 # After State:
375 # ------------
376 #
377 # sonic# show running-configuration ptp
378 # sonic#
379
380
381 # Using merged
382 #
383 # Before State:
384 # -------------
385 #
386 # sonic# show running-configuration ptp
387 # ptp domain 35
388 # ptp domain-profile default
389 # ptp priority2 100
390 # sonic#
391
392 - name: Merge provided global PTP configurations
393 dellemc.enterprise_sonic.sonic_ptp:
394 config:
395 domain-profile: 'G.8275.1'
396 log-sync-interval: -4
397 log-announce-interval: -3
398 announce-receipt-timeout: 5
399 log-min-delay-req-interval: -4
400 clock-type: 'BC'
401 network-transport: 'L2'
402 unicast-multicast: 'multicast'
403 state: merged
404
405 # After State:
406 # ------------
407 #
408 # sonic# show running-configuration ptp
409 # ptp mode boundary-clock
410 # ptp network-transport l2 multicast
411 # ptp domain 35
412 # ptp domain-profile g8275.1
413 # ptp priority2 100
414 # ptp log-announce-interval -3
415 # ptp announce-timeout 5
416 # ptp log-sync-interval -4
417 # ptp log-min-delay-req-interval -4
418 # sonic#
419
420
421 # Using replaced
422 #
423 # Before State:
424 # -------------
425 #
426 # sonic# show running-configuration ptp
427 # ptp network-transport ipv4 unicast
428 # ptp domain 44
429 # ptp domain-profile default
430 # ptp priority1 100
431 # ptp priority2 90
432 # ptp log-announce-interval -2
433 # ptp log-sync-interval -4
434 # sonic#
435
436 - name: Replace global PTP configurations
437 dellemc.enterprise_sonic.sonic_ptp:
438 config:
439 log-sync-interval: -3
440 log-announce-interval: 1
441 network-transport: 'L2'
442 unicast-multicast: 'multicast'
443 priority1: 101
444 priority2: 91
445 domain-number: 25
446 state: replaced
447
448 # After State:
449 # ------------
450 #
451 # sonic# show running-configuration ptp
452 # ptp network-transport l2 multicast
453 # ptp domain 25
454 # ptp domain-profile default
455 # ptp priority1 101
456 # ptp priority2 91
457 # ptp log-announce-interval 1
458 # ptp log-sync-interval -3
459 # sonic#
460
461
462 # Using overridden
463 #
464 # Before State:
465 # -------------
466 #
467 # sonic# show running-configuration ptp
468 # ptp mode boundary-clock
469 # ptp network-transport l2 multicast
470 # ptp domain 35
471 # ptp domain-profile g8275.1
472 # ptp priority2 100
473 # ptp log-announce-interval -3
474 # ptp announce-timeout 5
475 # ptp log-sync-interval -4
476 # ptp log-min-delay-req-interval -4
477 # sonic#
478
479 - name: Override device configuration of ptp with provided configuration
480 dellemc.enterprise_sonic.sonic_ptp:
481 config:
482 domain-number: 44
483 domain-profile: 'G.8275.2'
484 network-transport: 'ipv4'
485 unicast-multicast: 'unicast'
486 state: overridden
487
488 # After State:
489 # ------------
490 #
491 # sonic# show running-configuration ptp
492 # ptp network-transport ipv4 unicast
493 # ptp domain 44
494 # ptp domain-profile g8275.2
495 # sonic#
496
497
498
499 Return Values
500 -------------
501 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:
502
503 .. raw:: html
504
505 <table border=0 cellpadding=0 class="documentation-table">
506 <tr>
507 <th colspan="1">Key</th>
508 <th>Returned</th>
509 <th width="100%">Description</th>
510 </tr>
511 <tr>
512 <td colspan="1">
513 <div class="ansibleOptionAnchor" id="return-"></div>
514 <b>after</b>
515 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
516 <div style="font-size: small">
517 <span style="color: purple">dictionary</span>
518 </div>
519 </td>
520 <td>when changed</td>
521 <td>
522 <div>The configuration resulting from module invocation.</div>
523 <br/>
524 </td>
525 </tr>
526 <tr>
527 <td colspan="1">
528 <div class="ansibleOptionAnchor" id="return-"></div>
529 <b>after_generated</b>
530 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
531 <div style="font-size: small">
532 <span style="color: purple">dictionary</span>
533 </div>
534 </td>
535 <td>when <code>check_mode</code></td>
536 <td>
537 <div>The configuration that would be generated by module invocation in non-check mode.</div>
538 <br/>
539 <div style="font-size: smaller"><b>Sample:</b></div>
540 <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>
541 </td>
542 </tr>
543 <tr>
544 <td colspan="1">
545 <div class="ansibleOptionAnchor" id="return-"></div>
546 <b>before</b>
547 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
548 <div style="font-size: small">
549 <span style="color: purple">dictionary</span>
550 </div>
551 </td>
552 <td>always</td>
553 <td>
554 <div>The configuration prior to the model invocation.</div>
555 <br/>
556 </td>
557 </tr>
558 <tr>
559 <td colspan="1">
560 <div class="ansibleOptionAnchor" id="return-"></div>
561 <b>commands</b>
562 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
563 <div style="font-size: small">
564 <span style="color: purple">list</span>
565 </div>
566 </td>
567 <td>always</td>
568 <td>
569 <div>The set of commands pushed to the remote device.</div>
570 <br/>
571 </td>
572 </tr>
573 </table>
574 <br/><br/>
575
576
577 Status
578 ------
579
580
581 Authors
582 ~~~~~~~
583
584 - Pranesh Raagav S (@PraneshRaagavS)