| 1 |
.. _cisco.nxos.nxos_pim_interface_module: |
| 2 |
|
| 3 |
|
| 4 |
***************************** |
| 5 |
cisco.nxos.nxos_pim_interface |
| 6 |
***************************** |
| 7 |
|
| 8 |
**Manages PIM 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 PIM 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>bfd</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 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 47 |
<li>enable</li> |
| 48 |
<li>disable</li> |
| 49 |
<li>default</li> |
| 50 |
</ul> |
| 51 |
</td> |
| 52 |
<td> |
| 53 |
<div>Enables BFD for PIM at the interface level. This overrides the bfd variable set at the pim global level.</div> |
| 54 |
<div>Valid values are 'enable', 'disable' or 'default'.</div> |
| 55 |
<div>Dependency: ''feature bfd''</div> |
| 56 |
</td> |
| 57 |
</tr> |
| 58 |
<tr> |
| 59 |
<td colspan="1"> |
| 60 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 61 |
<b>border</b> |
| 62 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 63 |
<div style="font-size: small"> |
| 64 |
<span style="color: purple">boolean</span> |
| 65 |
</div> |
| 66 |
</td> |
| 67 |
<td> |
| 68 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 69 |
<li><div style="color: blue"><b>no</b> ←</div></li> |
| 70 |
<li>yes</li> |
| 71 |
</ul> |
| 72 |
</td> |
| 73 |
<td> |
| 74 |
<div>Configures interface to be a boundary of a PIM domain.</div> |
| 75 |
</td> |
| 76 |
</tr> |
| 77 |
<tr> |
| 78 |
<td colspan="1"> |
| 79 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 80 |
<b>dr_prio</b> |
| 81 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 82 |
<div style="font-size: small"> |
| 83 |
<span style="color: purple">string</span> |
| 84 |
</div> |
| 85 |
</td> |
| 86 |
<td> |
| 87 |
</td> |
| 88 |
<td> |
| 89 |
<div>Configures priority for PIM DR election on interface.</div> |
| 90 |
</td> |
| 91 |
</tr> |
| 92 |
<tr> |
| 93 |
<td colspan="1"> |
| 94 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 95 |
<b>hello_auth_key</b> |
| 96 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 97 |
<div style="font-size: small"> |
| 98 |
<span style="color: purple">string</span> |
| 99 |
</div> |
| 100 |
</td> |
| 101 |
<td> |
| 102 |
</td> |
| 103 |
<td> |
| 104 |
<div>Authentication for hellos on this interface.</div> |
| 105 |
</td> |
| 106 |
</tr> |
| 107 |
<tr> |
| 108 |
<td colspan="1"> |
| 109 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 110 |
<b>hello_interval</b> |
| 111 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 112 |
<div style="font-size: small"> |
| 113 |
<span style="color: purple">integer</span> |
| 114 |
</div> |
| 115 |
</td> |
| 116 |
<td> |
| 117 |
</td> |
| 118 |
<td> |
| 119 |
<div>Hello interval in milliseconds or seconds for this interface.</div> |
| 120 |
<div>Use the option <em>hello_interval_ms</em> to specify if the given value is in milliseconds or seconds. The default is seconds.</div> |
| 121 |
</td> |
| 122 |
</tr> |
| 123 |
<tr> |
| 124 |
<td colspan="1"> |
| 125 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 126 |
<b>hello_interval_ms</b> |
| 127 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 128 |
<div style="font-size: small"> |
| 129 |
<span style="color: purple">boolean</span> |
| 130 |
</div> |
| 131 |
<div style="font-style: italic; font-size: small; color: darkgreen">added in 2.0.0</div> |
| 132 |
</td> |
| 133 |
<td> |
| 134 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 135 |
<li>no</li> |
| 136 |
<li>yes</li> |
| 137 |
</ul> |
| 138 |
</td> |
| 139 |
<td> |
| 140 |
<div>Specifies that the hello_interval is in milliseconds.</div> |
| 141 |
<div>When set to True, this indicates that the user is providing the hello_interval in milliseconds and hence, no conversion is required.</div> |
| 142 |
</td> |
| 143 |
</tr> |
| 144 |
<tr> |
| 145 |
<td colspan="1"> |
| 146 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 147 |
<b>interface</b> |
| 148 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 149 |
<div style="font-size: small"> |
| 150 |
<span style="color: purple">string</span> |
| 151 |
/ <span style="color: red">required</span> |
| 152 |
</div> |
| 153 |
</td> |
| 154 |
<td> |
| 155 |
</td> |
| 156 |
<td> |
| 157 |
<div>Full name of the interface such as Ethernet1/33.</div> |
| 158 |
</td> |
| 159 |
</tr> |
| 160 |
<tr> |
| 161 |
<td colspan="1"> |
| 162 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 163 |
<b>jp_policy_in</b> |
| 164 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 165 |
<div style="font-size: small"> |
| 166 |
<span style="color: purple">string</span> |
| 167 |
</div> |
| 168 |
</td> |
| 169 |
<td> |
| 170 |
</td> |
| 171 |
<td> |
| 172 |
<div>Policy for join-prune messages (inbound).</div> |
| 173 |
</td> |
| 174 |
</tr> |
| 175 |
<tr> |
| 176 |
<td colspan="1"> |
| 177 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 178 |
<b>jp_policy_out</b> |
| 179 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 180 |
<div style="font-size: small"> |
| 181 |
<span style="color: purple">string</span> |
| 182 |
</div> |
| 183 |
</td> |
| 184 |
<td> |
| 185 |
</td> |
| 186 |
<td> |
| 187 |
<div>Policy for join-prune messages (outbound).</div> |
| 188 |
</td> |
| 189 |
</tr> |
| 190 |
<tr> |
| 191 |
<td colspan="1"> |
| 192 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 193 |
<b>jp_type_in</b> |
| 194 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 195 |
<div style="font-size: small"> |
| 196 |
<span style="color: purple">string</span> |
| 197 |
</div> |
| 198 |
</td> |
| 199 |
<td> |
| 200 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 201 |
<li>prefix</li> |
| 202 |
<li>routemap</li> |
| 203 |
</ul> |
| 204 |
</td> |
| 205 |
<td> |
| 206 |
<div>Type of policy mapped to <code>jp_policy_in</code>.</div> |
| 207 |
</td> |
| 208 |
</tr> |
| 209 |
<tr> |
| 210 |
<td colspan="1"> |
| 211 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 212 |
<b>jp_type_out</b> |
| 213 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 214 |
<div style="font-size: small"> |
| 215 |
<span style="color: purple">string</span> |
| 216 |
</div> |
| 217 |
</td> |
| 218 |
<td> |
| 219 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 220 |
<li>prefix</li> |
| 221 |
<li>routemap</li> |
| 222 |
</ul> |
| 223 |
</td> |
| 224 |
<td> |
| 225 |
<div>Type of policy mapped to <code>jp_policy_out</code>.</div> |
| 226 |
</td> |
| 227 |
</tr> |
| 228 |
<tr> |
| 229 |
<td colspan="1"> |
| 230 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 231 |
<b>neighbor_policy</b> |
| 232 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 233 |
<div style="font-size: small"> |
| 234 |
<span style="color: purple">string</span> |
| 235 |
</div> |
| 236 |
</td> |
| 237 |
<td> |
| 238 |
</td> |
| 239 |
<td> |
| 240 |
<div>Configures a neighbor policy for filtering adjacencies.</div> |
| 241 |
</td> |
| 242 |
</tr> |
| 243 |
<tr> |
| 244 |
<td colspan="1"> |
| 245 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 246 |
<b>neighbor_type</b> |
| 247 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 248 |
<div style="font-size: small"> |
| 249 |
<span style="color: purple">string</span> |
| 250 |
</div> |
| 251 |
</td> |
| 252 |
<td> |
| 253 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 254 |
<li>prefix</li> |
| 255 |
<li>routemap</li> |
| 256 |
</ul> |
| 257 |
</td> |
| 258 |
<td> |
| 259 |
<div>Type of policy mapped to neighbor_policy.</div> |
| 260 |
</td> |
| 261 |
</tr> |
| 262 |
<tr> |
| 263 |
<td colspan="1"> |
| 264 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 265 |
<b>sparse</b> |
| 266 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 267 |
<div style="font-size: small"> |
| 268 |
<span style="color: purple">boolean</span> |
| 269 |
</div> |
| 270 |
</td> |
| 271 |
<td> |
| 272 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 273 |
<li><div style="color: blue"><b>no</b> ←</div></li> |
| 274 |
<li>yes</li> |
| 275 |
</ul> |
| 276 |
</td> |
| 277 |
<td> |
| 278 |
<div>Enable/disable sparse-mode on the interface.</div> |
| 279 |
</td> |
| 280 |
</tr> |
| 281 |
<tr> |
| 282 |
<td colspan="1"> |
| 283 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 284 |
<b>state</b> |
| 285 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 286 |
<div style="font-size: small"> |
| 287 |
<span style="color: purple">string</span> |
| 288 |
</div> |
| 289 |
</td> |
| 290 |
<td> |
| 291 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 292 |
<li><div style="color: blue"><b>present</b> ←</div></li> |
| 293 |
<li>absent</li> |
| 294 |
<li>default</li> |
| 295 |
</ul> |
| 296 |
</td> |
| 297 |
<td> |
| 298 |
<div>Manages desired state of the resource.</div> |
| 299 |
</td> |
| 300 |
</tr> |
| 301 |
</table> |
| 302 |
<br/> |
| 303 |
|
| 304 |
|
| 305 |
Notes |
| 306 |
----- |
| 307 |
|
| 308 |
.. note:: |
| 309 |
- Tested against NXOSv 7.3.(0)D1(1) on VIRL |
| 310 |
- Unsupported for Cisco MDS |
| 311 |
- When ``state=default``, supported params will be reset to a default state. These include ``dr_prio``, ``hello_auth_key``, ``hello_interval``, ``jp_policy_out``, ``jp_policy_in``, ``jp_type_in``, ``jp_type_out``, ``border``, ``neighbor_policy``, ``neighbor_type``. |
| 312 |
- The ``hello_auth_key`` param is not idempotent. |
| 313 |
- ``hello_auth_key`` only supports clear text passwords. |
| 314 |
- When ``state=absent``, pim interface configuration will be set to defaults and pim-sm will be disabled on the interface. |
| 315 |
- PIM must be enabled on the device to use this module. |
| 316 |
- This module is for Layer 3 interfaces. |
| 317 |
- For information on using CLI and NX-API see the :ref:`NXOS Platform Options guide <nxos_platform_options>` |
| 318 |
- For more information on using Ansible to manage network devices see the :ref:`Ansible Network Guide <network_guide>` |
| 319 |
- For more information on using Ansible to manage Cisco devices see the `Cisco integration page <https://www.ansible.com/integrations/networks/cisco>`_. |
| 320 |
|
| 321 |
|
| 322 |
|
| 323 |
Examples |
| 324 |
-------- |
| 325 |
|
| 326 |
.. code-block:: yaml |
| 327 |
|
| 328 |
- name: Ensure PIM is not running on the interface |
| 329 |
cisco.nxos.nxos_pim_interface: |
| 330 |
interface: eth1/33 |
| 331 |
state: absent |
| 332 |
|
| 333 |
- name: Ensure the interface has pim-sm enabled with the appropriate priority and |
| 334 |
hello interval |
| 335 |
cisco.nxos.nxos_pim_interface: |
| 336 |
interface: eth1/33 |
| 337 |
dr_prio: 10 |
| 338 |
hello_interval: 40 |
| 339 |
state: present |
| 340 |
|
| 341 |
- name: Ensure join-prune policies exist |
| 342 |
cisco.nxos.nxos_pim_interface: |
| 343 |
interface: eth1/33 |
| 344 |
jp_policy_in: JPIN |
| 345 |
jp_policy_out: JPOUT |
| 346 |
jp_type_in: routemap |
| 347 |
jp_type_out: routemap |
| 348 |
|
| 349 |
- name: disable bfd on the interface |
| 350 |
cisco.nxos.nxos_pim_interface: |
| 351 |
interface: eth1/33 |
| 352 |
bfd: disable |
| 353 |
|
| 354 |
- name: Ensure defaults are in place |
| 355 |
cisco.nxos.nxos_pim_interface: |
| 356 |
interface: eth1/33 |
| 357 |
state: default |
| 358 |
|
| 359 |
|
| 360 |
|
| 361 |
Return Values |
| 362 |
------------- |
| 363 |
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: |
| 364 |
|
| 365 |
.. raw:: html |
| 366 |
|
| 367 |
<table border=0 cellpadding=0 class="documentation-table"> |
| 368 |
<tr> |
| 369 |
<th colspan="1">Key</th> |
| 370 |
<th>Returned</th> |
| 371 |
<th width="100%">Description</th> |
| 372 |
</tr> |
| 373 |
<tr> |
| 374 |
<td colspan="1"> |
| 375 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 376 |
<b>commands</b> |
| 377 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 378 |
<div style="font-size: small"> |
| 379 |
<span style="color: purple">list</span> |
| 380 |
</div> |
| 381 |
</td> |
| 382 |
<td>always</td> |
| 383 |
<td> |
| 384 |
<div>command sent to the device</div> |
| 385 |
<br/> |
| 386 |
<div style="font-size: smaller"><b>Sample:</b></div> |
| 387 |
<div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">['interface eth1/33', 'ip pim neighbor-policy test', 'ip pim bfd-instance disable', 'ip pim neighbor-policy test']</div> |
| 388 |
</td> |
| 389 |
</tr> |
| 390 |
</table> |
| 391 |
<br/><br/> |
| 392 |
|
| 393 |
|
| 394 |
Status |
| 395 |
------ |
| 396 |
|
| 397 |
|
| 398 |
Authors |
| 399 |
~~~~~~~ |
| 400 |
|
| 401 |
- Jason Edelman (@jedelman8) |