| 1 |
.. _cisco.nxos.nxos_vrrp_module: |
| 2 |
|
| 3 |
|
| 4 |
******************** |
| 5 |
cisco.nxos.nxos_vrrp |
| 6 |
******************** |
| 7 |
|
| 8 |
**Manages VRRP configuration on NX-OS switches.** |
| 9 |
|
| 10 |
|
| 11 |
Version added: 1.0.0 |
| 12 |
|
| 13 |
.. contents:: |
| 14 |
:local: |
| 15 |
:depth: 1 |
| 16 |
|
| 17 |
|
| 18 |
Synopsis |
| 19 |
-------- |
| 20 |
- Manages VRRP configuration on NX-OS switches. |
| 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>admin_state</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><div style="color: blue"><b>shutdown</b> ←</div></li> |
| 48 |
<li>no shutdown</li> |
| 49 |
<li>default</li> |
| 50 |
</ul> |
| 51 |
</td> |
| 52 |
<td> |
| 53 |
<div>Used to enable or disable the VRRP process.</div> |
| 54 |
</td> |
| 55 |
</tr> |
| 56 |
<tr> |
| 57 |
<td colspan="1"> |
| 58 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 59 |
<b>authentication</b> |
| 60 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 61 |
<div style="font-size: small"> |
| 62 |
<span style="color: purple">string</span> |
| 63 |
</div> |
| 64 |
</td> |
| 65 |
<td> |
| 66 |
</td> |
| 67 |
<td> |
| 68 |
<div>Clear text authentication string or 'default' keyword</div> |
| 69 |
</td> |
| 70 |
</tr> |
| 71 |
<tr> |
| 72 |
<td colspan="1"> |
| 73 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 74 |
<b>group</b> |
| 75 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 76 |
<div style="font-size: small"> |
| 77 |
<span style="color: purple">string</span> |
| 78 |
/ <span style="color: red">required</span> |
| 79 |
</div> |
| 80 |
</td> |
| 81 |
<td> |
| 82 |
</td> |
| 83 |
<td> |
| 84 |
<div>VRRP group number.</div> |
| 85 |
</td> |
| 86 |
</tr> |
| 87 |
<tr> |
| 88 |
<td colspan="1"> |
| 89 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 90 |
<b>interface</b> |
| 91 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 92 |
<div style="font-size: small"> |
| 93 |
<span style="color: purple">string</span> |
| 94 |
/ <span style="color: red">required</span> |
| 95 |
</div> |
| 96 |
</td> |
| 97 |
<td> |
| 98 |
</td> |
| 99 |
<td> |
| 100 |
<div>Full name of interface that is being managed for VRRP.</div> |
| 101 |
</td> |
| 102 |
</tr> |
| 103 |
<tr> |
| 104 |
<td colspan="1"> |
| 105 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 106 |
<b>interval</b> |
| 107 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 108 |
<div style="font-size: small"> |
| 109 |
<span style="color: purple">string</span> |
| 110 |
</div> |
| 111 |
</td> |
| 112 |
<td> |
| 113 |
</td> |
| 114 |
<td> |
| 115 |
<div>Time interval between advertisement or 'default' keyword</div> |
| 116 |
</td> |
| 117 |
</tr> |
| 118 |
<tr> |
| 119 |
<td colspan="1"> |
| 120 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 121 |
<b>preempt</b> |
| 122 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 123 |
<div style="font-size: small"> |
| 124 |
<span style="color: purple">boolean</span> |
| 125 |
</div> |
| 126 |
</td> |
| 127 |
<td> |
| 128 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 129 |
<li>no</li> |
| 130 |
<li>yes</li> |
| 131 |
</ul> |
| 132 |
</td> |
| 133 |
<td> |
| 134 |
<div>Enable/Disable preempt.</div> |
| 135 |
</td> |
| 136 |
</tr> |
| 137 |
<tr> |
| 138 |
<td colspan="1"> |
| 139 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 140 |
<b>priority</b> |
| 141 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 142 |
<div style="font-size: small"> |
| 143 |
<span style="color: purple">string</span> |
| 144 |
</div> |
| 145 |
</td> |
| 146 |
<td> |
| 147 |
</td> |
| 148 |
<td> |
| 149 |
<div>VRRP priority or 'default' keyword</div> |
| 150 |
</td> |
| 151 |
</tr> |
| 152 |
<tr> |
| 153 |
<td colspan="1"> |
| 154 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 155 |
<b>state</b> |
| 156 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 157 |
<div style="font-size: small"> |
| 158 |
<span style="color: purple">string</span> |
| 159 |
</div> |
| 160 |
</td> |
| 161 |
<td> |
| 162 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 163 |
<li><div style="color: blue"><b>present</b> ←</div></li> |
| 164 |
<li>absent</li> |
| 165 |
</ul> |
| 166 |
</td> |
| 167 |
<td> |
| 168 |
<div>Specify desired state of the resource.</div> |
| 169 |
</td> |
| 170 |
</tr> |
| 171 |
<tr> |
| 172 |
<td colspan="1"> |
| 173 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 174 |
<b>vip</b> |
| 175 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 176 |
<div style="font-size: small"> |
| 177 |
<span style="color: purple">string</span> |
| 178 |
</div> |
| 179 |
</td> |
| 180 |
<td> |
| 181 |
</td> |
| 182 |
<td> |
| 183 |
<div>VRRP virtual IP address or 'default' keyword</div> |
| 184 |
</td> |
| 185 |
</tr> |
| 186 |
</table> |
| 187 |
<br/> |
| 188 |
|
| 189 |
|
| 190 |
Notes |
| 191 |
----- |
| 192 |
|
| 193 |
.. note:: |
| 194 |
- Tested against NXOSv 7.3.(0)D1(1) on VIRL |
| 195 |
- Unsupported for Cisco MDS |
| 196 |
- VRRP feature needs to be enabled first on the system. |
| 197 |
- SVIs must exist before using this module. |
| 198 |
- Interface must be a L3 port before using this module. |
| 199 |
- ``state=absent`` removes the VRRP group if it exists on the device. |
| 200 |
- VRRP cannot be configured on loopback interfaces. |
| 201 |
- For information on using CLI and NX-API see the :ref:`NXOS Platform Options guide <nxos_platform_options>` |
| 202 |
- For more information on using Ansible to manage network devices see the :ref:`Ansible Network Guide <network_guide>` |
| 203 |
- For more information on using Ansible to manage Cisco devices see the `Cisco integration page <https://www.ansible.com/integrations/networks/cisco>`_. |
| 204 |
|
| 205 |
|
| 206 |
|
| 207 |
Examples |
| 208 |
-------- |
| 209 |
|
| 210 |
.. code-block:: yaml |
| 211 |
|
| 212 |
- name: Ensure vrrp group 100 and vip 10.1.100.1 is on vlan10 |
| 213 |
cisco.nxos.nxos_vrrp: |
| 214 |
interface: vlan10 |
| 215 |
group: 100 |
| 216 |
vip: 10.1.100.1 |
| 217 |
|
| 218 |
- name: Ensure removal of the vrrp group config |
| 219 |
cisco.nxos.nxos_vrrp: |
| 220 |
interface: vlan10 |
| 221 |
group: 100 |
| 222 |
vip: 10.1.100.1 |
| 223 |
state: absent |
| 224 |
|
| 225 |
- name: Re-config with more params |
| 226 |
cisco.nxos.nxos_vrrp: |
| 227 |
interface: vlan10 |
| 228 |
group: 100 |
| 229 |
vip: 10.1.100.1 |
| 230 |
preempt: false |
| 231 |
priority: 130 |
| 232 |
authentication: AUTHKEY |
| 233 |
|
| 234 |
|
| 235 |
|
| 236 |
Return Values |
| 237 |
------------- |
| 238 |
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: |
| 239 |
|
| 240 |
.. raw:: html |
| 241 |
|
| 242 |
<table border=0 cellpadding=0 class="documentation-table"> |
| 243 |
<tr> |
| 244 |
<th colspan="1">Key</th> |
| 245 |
<th>Returned</th> |
| 246 |
<th width="100%">Description</th> |
| 247 |
</tr> |
| 248 |
<tr> |
| 249 |
<td colspan="1"> |
| 250 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 251 |
<b>commands</b> |
| 252 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 253 |
<div style="font-size: small"> |
| 254 |
<span style="color: purple">list</span> |
| 255 |
</div> |
| 256 |
</td> |
| 257 |
<td>always</td> |
| 258 |
<td> |
| 259 |
<div>commands sent to the device</div> |
| 260 |
<br/> |
| 261 |
<div style="font-size: smaller"><b>Sample:</b></div> |
| 262 |
<div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">['interface vlan10', 'vrrp 150', 'address 10.1.15.1', 'authentication text testing', 'no shutdown']</div> |
| 263 |
</td> |
| 264 |
</tr> |
| 265 |
</table> |
| 266 |
<br/><br/> |
| 267 |
|
| 268 |
|
| 269 |
Status |
| 270 |
------ |
| 271 |
|
| 272 |
|
| 273 |
Authors |
| 274 |
~~~~~~~ |
| 275 |
|
| 276 |
- Jason Edelman (@jedelman8) |
| 277 |
- Gabriele Gerbino (@GGabriele) |