Debian Codegraph @

ansible_collections/cisco/ios/docs/cisco.ios.ios_vxlan_vtep_module.rst

raw
1 .. _cisco.ios.ios_vxlan_vtep_module:
2
3
4 ************************
5 cisco.ios.ios_vxlan_vtep
6 ************************
7
8 **Resource module to configure VXLAN VTEP interface.**
9
10
11 Version added: 5.3.0
12
13 .. contents::
14 :local:
15 :depth: 1
16
17
18 Synopsis
19 --------
20 - This module provides declarative management of VXLAN VTEP interface on Cisco IOS network devices.
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="7">Parameter</th>
33 <th>Choices/<font color="blue">Defaults</font></th>
34 <th width="100%">Comments</th>
35 </tr>
36 <tr>
37 <td colspan="7">
38 <div class="ansibleOptionAnchor" id="parameter-"></div>
39 <b>config</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>A dictionary of VXLAN VTEP interface option</div>
50 </td>
51 </tr>
52 <tr>
53 <td class="elbow-placeholder"></td>
54 <td colspan="6">
55 <div class="ansibleOptionAnchor" id="parameter-"></div>
56 <b>host_reachability_bgp</b>
57 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
58 <div style="font-size: small">
59 <span style="color: purple">boolean</span>
60 </div>
61 </td>
62 <td>
63 <ul style="margin: 0; padding: 0"><b>Choices:</b>
64 <li>no</li>
65 <li>yes</li>
66 </ul>
67 </td>
68 <td>
69 <div>Host reachability using EVPN protocol</div>
70 </td>
71 </tr>
72 <tr>
73 <td class="elbow-placeholder"></td>
74 <td colspan="6">
75 <div class="ansibleOptionAnchor" id="parameter-"></div>
76 <b>interface</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 / <span style="color: red">required</span>
81 </div>
82 </td>
83 <td>
84 </td>
85 <td>
86 <div>VXLAN VTEP interface</div>
87 </td>
88 </tr>
89 <tr>
90 <td class="elbow-placeholder"></td>
91 <td colspan="6">
92 <div class="ansibleOptionAnchor" id="parameter-"></div>
93 <b>member</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>Configure VNI member</div>
103 </td>
104 </tr>
105 <tr>
106 <td class="elbow-placeholder"></td>
107 <td class="elbow-placeholder"></td>
108 <td colspan="5">
109 <div class="ansibleOptionAnchor" id="parameter-"></div>
110 <b>vni</b>
111 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
112 <div style="font-size: small">
113 <span style="color: purple">dictionary</span>
114 </div>
115 </td>
116 <td>
117 </td>
118 <td>
119 <div>Configure VNI information</div>
120 </td>
121 </tr>
122 <tr>
123 <td class="elbow-placeholder"></td>
124 <td class="elbow-placeholder"></td>
125 <td class="elbow-placeholder"></td>
126 <td colspan="4">
127 <div class="ansibleOptionAnchor" id="parameter-"></div>
128 <b>l2vni</b>
129 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
130 <div style="font-size: small">
131 <span style="color: purple">list</span>
132 / <span style="color: purple">elements=dictionary</span>
133 </div>
134 </td>
135 <td>
136 </td>
137 <td>
138 <div>Associates L2VNI with the VXLAN VTEP interface</div>
139 </td>
140 </tr>
141 <tr>
142 <td class="elbow-placeholder"></td>
143 <td class="elbow-placeholder"></td>
144 <td class="elbow-placeholder"></td>
145 <td class="elbow-placeholder"></td>
146 <td colspan="3">
147 <div class="ansibleOptionAnchor" id="parameter-"></div>
148 <b>replication</b>
149 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
150 <div style="font-size: small">
151 <span style="color: purple">dictionary</span>
152 </div>
153 </td>
154 <td>
155 </td>
156 <td>
157 <div>Replication type for the L2VNI</div>
158 </td>
159 </tr>
160 <tr>
161 <td class="elbow-placeholder"></td>
162 <td class="elbow-placeholder"></td>
163 <td class="elbow-placeholder"></td>
164 <td class="elbow-placeholder"></td>
165 <td class="elbow-placeholder"></td>
166 <td colspan="2">
167 <div class="ansibleOptionAnchor" id="parameter-"></div>
168 <b>mcast_group</b>
169 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
170 <div style="font-size: small">
171 <span style="color: purple">dictionary</span>
172 </div>
173 </td>
174 <td>
175 </td>
176 <td>
177 <div>Configure multicast group for VN<em>s</em></div>
178 </td>
179 </tr>
180 <tr>
181 <td class="elbow-placeholder"></td>
182 <td class="elbow-placeholder"></td>
183 <td class="elbow-placeholder"></td>
184 <td class="elbow-placeholder"></td>
185 <td class="elbow-placeholder"></td>
186 <td class="elbow-placeholder"></td>
187 <td colspan="1">
188 <div class="ansibleOptionAnchor" id="parameter-"></div>
189 <b>ipv4</b>
190 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
191 <div style="font-size: small">
192 <span style="color: purple">string</span>
193 </div>
194 </td>
195 <td>
196 </td>
197 <td>
198 <div>IPv4 multicast group</div>
199 </td>
200 </tr>
201 <tr>
202 <td class="elbow-placeholder"></td>
203 <td class="elbow-placeholder"></td>
204 <td class="elbow-placeholder"></td>
205 <td class="elbow-placeholder"></td>
206 <td class="elbow-placeholder"></td>
207 <td class="elbow-placeholder"></td>
208 <td colspan="1">
209 <div class="ansibleOptionAnchor" id="parameter-"></div>
210 <b>ipv6</b>
211 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
212 <div style="font-size: small">
213 <span style="color: purple">string</span>
214 </div>
215 </td>
216 <td>
217 </td>
218 <td>
219 <div>IPv6 multicast group</div>
220 </td>
221 </tr>
222
223 <tr>
224 <td class="elbow-placeholder"></td>
225 <td class="elbow-placeholder"></td>
226 <td class="elbow-placeholder"></td>
227 <td class="elbow-placeholder"></td>
228 <td class="elbow-placeholder"></td>
229 <td colspan="2">
230 <div class="ansibleOptionAnchor" id="parameter-"></div>
231 <b>type</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 <ul style="margin: 0; padding: 0"><b>Choices:</b>
239 <li>ingress</li>
240 <li>static</li>
241 </ul>
242 </td>
243 <td>
244 <div>Replication type</div>
245 </td>
246 </tr>
247
248 <tr>
249 <td class="elbow-placeholder"></td>
250 <td class="elbow-placeholder"></td>
251 <td class="elbow-placeholder"></td>
252 <td class="elbow-placeholder"></td>
253 <td colspan="3">
254 <div class="ansibleOptionAnchor" id="parameter-"></div>
255 <b>vni</b>
256 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
257 <div style="font-size: small">
258 <span style="color: purple">integer</span>
259 </div>
260 </td>
261 <td>
262 </td>
263 <td>
264 <div>VNI number</div>
265 </td>
266 </tr>
267
268 <tr>
269 <td class="elbow-placeholder"></td>
270 <td class="elbow-placeholder"></td>
271 <td class="elbow-placeholder"></td>
272 <td colspan="4">
273 <div class="ansibleOptionAnchor" id="parameter-"></div>
274 <b>l3vni</b>
275 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
276 <div style="font-size: small">
277 <span style="color: purple">list</span>
278 / <span style="color: purple">elements=dictionary</span>
279 </div>
280 </td>
281 <td>
282 </td>
283 <td>
284 <div>Associates L3VNI with the VXLAN VTEP interface</div>
285 </td>
286 </tr>
287 <tr>
288 <td class="elbow-placeholder"></td>
289 <td class="elbow-placeholder"></td>
290 <td class="elbow-placeholder"></td>
291 <td class="elbow-placeholder"></td>
292 <td colspan="3">
293 <div class="ansibleOptionAnchor" id="parameter-"></div>
294 <b>vni</b>
295 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
296 <div style="font-size: small">
297 <span style="color: purple">integer</span>
298 </div>
299 </td>
300 <td>
301 </td>
302 <td>
303 <div>VNI number</div>
304 </td>
305 </tr>
306 <tr>
307 <td class="elbow-placeholder"></td>
308 <td class="elbow-placeholder"></td>
309 <td class="elbow-placeholder"></td>
310 <td class="elbow-placeholder"></td>
311 <td colspan="3">
312 <div class="ansibleOptionAnchor" id="parameter-"></div>
313 <b>vrf</b>
314 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
315 <div style="font-size: small">
316 <span style="color: purple">string</span>
317 </div>
318 </td>
319 <td>
320 </td>
321 <td>
322 <div>VRF name of the L3VNI</div>
323 </td>
324 </tr>
325
326
327
328 <tr>
329 <td class="elbow-placeholder"></td>
330 <td colspan="6">
331 <div class="ansibleOptionAnchor" id="parameter-"></div>
332 <b>source_interface</b>
333 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
334 <div style="font-size: small">
335 <span style="color: purple">string</span>
336 </div>
337 </td>
338 <td>
339 </td>
340 <td>
341 <div>Source interface for the VXLAN VTEP interface</div>
342 </td>
343 </tr>
344
345 <tr>
346 <td colspan="7">
347 <div class="ansibleOptionAnchor" id="parameter-"></div>
348 <b>running_config</b>
349 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
350 <div style="font-size: small">
351 <span style="color: purple">string</span>
352 </div>
353 </td>
354 <td>
355 </td>
356 <td>
357 <div>This option is used only with state <em>parsed</em>.</div>
358 <div>The value of this option should be the output received from the IOS device by executing the command <b>show running-config | section ^interface nve</b>.</div>
359 <div>The state <em>parsed</em> reads the configuration from <code>running_config</code> option and transforms it into Ansible structured data as per the resource module&#x27;s argspec and the value is then returned in the <em>parsed</em> key within the result.</div>
360 </td>
361 </tr>
362 <tr>
363 <td colspan="7">
364 <div class="ansibleOptionAnchor" id="parameter-"></div>
365 <b>state</b>
366 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
367 <div style="font-size: small">
368 <span style="color: purple">string</span>
369 </div>
370 </td>
371 <td>
372 <ul style="margin: 0; padding: 0"><b>Choices:</b>
373 <li><div style="color: blue"><b>merged</b>&nbsp;&larr;</div></li>
374 <li>replaced</li>
375 <li>overridden</li>
376 <li>deleted</li>
377 <li>rendered</li>
378 <li>gathered</li>
379 <li>parsed</li>
380 </ul>
381 </td>
382 <td>
383 <div>The state the configuration should be left in</div>
384 </td>
385 </tr>
386 </table>
387 <br/>
388
389
390 Notes
391 -----
392
393 .. note::
394 - Tested against Cisco IOS-XE device with Version 17.13.01 on Cat9k on CML.
395 - This module works with connection ``network_cli``. See https://docs.ansible.com/ansible/latest/network/user_guide/platform_ios.html
396
397
398
399 Examples
400 --------
401
402 .. code-block:: yaml
403
404 # Using state merged
405
406 # Before state:
407 # -------------
408 # interface nve1
409 # no ip address
410 # source-interface Loopback1
411 # host-reachability protocol bgp
412 # member vni 10101 mcast-group 225.0.0.101
413 # member vni 10102 ingress-replication
414 # member vni 50901 vrf green
415 # member vni 10201 mcast-group 225.0.0.101
416 # member vni 10202 ingress-replication
417 # member vni 50902 vrf blue
418
419 # - name: Merge the provided configuration with the device configuration
420 # cisco.ios.ios_vxlan_vtep:
421 # config:
422 # - interface: nve1
423 # source_interface: loopback2
424 # member:
425 # vni:
426 # l2vni:
427 # - vni: 10101
428 # replication:
429 # type: ingress
430 # - vni: 10201
431 # replication:
432 # type: static
433 # mcast_group:
434 # ipv4: 225.0.0.101
435 # ipv6: FF0E:225::101
436 # l3vni:
437 # - vni: 50901
438 # vrf: blue
439 # state: merged
440
441 # Commands Fired:
442 # ---------------
443 # "commands": [
444 # "interface nve1",
445 # "source-interface loopback2",
446 # "no member vni 10101 mcast-group 225.0.0.101",
447 # "member vni 10101 ingress-replication",
448 # "no member vni 10201 mcast-group 225.0.0.101",
449 # "member vni 10201 mcast-group 225.0.0.101 FF0E:225::101",
450 # "no member vni 50901 vrf green",
451 # "no member vni 50902 vrf blue",
452 # "member vni 50901 vrf blue"
453 # ],
454
455 # After state:
456 # ------------
457 # interface nve1
458 # no ip address
459 # source-interface Loopback2
460 # host-reachability protocol bgp
461 # member vni 10102 ingress-replication
462 # member vni 10202 ingress-replication
463 # member vni 10101 ingress-replication
464 # member vni 10201 mcast-group 225.0.0.101 FF0E:225::101
465 # member vni 50901 vrf blue
466
467 # Using state replaced
468
469 # Before state:
470 # -------------
471 # interface nve1
472 # no ip address
473 # source-interface Loopback2
474 # host-reachability protocol bgp
475 # member vni 10102 ingress-replication
476 # member vni 10202 ingress-replication
477 # member vni 10101 ingress-replication
478 # member vni 10201 mcast-group 225.0.0.101 FF0E:225::101
479 # member vni 50901 vrf blue
480
481 # - name: Replaces the device configuration with the provided configuration
482 # cisco.ios.ios_vxlan_vtep:
483 # config:
484 # - interface: nve1
485 # source_interface: Loopback2
486 # member:
487 # vni:
488 # l2vni:
489 # - vni: 10101
490 # replication:
491 # type: static
492 # mcast_group:
493 # ipv6: FF0E:225::101
494 # - vni: 10201
495 # replication:
496 # type: static
497 # mcast_group:
498 # ipv6: FF0E:225::102
499 # state: replaced
500
501 # Commands Fired:
502 # ---------------
503 # "commands": [
504 # "interface nve1",
505 # "no member vni 10101 ingress-replication",
506 # "member vni 10101 mcast-group FF0E:225::101",
507 # "no member vni 10201 mcast-group 225.0.0.101 FF0E:225::101",
508 # "member vni 10201 mcast-group FF0E:225::102",
509 # "no member vni 10102 ingress-replication",
510 # "no member vni 10202 ingress-replication",
511 # "no member vni 50901 vrf blue"
512 # ],
513
514 # After state:
515 # ------------
516 # interface nve1
517 # no ip address
518 # source-interface Loopback2
519 # host-reachability protocol bgp
520 # member vni 10101 mcast-group FF0E:225::101
521 # member vni 10201 mcast-group FF0E:225::102
522
523 # Using state Deleted
524
525 # Before state:
526 # -------------
527 # interface nve1
528 # no ip address
529 # source-interface Loopback2
530 # host-reachability protocol bgp
531 # member vni 10101 mcast-group FF0E:225::101
532 # member vni 10201 mcast-group FF0E:225::102
533
534 # - name: "Delete VXLAN VTEP interface"
535 # cisco.ios.ios_vxlan_vtep:
536 # config:
537 # - interface: nve1
538 # state: deleted
539
540 # Commands Fired:
541 # ---------------
542 # "commands": [
543 # "interface nve1",
544 # "no source-interface Loopback2",
545 # "no host-reachability protocol bgp",
546 # "no member vni 10101 mcast-group FF0E:225::101",
547 # "no member vni 10201 mcast-group FF0E:225::102"
548 # ],
549
550 # After state:
551 # -------------
552 # interface nve1
553 # no ip address
554
555 # Using state Deleted with member VNIs
556
557 # Before state:
558 # -------------
559 # interface nve1
560 # no ip address
561 # source-interface Loopback2
562 # host-reachability protocol bgp
563 # member vni 10101 mcast-group FF0E:225::101
564 # member vni 10102 mcast-group 225.0.0.101
565 # member vni 10201 mcast-group 225.0.0.101 FF0E:225::101
566
567 # - name: "Delete VXLAN VTEP interface with member VNIs"
568 # cisco.ios.ios_vxlan_vtep:
569 # config:
570 # - interface: nve1
571 # source_interface: Loopback2
572 # member:
573 # vni:
574 # l2vni:
575 # - vni: 10101
576 # - vni: 10102
577 # state: deleted
578
579 # Commands Fired:
580 # ---------------
581 # "commands": [
582 # "interface nve1",
583 # "no member vni 10101 mcast-group FF0E:225::101",
584 # "no member vni 10102 mcast-group 225.0.0.101"
585 # ],
586
587 # After state:
588 # -------------
589 # interface nve1
590 # no ip address
591 # source-interface Loopback2
592 # host-reachability protocol bgp
593 # member vni 10201 mcast-group 225.0.0.101 FF0E:225::101
594
595 # Using state Deleted with no config
596
597 # Before state:
598 # -------------
599 # interface nve1
600 # no ip address
601 # source-interface Loopback2
602 # host-reachability protocol bgp
603 # member vni 10101 mcast-group FF0E:225::101
604 # member vni 10201 mcast-group FF0E:225::102
605
606 # - name: "Delete VXLAN VTEP interface with no config"
607 # cisco.ios.ios_vxlan_vtep:
608 # state: deleted
609
610 # Commands Fired:
611 # ---------------
612 # "commands": [
613 # "interface nve1",
614 # "no source-interface Loopback2",
615 # "no host-reachability protocol bgp",
616 # "no member vni 10101 mcast-group FF0E:225::101",
617 # "no member vni 10201 mcast-group FF0E:225::102"
618 # ],
619
620 # After state:
621 # -------------
622 # interface nve1
623 # no ip address
624
625
626
627 Return Values
628 -------------
629 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:
630
631 .. raw:: html
632
633 <table border=0 cellpadding=0 class="documentation-table">
634 <tr>
635 <th colspan="1">Key</th>
636 <th>Returned</th>
637 <th width="100%">Description</th>
638 </tr>
639 <tr>
640 <td colspan="1">
641 <div class="ansibleOptionAnchor" id="return-"></div>
642 <b>after</b>
643 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
644 <div style="font-size: small">
645 <span style="color: purple">dictionary</span>
646 </div>
647 </td>
648 <td>when changed</td>
649 <td>
650 <div>The resulting configuration after module execution.</div>
651 <br/>
652 <div style="font-size: smaller"><b>Sample:</b></div>
653 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">This output will always be in the same format as the module argspec.</div>
654 </td>
655 </tr>
656 <tr>
657 <td colspan="1">
658 <div class="ansibleOptionAnchor" id="return-"></div>
659 <b>before</b>
660 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
661 <div style="font-size: small">
662 <span style="color: purple">dictionary</span>
663 </div>
664 </td>
665 <td>when <em>state</em> is <code>merged</code>, <code>replaced</code>, <code>overridden</code>, <code>deleted</code> or <code>purged</code></td>
666 <td>
667 <div>The configuration prior to the module execution.</div>
668 <br/>
669 <div style="font-size: smaller"><b>Sample:</b></div>
670 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">This output will always be in the same format as the module argspec.</div>
671 </td>
672 </tr>
673 <tr>
674 <td colspan="1">
675 <div class="ansibleOptionAnchor" id="return-"></div>
676 <b>commands</b>
677 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
678 <div style="font-size: small">
679 <span style="color: purple">list</span>
680 </div>
681 </td>
682 <td>when <em>state</em> is <code>merged</code>, <code>replaced</code>, <code>overridden</code>, <code>deleted</code> or <code>purged</code></td>
683 <td>
684 <div>The set of commands pushed to the remote device.</div>
685 <br/>
686 <div style="font-size: smaller"><b>Sample:</b></div>
687 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">[&#x27;interface nve1&#x27;, &#x27;source-interface Loopback1&#x27;, &#x27;host-reachability protocol bgp&#x27;, &#x27;member vni 10101 ingress-replication&#x27;]</div>
688 </td>
689 </tr>
690 </table>
691 <br/><br/>
692
693
694 Status
695 ------
696
697
698 Authors
699 ~~~~~~~
700
701 - Padmini Priyadarshini Sivaraj (@PadminiSivaraj)