Debian Codegraph @

ansible_collections/dellemc/enterprise_sonic/docs/dellemc.enterprise_sonic.sonic_pim_global_module.rst

raw
1 .. _dellemc.enterprise_sonic.sonic_pim_global_module:
2
3
4 *****************************************
5 dellemc.enterprise_sonic.sonic_pim_global
6 *****************************************
7
8 **Manage global 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 global PIM parameters for devices running SONiC.
21 - VRF and prefix-list 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 global 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>ecmp_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 PIM ECMP.</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>ecmp_rebalance_enable</b>
78 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
79 <div style="font-size: small">
80 <span style="color: purple">boolean</span>
81 </div>
82 </td>
83 <td>
84 <ul style="margin: 0; padding: 0"><b>Choices:</b>
85 <li>no</li>
86 <li>yes</li>
87 </ul>
88 </td>
89 <td>
90 <div>Enable PIM ECMP rebalance.</div>
91 <div>ECMP has to be enabled for configuring ECMP rebalance.</div>
92 </td>
93 </tr>
94 <tr>
95 <td class="elbow-placeholder"></td>
96 <td colspan="1">
97 <div class="ansibleOptionAnchor" id="parameter-"></div>
98 <b>join_prune_interval</b>
99 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
100 <div style="font-size: small">
101 <span style="color: purple">integer</span>
102 </div>
103 </td>
104 <td>
105 </td>
106 <td>
107 <div>Specifies the PIM Join Prune Interval in seconds.</div>
108 <div>The range is from 60 to 600.</div>
109 </td>
110 </tr>
111 <tr>
112 <td class="elbow-placeholder"></td>
113 <td colspan="1">
114 <div class="ansibleOptionAnchor" id="parameter-"></div>
115 <b>keepalive_timer</b>
116 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
117 <div style="font-size: small">
118 <span style="color: purple">integer</span>
119 </div>
120 </td>
121 <td>
122 </td>
123 <td>
124 <div>Specifies the PIM Keepalive timer in seconds.</div>
125 <div>The range is from 31 to 60000.</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>ssm_prefix_list</b>
133 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
134 <div style="font-size: small">
135 <span style="color: purple">string</span>
136 </div>
137 </td>
138 <td>
139 </td>
140 <td>
141 <div>Specifies the SSM prefix-list.</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>vrf_name</b>
149 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
150 <div style="font-size: small">
151 <span style="color: purple">string</span>
152 </div>
153 </td>
154 <td>
155 <b>Default:</b><br/><div style="color: blue">"default"</div>
156 </td>
157 <td>
158 <div>Name of the VRF to which the PIM configurations belong.</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 global PIM configuration with on-device configuration.</div>
182 <div><code>replaced</code> - Replaces on-device PIM configuration of the specified VRFs with provided configuration.</div>
183 <div><code>overridden</code> - Overrides all on-device global PIM configurations with the provided configuration.</div>
184 <div><code>deleted</code> - Deletes on-device global 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 | grep "ip pim"
210 # ip pim vrf VrfReg1 join-prune-interval 60
211 # ip pim vrf VrfReg1 keep-alive-timer 180
212 # ip pim vrf VrfReg1 ssm prefix-list prefix-list-1
213 # ip pim vrf VrfReg2 ecmp
214 # ip pim vrf VrfReg2 ssm prefix-list prefix-list-2
215 # ip pim vrf default ecmp
216 # ip pim vrf default ecmp rebalance
217 # sonic#
218
219 - name: Delete specified global PIM configurations
220 dellemc.enterprise_sonic.sonic_pim_global:
221 config:
222 - vrf_name: 'VrfReg1'
223 join_prune_interval: 60
224 keepalive_timer: 180
225 - vrf_name: 'VrfReg2'
226 state: deleted
227
228 # After state:
229 # ------------
230 #
231 # sonic# show running-configuration | grep "ip pim"
232 # ip pim vrf VrfReg1 ssm prefix-list prefix-list-1
233 # ip pim vrf default ecmp
234 # ip pim vrf default ecmp rebalance
235 # sonic#
236
237
238 # Using "deleted" state
239 #
240 # Before state:
241 # -------------
242 #
243 # sonic# show running-configuration | grep "ip pim"
244 # ip pim vrf VrfReg1 join-prune-interval 60
245 # ip pim vrf VrfReg1 keep-alive-timer 180
246 # ip pim vrf VrfReg1 ssm prefix-list prefix-list-1
247 # ip pim vrf VrfReg2 ecmp
248 # ip pim vrf VrfReg2 ssm prefix-list prefix-list-2
249 # ip pim vrf default ecmp
250 # ip pim vrf default ecmp rebalance
251 # sonic#
252
253 - name: Delete all global PIM configurations
254 dellemc.enterprise_sonic.sonic_pim_global:
255 config:
256 state: deleted
257
258 # After state:
259 # ------------
260 #
261 # sonic# show running-configuration | grep "ip pim"
262 # sonic#
263
264
265 # Using "merged" state
266 #
267 # Before state:
268 # -------------
269 #
270 # sonic# show running-configuration | grep "ip pim"
271 # ip pim vrf default join-prune-interval 120
272 # ip pim vrf default keep-alive-timer 360
273 # ip pim vrf default ssm prefix-list prefix-list-1
274 # sonic#
275
276 - name: Merge provided global PIM configurations
277 dellemc.enterprise_sonic.sonic_pim_global:
278 config:
279 - vrf_name: 'default'
280 ecmp_enable: true
281 ecmp_rebalance_enable: true
282 join_prune_interval: 60
283 keepalive_timer: 180
284 ssm_prefix_list: 'prefix-list-def'
285 - vrf_name: 'VrfReg1'
286 join_prune_interval: 60
287 keepalive_timer: 180
288 - vrf_name: 'VrfReg2'
289 ssm_prefix_list: 'prefix-list-2'
290 state: merged
291
292 # After state:
293 # ------------
294 #
295 # sonic# show running-configuration | grep "ip pim"
296 # ip pim vrf VrfReg1 join-prune-interval 60
297 # ip pim vrf VrfReg1 keep-alive-timer 180
298 # ip pim vrf VrfReg2 ssm prefix-list prefix-list-2
299 # ip pim vrf default ecmp
300 # ip pim vrf default ecmp rebalance
301 # ip pim vrf default join-prune-interval 60
302 # ip pim vrf default keep-alive-timer 180
303 # ip pim vrf default ssm prefix-list prefix-list-def
304 # sonic#
305
306
307 # Using "replaced" state
308 #
309 # Before state:
310 # -------------
311 #
312 # sonic# show running-configuration | grep "ip pim"
313 # ip pim vrf VrfReg1 join-prune-interval 60
314 # ip pim vrf VrfReg1 keep-alive-timer 180
315 # ip pim vrf VrfReg1 ssm prefix-list prefix-list-1
316 # ip pim vrf VrfReg2 ecmp
317 # ip pim vrf VrfReg2 ssm prefix-list prefix-list-2
318 # ip pim vrf default ecmp
319 # ip pim vrf default ecmp rebalance
320 # sonic#
321
322 - name: Replace global PIM configurations of specified VRFs
323 dellemc.enterprise_sonic.sonic_pim_global:
324 config:
325 - vrf_name: 'default'
326 ecmp_enable: true
327 - vrf_name: 'VrfReg1'
328 join_prune_interval: 120
329 keepalive_timer: 360
330 state: replaced
331
332 # After state:
333 # ------------
334 #
335 # sonic# show running-configuration | grep "ip pim"
336 # ip pim vrf VrfReg1 join-prune-interval 120
337 # ip pim vrf VrfReg1 keep-alive-timer 360
338 # ip pim vrf VrfReg2 ecmp
339 # ip pim vrf VrfReg2 ssm prefix-list prefix-list-2
340 # ip pim vrf default ecmp
341 # sonic#
342
343
344 # Using "replaced" state
345 #
346 # Before state:
347 # -------------
348 #
349 # sonic# show running-configuration | grep "ip pim"
350 # ip pim vrf VrfReg1 join-prune-interval 60
351 # ip pim vrf VrfReg1 keep-alive-timer 180
352 # ip pim vrf VrfReg1 ssm prefix-list prefix-list-1
353 # ip pim vrf VrfReg2 ecmp
354 # ip pim vrf VrfReg2 ssm prefix-list prefix-list-2
355 # ip pim vrf default ecmp
356 # ip pim vrf default ecmp rebalance
357 # sonic#
358
359 - name: Override global PIM configurations
360 dellemc.enterprise_sonic.sonic_pim_global:
361 config:
362 - vrf_name: 'default'
363 ecmp_enable: true
364 - vrf_name: 'VrfReg1'
365 join_prune_interval: 120
366 keepalive_timer: 360
367 state: overridden
368
369 # After state:
370 # ------------
371 #
372 # sonic# show running-configuration | grep "ip pim"
373 # ip pim vrf VrfReg1 join-prune-interval 120
374 # ip pim vrf VrfReg1 keep-alive-timer 360
375 # ip pim vrf default ecmp
376 # sonic#
377
378
379
380 Return Values
381 -------------
382 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:
383
384 .. raw:: html
385
386 <table border=0 cellpadding=0 class="documentation-table">
387 <tr>
388 <th colspan="1">Key</th>
389 <th>Returned</th>
390 <th width="100%">Description</th>
391 </tr>
392 <tr>
393 <td colspan="1">
394 <div class="ansibleOptionAnchor" id="return-"></div>
395 <b>after</b>
396 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
397 <div style="font-size: small">
398 <span style="color: purple">list</span>
399 </div>
400 </td>
401 <td>when changed</td>
402 <td>
403 <div>The resulting configuration on module invocation.</div>
404 <br/>
405 <div style="font-size: smaller"><b>Sample:</b></div>
406 <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
407 as the parameters above.</div>
408 </td>
409 </tr>
410 <tr>
411 <td colspan="1">
412 <div class="ansibleOptionAnchor" id="return-"></div>
413 <b>after_generated</b>
414 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
415 <div style="font-size: small">
416 <span style="color: purple">list</span>
417 </div>
418 </td>
419 <td>when <code>check_mode</code></td>
420 <td>
421 <div>The generated configuration on module invocation.</div>
422 <br/>
423 <div style="font-size: smaller"><b>Sample:</b></div>
424 <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
425 as the parameters above.</div>
426 </td>
427 </tr>
428 <tr>
429 <td colspan="1">
430 <div class="ansibleOptionAnchor" id="return-"></div>
431 <b>before</b>
432 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
433 <div style="font-size: small">
434 <span style="color: purple">list</span>
435 </div>
436 </td>
437 <td>always</td>
438 <td>
439 <div>The configuration prior to the module invocation.</div>
440 <br/>
441 <div style="font-size: smaller"><b>Sample:</b></div>
442 <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
443 as the parameters above.</div>
444 </td>
445 </tr>
446 <tr>
447 <td colspan="1">
448 <div class="ansibleOptionAnchor" id="return-"></div>
449 <b>commands</b>
450 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
451 <div style="font-size: small">
452 <span style="color: purple">list</span>
453 </div>
454 </td>
455 <td>always</td>
456 <td>
457 <div>The set of commands pushed to the remote device.</div>
458 <br/>
459 <div style="font-size: smaller"><b>Sample:</b></div>
460 <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>
461 </td>
462 </tr>
463 </table>
464 <br/><br/>
465
466
467 Status
468 ------
469
470
471 Authors
472 ~~~~~~~
473
474 - Arun Saravanan Balachandran (@ArunSaravananBalachandran)