| 1 |
.. _cisco.ios.ios_vrf_module: |
| 2 |
|
| 3 |
|
| 4 |
***************** |
| 5 |
cisco.ios.ios_vrf |
| 6 |
***************** |
| 7 |
|
| 8 |
**Module to configure VRF definitions.** |
| 9 |
|
| 10 |
|
| 11 |
Version added: 1.0.0 |
| 12 |
|
| 13 |
.. contents:: |
| 14 |
:local: |
| 15 |
:depth: 1 |
| 16 |
|
| 17 |
|
| 18 |
Synopsis |
| 19 |
-------- |
| 20 |
- This module provides declarative management of VRF definitions on Cisco IOS devices. It allows playbooks to manage individual or the entire VRF collection. It also supports purging VRF definitions from the configuration that are not explicitly defined. |
| 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="5">Parameter</th> |
| 33 |
<th>Choices/<font color="blue">Defaults</font></th> |
| 34 |
<th width="100%">Comments</th> |
| 35 |
</tr> |
| 36 |
<tr> |
| 37 |
<td colspan="5"> |
| 38 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 39 |
<b>address_family</b> |
| 40 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 41 |
<div style="font-size: small"> |
| 42 |
<span style="color: purple">list</span> |
| 43 |
/ <span style="color: purple">elements=dictionary</span> |
| 44 |
</div> |
| 45 |
</td> |
| 46 |
<td> |
| 47 |
</td> |
| 48 |
<td> |
| 49 |
<div>The list of address families with MDT parameters to be configured on the remote IOS device.</div> |
| 50 |
</td> |
| 51 |
</tr> |
| 52 |
<tr> |
| 53 |
<td class="elbow-placeholder"></td> |
| 54 |
<td colspan="4"> |
| 55 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 56 |
<b>afi</b> |
| 57 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 58 |
<div style="font-size: small"> |
| 59 |
<span style="color: purple">string</span> |
| 60 |
</div> |
| 61 |
</td> |
| 62 |
<td> |
| 63 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 64 |
<li>ipv4</li> |
| 65 |
<li>ipv6</li> |
| 66 |
</ul> |
| 67 |
</td> |
| 68 |
<td> |
| 69 |
<div>Address family identifier.</div> |
| 70 |
</td> |
| 71 |
</tr> |
| 72 |
<tr> |
| 73 |
<td class="elbow-placeholder"></td> |
| 74 |
<td colspan="4"> |
| 75 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 76 |
<b>mdt</b> |
| 77 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 78 |
<div style="font-size: small"> |
| 79 |
<span style="color: purple">dictionary</span> |
| 80 |
</div> |
| 81 |
</td> |
| 82 |
<td> |
| 83 |
</td> |
| 84 |
<td> |
| 85 |
<div>MDT parameters.</div> |
| 86 |
</td> |
| 87 |
</tr> |
| 88 |
<tr> |
| 89 |
<td class="elbow-placeholder"></td> |
| 90 |
<td class="elbow-placeholder"></td> |
| 91 |
<td colspan="3"> |
| 92 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 93 |
<b>auto_discovery</b> |
| 94 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 95 |
<div style="font-size: small"> |
| 96 |
<span style="color: purple">dictionary</span> |
| 97 |
</div> |
| 98 |
</td> |
| 99 |
<td> |
| 100 |
</td> |
| 101 |
<td> |
| 102 |
<div>Auto-discovery parameters.</div> |
| 103 |
</td> |
| 104 |
</tr> |
| 105 |
<tr> |
| 106 |
<td class="elbow-placeholder"></td> |
| 107 |
<td class="elbow-placeholder"></td> |
| 108 |
<td class="elbow-placeholder"></td> |
| 109 |
<td colspan="2"> |
| 110 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 111 |
<b>vxlan</b> |
| 112 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 113 |
<div style="font-size: small"> |
| 114 |
<span style="color: purple">dictionary</span> |
| 115 |
</div> |
| 116 |
</td> |
| 117 |
<td> |
| 118 |
</td> |
| 119 |
<td> |
| 120 |
<div>Vxlan parameters.</div> |
| 121 |
</td> |
| 122 |
</tr> |
| 123 |
<tr> |
| 124 |
<td class="elbow-placeholder"></td> |
| 125 |
<td class="elbow-placeholder"></td> |
| 126 |
<td class="elbow-placeholder"></td> |
| 127 |
<td class="elbow-placeholder"></td> |
| 128 |
<td colspan="1"> |
| 129 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 130 |
<b>enable</b> |
| 131 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 132 |
<div style="font-size: small"> |
| 133 |
<span style="color: purple">boolean</span> |
| 134 |
</div> |
| 135 |
</td> |
| 136 |
<td> |
| 137 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 138 |
<li>no</li> |
| 139 |
<li>yes</li> |
| 140 |
</ul> |
| 141 |
</td> |
| 142 |
<td> |
| 143 |
<div>Enable VXLAN.</div> |
| 144 |
</td> |
| 145 |
</tr> |
| 146 |
<tr> |
| 147 |
<td class="elbow-placeholder"></td> |
| 148 |
<td class="elbow-placeholder"></td> |
| 149 |
<td class="elbow-placeholder"></td> |
| 150 |
<td class="elbow-placeholder"></td> |
| 151 |
<td colspan="1"> |
| 152 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 153 |
<b>inter_as</b> |
| 154 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 155 |
<div style="font-size: small"> |
| 156 |
<span style="color: purple">boolean</span> |
| 157 |
</div> |
| 158 |
</td> |
| 159 |
<td> |
| 160 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 161 |
<li>no</li> |
| 162 |
<li>yes</li> |
| 163 |
</ul> |
| 164 |
</td> |
| 165 |
<td> |
| 166 |
<div>Enable inter-as.</div> |
| 167 |
</td> |
| 168 |
</tr> |
| 169 |
|
| 170 |
|
| 171 |
<tr> |
| 172 |
<td class="elbow-placeholder"></td> |
| 173 |
<td class="elbow-placeholder"></td> |
| 174 |
<td colspan="3"> |
| 175 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 176 |
<b>data</b> |
| 177 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 178 |
<div style="font-size: small"> |
| 179 |
<span style="color: purple">dictionary</span> |
| 180 |
</div> |
| 181 |
</td> |
| 182 |
<td> |
| 183 |
</td> |
| 184 |
<td> |
| 185 |
<div>Parameters for data option.</div> |
| 186 |
</td> |
| 187 |
</tr> |
| 188 |
<tr> |
| 189 |
<td class="elbow-placeholder"></td> |
| 190 |
<td class="elbow-placeholder"></td> |
| 191 |
<td class="elbow-placeholder"></td> |
| 192 |
<td colspan="2"> |
| 193 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 194 |
<b>threshold</b> |
| 195 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 196 |
<div style="font-size: small"> |
| 197 |
<span style="color: purple">integer</span> |
| 198 |
</div> |
| 199 |
</td> |
| 200 |
<td> |
| 201 |
</td> |
| 202 |
<td> |
| 203 |
<div>Threshold value.</div> |
| 204 |
</td> |
| 205 |
</tr> |
| 206 |
<tr> |
| 207 |
<td class="elbow-placeholder"></td> |
| 208 |
<td class="elbow-placeholder"></td> |
| 209 |
<td class="elbow-placeholder"></td> |
| 210 |
<td colspan="2"> |
| 211 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 212 |
<b>vxlan_mcast_group</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 |
</td> |
| 220 |
<td> |
| 221 |
<div>VXLAN multicast group value.</div> |
| 222 |
</td> |
| 223 |
</tr> |
| 224 |
|
| 225 |
<tr> |
| 226 |
<td class="elbow-placeholder"></td> |
| 227 |
<td class="elbow-placeholder"></td> |
| 228 |
<td colspan="3"> |
| 229 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 230 |
<b>default</b> |
| 231 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 232 |
<div style="font-size: small"> |
| 233 |
<span style="color: purple">dictionary</span> |
| 234 |
</div> |
| 235 |
</td> |
| 236 |
<td> |
| 237 |
</td> |
| 238 |
<td> |
| 239 |
<div>Parameters for default option.</div> |
| 240 |
</td> |
| 241 |
</tr> |
| 242 |
<tr> |
| 243 |
<td class="elbow-placeholder"></td> |
| 244 |
<td class="elbow-placeholder"></td> |
| 245 |
<td class="elbow-placeholder"></td> |
| 246 |
<td colspan="2"> |
| 247 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 248 |
<b>vxlan_mcast_group</b> |
| 249 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 250 |
<div style="font-size: small"> |
| 251 |
<span style="color: purple">string</span> |
| 252 |
</div> |
| 253 |
</td> |
| 254 |
<td> |
| 255 |
</td> |
| 256 |
<td> |
| 257 |
<div>VXLAN multicast group value.</div> |
| 258 |
</td> |
| 259 |
</tr> |
| 260 |
|
| 261 |
<tr> |
| 262 |
<td class="elbow-placeholder"></td> |
| 263 |
<td class="elbow-placeholder"></td> |
| 264 |
<td colspan="3"> |
| 265 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 266 |
<b>overlay</b> |
| 267 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 268 |
<div style="font-size: small"> |
| 269 |
<span style="color: purple">dictionary</span> |
| 270 |
</div> |
| 271 |
</td> |
| 272 |
<td> |
| 273 |
</td> |
| 274 |
<td> |
| 275 |
<div>Parameters for overlay option.</div> |
| 276 |
</td> |
| 277 |
</tr> |
| 278 |
<tr> |
| 279 |
<td class="elbow-placeholder"></td> |
| 280 |
<td class="elbow-placeholder"></td> |
| 281 |
<td class="elbow-placeholder"></td> |
| 282 |
<td colspan="2"> |
| 283 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 284 |
<b>use_bgp</b> |
| 285 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 286 |
<div style="font-size: small"> |
| 287 |
<span style="color: purple">dictionary</span> |
| 288 |
</div> |
| 289 |
</td> |
| 290 |
<td> |
| 291 |
</td> |
| 292 |
<td> |
| 293 |
<div>parameters for BGP option.</div> |
| 294 |
</td> |
| 295 |
</tr> |
| 296 |
<tr> |
| 297 |
<td class="elbow-placeholder"></td> |
| 298 |
<td class="elbow-placeholder"></td> |
| 299 |
<td class="elbow-placeholder"></td> |
| 300 |
<td class="elbow-placeholder"></td> |
| 301 |
<td colspan="1"> |
| 302 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 303 |
<b>enable</b> |
| 304 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 305 |
<div style="font-size: small"> |
| 306 |
<span style="color: purple">boolean</span> |
| 307 |
</div> |
| 308 |
</td> |
| 309 |
<td> |
| 310 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 311 |
<li>no</li> |
| 312 |
<li>yes</li> |
| 313 |
</ul> |
| 314 |
</td> |
| 315 |
<td> |
| 316 |
<div>Enable use BGP.</div> |
| 317 |
</td> |
| 318 |
</tr> |
| 319 |
<tr> |
| 320 |
<td class="elbow-placeholder"></td> |
| 321 |
<td class="elbow-placeholder"></td> |
| 322 |
<td class="elbow-placeholder"></td> |
| 323 |
<td class="elbow-placeholder"></td> |
| 324 |
<td colspan="1"> |
| 325 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 326 |
<b>spt_only</b> |
| 327 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 328 |
<div style="font-size: small"> |
| 329 |
<span style="color: purple">boolean</span> |
| 330 |
</div> |
| 331 |
</td> |
| 332 |
<td> |
| 333 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 334 |
<li>no</li> |
| 335 |
<li>yes</li> |
| 336 |
</ul> |
| 337 |
</td> |
| 338 |
<td> |
| 339 |
<div>Enable SPT only.</div> |
| 340 |
</td> |
| 341 |
</tr> |
| 342 |
|
| 343 |
|
| 344 |
|
| 345 |
|
| 346 |
<tr> |
| 347 |
<td colspan="5"> |
| 348 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 349 |
<b>associated_interfaces</b> |
| 350 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 351 |
<div style="font-size: small"> |
| 352 |
<span style="color: purple">list</span> |
| 353 |
/ <span style="color: purple">elements=string</span> |
| 354 |
</div> |
| 355 |
</td> |
| 356 |
<td> |
| 357 |
</td> |
| 358 |
<td> |
| 359 |
<div>This is a intent option and checks the operational state of the for given vrf <code>name</code> for associated interfaces. If the value in the <code>associated_interfaces</code> does not match with the operational state of vrf interfaces on device it will result in failure.</div> |
| 360 |
</td> |
| 361 |
</tr> |
| 362 |
<tr> |
| 363 |
<td colspan="5"> |
| 364 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 365 |
<b>delay</b> |
| 366 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 367 |
<div style="font-size: small"> |
| 368 |
<span style="color: purple">integer</span> |
| 369 |
</div> |
| 370 |
</td> |
| 371 |
<td> |
| 372 |
<b>Default:</b><br/><div style="color: blue">10</div> |
| 373 |
</td> |
| 374 |
<td> |
| 375 |
<div>Time in seconds to wait before checking for the operational state on remote device.</div> |
| 376 |
</td> |
| 377 |
</tr> |
| 378 |
<tr> |
| 379 |
<td colspan="5"> |
| 380 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 381 |
<b>description</b> |
| 382 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 383 |
<div style="font-size: small"> |
| 384 |
<span style="color: purple">string</span> |
| 385 |
</div> |
| 386 |
</td> |
| 387 |
<td> |
| 388 |
</td> |
| 389 |
<td> |
| 390 |
<div>Provides a short description of the VRF definition in the current active configuration. The VRF definition value accepts alphanumeric characters used to provide additional information about the VRF.</div> |
| 391 |
</td> |
| 392 |
</tr> |
| 393 |
<tr> |
| 394 |
<td colspan="5"> |
| 395 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 396 |
<b>interfaces</b> |
| 397 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 398 |
<div style="font-size: small"> |
| 399 |
<span style="color: purple">list</span> |
| 400 |
/ <span style="color: purple">elements=string</span> |
| 401 |
</div> |
| 402 |
</td> |
| 403 |
<td> |
| 404 |
</td> |
| 405 |
<td> |
| 406 |
<div>Identifies the set of interfaces that should be configured in the VRF. Interfaces must be routed interfaces in order to be placed into a VRF.</div> |
| 407 |
</td> |
| 408 |
</tr> |
| 409 |
<tr> |
| 410 |
<td colspan="5"> |
| 411 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 412 |
<b>name</b> |
| 413 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 414 |
<div style="font-size: small"> |
| 415 |
<span style="color: purple">string</span> |
| 416 |
</div> |
| 417 |
</td> |
| 418 |
<td> |
| 419 |
</td> |
| 420 |
<td> |
| 421 |
<div>The name of the VRF definition to be managed on the remote IOS device. The VRF definition name is an ASCII string name used to uniquely identify the VRF. This argument is mutually exclusive with the <code>vrfs</code> argument</div> |
| 422 |
</td> |
| 423 |
</tr> |
| 424 |
<tr> |
| 425 |
<td colspan="5"> |
| 426 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 427 |
<b>purge</b> |
| 428 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 429 |
<div style="font-size: small"> |
| 430 |
<span style="color: purple">boolean</span> |
| 431 |
</div> |
| 432 |
</td> |
| 433 |
<td> |
| 434 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 435 |
<li><div style="color: blue"><b>no</b> ←</div></li> |
| 436 |
<li>yes</li> |
| 437 |
</ul> |
| 438 |
</td> |
| 439 |
<td> |
| 440 |
<div>Instructs the module to consider the VRF definition absolute. It will remove any previously configured VRFs on the device.</div> |
| 441 |
</td> |
| 442 |
</tr> |
| 443 |
<tr> |
| 444 |
<td colspan="5"> |
| 445 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 446 |
<b>rd</b> |
| 447 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 448 |
<div style="font-size: small"> |
| 449 |
<span style="color: purple">string</span> |
| 450 |
</div> |
| 451 |
</td> |
| 452 |
<td> |
| 453 |
</td> |
| 454 |
<td> |
| 455 |
<div>The router-distinguisher value uniquely identifies the VRF to routing processes on the remote IOS system. The RD value takes the form of <code>A:B</code> where <code>A</code> and <code>B</code> are both numeric values.</div> |
| 456 |
</td> |
| 457 |
</tr> |
| 458 |
<tr> |
| 459 |
<td colspan="5"> |
| 460 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 461 |
<b>route_both</b> |
| 462 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 463 |
<div style="font-size: small"> |
| 464 |
<span style="color: purple">list</span> |
| 465 |
/ <span style="color: purple">elements=string</span> |
| 466 |
</div> |
| 467 |
</td> |
| 468 |
<td> |
| 469 |
</td> |
| 470 |
<td> |
| 471 |
<div>Adds an export and import list of extended route target communities to the VRF.</div> |
| 472 |
</td> |
| 473 |
</tr> |
| 474 |
<tr> |
| 475 |
<td colspan="5"> |
| 476 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 477 |
<b>route_both_ipv4</b> |
| 478 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 479 |
<div style="font-size: small"> |
| 480 |
<span style="color: purple">list</span> |
| 481 |
/ <span style="color: purple">elements=string</span> |
| 482 |
</div> |
| 483 |
</td> |
| 484 |
<td> |
| 485 |
</td> |
| 486 |
<td> |
| 487 |
<div>Adds an export and import list of extended route target communities in address-family configuration submode to the VRF.</div> |
| 488 |
</td> |
| 489 |
</tr> |
| 490 |
<tr> |
| 491 |
<td colspan="5"> |
| 492 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 493 |
<b>route_both_ipv6</b> |
| 494 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 495 |
<div style="font-size: small"> |
| 496 |
<span style="color: purple">list</span> |
| 497 |
/ <span style="color: purple">elements=string</span> |
| 498 |
</div> |
| 499 |
</td> |
| 500 |
<td> |
| 501 |
</td> |
| 502 |
<td> |
| 503 |
<div>Adds an export and import list of extended route target communities in address-family configuration submode to the VRF.</div> |
| 504 |
</td> |
| 505 |
</tr> |
| 506 |
<tr> |
| 507 |
<td colspan="5"> |
| 508 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 509 |
<b>route_export</b> |
| 510 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 511 |
<div style="font-size: small"> |
| 512 |
<span style="color: purple">list</span> |
| 513 |
/ <span style="color: purple">elements=string</span> |
| 514 |
</div> |
| 515 |
</td> |
| 516 |
<td> |
| 517 |
</td> |
| 518 |
<td> |
| 519 |
<div>Adds an export list of extended route target communities to the VRF.</div> |
| 520 |
</td> |
| 521 |
</tr> |
| 522 |
<tr> |
| 523 |
<td colspan="5"> |
| 524 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 525 |
<b>route_export_ipv4</b> |
| 526 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 527 |
<div style="font-size: small"> |
| 528 |
<span style="color: purple">list</span> |
| 529 |
/ <span style="color: purple">elements=string</span> |
| 530 |
</div> |
| 531 |
</td> |
| 532 |
<td> |
| 533 |
</td> |
| 534 |
<td> |
| 535 |
<div>Adds an export list of extended route target communities in address-family configuration submode to the VRF.</div> |
| 536 |
</td> |
| 537 |
</tr> |
| 538 |
<tr> |
| 539 |
<td colspan="5"> |
| 540 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 541 |
<b>route_export_ipv6</b> |
| 542 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 543 |
<div style="font-size: small"> |
| 544 |
<span style="color: purple">list</span> |
| 545 |
/ <span style="color: purple">elements=string</span> |
| 546 |
</div> |
| 547 |
</td> |
| 548 |
<td> |
| 549 |
</td> |
| 550 |
<td> |
| 551 |
<div>Adds an export list of extended route target communities in address-family configuration submode to the VRF.</div> |
| 552 |
</td> |
| 553 |
</tr> |
| 554 |
<tr> |
| 555 |
<td colspan="5"> |
| 556 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 557 |
<b>route_import</b> |
| 558 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 559 |
<div style="font-size: small"> |
| 560 |
<span style="color: purple">list</span> |
| 561 |
/ <span style="color: purple">elements=string</span> |
| 562 |
</div> |
| 563 |
</td> |
| 564 |
<td> |
| 565 |
</td> |
| 566 |
<td> |
| 567 |
<div>Adds an import list of extended route target communities to the VRF.</div> |
| 568 |
</td> |
| 569 |
</tr> |
| 570 |
<tr> |
| 571 |
<td colspan="5"> |
| 572 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 573 |
<b>route_import_ipv4</b> |
| 574 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 575 |
<div style="font-size: small"> |
| 576 |
<span style="color: purple">list</span> |
| 577 |
/ <span style="color: purple">elements=string</span> |
| 578 |
</div> |
| 579 |
</td> |
| 580 |
<td> |
| 581 |
</td> |
| 582 |
<td> |
| 583 |
<div>Adds an import list of extended route target communities in address-family configuration submode to the VRF.</div> |
| 584 |
</td> |
| 585 |
</tr> |
| 586 |
<tr> |
| 587 |
<td colspan="5"> |
| 588 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 589 |
<b>route_import_ipv6</b> |
| 590 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 591 |
<div style="font-size: small"> |
| 592 |
<span style="color: purple">list</span> |
| 593 |
/ <span style="color: purple">elements=string</span> |
| 594 |
</div> |
| 595 |
</td> |
| 596 |
<td> |
| 597 |
</td> |
| 598 |
<td> |
| 599 |
<div>Adds an import list of extended route target communities in address-family configuration submode to the VRF.</div> |
| 600 |
</td> |
| 601 |
</tr> |
| 602 |
<tr> |
| 603 |
<td colspan="5"> |
| 604 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 605 |
<b>state</b> |
| 606 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 607 |
<div style="font-size: small"> |
| 608 |
<span style="color: purple">string</span> |
| 609 |
</div> |
| 610 |
</td> |
| 611 |
<td> |
| 612 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 613 |
<li><div style="color: blue"><b>present</b> ←</div></li> |
| 614 |
<li>absent</li> |
| 615 |
</ul> |
| 616 |
</td> |
| 617 |
<td> |
| 618 |
<div>Configures the state of the VRF definition as it relates to the device operational configuration. When set to <em>present</em>, the VRF should be configured in the device active configuration and when set to <em>absent</em> the VRF should not be in the device active configuration</div> |
| 619 |
</td> |
| 620 |
</tr> |
| 621 |
<tr> |
| 622 |
<td colspan="5"> |
| 623 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 624 |
<b>vrfs</b> |
| 625 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 626 |
<div style="font-size: small"> |
| 627 |
<span style="color: purple">list</span> |
| 628 |
/ <span style="color: purple">elements=raw</span> |
| 629 |
</div> |
| 630 |
</td> |
| 631 |
<td> |
| 632 |
</td> |
| 633 |
<td> |
| 634 |
<div>The set of VRF definition objects to be configured on the remote IOS device. Ths list entries can either be the VRF name or a hash of VRF definitions and attributes. This argument is mutually exclusive with the <code>name</code> argument.</div> |
| 635 |
</td> |
| 636 |
</tr> |
| 637 |
</table> |
| 638 |
<br/> |
| 639 |
|
| 640 |
|
| 641 |
Notes |
| 642 |
----- |
| 643 |
|
| 644 |
.. note:: |
| 645 |
- Tested against Cisco IOSXE Version 17.3 on CML. |
| 646 |
- This module works with connection ``network_cli``. See https://docs.ansible.com/ansible/latest/network/user_guide/platform_ios.html |
| 647 |
- For more information on using Ansible to manage network devices see the :ref:`Ansible Network Guide <network_guide>` |
| 648 |
- For more information on using Ansible to manage Cisco devices see the `Cisco integration page <https://www.ansible.com/integrations/networks/cisco>`_. |
| 649 |
|
| 650 |
|
| 651 |
|
| 652 |
Examples |
| 653 |
-------- |
| 654 |
|
| 655 |
.. code-block:: yaml |
| 656 |
|
| 657 |
- name: Configure a vrf named management |
| 658 |
cisco.ios.ios_vrf: |
| 659 |
name: management |
| 660 |
description: oob mgmt vrf |
| 661 |
interfaces: |
| 662 |
- Management1 |
| 663 |
|
| 664 |
- name: Remove a vrf named test |
| 665 |
cisco.ios.ios_vrf: |
| 666 |
name: test |
| 667 |
state: absent |
| 668 |
|
| 669 |
- name: Configure set of VRFs and purge any others |
| 670 |
cisco.ios.ios_vrf: |
| 671 |
vrfs: |
| 672 |
- red |
| 673 |
- blue |
| 674 |
- green |
| 675 |
purge: true |
| 676 |
|
| 677 |
- name: Creates a list of import RTs for the VRF with the same parameters |
| 678 |
cisco.ios.ios_vrf: |
| 679 |
name: test_import |
| 680 |
rd: 1:100 |
| 681 |
route_import: |
| 682 |
- 1:100 |
| 683 |
- 3:100 |
| 684 |
|
| 685 |
- name: |
| 686 |
Creates a list of import RTs in address-family configuration submode for the |
| 687 |
VRF with the same parameters |
| 688 |
cisco.ios.ios_vrf: |
| 689 |
name: test_import_ipv4 |
| 690 |
rd: 1:100 |
| 691 |
route_import_ipv4: |
| 692 |
- 1:100 |
| 693 |
- 3:100 |
| 694 |
|
| 695 |
- name: |
| 696 |
Creates a list of import RTs in address-family configuration submode for the |
| 697 |
VRF with the same parameters |
| 698 |
cisco.ios.ios_vrf: |
| 699 |
name: test_import_ipv6 |
| 700 |
rd: 1:100 |
| 701 |
route_import_ipv6: |
| 702 |
- 1:100 |
| 703 |
- 3:100 |
| 704 |
|
| 705 |
- name: Creates a list of export RTs for the VRF with the same parameters |
| 706 |
cisco.ios.ios_vrf: |
| 707 |
name: test_export |
| 708 |
rd: 1:100 |
| 709 |
route_export: |
| 710 |
- 1:100 |
| 711 |
- 3:100 |
| 712 |
|
| 713 |
- name: |
| 714 |
Creates a list of export RTs in address-family configuration submode for the |
| 715 |
VRF with the same parameters |
| 716 |
cisco.ios.ios_vrf: |
| 717 |
name: test_export_ipv4 |
| 718 |
rd: 1:100 |
| 719 |
route_export_ipv4: |
| 720 |
- 1:100 |
| 721 |
- 3:100 |
| 722 |
|
| 723 |
- name: |
| 724 |
Creates a list of export RTs in address-family configuration submode for the |
| 725 |
VRF with the same parameters |
| 726 |
cisco.ios.ios_vrf: |
| 727 |
name: test_export_ipv6 |
| 728 |
rd: 1:100 |
| 729 |
route_export_ipv6: |
| 730 |
- 1:100 |
| 731 |
- 3:100 |
| 732 |
|
| 733 |
- name: |
| 734 |
Creates a list of import and export route targets for the VRF with the same |
| 735 |
parameters |
| 736 |
cisco.ios.ios_vrf: |
| 737 |
name: test_both |
| 738 |
rd: 1:100 |
| 739 |
route_both: |
| 740 |
- 1:100 |
| 741 |
- 3:100 |
| 742 |
|
| 743 |
- name: |
| 744 |
Creates a list of import and export route targets in address-family configuration |
| 745 |
submode for the VRF with the same parameters |
| 746 |
cisco.ios.ios_vrf: |
| 747 |
name: test_both_ipv4 |
| 748 |
rd: 1:100 |
| 749 |
route_both_ipv4: |
| 750 |
- 1:100 |
| 751 |
- 3:100 |
| 752 |
|
| 753 |
- name: |
| 754 |
Creates a list of import and export route targets in address-family configuration |
| 755 |
submode for the VRF with the same parameters |
| 756 |
cisco.ios.ios_vrf: |
| 757 |
name: test_both_ipv6 |
| 758 |
rd: 1:100 |
| 759 |
route_both_ipv6: |
| 760 |
- 1:100 |
| 761 |
- 3:100 |
| 762 |
|
| 763 |
|
| 764 |
|
| 765 |
Return Values |
| 766 |
------------- |
| 767 |
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: |
| 768 |
|
| 769 |
.. raw:: html |
| 770 |
|
| 771 |
<table border=0 cellpadding=0 class="documentation-table"> |
| 772 |
<tr> |
| 773 |
<th colspan="1">Key</th> |
| 774 |
<th>Returned</th> |
| 775 |
<th width="100%">Description</th> |
| 776 |
</tr> |
| 777 |
<tr> |
| 778 |
<td colspan="1"> |
| 779 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 780 |
<b>commands</b> |
| 781 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 782 |
<div style="font-size: small"> |
| 783 |
<span style="color: purple">list</span> |
| 784 |
</div> |
| 785 |
</td> |
| 786 |
<td>always</td> |
| 787 |
<td> |
| 788 |
<div>The list of configuration mode commands to send to the device</div> |
| 789 |
<br/> |
| 790 |
<div style="font-size: smaller"><b>Sample:</b></div> |
| 791 |
<div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">['vrf definition ansible', 'description management vrf', {'rd': '1:100'}]</div> |
| 792 |
</td> |
| 793 |
</tr> |
| 794 |
<tr> |
| 795 |
<td colspan="1"> |
| 796 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 797 |
<b>delta</b> |
| 798 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 799 |
<div style="font-size: small"> |
| 800 |
<span style="color: purple">string</span> |
| 801 |
</div> |
| 802 |
</td> |
| 803 |
<td>always</td> |
| 804 |
<td> |
| 805 |
<div>The time elapsed to perform all operations</div> |
| 806 |
<br/> |
| 807 |
<div style="font-size: smaller"><b>Sample:</b></div> |
| 808 |
<div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">0:00:10.469466</div> |
| 809 |
</td> |
| 810 |
</tr> |
| 811 |
<tr> |
| 812 |
<td colspan="1"> |
| 813 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 814 |
<b>end</b> |
| 815 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 816 |
<div style="font-size: small"> |
| 817 |
<span style="color: purple">string</span> |
| 818 |
</div> |
| 819 |
</td> |
| 820 |
<td>always</td> |
| 821 |
<td> |
| 822 |
<div>The time the job ended</div> |
| 823 |
<br/> |
| 824 |
<div style="font-size: smaller"><b>Sample:</b></div> |
| 825 |
<div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">2016-11-16 10:38:25.595612</div> |
| 826 |
</td> |
| 827 |
</tr> |
| 828 |
<tr> |
| 829 |
<td colspan="1"> |
| 830 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 831 |
<b>start</b> |
| 832 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 833 |
<div style="font-size: small"> |
| 834 |
<span style="color: purple">string</span> |
| 835 |
</div> |
| 836 |
</td> |
| 837 |
<td>always</td> |
| 838 |
<td> |
| 839 |
<div>The time the job started</div> |
| 840 |
<br/> |
| 841 |
<div style="font-size: smaller"><b>Sample:</b></div> |
| 842 |
<div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">2016-11-16 10:38:15.126146</div> |
| 843 |
</td> |
| 844 |
</tr> |
| 845 |
</table> |
| 846 |
<br/><br/> |
| 847 |
|
| 848 |
|
| 849 |
Status |
| 850 |
------ |
| 851 |
|
| 852 |
|
| 853 |
Authors |
| 854 |
~~~~~~~ |
| 855 |
|
| 856 |
- Peter Sprygada (@privateip) |