| 1 |
.. _cisco.nxos.nxos_igmp_interface_module: |
| 2 |
|
| 3 |
|
| 4 |
****************************** |
| 5 |
cisco.nxos.nxos_igmp_interface |
| 6 |
****************************** |
| 7 |
|
| 8 |
**Manages IGMP interface configuration.** |
| 9 |
|
| 10 |
|
| 11 |
Version added: 1.0.0 |
| 12 |
|
| 13 |
.. contents:: |
| 14 |
:local: |
| 15 |
:depth: 1 |
| 16 |
|
| 17 |
|
| 18 |
Synopsis |
| 19 |
-------- |
| 20 |
- Manages IGMP interface configuration settings. |
| 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="1">Parameter</th> |
| 33 |
<th>Choices/<font color="blue">Defaults</font></th> |
| 34 |
<th width="100%">Comments</th> |
| 35 |
</tr> |
| 36 |
<tr> |
| 37 |
<td colspan="1"> |
| 38 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 39 |
<b>group_timeout</b> |
| 40 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 41 |
<div style="font-size: small"> |
| 42 |
<span style="color: purple">string</span> |
| 43 |
</div> |
| 44 |
</td> |
| 45 |
<td> |
| 46 |
</td> |
| 47 |
<td> |
| 48 |
<div>Sets the group membership timeout for IGMPv2. Values can range from 3 to 65,535 seconds or keyword 'default'. The default is 260 seconds.</div> |
| 49 |
</td> |
| 50 |
</tr> |
| 51 |
<tr> |
| 52 |
<td colspan="1"> |
| 53 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 54 |
<b>immediate_leave</b> |
| 55 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 56 |
<div style="font-size: small"> |
| 57 |
<span style="color: purple">boolean</span> |
| 58 |
</div> |
| 59 |
</td> |
| 60 |
<td> |
| 61 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 62 |
<li>no</li> |
| 63 |
<li>yes</li> |
| 64 |
</ul> |
| 65 |
</td> |
| 66 |
<td> |
| 67 |
<div>Enables the device to remove the group entry from the multicast routing table immediately upon receiving a leave message for the group. Use this command to minimize the leave latency of IGMPv2 group memberships on a given IGMP interface because the device does not send group-specific queries. The default is disabled.</div> |
| 68 |
</td> |
| 69 |
</tr> |
| 70 |
<tr> |
| 71 |
<td colspan="1"> |
| 72 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 73 |
<b>interface</b> |
| 74 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 75 |
<div style="font-size: small"> |
| 76 |
<span style="color: purple">string</span> |
| 77 |
/ <span style="color: red">required</span> |
| 78 |
</div> |
| 79 |
</td> |
| 80 |
<td> |
| 81 |
</td> |
| 82 |
<td> |
| 83 |
<div>The full interface name for IGMP configuration. e.g. <em>Ethernet1/2</em>.</div> |
| 84 |
</td> |
| 85 |
</tr> |
| 86 |
<tr> |
| 87 |
<td colspan="1"> |
| 88 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 89 |
<b>last_member_qrt</b> |
| 90 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 91 |
<div style="font-size: small"> |
| 92 |
<span style="color: purple">string</span> |
| 93 |
</div> |
| 94 |
</td> |
| 95 |
<td> |
| 96 |
</td> |
| 97 |
<td> |
| 98 |
<div>Sets the query interval waited after sending membership reports before the software deletes the group state. Values can range from 1 to 25 seconds or keyword 'default'. The default is 1 second.</div> |
| 99 |
</td> |
| 100 |
</tr> |
| 101 |
<tr> |
| 102 |
<td colspan="1"> |
| 103 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 104 |
<b>last_member_query_count</b> |
| 105 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 106 |
<div style="font-size: small"> |
| 107 |
<span style="color: purple">string</span> |
| 108 |
</div> |
| 109 |
</td> |
| 110 |
<td> |
| 111 |
</td> |
| 112 |
<td> |
| 113 |
<div>Sets the number of times that the software sends an IGMP query in response to a host leave message. Values can range from 1 to 5 or keyword 'default'. The default is 2.</div> |
| 114 |
</td> |
| 115 |
</tr> |
| 116 |
<tr> |
| 117 |
<td colspan="1"> |
| 118 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 119 |
<b>oif_ps</b> |
| 120 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 121 |
<div style="font-size: small"> |
| 122 |
<span style="color: purple">raw</span> |
| 123 |
</div> |
| 124 |
</td> |
| 125 |
<td> |
| 126 |
</td> |
| 127 |
<td> |
| 128 |
<div>Configure prefixes and sources for static outgoing interface (OIF). This is a list of dict where each dict has source and prefix defined or just prefix if source is not needed. The specified values will be configured on the device and if any previous prefix/sources exist, they will be removed. Keyword 'default' is also accepted which removes all existing prefix/sources.</div> |
| 129 |
</td> |
| 130 |
</tr> |
| 131 |
<tr> |
| 132 |
<td colspan="1"> |
| 133 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 134 |
<b>oif_routemap</b> |
| 135 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 136 |
<div style="font-size: small"> |
| 137 |
<span style="color: purple">string</span> |
| 138 |
</div> |
| 139 |
</td> |
| 140 |
<td> |
| 141 |
</td> |
| 142 |
<td> |
| 143 |
<div>Configure a routemap for static outgoing interface (OIF) or keyword 'default'.</div> |
| 144 |
</td> |
| 145 |
</tr> |
| 146 |
<tr> |
| 147 |
<td colspan="1"> |
| 148 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 149 |
<b>querier_timeout</b> |
| 150 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 151 |
<div style="font-size: small"> |
| 152 |
<span style="color: purple">string</span> |
| 153 |
</div> |
| 154 |
</td> |
| 155 |
<td> |
| 156 |
</td> |
| 157 |
<td> |
| 158 |
<div>Sets the querier timeout that the software uses when deciding to take over as the querier. Values can range from 1 to 65535 seconds or keyword 'default'. The default is 255 seconds.</div> |
| 159 |
</td> |
| 160 |
</tr> |
| 161 |
<tr> |
| 162 |
<td colspan="1"> |
| 163 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 164 |
<b>query_interval</b> |
| 165 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 166 |
<div style="font-size: small"> |
| 167 |
<span style="color: purple">string</span> |
| 168 |
</div> |
| 169 |
</td> |
| 170 |
<td> |
| 171 |
</td> |
| 172 |
<td> |
| 173 |
<div>Sets the frequency at which the software sends IGMP host query messages. Values can range from 1 to 18000 seconds or keyword 'default'. The default is 125 seconds.</div> |
| 174 |
</td> |
| 175 |
</tr> |
| 176 |
<tr> |
| 177 |
<td colspan="1"> |
| 178 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 179 |
<b>query_mrt</b> |
| 180 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 181 |
<div style="font-size: small"> |
| 182 |
<span style="color: purple">string</span> |
| 183 |
</div> |
| 184 |
</td> |
| 185 |
<td> |
| 186 |
</td> |
| 187 |
<td> |
| 188 |
<div>Sets the response time advertised in IGMP queries. Values can range from 1 to 25 seconds or keyword 'default'. The default is 10 seconds.</div> |
| 189 |
</td> |
| 190 |
</tr> |
| 191 |
<tr> |
| 192 |
<td colspan="1"> |
| 193 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 194 |
<b>report_llg</b> |
| 195 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 196 |
<div style="font-size: small"> |
| 197 |
<span style="color: purple">boolean</span> |
| 198 |
</div> |
| 199 |
</td> |
| 200 |
<td> |
| 201 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 202 |
<li>no</li> |
| 203 |
<li>yes</li> |
| 204 |
</ul> |
| 205 |
</td> |
| 206 |
<td> |
| 207 |
<div>Configures report-link-local-groups. Enables sending reports for groups in 224.0.0.0/24. Reports are always sent for nonlink local groups. By default, reports are not sent for link local groups.</div> |
| 208 |
</td> |
| 209 |
</tr> |
| 210 |
<tr> |
| 211 |
<td colspan="1"> |
| 212 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 213 |
<b>restart</b> |
| 214 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 215 |
<div style="font-size: small"> |
| 216 |
<span style="color: purple">boolean</span> |
| 217 |
</div> |
| 218 |
</td> |
| 219 |
<td> |
| 220 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 221 |
<li><div style="color: blue"><b>no</b> ←</div></li> |
| 222 |
<li>yes</li> |
| 223 |
</ul> |
| 224 |
</td> |
| 225 |
<td> |
| 226 |
<div>Restart IGMP. This is NOT idempotent as this is action only.</div> |
| 227 |
</td> |
| 228 |
</tr> |
| 229 |
<tr> |
| 230 |
<td colspan="1"> |
| 231 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 232 |
<b>robustness</b> |
| 233 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 234 |
<div style="font-size: small"> |
| 235 |
<span style="color: purple">string</span> |
| 236 |
</div> |
| 237 |
</td> |
| 238 |
<td> |
| 239 |
</td> |
| 240 |
<td> |
| 241 |
<div>Sets the robustness variable. Values can range from 1 to 7 or keyword 'default'. The default is 2.</div> |
| 242 |
</td> |
| 243 |
</tr> |
| 244 |
<tr> |
| 245 |
<td colspan="1"> |
| 246 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 247 |
<b>startup_query_count</b> |
| 248 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 249 |
<div style="font-size: small"> |
| 250 |
<span style="color: purple">string</span> |
| 251 |
</div> |
| 252 |
</td> |
| 253 |
<td> |
| 254 |
</td> |
| 255 |
<td> |
| 256 |
<div>Query count used when the IGMP process starts up. The range is from 1 to 10 or keyword 'default'. The default is 2.</div> |
| 257 |
</td> |
| 258 |
</tr> |
| 259 |
<tr> |
| 260 |
<td colspan="1"> |
| 261 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 262 |
<b>startup_query_interval</b> |
| 263 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 264 |
<div style="font-size: small"> |
| 265 |
<span style="color: purple">string</span> |
| 266 |
</div> |
| 267 |
</td> |
| 268 |
<td> |
| 269 |
</td> |
| 270 |
<td> |
| 271 |
<div>Query interval used when the IGMP process starts up. The range is from 1 to 18000 or keyword 'default'. The default is 31.</div> |
| 272 |
</td> |
| 273 |
</tr> |
| 274 |
<tr> |
| 275 |
<td colspan="1"> |
| 276 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 277 |
<b>state</b> |
| 278 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 279 |
<div style="font-size: small"> |
| 280 |
<span style="color: purple">string</span> |
| 281 |
</div> |
| 282 |
</td> |
| 283 |
<td> |
| 284 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 285 |
<li><div style="color: blue"><b>present</b> ←</div></li> |
| 286 |
<li>absent</li> |
| 287 |
<li>default</li> |
| 288 |
</ul> |
| 289 |
</td> |
| 290 |
<td> |
| 291 |
<div>Manages desired state of the resource.</div> |
| 292 |
</td> |
| 293 |
</tr> |
| 294 |
<tr> |
| 295 |
<td colspan="1"> |
| 296 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 297 |
<b>version</b> |
| 298 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 299 |
<div style="font-size: small"> |
| 300 |
<span style="color: purple">string</span> |
| 301 |
</div> |
| 302 |
</td> |
| 303 |
<td> |
| 304 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 305 |
<li>2</li> |
| 306 |
<li>3</li> |
| 307 |
<li>default</li> |
| 308 |
</ul> |
| 309 |
</td> |
| 310 |
<td> |
| 311 |
<div>IGMP version. It can be 2 or 3 or keyword 'default'.</div> |
| 312 |
</td> |
| 313 |
</tr> |
| 314 |
</table> |
| 315 |
<br/> |
| 316 |
|
| 317 |
|
| 318 |
Notes |
| 319 |
----- |
| 320 |
|
| 321 |
.. note:: |
| 322 |
- Tested against NXOSv 7.3.(0)D1(1) on VIRL |
| 323 |
- Unsupported for Cisco MDS |
| 324 |
- When ``state=default``, supported params will be reset to a default state. These include ``version``, ``startup_query_interval``, ``startup_query_count``, ``robustness``, ``querier_timeout``, ``query_mrt``, ``query_interval``, ``last_member_qrt``, ``last_member_query_count``, ``group_timeout``, ``report_llg``, and ``immediate_leave``. |
| 325 |
- When ``state=absent``, all configs for ``oif_ps``, and ``oif_routemap`` will be removed. |
| 326 |
- PIM must be enabled to use this module. |
| 327 |
- This module is for Layer 3 interfaces. |
| 328 |
- Route-map check not performed (same as CLI) check when configuring route-map with 'static-oif' |
| 329 |
- If restart is set to true with other params set, the restart will happen last, i.e. after the configuration takes place. However, 'restart' itself is not idempotent as it is an action and not configuration. |
| 330 |
- For information on using CLI and NX-API see the :ref:`NXOS Platform Options guide <nxos_platform_options>` |
| 331 |
- For more information on using Ansible to manage network devices see the :ref:`Ansible Network Guide <network_guide>` |
| 332 |
- For more information on using Ansible to manage Cisco devices see the `Cisco integration page <https://www.ansible.com/integrations/networks/cisco>`_. |
| 333 |
|
| 334 |
|
| 335 |
|
| 336 |
Examples |
| 337 |
-------- |
| 338 |
|
| 339 |
.. code-block:: yaml |
| 340 |
|
| 341 |
- cisco.nxos.nxos_igmp_interface: |
| 342 |
interface: ethernet1/32 |
| 343 |
startup_query_interval: 30 |
| 344 |
oif_ps: |
| 345 |
- {prefix: 238.2.2.6} |
| 346 |
- {source: 192.168.0.1, prefix: 238.2.2.5} |
| 347 |
state: present |
| 348 |
|
| 349 |
|
| 350 |
|
| 351 |
Return Values |
| 352 |
------------- |
| 353 |
Common return values are documented `here <https://docs.ansible.com/ansible/latest/reference_appendices/common_return_values.html#common-return-values>`_, the following are the fields unique to this module: |
| 354 |
|
| 355 |
.. raw:: html |
| 356 |
|
| 357 |
<table border=0 cellpadding=0 class="documentation-table"> |
| 358 |
<tr> |
| 359 |
<th colspan="1">Key</th> |
| 360 |
<th>Returned</th> |
| 361 |
<th width="100%">Description</th> |
| 362 |
</tr> |
| 363 |
<tr> |
| 364 |
<td colspan="1"> |
| 365 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 366 |
<b>changed</b> |
| 367 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 368 |
<div style="font-size: small"> |
| 369 |
<span style="color: purple">boolean</span> |
| 370 |
</div> |
| 371 |
</td> |
| 372 |
<td>always</td> |
| 373 |
<td> |
| 374 |
<div>check to see if a change was made on the device</div> |
| 375 |
<br/> |
| 376 |
<div style="font-size: smaller"><b>Sample:</b></div> |
| 377 |
<div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">True</div> |
| 378 |
</td> |
| 379 |
</tr> |
| 380 |
<tr> |
| 381 |
<td colspan="1"> |
| 382 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 383 |
<b>end_state</b> |
| 384 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 385 |
<div style="font-size: small"> |
| 386 |
<span style="color: purple">dictionary</span> |
| 387 |
</div> |
| 388 |
</td> |
| 389 |
<td>always</td> |
| 390 |
<td> |
| 391 |
<div>k/v pairs of igmp interface configuration after module execution</div> |
| 392 |
<br/> |
| 393 |
<div style="font-size: smaller"><b>Sample:</b></div> |
| 394 |
<div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">{'startup_query_count': '30', 'oif_ps': [{'prefix': '238.2.2.6'}, {'source': '192.168.0.1', 'prefix': '238.2.2.5'}]}</div> |
| 395 |
</td> |
| 396 |
</tr> |
| 397 |
<tr> |
| 398 |
<td colspan="1"> |
| 399 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 400 |
<b>existing</b> |
| 401 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 402 |
<div style="font-size: small"> |
| 403 |
<span style="color: purple">dictionary</span> |
| 404 |
</div> |
| 405 |
</td> |
| 406 |
<td>always</td> |
| 407 |
<td> |
| 408 |
<div>k/v pairs of existing igmp_interface configuration</div> |
| 409 |
<br/> |
| 410 |
<div style="font-size: smaller"><b>Sample:</b></div> |
| 411 |
<div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">{'startup_query_count': '2', 'oif_ps': []}</div> |
| 412 |
</td> |
| 413 |
</tr> |
| 414 |
<tr> |
| 415 |
<td colspan="1"> |
| 416 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 417 |
<b>proposed</b> |
| 418 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 419 |
<div style="font-size: small"> |
| 420 |
<span style="color: purple">dictionary</span> |
| 421 |
</div> |
| 422 |
</td> |
| 423 |
<td>always</td> |
| 424 |
<td> |
| 425 |
<div>k/v pairs of parameters passed into module</div> |
| 426 |
<br/> |
| 427 |
<div style="font-size: smaller"><b>Sample:</b></div> |
| 428 |
<div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">{'startup_query_count': '30', 'oif_ps': [{'prefix': '238.2.2.6'}, {'source': '192.168.0.1', 'prefix': '238.2.2.5'}]}</div> |
| 429 |
</td> |
| 430 |
</tr> |
| 431 |
<tr> |
| 432 |
<td colspan="1"> |
| 433 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 434 |
<b>updates</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>commands sent to the device</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;">['interface Ethernet1/32', 'ip igmp startup-query-count 30', 'ip igmp static-oif 238.2.2.6', 'ip igmp static-oif 238.2.2.5 source 192.168.0.1']</div> |
| 446 |
</td> |
| 447 |
</tr> |
| 448 |
</table> |
| 449 |
<br/><br/> |
| 450 |
|
| 451 |
|
| 452 |
Status |
| 453 |
------ |
| 454 |
|
| 455 |
|
| 456 |
Authors |
| 457 |
~~~~~~~ |
| 458 |
|
| 459 |
- Jason Edelman (@jedelman8) |
| 460 |
- Gabriele Gerbino (@GGabriele) |