Debian Codegraph @

ansible_collections/dellemc/enterprise_sonic/docs/dellemc.enterprise_sonic.sonic_pim_interfaces_module.rst

raw
1 .. _dellemc.enterprise_sonic.sonic_pim_interfaces_module:
2
3
4 *********************************************
5 dellemc.enterprise_sonic.sonic_pim_interfaces
6 *********************************************
7
8 **Manage interface-specific PIM configurations 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 interface-specific PIM parameters for devices running SONiC.
21 - BFD profiles need to be created earlier in the device.
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">list</span>
44 / <span style="color: purple">elements=dictionary</span>
45 </div>
46 </td>
47 <td>
48 </td>
49 <td>
50 <div>Specifies interface-specific PIM configurations.</div>
51 </td>
52 </tr>
53 <tr>
54 <td class="elbow-placeholder"></td>
55 <td colspan="1">
56 <div class="ansibleOptionAnchor" id="parameter-"></div>
57 <b>bfd_enable</b>
58 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
59 <div style="font-size: small">
60 <span style="color: purple">boolean</span>
61 </div>
62 </td>
63 <td>
64 <ul style="margin: 0; padding: 0"><b>Choices:</b>
65 <li>no</li>
66 <li>yes</li>
67 </ul>
68 </td>
69 <td>
70 <div>Enable BFD support for PIM.</div>
71 </td>
72 </tr>
73 <tr>
74 <td class="elbow-placeholder"></td>
75 <td colspan="1">
76 <div class="ansibleOptionAnchor" id="parameter-"></div>
77 <b>bfd_profile</b>
78 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
79 <div style="font-size: small">
80 <span style="color: purple">string</span>
81 </div>
82 </td>
83 <td>
84 </td>
85 <td>
86 <div>Specifies the BFD profile to be enabled.</div>
87 <div>BFD support for PIM has to be enabled for configuring BFD profile.</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>drpriority</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>Specifies the Designated Router Priority.</div>
104 <div>The range is from 1 to 4294967295.</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>hello_interval</b>
112 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
113 <div style="font-size: small">
114 <span style="color: purple">integer</span>
115 </div>
116 </td>
117 <td>
118 </td>
119 <td>
120 <div>Specifies the Hello interval in seconds.</div>
121 <div>The range is from 1 to 255.</div>
122 </td>
123 </tr>
124 <tr>
125 <td class="elbow-placeholder"></td>
126 <td colspan="1">
127 <div class="ansibleOptionAnchor" id="parameter-"></div>
128 <b>name</b>
129 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
130 <div style="font-size: small">
131 <span style="color: purple">string</span>
132 / <span style="color: red">required</span>
133 </div>
134 </td>
135 <td>
136 </td>
137 <td>
138 <div>Full name of the interface.</div>
139 </td>
140 </tr>
141 <tr>
142 <td class="elbow-placeholder"></td>
143 <td colspan="1">
144 <div class="ansibleOptionAnchor" id="parameter-"></div>
145 <b>sparse_mode</b>
146 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
147 <div style="font-size: small">
148 <span style="color: purple">boolean</span>
149 </div>
150 </td>
151 <td>
152 <ul style="margin: 0; padding: 0"><b>Choices:</b>
153 <li>no</li>
154 <li>yes</li>
155 </ul>
156 </td>
157 <td>
158 <div>Enable PIM sparse-mode.</div>
159 </td>
160 </tr>
161
162 <tr>
163 <td colspan="2">
164 <div class="ansibleOptionAnchor" id="parameter-"></div>
165 <b>state</b>
166 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
167 <div style="font-size: small">
168 <span style="color: purple">string</span>
169 </div>
170 </td>
171 <td>
172 <ul style="margin: 0; padding: 0"><b>Choices:</b>
173 <li><div style="color: blue"><b>merged</b>&nbsp;&larr;</div></li>
174 <li>deleted</li>
175 <li>replaced</li>
176 <li>overridden</li>
177 </ul>
178 </td>
179 <td>
180 <div>The state of the configuration after module completion.</div>
181 <div><code>merged</code> - Merges provided interface-specific PIM configuration with on-device configuration.</div>
182 <div><code>replaced</code> - Replaces on-device PIM configuration of the specified interfaces with provided configuration.</div>
183 <div><code>overridden</code> - Overrides all on-device interface-specific PIM configurations with the provided configuration.</div>
184 <div><code>deleted</code> - Deletes on-device interface-specific PIM configuration.</div>
185 </td>
186 </tr>
187 </table>
188 <br/>
189
190
191 Notes
192 -----
193
194 .. note::
195 - Supports ``check_mode``.
196
197
198
199 Examples
200 --------
201
202 .. code-block:: yaml
203
204 # Using "deleted" state
205 #
206 # Before state:
207 # -------------
208 #
209 # sonic# show running-configuration interface Eth 1/1 | grep "ip pim"
210 # ip pim sparse-mode
211 # ip pim drpriority 10
212 # ip pim hello 60
213 # ip pim bfd
214 # ip pim bfd profile profile_1
215 # sonic# show running-configuration interface Eth 1/2 | grep "ip pim"
216 # ip pim hello 60
217 # ip pim bfd
218 # sonic#
219
220 - name: Delete specified interface PIM configurations
221 dellemc.enterprise_sonic.sonic_pim_interfaces:
222 config:
223 - name: 'Eth1/1'
224 hello_interval: 60
225 bfd_profile: profile_1
226 - name: 'Eth1/2'
227 state: deleted
228
229 # After state:
230 # ------------
231 #
232 # sonic# show running-configuration interface Eth 1/1 | grep "ip pim"
233 # ip pim sparse-mode
234 # ip pim drpriority 10
235 # ip pim bfd
236 # sonic# show running-configuration interface Eth 1/2 | grep "ip pim"
237 # sonic#
238
239
240 # Using "deleted" state
241 #
242 # Before state:
243 # -------------
244 #
245 # sonic# show running-configuration interface Eth 1/1 | grep "ip pim"
246 # ip pim sparse-mode
247 # ip pim drpriority 10
248 # ip pim hello 60
249 # ip pim bfd
250 # ip pim bfd profile profile_1
251 # sonic# show running-configuration interface Eth 1/2 | grep "ip pim"
252 # ip pim hello 60
253 # ip pim bfd
254 # sonic#
255
256 - name: Delete all interface-specific PIM configurations
257 dellemc.enterprise_sonic.sonic_pim_interfaces:
258 config:
259 state: deleted
260
261 # After state:
262 # ------------
263 #
264 # sonic# show running-configuration interface Eth 1/1 | grep "ip pim"
265 # sonic# show running-configuration interface Eth 1/2 | grep "ip pim"
266 # sonic#
267
268
269 # Using "merged" state
270 #
271 # Before state:
272 # -------------
273 #
274 # sonic# show running-configuration interface Eth 1/1 | grep "ip pim"
275 # ip pim sparse-mode
276 # ip pim hello 45
277 # sonic# show running-configuration interface Eth 1/2 | grep "ip pim"
278 # sonic#
279
280 - name: Merge provided interface PIM configurations
281 dellemc.enterprise_sonic.sonic_pim_interfaces:
282 config:
283 - name: 'Eth1/1'
284 drpriority: 10
285 hello_interval: 60
286 bfd_enable: true
287 bfd_profile: profile_1
288 - name: 'Eth1/2'
289 hello_interval: 60
290 bfd_enable: true
291 state: merged
292
293 # After state:
294 # ------------
295 #
296 # sonic# show running-configuration interface Eth 1/1 | grep "ip pim"
297 # ip pim sparse-mode
298 # ip pim drpriority 10
299 # ip pim hello 60
300 # ip pim bfd
301 # ip pim bfd profile profile_1
302 # sonic# show running-configuration interface Eth 1/2 | grep "ip pim"
303 # ip pim hello 60
304 # ip pim bfd
305 # sonic#
306
307
308 # Using "replaced" state
309 #
310 # Before state:
311 # -------------
312 #
313 # sonic# show running-configuration interface Eth 1/1 | grep "ip pim"
314 # ip pim sparse-mode
315 # ip pim drpriority 10
316 # ip pim hello 45
317 # ip pim bfd
318 # ip pim bfd profile profile_1
319 # sonic# show running-configuration interface Eth 1/2 | grep "ip pim"
320 # ip pim hello 60
321 # ip pim bfd
322 # sonic#
323
324 - name: Replace PIM configurations for specified interfaces
325 dellemc.enterprise_sonic.sonic_pim_interfaces:
326 config:
327 - name: 'Eth1/1'
328 hello_interval: 60
329 bfd_enable: true
330 bfd_profile: profile_1
331 state: replaced
332
333 # After state:
334 # ------------
335 #
336 # sonic# show running-configuration interface Eth 1/1 | grep "ip pim"
337 # ip pim hello 60
338 # ip pim bfd
339 # ip pim bfd profile profile_1
340 # sonic# show running-configuration interface Eth 1/2 | grep "ip pim"
341 # ip pim hello 60
342 # ip pim bfd
343 # sonic#
344
345
346 # Using "overridden" state
347 #
348 # Before state:
349 # -------------
350 #
351 # sonic# show running-configuration interface Eth 1/1 | grep "ip pim"
352 # ip pim sparse-mode
353 # ip pim drpriority 10
354 # ip pim hello 45
355 # ip pim bfd
356 # ip pim bfd profile profile_1
357 # sonic# show running-configuration interface Eth 1/2 | grep "ip pim"
358 # ip pim hello 60
359 # ip pim bfd
360 # sonic#
361
362 - name: Override interface-specific PIM configurations
363 dellemc.enterprise_sonic.sonic_pim_interfaces:
364 config:
365 - name: 'Eth1/1'
366 hello_interval: 60
367 bfd_enable: true
368 bfd_profile: profile_1
369 state: overridden
370
371 # After state:
372 # ------------
373 #
374 # sonic# show running-configuration interface Eth 1/1 | grep "ip pim"
375 # ip pim hello 60
376 # ip pim bfd
377 # ip pim bfd profile profile_1
378 # sonic# show running-configuration interface Eth 1/2 | grep "ip pim"
379 # sonic#
380
381
382
383 Return Values
384 -------------
385 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:
386
387 .. raw:: html
388
389 <table border=0 cellpadding=0 class="documentation-table">
390 <tr>
391 <th colspan="1">Key</th>
392 <th>Returned</th>
393 <th width="100%">Description</th>
394 </tr>
395 <tr>
396 <td colspan="1">
397 <div class="ansibleOptionAnchor" id="return-"></div>
398 <b>after</b>
399 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
400 <div style="font-size: small">
401 <span style="color: purple">list</span>
402 </div>
403 </td>
404 <td>when changed</td>
405 <td>
406 <div>The resulting configuration on module invocation.</div>
407 <br/>
408 <div style="font-size: smaller"><b>Sample:</b></div>
409 <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
410 as the parameters above.</div>
411 </td>
412 </tr>
413 <tr>
414 <td colspan="1">
415 <div class="ansibleOptionAnchor" id="return-"></div>
416 <b>after_generated</b>
417 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
418 <div style="font-size: small">
419 <span style="color: purple">list</span>
420 </div>
421 </td>
422 <td>when <code>check_mode</code></td>
423 <td>
424 <div>The generated configuration on module invocation.</div>
425 <br/>
426 <div style="font-size: smaller"><b>Sample:</b></div>
427 <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
428 as the parameters above.</div>
429 </td>
430 </tr>
431 <tr>
432 <td colspan="1">
433 <div class="ansibleOptionAnchor" id="return-"></div>
434 <b>before</b>
435 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
436 <div style="font-size: small">
437 <span style="color: purple">list</span>
438 </div>
439 </td>
440 <td>always</td>
441 <td>
442 <div>The configuration prior to the module invocation.</div>
443 <br/>
444 <div style="font-size: smaller"><b>Sample:</b></div>
445 <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
446 as the parameters above.</div>
447 </td>
448 </tr>
449 <tr>
450 <td colspan="1">
451 <div class="ansibleOptionAnchor" id="return-"></div>
452 <b>commands</b>
453 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
454 <div style="font-size: small">
455 <span style="color: purple">list</span>
456 </div>
457 </td>
458 <td>always</td>
459 <td>
460 <div>The set of commands pushed to the remote device.</div>
461 <br/>
462 <div style="font-size: smaller"><b>Sample:</b></div>
463 <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>
464 </td>
465 </tr>
466 </table>
467 <br/><br/>
468
469
470 Status
471 ------
472
473
474 Authors
475 ~~~~~~~
476
477 - Arun Saravanan Balachandran (@ArunSaravananBalachandran)