| 1 |
.. _cisco.nxos.nxos_vpc_module: |
| 2 |
|
| 3 |
|
| 4 |
******************* |
| 5 |
cisco.nxos.nxos_vpc |
| 6 |
******************* |
| 7 |
|
| 8 |
**Manages global VPC configuration** |
| 9 |
|
| 10 |
|
| 11 |
Version added: 1.0.0 |
| 12 |
|
| 13 |
.. contents:: |
| 14 |
:local: |
| 15 |
:depth: 1 |
| 16 |
|
| 17 |
|
| 18 |
Synopsis |
| 19 |
-------- |
| 20 |
- Manages global VPC configuration |
| 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>auto_recovery</b> |
| 40 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 41 |
<div style="font-size: small"> |
| 42 |
<span style="color: purple">boolean</span> |
| 43 |
</div> |
| 44 |
</td> |
| 45 |
<td> |
| 46 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 47 |
<li>no</li> |
| 48 |
<li>yes</li> |
| 49 |
</ul> |
| 50 |
</td> |
| 51 |
<td> |
| 52 |
<div>Enables/Disables auto recovery on platforms that support disable</div> |
| 53 |
<div>timers are not modifiable with this attribute</div> |
| 54 |
<div>mutually exclusive with auto_recovery_reload_delay</div> |
| 55 |
</td> |
| 56 |
</tr> |
| 57 |
<tr> |
| 58 |
<td colspan="1"> |
| 59 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 60 |
<b>auto_recovery_reload_delay</b> |
| 61 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 62 |
<div style="font-size: small"> |
| 63 |
<span style="color: purple">string</span> |
| 64 |
</div> |
| 65 |
</td> |
| 66 |
<td> |
| 67 |
</td> |
| 68 |
<td> |
| 69 |
<div>Manages auto-recovery reload-delay timer in seconds</div> |
| 70 |
<div>mutually exclusive with auto_recovery</div> |
| 71 |
</td> |
| 72 |
</tr> |
| 73 |
<tr> |
| 74 |
<td colspan="1"> |
| 75 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 76 |
<b>delay_restore</b> |
| 77 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 78 |
<div style="font-size: small"> |
| 79 |
<span style="color: purple">string</span> |
| 80 |
</div> |
| 81 |
</td> |
| 82 |
<td> |
| 83 |
</td> |
| 84 |
<td> |
| 85 |
<div>manages delay restore command and config value in seconds</div> |
| 86 |
</td> |
| 87 |
</tr> |
| 88 |
<tr> |
| 89 |
<td colspan="1"> |
| 90 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 91 |
<b>delay_restore_interface_vlan</b> |
| 92 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 93 |
<div style="font-size: small"> |
| 94 |
<span style="color: purple">string</span> |
| 95 |
</div> |
| 96 |
</td> |
| 97 |
<td> |
| 98 |
</td> |
| 99 |
<td> |
| 100 |
<div>manages delay restore interface-vlan command and config value in seconds</div> |
| 101 |
<div>not supported on all platforms</div> |
| 102 |
</td> |
| 103 |
</tr> |
| 104 |
<tr> |
| 105 |
<td colspan="1"> |
| 106 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 107 |
<b>delay_restore_orphan_port</b> |
| 108 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 109 |
<div style="font-size: small"> |
| 110 |
<span style="color: purple">string</span> |
| 111 |
</div> |
| 112 |
</td> |
| 113 |
<td> |
| 114 |
</td> |
| 115 |
<td> |
| 116 |
<div>manages delay restore orphan-port command and config value in seconds</div> |
| 117 |
<div>not supported on all platforms</div> |
| 118 |
</td> |
| 119 |
</tr> |
| 120 |
<tr> |
| 121 |
<td colspan="1"> |
| 122 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 123 |
<b>domain</b> |
| 124 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 125 |
<div style="font-size: small"> |
| 126 |
<span style="color: purple">string</span> |
| 127 |
/ <span style="color: red">required</span> |
| 128 |
</div> |
| 129 |
</td> |
| 130 |
<td> |
| 131 |
</td> |
| 132 |
<td> |
| 133 |
<div>VPC domain</div> |
| 134 |
</td> |
| 135 |
</tr> |
| 136 |
<tr> |
| 137 |
<td colspan="1"> |
| 138 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 139 |
<b>peer_gw</b> |
| 140 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 141 |
<div style="font-size: small"> |
| 142 |
<span style="color: purple">boolean</span> |
| 143 |
</div> |
| 144 |
</td> |
| 145 |
<td> |
| 146 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 147 |
<li>no</li> |
| 148 |
<li>yes</li> |
| 149 |
</ul> |
| 150 |
</td> |
| 151 |
<td> |
| 152 |
<div>Enables/Disables peer gateway</div> |
| 153 |
</td> |
| 154 |
</tr> |
| 155 |
<tr> |
| 156 |
<td colspan="1"> |
| 157 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 158 |
<b>peer_sw</b> |
| 159 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 160 |
<div style="font-size: small"> |
| 161 |
<span style="color: purple">boolean</span> |
| 162 |
</div> |
| 163 |
</td> |
| 164 |
<td> |
| 165 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 166 |
<li>no</li> |
| 167 |
<li>yes</li> |
| 168 |
</ul> |
| 169 |
</td> |
| 170 |
<td> |
| 171 |
<div>Enables/Disables peer-switch</div> |
| 172 |
</td> |
| 173 |
</tr> |
| 174 |
<tr> |
| 175 |
<td colspan="1"> |
| 176 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 177 |
<b>pkl_dest</b> |
| 178 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 179 |
<div style="font-size: small"> |
| 180 |
<span style="color: purple">string</span> |
| 181 |
</div> |
| 182 |
</td> |
| 183 |
<td> |
| 184 |
</td> |
| 185 |
<td> |
| 186 |
<div>Destination (remote) IP address used for peer keepalive link</div> |
| 187 |
<div>pkl_dest is required whenever pkl options are used.</div> |
| 188 |
</td> |
| 189 |
</tr> |
| 190 |
<tr> |
| 191 |
<td colspan="1"> |
| 192 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 193 |
<b>pkl_src</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 |
</td> |
| 201 |
<td> |
| 202 |
<div>Source IP address used for peer keepalive link</div> |
| 203 |
</td> |
| 204 |
</tr> |
| 205 |
<tr> |
| 206 |
<td colspan="1"> |
| 207 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 208 |
<b>pkl_vrf</b> |
| 209 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 210 |
<div style="font-size: small"> |
| 211 |
<span style="color: purple">string</span> |
| 212 |
</div> |
| 213 |
</td> |
| 214 |
<td> |
| 215 |
</td> |
| 216 |
<td> |
| 217 |
<div>VRF used for peer keepalive link</div> |
| 218 |
<div>The VRF must exist on the device before using pkl_vrf.</div> |
| 219 |
<div>(Note) 'default' is an overloaded term: Default vrf context for pkl_vrf is 'management'; 'pkl_vrf: default' refers to the literal 'default' rib.</div> |
| 220 |
</td> |
| 221 |
</tr> |
| 222 |
<tr> |
| 223 |
<td colspan="1"> |
| 224 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 225 |
<b>role_priority</b> |
| 226 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 227 |
<div style="font-size: small"> |
| 228 |
<span style="color: purple">string</span> |
| 229 |
</div> |
| 230 |
</td> |
| 231 |
<td> |
| 232 |
</td> |
| 233 |
<td> |
| 234 |
<div>Role priority for device. Remember lower is better.</div> |
| 235 |
</td> |
| 236 |
</tr> |
| 237 |
<tr> |
| 238 |
<td colspan="1"> |
| 239 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 240 |
<b>state</b> |
| 241 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 242 |
<div style="font-size: small"> |
| 243 |
<span style="color: purple">string</span> |
| 244 |
</div> |
| 245 |
</td> |
| 246 |
<td> |
| 247 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 248 |
<li><div style="color: blue"><b>present</b> ←</div></li> |
| 249 |
<li>absent</li> |
| 250 |
</ul> |
| 251 |
</td> |
| 252 |
<td> |
| 253 |
<div>Manages desired state of the resource</div> |
| 254 |
</td> |
| 255 |
</tr> |
| 256 |
<tr> |
| 257 |
<td colspan="1"> |
| 258 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 259 |
<b>system_priority</b> |
| 260 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 261 |
<div style="font-size: small"> |
| 262 |
<span style="color: purple">string</span> |
| 263 |
</div> |
| 264 |
</td> |
| 265 |
<td> |
| 266 |
</td> |
| 267 |
<td> |
| 268 |
<div>System priority device. Remember they must match between peers.</div> |
| 269 |
</td> |
| 270 |
</tr> |
| 271 |
</table> |
| 272 |
<br/> |
| 273 |
|
| 274 |
|
| 275 |
Notes |
| 276 |
----- |
| 277 |
|
| 278 |
.. note:: |
| 279 |
- Tested against NXOSv 7.3.(0)D1(1) on VIRL |
| 280 |
- Unsupported for Cisco MDS |
| 281 |
- The feature vpc must be enabled before this module can be used |
| 282 |
- If not using management vrf, vrf must be globally on the device before using in the pkl config |
| 283 |
- Although source IP isn't required on the command line it is required when using this module. The PKL VRF must also be configured prior to using this module. |
| 284 |
- Both pkl_src and pkl_dest are needed when changing PKL VRF. |
| 285 |
- For information on using CLI and NX-API see the :ref:`NXOS Platform Options guide <nxos_platform_options>` |
| 286 |
- For more information on using Ansible to manage network devices see the :ref:`Ansible Network Guide <network_guide>` |
| 287 |
- For more information on using Ansible to manage Cisco devices see the `Cisco integration page <https://www.ansible.com/integrations/networks/cisco>`_. |
| 288 |
|
| 289 |
|
| 290 |
|
| 291 |
Examples |
| 292 |
-------- |
| 293 |
|
| 294 |
.. code-block:: yaml |
| 295 |
|
| 296 |
- name: configure a simple asn |
| 297 |
cisco.nxos.nxos_vpc: |
| 298 |
domain: 100 |
| 299 |
role_priority: 1000 |
| 300 |
system_priority: 2000 |
| 301 |
pkl_dest: 192.168.100.4 |
| 302 |
pkl_src: 10.1.100.20 |
| 303 |
peer_gw: true |
| 304 |
peer_sw: true |
| 305 |
auto_recovery: true |
| 306 |
|
| 307 |
- name: configure |
| 308 |
cisco.nxos.nxos_vpc: |
| 309 |
domain: 100 |
| 310 |
role_priority: 32667 |
| 311 |
system_priority: 2000 |
| 312 |
peer_gw: true |
| 313 |
peer_sw: true |
| 314 |
pkl_src: 10.1.100.2 |
| 315 |
pkl_dest: 192.168.100.4 |
| 316 |
auto_recovery: true |
| 317 |
|
| 318 |
- name: Configure VPC with delay restore and existing keepalive VRF |
| 319 |
cisco.nxos.nxos_vpc: |
| 320 |
domain: 10 |
| 321 |
role_priority: 28672 |
| 322 |
system_priority: 2000 |
| 323 |
delay_restore: 180 |
| 324 |
peer_gw: true |
| 325 |
peer_sw: true |
| 326 |
pkl_src: 1.1.1.2 |
| 327 |
pkl_dest: 1.1.1.1 |
| 328 |
pkl_vrf: vpckeepalive |
| 329 |
auto_recovery: true |
| 330 |
|
| 331 |
|
| 332 |
|
| 333 |
Return Values |
| 334 |
------------- |
| 335 |
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: |
| 336 |
|
| 337 |
.. raw:: html |
| 338 |
|
| 339 |
<table border=0 cellpadding=0 class="documentation-table"> |
| 340 |
<tr> |
| 341 |
<th colspan="1">Key</th> |
| 342 |
<th>Returned</th> |
| 343 |
<th width="100%">Description</th> |
| 344 |
</tr> |
| 345 |
<tr> |
| 346 |
<td colspan="1"> |
| 347 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 348 |
<b>commands</b> |
| 349 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 350 |
<div style="font-size: small"> |
| 351 |
<span style="color: purple">list</span> |
| 352 |
</div> |
| 353 |
</td> |
| 354 |
<td>always</td> |
| 355 |
<td> |
| 356 |
<div>commands sent to the device</div> |
| 357 |
<br/> |
| 358 |
<div style="font-size: smaller"><b>Sample:</b></div> |
| 359 |
<div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">['vpc domain 100', 'peer-keepalive destination 192.168.100.4 source 10.1.100.20 vrf management', 'auto-recovery', 'peer-gateway', 'peer-switch']</div> |
| 360 |
</td> |
| 361 |
</tr> |
| 362 |
</table> |
| 363 |
<br/><br/> |
| 364 |
|
| 365 |
|
| 366 |
Status |
| 367 |
------ |
| 368 |
|
| 369 |
|
| 370 |
Authors |
| 371 |
~~~~~~~ |
| 372 |
|
| 373 |
- Jason Edelman (@jedelman8) |
| 374 |
- Gabriele Gerbino (@GGabriele) |