Debian Codegraph @

ansible_collections/dellemc/enterprise_sonic/docs/dellemc.enterprise_sonic.sonic_route_maps_module.rst

raw
1 .. _dellemc.enterprise_sonic.sonic_route_maps_module:
2
3
4 *****************************************
5 dellemc.enterprise_sonic.sonic_route_maps
6 *****************************************
7
8 **route map configuration handling for SONiC**
9
10
11 Version added: 2.1.0
12
13 .. contents::
14 :local:
15 :depth: 1
16
17
18 Synopsis
19 --------
20 - This module provides configuration management for route map parameters on devices running SONiC.
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>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>Specifies a list of route map configuration dictionaries</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>action</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>permit</li>
65 <li>deny</li>
66 </ul>
67 </td>
68 <td>
69 <div>action type for the route map (permit or deny)</div>
70 <div>This value is required for creation and modification of a route</div>
71 <div>map or route map attributes as well as for deletion of route map</div>
72 <div>attributes. It can be omitted only when requesting deletion of a</div>
73 <div>route map statement or all route map statements for a given route</div>
74 <div>map map_name.</div>
75 </td>
76 </tr>
77 <tr>
78 <td class="elbow-placeholder"></td>
79 <td colspan="4">
80 <div class="ansibleOptionAnchor" id="parameter-"></div>
81 <b>call</b>
82 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
83 <div style="font-size: small">
84 <span style="color: purple">string</span>
85 </div>
86 </td>
87 <td>
88 </td>
89 <td>
90 <div>Name of a route map to jump to after executing &#x27;match&#x27; and &#x27;set&#x27;</div>
91 <div>statements for the current route map.</div>
92 </td>
93 </tr>
94 <tr>
95 <td class="elbow-placeholder"></td>
96 <td colspan="4">
97 <div class="ansibleOptionAnchor" id="parameter-"></div>
98 <b>map_name</b>
99 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
100 <div style="font-size: small">
101 <span style="color: purple">string</span>
102 / <span style="color: red">required</span>
103 </div>
104 </td>
105 <td>
106 </td>
107 <td>
108 <div>Name of a route map</div>
109 </td>
110 </tr>
111 <tr>
112 <td class="elbow-placeholder"></td>
113 <td colspan="4">
114 <div class="ansibleOptionAnchor" id="parameter-"></div>
115 <b>match</b>
116 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
117 <div style="font-size: small">
118 <span style="color: purple">dictionary</span>
119 </div>
120 </td>
121 <td>
122 </td>
123 <td>
124 <div>Criteria for matching the route map to a route</div>
125 </td>
126 </tr>
127 <tr>
128 <td class="elbow-placeholder"></td>
129 <td class="elbow-placeholder"></td>
130 <td colspan="3">
131 <div class="ansibleOptionAnchor" id="parameter-"></div>
132 <b>as_path</b>
133 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
134 <div style="font-size: small">
135 <span style="color: purple">string</span>
136 </div>
137 </td>
138 <td>
139 </td>
140 <td>
141 <div>Name of a configured BGP AS path list to be checked for</div>
142 <div>a match with the target route</div>
143 </td>
144 </tr>
145 <tr>
146 <td class="elbow-placeholder"></td>
147 <td class="elbow-placeholder"></td>
148 <td colspan="3">
149 <div class="ansibleOptionAnchor" id="parameter-"></div>
150 <b>community</b>
151 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
152 <div style="font-size: small">
153 <span style="color: purple">string</span>
154 </div>
155 </td>
156 <td>
157 </td>
158 <td>
159 <div>Name of a configured BGP &quot;community&quot; to be checked for</div>
160 <div>a match with the target route</div>
161 </td>
162 </tr>
163 <tr>
164 <td class="elbow-placeholder"></td>
165 <td class="elbow-placeholder"></td>
166 <td colspan="3">
167 <div class="ansibleOptionAnchor" id="parameter-"></div>
168 <b>evpn</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>BGP Ethernet Virtual Private Network to be checked for</div>
178 <div>a match with the target route</div>
179 </td>
180 </tr>
181 <tr>
182 <td class="elbow-placeholder"></td>
183 <td class="elbow-placeholder"></td>
184 <td class="elbow-placeholder"></td>
185 <td colspan="2">
186 <div class="ansibleOptionAnchor" id="parameter-"></div>
187 <b>default_route</b>
188 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
189 <div style="font-size: small">
190 <span style="color: purple">boolean</span>
191 </div>
192 </td>
193 <td>
194 <ul style="margin: 0; padding: 0"><b>Choices:</b>
195 <li>no</li>
196 <li>yes</li>
197 </ul>
198 </td>
199 <td>
200 <div>Default EVPN type-5 route</div>
201 </td>
202 </tr>
203 <tr>
204 <td class="elbow-placeholder"></td>
205 <td class="elbow-placeholder"></td>
206 <td class="elbow-placeholder"></td>
207 <td colspan="2">
208 <div class="ansibleOptionAnchor" id="parameter-"></div>
209 <b>route_type</b>
210 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
211 <div style="font-size: small">
212 <span style="color: purple">string</span>
213 </div>
214 </td>
215 <td>
216 <ul style="margin: 0; padding: 0"><b>Choices:</b>
217 <li>macip</li>
218 <li>multicast</li>
219 <li>prefix</li>
220 </ul>
221 </td>
222 <td>
223 <div>Non-default route type: One of the following:</div>
224 <div>mac-ip route, EVPN Type 3 Inclusive Multicast Ethernet</div>
225 <div>Tag (IMET) route, or prefix route</div>
226 </td>
227 </tr>
228 <tr>
229 <td class="elbow-placeholder"></td>
230 <td class="elbow-placeholder"></td>
231 <td class="elbow-placeholder"></td>
232 <td colspan="2">
233 <div class="ansibleOptionAnchor" id="parameter-"></div>
234 <b>vni</b>
235 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
236 <div style="font-size: small">
237 <span style="color: purple">integer</span>
238 </div>
239 </td>
240 <td>
241 </td>
242 <td>
243 <div>VNI ID to be checked for a match; specified by a value in the</div>
244 <div>range 1-16777215</div>
245 </td>
246 </tr>
247
248 <tr>
249 <td class="elbow-placeholder"></td>
250 <td class="elbow-placeholder"></td>
251 <td colspan="3">
252 <div class="ansibleOptionAnchor" id="parameter-"></div>
253 <b>ext_comm</b>
254 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
255 <div style="font-size: small">
256 <span style="color: purple">string</span>
257 </div>
258 </td>
259 <td>
260 </td>
261 <td>
262 <div>Name of a configured BGP &#x27;extended community&#x27; to be checked for</div>
263 <div>a match with the target route</div>
264 </td>
265 </tr>
266 <tr>
267 <td class="elbow-placeholder"></td>
268 <td class="elbow-placeholder"></td>
269 <td colspan="3">
270 <div class="ansibleOptionAnchor" id="parameter-"></div>
271 <b>interface</b>
272 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
273 <div style="font-size: small">
274 <span style="color: purple">string</span>
275 </div>
276 </td>
277 <td>
278 </td>
279 <td>
280 <div>Next hop interface name (type and number) to be checked for a</div>
281 <div>match with the target route. The interface type can be any</div>
282 <div>of the following; &#x27;Ethernet/Eth&#x27; interface or sub-interface,</div>
283 <div>&#x27;Loopback&#x27; interface, &#x27;PortChannel&#x27; interface or</div>
284 <div>sub-interface, &#x27;Vlan&#x27; interface.</div>
285 </td>
286 </tr>
287 <tr>
288 <td class="elbow-placeholder"></td>
289 <td class="elbow-placeholder"></td>
290 <td colspan="3">
291 <div class="ansibleOptionAnchor" id="parameter-"></div>
292 <b>ip</b>
293 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
294 <div style="font-size: small">
295 <span style="color: purple">dictionary</span>
296 </div>
297 </td>
298 <td>
299 </td>
300 <td>
301 <div>IP addresses or IP next hops to be checked for a match with the</div>
302 <div>target route</div>
303 </td>
304 </tr>
305 <tr>
306 <td class="elbow-placeholder"></td>
307 <td class="elbow-placeholder"></td>
308 <td class="elbow-placeholder"></td>
309 <td colspan="2">
310 <div class="ansibleOptionAnchor" id="parameter-"></div>
311 <b>address</b>
312 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
313 <div style="font-size: small">
314 <span style="color: purple">string</span>
315 </div>
316 </td>
317 <td>
318 </td>
319 <td>
320 <div>name of an IPv4 prefix list containing a list of address</div>
321 <div>prefixes to be checked for a match with the target route</div>
322 </td>
323 </tr>
324 <tr>
325 <td class="elbow-placeholder"></td>
326 <td class="elbow-placeholder"></td>
327 <td class="elbow-placeholder"></td>
328 <td colspan="2">
329 <div class="ansibleOptionAnchor" id="parameter-"></div>
330 <b>next_hop</b>
331 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
332 <div style="font-size: small">
333 <span style="color: purple">string</span>
334 </div>
335 </td>
336 <td>
337 </td>
338 <td>
339 <div>name of a prefix list containing a list of next-hop</div>
340 <div>prefixes to be checked for a match with the target route</div>
341 </td>
342 </tr>
343
344 <tr>
345 <td class="elbow-placeholder"></td>
346 <td class="elbow-placeholder"></td>
347 <td colspan="3">
348 <div class="ansibleOptionAnchor" id="parameter-"></div>
349 <b>ipv6</b>
350 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
351 <div style="font-size: small">
352 <span style="color: purple">dictionary</span>
353 </div>
354 </td>
355 <td>
356 </td>
357 <td>
358 <div>IPv6 addresses to be checked for a match with the</div>
359 <div>target route</div>
360 </td>
361 </tr>
362 <tr>
363 <td class="elbow-placeholder"></td>
364 <td class="elbow-placeholder"></td>
365 <td class="elbow-placeholder"></td>
366 <td colspan="2">
367 <div class="ansibleOptionAnchor" id="parameter-"></div>
368 <b>address</b>
369 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
370 <div style="font-size: small">
371 <span style="color: purple">string</span>
372 / <span style="color: red">required</span>
373 </div>
374 </td>
375 <td>
376 </td>
377 <td>
378 <div>name of an IPv6 prefix list containing a list of address</div>
379 <div>prefixes to be checked for a match with the target route</div>
380 </td>
381 </tr>
382
383 <tr>
384 <td class="elbow-placeholder"></td>
385 <td class="elbow-placeholder"></td>
386 <td colspan="3">
387 <div class="ansibleOptionAnchor" id="parameter-"></div>
388 <b>local_preference</b>
389 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
390 <div style="font-size: small">
391 <span style="color: purple">integer</span>
392 </div>
393 </td>
394 <td>
395 </td>
396 <td>
397 <div>local-preference value to be checked for a match with the</div>
398 <div>target route. This is a value in the range 0-4294967295.</div>
399 </td>
400 </tr>
401 <tr>
402 <td class="elbow-placeholder"></td>
403 <td class="elbow-placeholder"></td>
404 <td colspan="3">
405 <div class="ansibleOptionAnchor" id="parameter-"></div>
406 <b>metric</b>
407 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
408 <div style="font-size: small">
409 <span style="color: purple">integer</span>
410 </div>
411 </td>
412 <td>
413 </td>
414 <td>
415 <div>metric value to be checked for a match with the target route.</div>
416 <div>This is a value in the range 0-4294967295.</div>
417 </td>
418 </tr>
419 <tr>
420 <td class="elbow-placeholder"></td>
421 <td class="elbow-placeholder"></td>
422 <td colspan="3">
423 <div class="ansibleOptionAnchor" id="parameter-"></div>
424 <b>origin</b>
425 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
426 <div style="font-size: small">
427 <span style="color: purple">string</span>
428 </div>
429 </td>
430 <td>
431 <ul style="margin: 0; padding: 0"><b>Choices:</b>
432 <li>egp</li>
433 <li>igp</li>
434 <li>incomplete</li>
435 </ul>
436 </td>
437 <td>
438 <div>BGP origin to be checked for a match with the target route</div>
439 </td>
440 </tr>
441 <tr>
442 <td class="elbow-placeholder"></td>
443 <td class="elbow-placeholder"></td>
444 <td colspan="3">
445 <div class="ansibleOptionAnchor" id="parameter-"></div>
446 <b>peer</b>
447 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
448 <div style="font-size: small">
449 <span style="color: purple">dictionary</span>
450 </div>
451 </td>
452 <td>
453 </td>
454 <td>
455 <div>BGP routing peer/neighbor required for a matching route</div>
456 <div><em>ip</em>, <em>ipv6</em>, and <em>interface</em> are mutually exclusive.</div>
457 </td>
458 </tr>
459 <tr>
460 <td class="elbow-placeholder"></td>
461 <td class="elbow-placeholder"></td>
462 <td class="elbow-placeholder"></td>
463 <td colspan="2">
464 <div class="ansibleOptionAnchor" id="parameter-"></div>
465 <b>interface</b>
466 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
467 <div style="font-size: small">
468 <span style="color: purple">string</span>
469 </div>
470 </td>
471 <td>
472 </td>
473 <td>
474 <div>Name (type and number) of a BGP peer interface</div>
475 <div>Allowed interface types are Ethernet or Eth (depending</div>
476 <div>on the configured interface-naming mode),</div>
477 <div>Vlan, and Portchannel</div>
478 </td>
479 </tr>
480 <tr>
481 <td class="elbow-placeholder"></td>
482 <td class="elbow-placeholder"></td>
483 <td class="elbow-placeholder"></td>
484 <td colspan="2">
485 <div class="ansibleOptionAnchor" id="parameter-"></div>
486 <b>ip</b>
487 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
488 <div style="font-size: small">
489 <span style="color: purple">string</span>
490 </div>
491 </td>
492 <td>
493 </td>
494 <td>
495 <div>IPv4 address of a BGP peer</div>
496 </td>
497 </tr>
498 <tr>
499 <td class="elbow-placeholder"></td>
500 <td class="elbow-placeholder"></td>
501 <td class="elbow-placeholder"></td>
502 <td colspan="2">
503 <div class="ansibleOptionAnchor" id="parameter-"></div>
504 <b>ipv6</b>
505 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
506 <div style="font-size: small">
507 <span style="color: purple">string</span>
508 </div>
509 </td>
510 <td>
511 </td>
512 <td>
513 <div>IPv6 address of a BGP peer</div>
514 </td>
515 </tr>
516
517 <tr>
518 <td class="elbow-placeholder"></td>
519 <td class="elbow-placeholder"></td>
520 <td colspan="3">
521 <div class="ansibleOptionAnchor" id="parameter-"></div>
522 <b>source_protocol</b>
523 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
524 <div style="font-size: small">
525 <span style="color: purple">string</span>
526 </div>
527 </td>
528 <td>
529 <ul style="margin: 0; padding: 0"><b>Choices:</b>
530 <li>bgp</li>
531 <li>connected</li>
532 <li>ospf</li>
533 <li>static</li>
534 </ul>
535 </td>
536 <td>
537 <div>Source protocol required for a matching route</div>
538 </td>
539 </tr>
540 <tr>
541 <td class="elbow-placeholder"></td>
542 <td class="elbow-placeholder"></td>
543 <td colspan="3">
544 <div class="ansibleOptionAnchor" id="parameter-"></div>
545 <b>source_vrf</b>
546 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
547 <div style="font-size: small">
548 <span style="color: purple">string</span>
549 </div>
550 </td>
551 <td>
552 </td>
553 <td>
554 <div>Name of the source VRF required for a matching route</div>
555 </td>
556 </tr>
557 <tr>
558 <td class="elbow-placeholder"></td>
559 <td class="elbow-placeholder"></td>
560 <td colspan="3">
561 <div class="ansibleOptionAnchor" id="parameter-"></div>
562 <b>tag</b>
563 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
564 <div style="font-size: small">
565 <span style="color: purple">integer</span>
566 </div>
567 </td>
568 <td>
569 </td>
570 <td>
571 <div>Tag value required for a matching route</div>
572 <div>The value must be in the range 1-4294967295</div>
573 </td>
574 </tr>
575
576 <tr>
577 <td class="elbow-placeholder"></td>
578 <td colspan="4">
579 <div class="ansibleOptionAnchor" id="parameter-"></div>
580 <b>sequence_num</b>
581 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
582 <div style="font-size: small">
583 <span style="color: purple">integer</span>
584 </div>
585 </td>
586 <td>
587 </td>
588 <td>
589 <div>unique number in the range 1-66535 to specify priority of the map</div>
590 <div>This value is required for creation and modification of a route</div>
591 <div>map or route map attributes as well as for deletion of route map</div>
592 <div>attributes. It can be omitted only when requesting deletion of all</div>
593 <div>route map &quot;statements&quot; for a given route map &quot;map_name&quot;.</div>
594 </td>
595 </tr>
596 <tr>
597 <td class="elbow-placeholder"></td>
598 <td colspan="4">
599 <div class="ansibleOptionAnchor" id="parameter-"></div>
600 <b>set</b>
601 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
602 <div style="font-size: small">
603 <span style="color: purple">dictionary</span>
604 </div>
605 </td>
606 <td>
607 </td>
608 <td>
609 <div>Information to set into a matching route for re-distribution</div>
610 </td>
611 </tr>
612 <tr>
613 <td class="elbow-placeholder"></td>
614 <td class="elbow-placeholder"></td>
615 <td colspan="3">
616 <div class="ansibleOptionAnchor" id="parameter-"></div>
617 <b>ars_object</b>
618 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
619 <div style="font-size: small">
620 <span style="color: purple">string</span>
621 </div>
622 <div style="font-style: italic; font-size: small; color: darkgreen">added in 3.1.0</div>
623 </td>
624 <td>
625 </td>
626 <td>
627 <div>Adaptive Routing and Switching object</div>
628 </td>
629 </tr>
630 <tr>
631 <td class="elbow-placeholder"></td>
632 <td class="elbow-placeholder"></td>
633 <td colspan="3">
634 <div class="ansibleOptionAnchor" id="parameter-"></div>
635 <b>as_path_prepend</b>
636 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
637 <div style="font-size: small">
638 <span style="color: purple">string</span>
639 </div>
640 </td>
641 <td>
642 </td>
643 <td>
644 <div>String specifying a comma-separated list of AS-path numbers</div>
645 <div>to prepend to the BGP AS-path attribute in a matched route.</div>
646 <div>AS-path values in the list must be in the range</div>
647 <div>1-4294967295; for example, 2000,3000</div>
648 </td>
649 </tr>
650 <tr>
651 <td class="elbow-placeholder"></td>
652 <td class="elbow-placeholder"></td>
653 <td colspan="3">
654 <div class="ansibleOptionAnchor" id="parameter-"></div>
655 <b>comm_list_delete</b>
656 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
657 <div style="font-size: small">
658 <span style="color: purple">string</span>
659 </div>
660 </td>
661 <td>
662 </td>
663 <td>
664 <div>String specifying the name of a BGP community list containing</div>
665 <div>BGP Community values to be deleted from matching routes.</div>
666 </td>
667 </tr>
668 <tr>
669 <td class="elbow-placeholder"></td>
670 <td class="elbow-placeholder"></td>
671 <td colspan="3">
672 <div class="ansibleOptionAnchor" id="parameter-"></div>
673 <b>community</b>
674 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
675 <div style="font-size: small">
676 <span style="color: purple">dictionary</span>
677 </div>
678 </td>
679 <td>
680 </td>
681 <td>
682 <div>BGP community attributes to add to or replace the BGP</div>
683 <div>community attributes in a matching route. Specifying the</div>
684 <div>&#x27;additive&#x27; attribute is allowed only if one of</div>
685 <div>the other attributes (other than &#x27;none&#x27;) is specified.</div>
686 <div>It causes the specified &#x27;set community&#x27; attributes</div>
687 <div>to be added to the already existing community</div>
688 <div>attributes in the matching route. If the &#x27;additive&#x27; attribute</div>
689 <div>is not specified, the previously existing community attributes</div>
690 <div>in the matching route are replaced by the configured</div>
691 <div>&#x27;set community&#x27; attributes. Specifying a &#x27;set community&#x27; attribute</div>
692 <div>of &#x27;none&#x27; is mutually exclusive with setting of other community</div>
693 <div>attributes and causes any community attributes in the matching</div>
694 <div>route to be removed.</div>
695 </td>
696 </tr>
697 <tr>
698 <td class="elbow-placeholder"></td>
699 <td class="elbow-placeholder"></td>
700 <td class="elbow-placeholder"></td>
701 <td colspan="2">
702 <div class="ansibleOptionAnchor" id="parameter-"></div>
703 <b>community_attributes</b>
704 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
705 <div style="font-size: small">
706 <span style="color: purple">list</span>
707 / <span style="color: purple">elements=string</span>
708 </div>
709 </td>
710 <td>
711 <ul style="margin: 0; padding: 0"><b>Choices:</b>
712 <li>local_as</li>
713 <li>no_advertise</li>
714 <li>no_export</li>
715 <li>no_peer</li>
716 <li>additive</li>
717 <li>none</li>
718 </ul>
719 </td>
720 <td>
721 <div>A list of one or more BGP community attributes. The allowed</div>
722 <div>values are the following:</div>
723 <div>local_as</div>
724 <div>Do not send outside local AS (well-known community)</div>
725 <div>no_advertise</div>
726 <div>Do not advertise to any peer (well-known community)</div>
727 <div>no_export</div>
728 <div>Do not export to next AS (well-known community)</div>
729 <div>no_peer</div>
730 <div>The route does not need to be advertised to peers.</div>
731 <div>(Advertisement of the route can be suppressed based</div>
732 <div>on other criteria.)</div>
733 <div>additive</div>
734 <div>Add the configured &#x27;set community&#x27; attributes to</div>
735 <div>the matching route (if set to &#x27;true&#x27;); Previously existing</div>
736 <div>attributes in the matching route are, instead, replaced</div>
737 <div>by the configured attributes if this attribute is</div>
738 <div>not specified or if it is set to &#x27;false&#x27;.</div>
739 <div>none</div>
740 <div>Do not send any community attribute. This attribute</div>
741 <div>is mutually exclusive with all other &#x27;set community&#x27;</div>
742 <div>attributes. It causes all attributes to be removed</div>
743 <div>from the matching route.</div>
744 <div><em>none</em> is mutually exclusive with all of the other attributes:</div>
745 <div><em>local_as</em>, <em>no_advertise</em>, <em>no_export</em>, <em>no_peer</em>, <em>additive</em>,</div>
746 <div>and <em>additive</em>.</div>
747 </td>
748 </tr>
749 <tr>
750 <td class="elbow-placeholder"></td>
751 <td class="elbow-placeholder"></td>
752 <td class="elbow-placeholder"></td>
753 <td colspan="2">
754 <div class="ansibleOptionAnchor" id="parameter-"></div>
755 <b>community_number</b>
756 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
757 <div style="font-size: small">
758 <span style="color: purple">list</span>
759 / <span style="color: purple">elements=string</span>
760 </div>
761 </td>
762 <td>
763 </td>
764 <td>
765 <div>A list of one or more BGP community numbers in the</div>
766 <div>form AA:NN where AA and NN are integers in the range</div>
767 <div>0-65535.</div>
768 <div>Note: Each community number in the list must be enclosed</div>
769 <div>in double quotes to avoid YAML parsing errors due to the</div>
770 <div>list values containing an embedded &#x27;:&#x27; character.</div>
771 </td>
772 </tr>
773
774 <tr>
775 <td class="elbow-placeholder"></td>
776 <td class="elbow-placeholder"></td>
777 <td colspan="3">
778 <div class="ansibleOptionAnchor" id="parameter-"></div>
779 <b>extcommunity</b>
780 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
781 <div style="font-size: small">
782 <span style="color: purple">dictionary</span>
783 </div>
784 </td>
785 <td>
786 </td>
787 <td>
788 <div>BGP extended community attributes to set into a matching route.</div>
789 </td>
790 </tr>
791 <tr>
792 <td class="elbow-placeholder"></td>
793 <td class="elbow-placeholder"></td>
794 <td class="elbow-placeholder"></td>
795 <td colspan="2">
796 <div class="ansibleOptionAnchor" id="parameter-"></div>
797 <b>bandwidth</b>
798 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
799 <div style="font-size: small">
800 <span style="color: purple">dictionary</span>
801 </div>
802 <div style="font-style: italic; font-size: small; color: darkgreen">added in 3.1.0</div>
803 </td>
804 <td>
805 </td>
806 <td>
807 <div>Link bandwidth extended community</div>
808 </td>
809 </tr>
810 <tr>
811 <td class="elbow-placeholder"></td>
812 <td class="elbow-placeholder"></td>
813 <td class="elbow-placeholder"></td>
814 <td class="elbow-placeholder"></td>
815 <td colspan="1">
816 <div class="ansibleOptionAnchor" id="parameter-"></div>
817 <b>bandwidth_value</b>
818 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
819 <div style="font-size: small">
820 <span style="color: purple">string</span>
821 / <span style="color: red">required</span>
822 </div>
823 </td>
824 <td>
825 </td>
826 <td>
827 <div>Options are one of the following values</div>
828 <div>&lt;1..4294967295&gt; Cumulative bandwidth of all multipaths (outbound-only)</div>
829 <div>num-multipaths Internally computed bandwidth based on number of multipaths (outbound-only)</div>
830 </td>
831 </tr>
832 <tr>
833 <td class="elbow-placeholder"></td>
834 <td class="elbow-placeholder"></td>
835 <td class="elbow-placeholder"></td>
836 <td class="elbow-placeholder"></td>
837 <td colspan="1">
838 <div class="ansibleOptionAnchor" id="parameter-"></div>
839 <b>transitive_value</b>
840 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
841 <div style="font-size: small">
842 <span style="color: purple">boolean</span>
843 </div>
844 </td>
845 <td>
846 <ul style="margin: 0; padding: 0"><b>Choices:</b>
847 <li>no</li>
848 <li>yes</li>
849 </ul>
850 </td>
851 <td>
852 <div>The operational default is false if this option is not specified.</div>
853 <div>True for transitive, false for non-transitive. If true, include the</div>
854 <div>link bandwidth extcommunity in route advertisements sent to</div>
855 <div>neighbors across AS boundaries (eBGP neighbors). If false,</div>
856 <div>drop the link bandwidth extcommunity from route advertisements</div>
857 <div>sent across AS boundaries.</div>
858 </td>
859 </tr>
860
861 <tr>
862 <td class="elbow-placeholder"></td>
863 <td class="elbow-placeholder"></td>
864 <td class="elbow-placeholder"></td>
865 <td colspan="2">
866 <div class="ansibleOptionAnchor" id="parameter-"></div>
867 <b>rt</b>
868 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
869 <div style="font-size: small">
870 <span style="color: purple">list</span>
871 / <span style="color: purple">elements=string</span>
872 </div>
873 </td>
874 <td>
875 </td>
876 <td>
877 <div>Route Target VPN extended communities in the format</div>
878 <div>ASN:NN or IP-ADDRESS:NN</div>
879 <div>Note: Each rt value in the list must be enclosed</div>
880 <div>in double quotes to avoid YAML parsing errors due to the</div>
881 <div>list values containing an embedded &#x27;:&#x27; character.</div>
882 </td>
883 </tr>
884 <tr>
885 <td class="elbow-placeholder"></td>
886 <td class="elbow-placeholder"></td>
887 <td class="elbow-placeholder"></td>
888 <td colspan="2">
889 <div class="ansibleOptionAnchor" id="parameter-"></div>
890 <b>soo</b>
891 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
892 <div style="font-size: small">
893 <span style="color: purple">list</span>
894 / <span style="color: purple">elements=string</span>
895 </div>
896 </td>
897 <td>
898 </td>
899 <td>
900 <div>Site-of-Origin VPN extended communities in the format</div>
901 <div>ASN:NN or IP-ADDRESS:NN</div>
902 <div>Note: Each rt value in the list must be enclosed</div>
903 <div>in double quotes to avoid YAML parsing errors due to the</div>
904 <div>list values containing an embedded &#x27;:&#x27; character.</div>
905 </td>
906 </tr>
907
908 <tr>
909 <td class="elbow-placeholder"></td>
910 <td class="elbow-placeholder"></td>
911 <td colspan="3">
912 <div class="ansibleOptionAnchor" id="parameter-"></div>
913 <b>ip_next_hop</b>
914 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
915 <div style="font-size: small">
916 <span style="color: purple">dictionary</span>
917 </div>
918 </td>
919 <td>
920 </td>
921 <td>
922 <div>IPv4 next hop address attributes to set into a matching route</div>
923 </td>
924 </tr>
925 <tr>
926 <td class="elbow-placeholder"></td>
927 <td class="elbow-placeholder"></td>
928 <td class="elbow-placeholder"></td>
929 <td colspan="2">
930 <div class="ansibleOptionAnchor" id="parameter-"></div>
931 <b>address</b>
932 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
933 <div style="font-size: small">
934 <span style="color: purple">string</span>
935 </div>
936 </td>
937 <td>
938 </td>
939 <td>
940 <div>IPv4 next hop address to set into a matching route in the</div>
941 <div>dotted decimal format A.B.C.D</div>
942 </td>
943 </tr>
944 <tr>
945 <td class="elbow-placeholder"></td>
946 <td class="elbow-placeholder"></td>
947 <td class="elbow-placeholder"></td>
948 <td colspan="2">
949 <div class="ansibleOptionAnchor" id="parameter-"></div>
950 <b>native</b>
951 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
952 <div style="font-size: small">
953 <span style="color: purple">boolean</span>
954 </div>
955 </td>
956 <td>
957 <ul style="margin: 0; padding: 0"><b>Choices:</b>
958 <li>no</li>
959 <li>yes</li>
960 </ul>
961 </td>
962 <td>
963 <div>Set native or underlay nexthop</div>
964 </td>
965 </tr>
966
967 <tr>
968 <td class="elbow-placeholder"></td>
969 <td class="elbow-placeholder"></td>
970 <td colspan="3">
971 <div class="ansibleOptionAnchor" id="parameter-"></div>
972 <b>ipv6_next_hop</b>
973 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
974 <div style="font-size: small">
975 <span style="color: purple">dictionary</span>
976 </div>
977 </td>
978 <td>
979 </td>
980 <td>
981 <div>IPv6 next hop address attributes to set into a matching route</div>
982 </td>
983 </tr>
984 <tr>
985 <td class="elbow-placeholder"></td>
986 <td class="elbow-placeholder"></td>
987 <td class="elbow-placeholder"></td>
988 <td colspan="2">
989 <div class="ansibleOptionAnchor" id="parameter-"></div>
990 <b>global_addr</b>
991 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
992 <div style="font-size: small">
993 <span style="color: purple">string</span>
994 </div>
995 </td>
996 <td>
997 </td>
998 <td>
999 <div>IPv6 global next hop address to set into a matching</div>
1000 <div>route in the format A::B</div>
1001 </td>
1002 </tr>
1003 <tr>
1004 <td class="elbow-placeholder"></td>
1005 <td class="elbow-placeholder"></td>
1006 <td class="elbow-placeholder"></td>
1007 <td colspan="2">
1008 <div class="ansibleOptionAnchor" id="parameter-"></div>
1009 <b>native</b>
1010 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
1011 <div style="font-size: small">
1012 <span style="color: purple">boolean</span>
1013 </div>
1014 </td>
1015 <td>
1016 <ul style="margin: 0; padding: 0"><b>Choices:</b>
1017 <li>no</li>
1018 <li>yes</li>
1019 </ul>
1020 </td>
1021 <td>
1022 <div>Set native or underlay nexthop</div>
1023 </td>
1024 </tr>
1025 <tr>
1026 <td class="elbow-placeholder"></td>
1027 <td class="elbow-placeholder"></td>
1028 <td class="elbow-placeholder"></td>
1029 <td colspan="2">
1030 <div class="ansibleOptionAnchor" id="parameter-"></div>
1031 <b>prefer_global</b>
1032 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
1033 <div style="font-size: small">
1034 <span style="color: purple">boolean</span>
1035 </div>
1036 </td>
1037 <td>
1038 <ul style="margin: 0; padding: 0"><b>Choices:</b>
1039 <li>no</li>
1040 <li>yes</li>
1041 </ul>
1042 </td>
1043 <td>
1044 <div>Set the corresponding attribute into a matching route</div>
1045 <div>if the value of this Ansible attribute is &#x27;true&#x27;.</div>
1046 <div>The attribute indicates that the routing algorithm must</div>
1047 <div>prefer the global next-hop address over the link-local</div>
1048 <div>address if both exist.</div>
1049 </td>
1050 </tr>
1051
1052 <tr>
1053 <td class="elbow-placeholder"></td>
1054 <td class="elbow-placeholder"></td>
1055 <td colspan="3">
1056 <div class="ansibleOptionAnchor" id="parameter-"></div>
1057 <b>local_preference</b>
1058 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
1059 <div style="font-size: small">
1060 <span style="color: purple">integer</span>
1061 </div>
1062 </td>
1063 <td>
1064 </td>
1065 <td>
1066 <div>BGP local preference path attribute; integer value in</div>
1067 <div>the range 0-4294967295</div>
1068 </td>
1069 </tr>
1070 <tr>
1071 <td class="elbow-placeholder"></td>
1072 <td class="elbow-placeholder"></td>
1073 <td colspan="3">
1074 <div class="ansibleOptionAnchor" id="parameter-"></div>
1075 <b>metric</b>
1076 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
1077 <div style="font-size: small">
1078 <span style="color: purple">dictionary</span>
1079 </div>
1080 </td>
1081 <td>
1082 </td>
1083 <td>
1084 <div>route metric value actions</div>
1085 <div><em>value</em> and <em>rtt_action</em> are mutually exclusive.</div>
1086 </td>
1087 </tr>
1088 <tr>
1089 <td class="elbow-placeholder"></td>
1090 <td class="elbow-placeholder"></td>
1091 <td class="elbow-placeholder"></td>
1092 <td colspan="2">
1093 <div class="ansibleOptionAnchor" id="parameter-"></div>
1094 <b>rtt_action</b>
1095 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
1096 <div style="font-size: small">
1097 <span style="color: purple">string</span>
1098 </div>
1099 </td>
1100 <td>
1101 <ul style="margin: 0; padding: 0"><b>Choices:</b>
1102 <li>set</li>
1103 <li>add</li>
1104 <li>subtract</li>
1105 </ul>
1106 </td>
1107 <td>
1108 <div>Action to take for modifying the metric for a matched</div>
1109 <div>route using the Round Trip Time (rtt);</div>
1110 <div><code>set</code> causes the route metric to be set to the</div>
1111 <div>rtt value.</div>
1112 <div><code>add</code> causes the rtt value to be added</div>
1113 <div>to the route metric.</div>
1114 <div><code>subtract</code> causes the rtt value to be</div>
1115 <div>subtracted from route metric.</div>
1116 </td>
1117 </tr>
1118 <tr>
1119 <td class="elbow-placeholder"></td>
1120 <td class="elbow-placeholder"></td>
1121 <td class="elbow-placeholder"></td>
1122 <td colspan="2">
1123 <div class="ansibleOptionAnchor" id="parameter-"></div>
1124 <b>value</b>
1125 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
1126 <div style="font-size: small">
1127 <span style="color: purple">integer</span>
1128 </div>
1129 </td>
1130 <td>
1131 </td>
1132 <td>
1133 <div>metric value to be set into a matching route;</div>
1134 <div>value in the range 0-4294967295</div>
1135 </td>
1136 </tr>
1137
1138 <tr>
1139 <td class="elbow-placeholder"></td>
1140 <td class="elbow-placeholder"></td>
1141 <td colspan="3">
1142 <div class="ansibleOptionAnchor" id="parameter-"></div>
1143 <b>origin</b>
1144 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
1145 <div style="font-size: small">
1146 <span style="color: purple">string</span>
1147 </div>
1148 </td>
1149 <td>
1150 <ul style="margin: 0; padding: 0"><b>Choices:</b>
1151 <li>egp</li>
1152 <li>igp</li>
1153 <li>incomplete</li>
1154 </ul>
1155 </td>
1156 <td>
1157 <div>BGP route origin; One of the following must be selected.</div>
1158 <div>egp (External; remote EGP)</div>
1159 <div>igp (Internal; local IGP)</div>
1160 <div>incomplete (Unknown origin)</div>
1161 </td>
1162 </tr>
1163 <tr>
1164 <td class="elbow-placeholder"></td>
1165 <td class="elbow-placeholder"></td>
1166 <td colspan="3">
1167 <div class="ansibleOptionAnchor" id="parameter-"></div>
1168 <b>tag</b>
1169 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
1170 <div style="font-size: small">
1171 <span style="color: purple">integer</span>
1172 </div>
1173 </td>
1174 <td>
1175 </td>
1176 <td>
1177 <div>Tag value to be set for a matching route</div>
1178 <div>The value must be in the range 1-4294967295</div>
1179 </td>
1180 </tr>
1181 <tr>
1182 <td class="elbow-placeholder"></td>
1183 <td class="elbow-placeholder"></td>
1184 <td colspan="3">
1185 <div class="ansibleOptionAnchor" id="parameter-"></div>
1186 <b>weight</b>
1187 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
1188 <div style="font-size: small">
1189 <span style="color: purple">integer</span>
1190 </div>
1191 </td>
1192 <td>
1193 </td>
1194 <td>
1195 <div>BGP weight to be set for a matching route: The weight must be</div>
1196 <div>an integer in the range 0-4294967295</div>
1197 </td>
1198 </tr>
1199
1200
1201 <tr>
1202 <td colspan="5">
1203 <div class="ansibleOptionAnchor" id="parameter-"></div>
1204 <b>state</b>
1205 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
1206 <div style="font-size: small">
1207 <span style="color: purple">string</span>
1208 </div>
1209 </td>
1210 <td>
1211 <ul style="margin: 0; padding: 0"><b>Choices:</b>
1212 <li><div style="color: blue"><b>merged</b>&nbsp;&larr;</div></li>
1213 <li>deleted</li>
1214 <li>replaced</li>
1215 <li>overridden</li>
1216 </ul>
1217 </td>
1218 <td>
1219 <div>Specifies the type of configuration update to be performed on the device.</div>
1220 <div>For <code>merged</code>, merge specified attributes with existing configured attributes.</div>
1221 <div>For <code>deleted</code>, delete the specified attributes from existing configuration.</div>
1222 <div>For <code>replaced</code>, replace each modified list or dictionary with the</div>
1223 <div>specified items.</div>
1224 <div>For <code>overridden</code>, replace all current configuration for this resource</div>
1225 <div>module with the specified configuration.</div>
1226 </td>
1227 </tr>
1228 </table>
1229 <br/>
1230
1231
1232 Notes
1233 -----
1234
1235 .. note::
1236 - Supports ``check_mode``.
1237
1238
1239
1240 Examples
1241 --------
1242
1243 .. code-block:: yaml
1244
1245 # Using "merged" state to create initial configuration
1246 #
1247 # Before state:
1248 # -------------
1249 #
1250 # sonic# show running-configuration route-map
1251 # sonic#
1252 # (No configuration present)
1253 #
1254 # -------------
1255 #
1256 - name: Merge initial route_maps configuration
1257 dellemc.enterprise_sonic.sonic_route_maps:
1258 config:
1259 - map_name: rm1
1260 action: permit
1261 sequence_num: 80
1262 match:
1263 as_path: bgp_as1
1264 community: bgp_comm_list1
1265 evpn:
1266 default_route: true
1267 vni: 735
1268 ext_comm: bgp_ext_comm1
1269 interface: Ethernet4
1270 ip:
1271 address: ip_pfx_list1
1272 ipv6:
1273 address: ipv6_pfx_list1
1274 local_preference: 8000
1275 metric: 400
1276 origin: egp
1277 peer:
1278 ip: 10.20.30.40
1279 source_protocol: bgp
1280 source_vrf: Vrf1
1281 tag: 7284
1282 set:
1283 as_path_prepend: 200,315,7135
1284 comm_list_delete: bgp_comm_list2
1285 community:
1286 community_number:
1287 - "35:58"
1288 - "79:150"
1289 - "308:650"
1290 community_attributes:
1291 - local_as
1292 - no_advertise
1293 - no_export
1294 - no_peer
1295 - additive
1296 extcommunity:
1297 rt:
1298 - "30:40"
1299 soo:
1300 - "10.73.14.9:78"
1301 ip_next_hop:
1302 address: 10.48.16.18
1303 native: true
1304 ipv6_next_hop:
1305 global_addr: 30::30
1306 prefer_global: true
1307 native: true
1308 local_preference: 635
1309 metric:
1310 metric_value: 870
1311 origin: egp
1312 weight: 93471
1313 tag: 65
1314 - map_name: rm1
1315 action: deny
1316 sequence_num: 3047
1317 match:
1318 evpn:
1319 route_type: multicast
1320 origin: incomplete
1321 peer:
1322 interface: Ethernet6
1323 source_protocol: ospf
1324 set:
1325 metric:
1326 rtt_action: add
1327 origin: incomplete
1328 - map_name: rm3
1329 action: deny
1330 sequence_num: 285
1331 match:
1332 evpn:
1333 route_type: macip
1334 origin: igp
1335 peer:
1336 ipv6: 87:95:15::53
1337 source_protocol: connected
1338 set:
1339 community:
1340 community_attributes:
1341 - none
1342 metric:
1343 rtt_action: set
1344 origin: igp
1345 call: rm1
1346 - map_name: rm4
1347 action: permit
1348 sequence_num: 480
1349 match:
1350 evpn:
1351 route_type: prefix
1352 source_protocol: static
1353 set:
1354 metric:
1355 rtt_action: subtract
1356 state: merged
1357
1358 # After state:
1359 # ------------
1360 #
1361 # sonic# show running-configuration route-map
1362 # !
1363 # route-map rm1 permit 80
1364 # match as-path bgp_as1
1365 # match evpn default-route
1366 # match evpn vni 735
1367 # match ip address prefix-list ip_pfx_list1
1368 # match ipv6 address prefix-list ipv6_pfx_list1
1369 # match interface Ethernet4
1370 # match community bgp_comm_list1
1371 # match ext-community bgp_ext_comm1
1372 # match tag 7284
1373 # match local-preference 8000
1374 # match source-vrf Vrf1
1375 # match peer 10.20.30.40
1376 # match source-protocol bgp
1377 # match metric 400
1378 # match origin egp
1379 # set as-path prepend 200,315,7135
1380 # set community 35:58 79:150 308:650 local-AS no-advertise no-export no-peer additive
1381 # set extcommunity rt 30:40
1382 # set extcommunity soo 10.73.14.9:78
1383 # set comm-list bgp_comm_list2 delete
1384 # set metric 870
1385 # set ip next-hop 10.48.16.18
1386 # set ip next-hop native true
1387 # set ipv6 next-hop global 30::30
1388 # set ipv6 next-hop prefer-global
1389 # set ipv6 next-hop native true
1390 # set local-preference 635
1391 # set origin egp
1392 # set weight 93471
1393 # set tag 65
1394 # !
1395 # route-map rm1 deny 3047
1396 # match evpn route-type multicast
1397 # match peer Ethernet6
1398 # match source-protocol ospf
1399 # match origin incomplete
1400 # set metric +rtt
1401 # set origin incomplete
1402 # !
1403 # route-map rm3 deny 285
1404 # match evpn route-type macip
1405 # call rm1
1406 # match peer 87:95:15::53
1407 # match source-protocol connected
1408 # match origin igp
1409 # set community none
1410 # set metric rtt
1411 # set origin igp
1412 # !
1413 # route-map rm4 permit 480
1414 # match evpn route-type prefix
1415 # match source-protocol static
1416 # set metric -rtt
1417 # ------------
1418
1419
1420 # Using "merged" state to update and add configuration
1421 #
1422 # Before state:
1423 # ------------
1424 #
1425 # sonic# show running-configuration route-map
1426 # !
1427 # route-map rm1 permit 80
1428 # match as-path bgp_as1
1429 # match evpn default-route
1430 # match evpn vni 735
1431 # match ip address prefix-list ip_pfx_list1
1432 # match ipv6 address prefix-list ipv6_pfx_list1
1433 # match interface Ethernet4
1434 # match community bgp_comm_list1
1435 # match ext-community bgp_ext_comm1
1436 # match tag 7284
1437 # match local-preference 8000
1438 # match source-vrf Vrf1
1439 # match peer 10.20.30.40
1440 # match source-protocol bgp
1441 # match metric 400
1442 # match origin egp
1443 # set as-path prepend 200,315,7135
1444 # set community 35:58 79:150 308:650 local-AS no-advertise no-export no-peer additive
1445 # set extcommunity rt 30:40
1446 # set extcommunity soo 10.73.14.9:78
1447 # set comm-list bgp_comm_list2 delete
1448 # set metric 870
1449 # set ip next-hop 10.48.16.18
1450 # set ipv6 next-hop global 30::30
1451 # set ipv6 next-hop prefer-global
1452 # set local-preference 635
1453 # set origin egp
1454 # set weight 93471
1455 # set tag 65
1456 # !
1457 # route-map rm1 deny 3047
1458 # match evpn route-type multicast
1459 # match peer Ethernet6
1460 # match source-protocol ospf
1461 # match origin incomplete
1462 # set metric +rtt
1463 # set origin incomplete
1464 # !
1465 # route-map rm3 deny 285
1466 # match evpn route-type macip
1467 # call rm1
1468 # match peer 87:95:15::53
1469 # match source-protocol connected
1470 # match origin igp
1471 # set community none
1472 # set metric rtt
1473 # set origin igp
1474 # !
1475 # route-map rm4 permit 480
1476 # match evpn route-type prefix
1477 # match source-protocol static
1478 # set metric -rtt
1479 # ------------
1480 #
1481 - name: Merge additional and modified route map configuration
1482 dellemc.enterprise_sonic.sonic_route_maps:
1483 config:
1484 - map_name: rm1
1485 action: permit
1486 sequence_num: 80
1487 match:
1488 as_path: bgp_as2
1489 community: bgp_comm_list3
1490 evpn:
1491 route_type: prefix
1492 vni: 850
1493 interface: Vlan7
1494 ip:
1495 address: ip_pfx_list2
1496 next_hop: ip_pfx_list3
1497 peer:
1498 interface: Portchannel14
1499 set:
1500 as_path_prepend: 188,257
1501 community:
1502 community_number:
1503 - "45:736"
1504 ipv6_next_hop:
1505 prefer_global: false
1506 metric:
1507 rtt_action: add
1508 - map_name: rm1
1509 action: deny
1510 sequence_num: 3047
1511 match:
1512 as_path: bgp_as3
1513 ext_comm: bgp_ext_comm2
1514 origin: igp
1515 set:
1516 metric:
1517 rtt_action: subtract
1518 - map_name: rm2
1519 action: permit
1520 sequence_num: 100
1521 match:
1522 interface: Ethernet16
1523 set:
1524 as_path_prepend: 200,300,400
1525 ipv6_next_hop:
1526 global_addr: 37::58
1527 prefer_global: true
1528 metric: 8000
1529 - map_name: rm3
1530 action: deny
1531 sequence_num: 285
1532 match:
1533 local_preference: 14783
1534 source_protocol: bgp
1535 set:
1536 community:
1537 community_attributes:
1538 - no_advertise
1539 state: merged
1540
1541 # After state:
1542 # ------------
1543 #
1544 # sonic# show running-configuration route-map
1545 # !
1546 # route-map rm1 permit 80
1547 # match as-path bgp_as2
1548 # match evpn default-route
1549 # match evpn route-type prefix
1550 # match evpn vni 850
1551 # match ip address prefix-list ip_pfx_list2
1552 # match ipv6 address prefix-list ipv6_pfx_list1
1553 # match interface Vlan7
1554 # match community bgp_comm_list3
1555 # match ext-community bgp_ext_comm1
1556 # match tag 7284
1557 # match local-preference 8000
1558 # match source-vrf Vrf1
1559 # match ip next-hop prefix-list ip_pfx_list3
1560 # match peer PortChannel 14
1561 # match source-protocol bgp
1562 # match metric 400
1563 # match origin egp
1564 # set as-path prepend 188,257
1565 # set community 35:58 79:150 308:650 45:736 local-AS no-advertise no-export no-peer additive
1566 # set extcommunity rt 30:40
1567 # set extcommunity soo 10.73.14.9:78
1568 # set comm-list bgp_comm_list2 delete
1569 # set metric +rtt
1570 # set ip next-hop 10.48.16.18
1571 # set ipv6 next-hop global 30::30
1572 # set local-preference 635
1573 # set origin egp
1574 # set weight 93471
1575 # set tag 65
1576 # !
1577 # route-map rm1 deny 3047
1578 # match as-path bgp_as3
1579 # match evpn route-type multicast
1580 # match ext-community bgp_ext_comm2
1581 # match peer Ethernet6
1582 # match source-protocol ospf
1583 # match origin igp
1584 # set metric -rtt
1585 # set origin incomplete
1586 # !
1587 # route-map rm2 permit 100
1588 # match interface Ethernet16
1589 # set as-path prepend 200,300,400
1590 # set ipv6 next-hop global 37::58
1591 # set ipv6 next-hop prefer-global
1592 # set metric 8000
1593 # !
1594 # route-map rm3 deny 285
1595 # match evpn route-type macip
1596 # match local-preference 14783
1597 # call rm1
1598 # match peer 87:95:15::53
1599 # match source-protocol bgp
1600 # match origin igp
1601 # set community no-advertise
1602 # set metric rtt
1603 # set origin igp
1604 # !
1605 # route-map rm4 permit 480
1606 # match evpn route-type prefix
1607 # match source-protocol static
1608 # set metric -rtt
1609
1610
1611 # Using "replaced" state to replace the contents of a list
1612 #
1613 # Before state:
1614 # ------------
1615 #
1616 # sonic(config-route-map)# do show running-configuration route-map rm1 80
1617 # !
1618 # route-map rm1 permit 80
1619 # match as-path bgp_as2
1620 # match evpn default-route
1621 # match evpn route-type prefix
1622 # match evpn vni 850
1623 # match ip address prefix-list ip_pfx_list2
1624 # match ipv6 address prefix-list ipv6_pfx_list1
1625 # match interface Vlan7
1626 # match community bgp_comm_list3
1627 # match ext-community bgp_ext_comm1
1628 # match tag 7284
1629 # match local-preference 8000
1630 # match source-vrf Vrf1
1631 # match ip next-hop prefix-list ip_pfx_list3
1632 # match peer PortChannel 14
1633 # match source-protocol bgp
1634 # match metric 400
1635 # match origin egp
1636 # set as-path prepend 188,257
1637 # set community 35:58 79:150 308:650 45:736 local-AS no-export no-peer additive
1638 # set extcommunity rt 30:40
1639 # set extcommunity soo 10.73.14.9:78
1640 # set comm-list bgp_comm_list2 delete
1641 # set metric +rtt
1642 # set ip next-hop 10.48.16.18
1643 # set ipv6 next-hop global 30::30
1644 # set local-preference 635
1645 # set origin egp
1646 # set weight 93471
1647 # set tag 65
1648 # ------------
1649 - name: Replace a list
1650 dellemc.enterprise_sonic.sonic_route_maps:
1651 config:
1652 - map_name: rm1
1653 action: permit
1654 sequence_num: 80
1655 set:
1656 community:
1657 community_number:
1658 - "15:30"
1659 - "26:54"
1660 state: replaced
1661
1662 # After state:
1663 # ------------
1664 #
1665 # sonic#show running-configuration route-map rm1 80
1666 # !
1667 # route-map rm1 permit 80
1668 # match as-path bgp_as2
1669 # match evpn default-route
1670 # match evpn route-type prefix
1671 # match evpn vni 850
1672 # match ip address prefix-list ip_pfx_list2
1673 # match ipv6 address prefix-list ipv6_pfx_list1
1674 # match interface Vlan7
1675 # match community bgp_comm_list3
1676 # match ext-community bgp_ext_comm1
1677 # match tag 7284
1678 # match local-preference 8000
1679 # match source-vrf Vrf1
1680 # match ip next-hop prefix-list ip_pfx_list3
1681 # match peer PortChannel 14
1682 # match source-protocol bgp
1683 # match metric 400
1684 # match origin egp
1685 # set as-path prepend 188,257
1686 # set community 15:30 26:54 local-AS no-export no-peer additive
1687 # set extcommunity rt 30:40
1688 # set extcommunity soo 10.73.14.9:78
1689 # set comm-list bgp_comm_list2 delete
1690 # set metric +rtt
1691 # set ip next-hop 10.48.16.18
1692 # set ipv6 next-hop global 30::30
1693 # set local-preference 635
1694 # set origin egp
1695 # set weight 93471
1696 # set tag 65
1697
1698
1699 # Using "replaced" state to replace the contents of dictionaries
1700 #
1701 # Before state:
1702 # ------------
1703 # sonic# show running-configuration route-map
1704 # !
1705 # route-map rm1 permit 80
1706 # match as-path bgp_as2
1707 # match evpn default-route
1708 # match evpn route-type prefix
1709 # match evpn vni 850
1710 # match ip address prefix-list ip_pfx_list2
1711 # match ipv6 address prefix-list ipv6_pfx_list1
1712 # match interface Vlan7
1713 # match community bgp_comm_list3
1714 # match ext-community bgp_ext_comm1
1715 # match tag 7284
1716 # match local-preference 8000
1717 # match source-vrf Vrf1
1718 # match ip next-hop prefix-list ip_pfx_list3
1719 # match peer PortChannel 14
1720 # match source-protocol bgp
1721 # match metric 400
1722 # match origin egp
1723 # set as-path prepend 188,257
1724 # set community 15:30 26:54 local-AS no-export no-peer additive
1725 # set extcommunity rt 30:40
1726 # set extcommunity soo 10.73.14.9:78
1727 # set comm-list bgp_comm_list2 delete
1728 # set metric +rtt
1729 # set ip next-hop 10.48.16.18
1730 # set ipv6 next-hop global 30::30
1731 # set local-preference 635
1732 # set origin egp
1733 # set weight 93471
1734 # set tag 65
1735 # !
1736 # route-map rm1 deny 3047
1737 # match as-path bgp_as3
1738 # match evpn route-type multicast
1739 # match ext-community bgp_ext_comm2
1740 # match peer Ethernet6
1741 # match source-protocol ospf
1742 # match origin igp
1743 # set metric -rtt
1744 # set origin incomplete
1745 # !
1746 # route-map rm2 permit 100
1747 # match interface Ethernet16
1748 # set as-path prepend 200,300,400
1749 # set ipv6 next-hop global 37::58
1750 # set ipv6 next-hop prefer-global
1751 # set metric 8000
1752 # !
1753 # route-map rm3 deny 285
1754 # match evpn route-type macip
1755 # match local-preference 14783
1756 # call rm1
1757 # match peer 87:95:15::53
1758 # match source-protocol bgp
1759 # match origin igp
1760 # set community no-advertise
1761 # set metric rtt
1762 # set origin igp
1763 # !
1764 # route-map rm4 permit 480
1765 # match evpn route-type prefix
1766 # match source-protocol static
1767 # set metric -rtt
1768 # ------------
1769 - name: Replace dictionaries
1770 dellemc.enterprise_sonic.sonic_route_maps:
1771 config:
1772 - map_name: rm1
1773 action: permit
1774 sequence_num: 80
1775 match:
1776 evpn:
1777 route_type: multicast
1778 ip:
1779 address: ip_pfx_list1
1780 set:
1781 community:
1782 community_attributes:
1783 - no_advertise
1784 extcommunity:
1785 rt:
1786 - "20:20"
1787 - map_name: rm2
1788 action: permit
1789 sequence_num: 100
1790 set:
1791 ipv6_next_hop:
1792 global_addr: 45::90
1793 native: true
1794 state: replaced
1795
1796 # After state:
1797 # ------------
1798 #
1799 # sonic# show running-configuration route-map
1800 # !
1801 # route-map rm1 permit 80
1802 # match as-path bgp_as2
1803 # match evpn route-type multicast
1804 # match ip address prefix-list ip_pfx_list1
1805 # match ipv6 address prefix-list ipv6_pfx_list1
1806 # match interface Vlan7
1807 # match community bgp_comm_list3
1808 # match ext-community bgp_ext_comm1
1809 # match tag 7284
1810 # match local-preference 8000
1811 # match source-vrf Vrf1
1812 # match peer PortChannel 14
1813 # match source-protocol bgp
1814 # match metric 400
1815 # match origin egp
1816 # set as-path prepend 188,257
1817 # set community no-advertise
1818 # set extcommunity rt 20:20
1819 # set comm-list bgp_comm_list2 delete
1820 # set metric +rtt
1821 # set ip next-hop 10.48.16.18
1822 # set ipv6 next-hop global 30::30
1823 # set local-preference 635
1824 # set origin egp
1825 # set weight 93471
1826 # set tag 65
1827 # !
1828 # route-map rm1 deny 3047
1829 # match as-path bgp_as3
1830 # match evpn route-type multicast
1831 # match ext-community bgp_ext_comm2
1832 # match peer Ethernet6
1833 # match source-protocol ospf
1834 # match origin igp
1835 # set metric -rtt
1836 # set origin incomplete
1837 # !
1838 # route-map rm2 permit 100
1839 # match interface Ethernet16
1840 # set as-path prepend 200,300,400
1841 # set metric 8000
1842 # set ipv6 next-hop global 45::90
1843 # set ipv6 next-hop native true
1844 # !
1845 # route-map rm3 deny 285
1846 # match evpn route-type macip
1847 # match local-preference 14783
1848 # call rm1
1849 # match peer 87:95:15::53
1850 # match source-protocol bgp
1851 # match origin igp
1852 # set community no-advertise
1853 # set metric rtt
1854 # set origin igp
1855 # !
1856 # route-map rm4 permit 480
1857 # match evpn route-type prefix
1858 # match source-protocol static
1859 # set metric -rtt
1860
1861
1862 # Using "overridden" state to override all existing configuration with new
1863 # configuration
1864 #
1865 # Before state:
1866 # ------------
1867 #
1868 # sonic# show running-configuration route-map
1869 # !
1870 # route-map rm1 permit 80
1871 # match as-path bgp_as2
1872 # match evpn route-type multicast
1873 # match ip address prefix-list ip_pfx_list1
1874 # match ipv6 address prefix-list ipv6_pfx_list1
1875 # match interface Vlan7
1876 # match community bgp_comm_list3
1877 # match ext-community bgp_ext_comm1
1878 # match tag 7284
1879 # match local-preference 8000
1880 # match source-vrf Vrf1
1881 # match peer PortChannel 14
1882 # match source-protocol bgp
1883 # match metric 400
1884 # match origin egp
1885 # set as-path prepend 188,257
1886 # set community no-advertise
1887 # set extcommunity rt 30:40
1888 # set extcommunity rt 20:20
1889 # set comm-list bgp_comm_list2 delete
1890 # set metric +rtt
1891 # set ip next-hop 10.48.16.18
1892 # set ipv6 next-hop global 30::30
1893 # set local-preference 635
1894 # set origin egp
1895 # set weight 93471
1896 # set tag 65
1897 # !
1898 # route-map rm1 deny 3047
1899 # match as-path bgp_as3
1900 # match evpn route-type multicast
1901 # match ext-community bgp_ext_comm2
1902 # match peer Ethernet6
1903 # match source-protocol ospf
1904 # match origin igp
1905 # set metric -rtt
1906 # set origin incomplete
1907 # !
1908 # route-map rm2 permit 100
1909 # match interface Ethernet16
1910 # set as-path prepend 200,300,400
1911 # set metric 8000
1912 # set ipv6 next-hop global 45::90
1913 # !
1914 # route-map rm3 deny 285
1915 # match evpn route-type macip
1916 # match local-preference 14783
1917 # call rm1
1918 # match peer 87:95:15::53
1919 # match source-protocol bgp
1920 # match origin igp
1921 # set community no-advertise
1922 # set metric rtt
1923 # set origin igp
1924 # !
1925 # route-map rm4 permit 480
1926 # match evpn route-type prefix
1927 # match source-protocol static
1928 # set metric -rtt
1929 # ------------
1930 - name: Override all route map configuration with new configuration
1931 dellemc.enterprise_sonic.sonic_route_maps:
1932 config:
1933 - map_name: rm5
1934 action: permit
1935 sequence_num: 250
1936 match:
1937 interface: Ethernet28
1938 set:
1939 as_path_prepend: 150,275
1940 metric: 7249
1941 state: overridden
1942
1943 # After state:
1944 # ------------
1945 #
1946 # sonic# show running-configuration route-map
1947 # !
1948 # route-map rm5 permit 250
1949 # match interface Ethernet28
1950 # set as-path prepend 150,275
1951 # set metric 7249
1952
1953
1954 # Using "overridden" state to override all existing configuration with new
1955 # configuration. (Restore previous configuration.)
1956 #
1957 # Before state:
1958 # ------------
1959 #
1960 # sonic# show running-configuration route-map
1961 # !
1962 # route-map rm5 permit 250
1963 # match interface Ethernet28
1964 # set as-path prepend 150,275
1965 # set metric 7249
1966 # ------------
1967 - name: Override (restore) all route map configuration with older configuration
1968 dellemc.enterprise_sonic.sonic_route_maps:
1969 config:
1970 - map_name: rm1
1971 action: permit
1972 sequence_num: 80
1973 match:
1974 as_path: bgp_as2
1975 community: bgp_comm_list3
1976 evpn:
1977 default_route: true
1978 route_type: prefix
1979 vni: 850
1980 ext_comm: bgp_ext_comm1
1981 interface: Vlan7
1982 ip:
1983 address: ip_pfx_list2
1984 next_hop: ip_pfx_list3
1985 ipv6:
1986 address: ipv6_pfx_list1
1987 local_preference: 8000
1988 metric: 400
1989 origin: egp
1990 peer:
1991 interface: Portchannel14
1992 source_protocol: bgp
1993 source_vrf: Vrf1
1994 tag: 7284
1995 set:
1996 as_path_prepend: 188,257
1997 comm_list_delete: bgp_comm_list2
1998 community:
1999 community_number:
2000 - "35:58"
2001 - "79:150"
2002 - "308:650"
2003 - "45:736"
2004 community_attributes:
2005 - local_as
2006 - no_export
2007 - no_peer
2008 - additive
2009 extcommunity:
2010 rt:
2011 - "30:40"
2012 soo:
2013 - "10.73.14.9:78"
2014 ip_next_hop:
2015 address: 10.48.16.18
2016 native: false
2017 ipv6_next_hop:
2018 global_addr: 30::30
2019 native: false
2020 local_preference: 635
2021 metric:
2022 rtt_action: add
2023 origin: egp
2024 weight: 93471
2025 tag: 65
2026 - map_name: rm1
2027 action: deny
2028 sequence_num: 3047
2029 match:
2030 as_path: bgp_as3
2031 evpn:
2032 route_type: multicast
2033 ext_comm: bgp_ext_comm2
2034 origin: igp
2035 peer:
2036 interface: Ethernet6
2037 source_protocol: ospf
2038 set:
2039 metric:
2040 rtt_action: subtract
2041 origin: incomplete
2042 - map_name: rm2
2043 action: permit
2044 sequence_num: 100
2045 match:
2046 interface: Ethernet16
2047 set:
2048 as_path_prepend: 200,300,400
2049 ipv6_next_hop:
2050 global_addr: 37::58
2051 prefer_global: true
2052 metric: 8000
2053 - map_name: rm3
2054 action: deny
2055 sequence_num: 285
2056 match:
2057 evpn:
2058 route_type: macip
2059 origin: igp
2060 peer:
2061 ipv6: 87:95:15::53
2062 local_preference: 14783
2063 source_protocol: bgp
2064 set:
2065 community:
2066 community_attributes:
2067 - no_advertise
2068 metric:
2069 rtt_action: set
2070 origin: igp
2071 call: rm1
2072 - map_name: rm4
2073 action: permit
2074 sequence_num: 480
2075 match:
2076 evpn:
2077 route_type: prefix
2078 source_protocol: static
2079 set:
2080 metric:
2081 rtt_action: subtract
2082 state: overridden
2083
2084 # After state:
2085 # ------------
2086 #
2087 # sonic# show running-configuration route-map
2088 # !
2089 # route-map rm1 permit 80
2090 # match as-path bgp_as2
2091 # match evpn default-route
2092 # match evpn route-type prefix
2093 # match evpn vni 850
2094 # match ip address prefix-list ip_pfx_list2
2095 # match ipv6 address prefix-list ipv6_pfx_list1
2096 # match interface Vlan7
2097 # match community bgp_comm_list3
2098 # match ext-community bgp_ext_comm1
2099 # match tag 7284
2100 # match local-preference 8000
2101 # match source-vrf Vrf1
2102 # match ip next-hop prefix-list ip_pfx_list3
2103 # match peer PortChannel 14
2104 # match source-protocol bgp
2105 # match metric 400
2106 # match origin egp
2107 # set as-path prepend 188,257
2108 # set community 35:58 79:150 308:650 45:736 local-AS no-export no-peer additive
2109 # set extcommunity rt 30:40
2110 # set extcommunity soo 10.73.14.9:78
2111 # set comm-list bgp_comm_list2 delete
2112 # set metric +rtt
2113 # set ip next-hop 10.48.16.18
2114 # set ip next-hop native false
2115 # set ipv6 next-hop global 30::30
2116 # set ipv6 next-hop native false
2117 # set local-preference 635
2118 # set origin egp
2119 # set weight 93471
2120 # set tag 65
2121 # !
2122 # route-map rm1 deny 3047
2123 # match as-path bgp_as3
2124 # match evpn route-type multicast
2125 # match ext-community bgp_ext_comm2
2126 # match peer Ethernet6
2127 # match source-protocol ospf
2128 # match origin igp
2129 # set metric -rtt
2130 # set origin incomplete
2131 # !
2132 # route-map rm2 permit 100
2133 # match interface Ethernet16
2134 # set as-path prepend 200,300,400
2135 # set ipv6 next-hop global 37::58
2136 # set ipv6 next-hop prefer-global
2137 # set metric 8000
2138 # !
2139 # route-map rm3 deny 285
2140 # match evpn route-type macip
2141 # match local-preference 14783
2142 # call rm1
2143 # match peer 87:95:15::53
2144 # match source-protocol bgp
2145 # match origin igp
2146 # set community no-advertise
2147 # set metric rtt
2148 # set origin igp
2149 # !
2150 # route-map rm4 permit 480
2151 # match evpn route-type prefix
2152 # match source-protocol static
2153 # set metric -rtt
2154
2155
2156 # Using "deleted" state to remove configuration
2157 #
2158 # Before state:
2159 # ------------
2160 #
2161 # sonic# show running-configuration route-map rm1 80
2162 # !
2163 # route-map rm1 permit 80
2164 # match as-path bgp_as2
2165 # match evpn default-route
2166 # match evpn route-type prefix
2167 # match evpn vni 850
2168 # match ip address prefix-list ip_pfx_list2
2169 # match ipv6 address prefix-list ipv6_pfx_list1
2170 # match interface Vlan7
2171 # match community bgp_comm_list3
2172 # match ext-community bgp_ext_comm1
2173 # match tag 7284
2174 # match local-preference 8000
2175 # match source-vrf Vrf1
2176 # match ip next-hop prefix-list ip_pfx_list3
2177 # match peer PortChannel 14
2178 # match source-protocol bgp
2179 # match metric 400
2180 # match origin egp
2181 # set as-path prepend 188,257
2182 # set community 35:58 79:150 308:650 45:736 local-AS no-export no-peer additive
2183 # set extcommunity rt 30:40
2184 # set extcommunity soo 10.73.14.9:78
2185 # set comm-list bgp_comm_list2 delete
2186 # set metric +rtt
2187 # set ip next-hop 10.48.16.18
2188 # set ip next-hop native true
2189 # set ipv6 next-hop global 30::30
2190 # set local-preference 635
2191 # set origin egp
2192 # set weight 93471
2193 # set tag 65
2194 # ------------
2195 - name: Delete selected route map configuration
2196 dellemc.enterprise_sonic.sonic_route_maps:
2197 config:
2198 - map_name: rm1
2199 action: permit
2200 sequence_num: 80
2201 match:
2202 as_path: bgp_as2
2203 community: bgp_comm_list3
2204 evpn:
2205 vni: 850
2206 ip:
2207 address: ip_pfx_list2
2208 set:
2209 as_path_prepend: 188,257
2210 ip_next_hop:
2211 address: 10.48.16.18
2212 native: true
2213 ipv6_next_hop:
2214 native: true
2215 community:
2216 community_number:
2217 - "35:58"
2218 community_attributes:
2219 - local_as
2220 extcommunity:
2221 rt:
2222 - "30:40"
2223 state: deleted
2224
2225 # After state:
2226 # ------------
2227 #
2228 # sonic# show running-configuration route-map rm1 80
2229 # !
2230 # route-map rm1 permit 80
2231 # match evpn default-route
2232 # match evpn route-type prefix
2233 # match ipv6 address prefix-list ipv6_pfx_list1
2234 # match interface Vlan7
2235 # match ext-community bgp_ext_comm1
2236 # match tag 7284
2237 # match local-preference 8000
2238 # match source-vrf Vrf1
2239 # match ip next-hop prefix-list ip_pfx_list3
2240 # match peer PortChannel 14
2241 # match source-protocol bgp
2242 # match metric 400
2243 # match origin egp
2244 # set community 79:150 308:650 45:736 no-export no-peer additive
2245 # set extcommunity soo 10.73.14.9:78
2246 # set comm-list bgp_comm_list2 delete
2247 # set metric +rtt
2248 # set ipv6 next-hop global 30::30
2249 # set local-preference 635
2250 # set origin egp
2251 # set weight 93471
2252 # set tag 65
2253
2254
2255 # Using "deleted" state to remove a route map or route map subset
2256 #
2257 # Before state:
2258 # ------------
2259 #
2260 # sonic# show running-configuration route-map
2261 # !
2262 # route-map rm1 permit 80
2263 # match evpn default-route
2264 # match evpn route-type prefix
2265 # match ipv6 address prefix-list ipv6_pfx_list1
2266 # match interface Vlan7
2267 # match ext-community bgp_ext_comm1
2268 # match tag 7284
2269 # match local-preference 8000
2270 # match source-vrf Vrf1
2271 # match ip next-hop prefix-list ip_pfx_list3
2272 # match peer PortChannel 14
2273 # match source-protocol bgp
2274 # match metric 400
2275 # match origin egp
2276 # set community 79:150 308:650 45:736 no-export no-peer additive
2277 # set extcommunity soo 10.73.14.9:78
2278 # set comm-list bgp_comm_list2 delete
2279 # set metric +rtt
2280 # set ip next-hop 10.48.16.18
2281 # set ipv6 next-hop global 30::30
2282 # set local-preference 635
2283 # set origin egp
2284 # set weight 93471
2285 # set tag 65
2286 # !
2287 # route-map rm1 deny 3047
2288 # match as-path bgp_as3
2289 # match evpn route-type multicast
2290 # match ext-community bgp_ext_comm2
2291 # match peer Ethernet6
2292 # match source-protocol ospf
2293 # match origin igp
2294 # set metric -rtt
2295 # set origin incomplete
2296 # !
2297 # route-map rm2 permit 100
2298 # match interface Ethernet16
2299 # set as-path prepend 200,300,400
2300 # set metric 8000
2301 # set ipv6 next-hop prefer-global
2302 # set ipv6 next-hop global 37::58
2303 # !
2304 # route-map rm3 deny 285
2305 # match evpn route-type macip
2306 # match local-preference 14783
2307 # call rm1
2308 # match peer 87:95:15::53
2309 # match source-protocol bgp
2310 # match origin igp
2311 # set community no-advertise
2312 # set metric rtt
2313 # set origin igp
2314 # !
2315 # route-map rm4 permit 480
2316 # match evpn route-type prefix
2317 # match source-protocol static
2318 # set metric -rtt
2319 # ------------
2320 - name: Delete a route map subset or a route map
2321 dellemc.enterprise_sonic.sonic_route_maps:
2322 config:
2323 - map_name: rm1
2324 sequence_num: 3047
2325 - map_name: rm2
2326 state: deleted
2327
2328 # After state:
2329 # ------------
2330 #
2331 # sonic# show running-configuration route-map
2332 # !
2333 # route-map rm1 permit 80
2334 # match evpn default-route
2335 # match evpn route-type prefix
2336 # match ipv6 address prefix-list ipv6_pfx_list1
2337 # match interface Vlan7
2338 # match ext-community bgp_ext_comm1
2339 # match tag 7284
2340 # match local-preference 8000
2341 # match source-vrf Vrf1
2342 # match ip next-hop prefix-list ip_pfx_list3
2343 # match peer PortChannel 14
2344 # match source-protocol bgp
2345 # match metric 400
2346 # match origin egp
2347 # set community 79:150 308:650 45:736 no-export no-peer additive
2348 # set extcommunity soo 10.73.14.9:78
2349 # set comm-list bgp_comm_list2 delete
2350 # set metric +rtt
2351 # set ip next-hop 10.48.16.18
2352 # set ipv6 next-hop global 30::30
2353 # set local-preference 635
2354 # set origin egp
2355 # set weight 93471
2356 # set tag 65
2357 # !
2358 # route-map rm3 deny 285
2359 # match evpn route-type macip
2360 # match local-preference 14783
2361 # call rm1
2362 # match peer 87:95:15::53
2363 # match source-protocol bgp
2364 # match origin igp
2365 # set community no-advertise
2366 # set metric rtt
2367 # set origin igp
2368 # !
2369 # route-map rm4 permit 480
2370 # match evpn route-type prefix
2371 # match source-protocol static
2372 # set metric -rtt
2373
2374
2375 # Using "deleted" state to remove all route map configuration
2376 #
2377 # Before state:
2378 # ------------
2379 #
2380 # sonic# show running-configuration route-map
2381 # !
2382 # route-map rm1 permit 80
2383 # match evpn default-route
2384 # match evpn route-type prefix
2385 # match ipv6 address prefix-list ipv6_pfx_list1
2386 # match interface Vlan7
2387 # match ext-community bgp_ext_comm1
2388 # match tag 7284
2389 # match local-preference 8000
2390 # match source-vrf Vrf1
2391 # match ip next-hop prefix-list ip_pfx_list3
2392 # match peer PortChannel 14
2393 # match source-protocol bgp
2394 # match metric 400
2395 # match origin egp
2396 # set community 79:150 308:650 45:736 no-export no-peer additive
2397 # set extcommunity soo 10.73.14.9:78
2398 # set comm-list bgp_comm_list2 delete
2399 # set metric +rtt
2400 # set ip next-hop 10.48.16.18
2401 # set ipv6 next-hop global 30::30
2402 # set local-preference 635
2403 # set origin egp
2404 # set weight 93471
2405 # set tag 65
2406 # !
2407 # route-map rm3 deny 285
2408 # match evpn route-type macip
2409 # match local-preference 14783
2410 # call rm1
2411 # match peer 87:95:15::53
2412 # match source-protocol bgp
2413 # match origin igp
2414 # set community no-advertise
2415 # set metric rtt
2416 # set origin igp
2417 # !
2418 # route-map rm4 permit 480
2419 # match evpn route-type prefix
2420 # match source-protocol static
2421 # set metric -rtt
2422 # ------------
2423 - name: Delete all route map configuration
2424 dellemc.enterprise_sonic.sonic_route_maps:
2425 config: []
2426 state: deleted
2427
2428 # After state:
2429 # ------------
2430 #
2431 # sonic# show running-configuration route-map
2432 # sonic#
2433 # (no route map configuration present)
2434
2435
2436
2437 Return Values
2438 -------------
2439 Common return values are documented `here <https://docs.ansible.com/projects/ansible/latest/reference_appendices/common_return_values.html#common-return-values>`_, the following are the fields unique to this module:
2440
2441 .. raw:: html
2442
2443 <table border=0 cellpadding=0 class="documentation-table">
2444 <tr>
2445 <th colspan="1">Key</th>
2446 <th>Returned</th>
2447 <th width="100%">Description</th>
2448 </tr>
2449 <tr>
2450 <td colspan="1">
2451 <div class="ansibleOptionAnchor" id="return-"></div>
2452 <b>after</b>
2453 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
2454 <div style="font-size: small">
2455 <span style="color: purple">list</span>
2456 </div>
2457 </td>
2458 <td>when changed</td>
2459 <td>
2460 <div>The resulting configuration module invocation.</div>
2461 <br/>
2462 <div style="font-size: smaller"><b>Sample:</b></div>
2463 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">The configuration returned will always be in the same format
2464 as the parameters above.</div>
2465 </td>
2466 </tr>
2467 <tr>
2468 <td colspan="1">
2469 <div class="ansibleOptionAnchor" id="return-"></div>
2470 <b>after_generated</b>
2471 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
2472 <div style="font-size: small">
2473 <span style="color: purple">list</span>
2474 </div>
2475 </td>
2476 <td>when <code>check_mode</code></td>
2477 <td>
2478 <div>The generated configuration module invocation.</div>
2479 <br/>
2480 <div style="font-size: smaller"><b>Sample:</b></div>
2481 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">The configuration returned will always be in the same format as the parameters above.</div>
2482 </td>
2483 </tr>
2484 <tr>
2485 <td colspan="1">
2486 <div class="ansibleOptionAnchor" id="return-"></div>
2487 <b>before</b>
2488 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
2489 <div style="font-size: small">
2490 <span style="color: purple">list</span>
2491 </div>
2492 </td>
2493 <td>always</td>
2494 <td>
2495 <div>The configuration prior to the module invocation.</div>
2496 <br/>
2497 <div style="font-size: smaller"><b>Sample:</b></div>
2498 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">The configuration returned will always be in the same format
2499 as the parameters above.</div>
2500 </td>
2501 </tr>
2502 <tr>
2503 <td colspan="1">
2504 <div class="ansibleOptionAnchor" id="return-"></div>
2505 <b>commands</b>
2506 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
2507 <div style="font-size: small">
2508 <span style="color: purple">list</span>
2509 </div>
2510 </td>
2511 <td>always</td>
2512 <td>
2513 <div>The set of commands pushed to the remote device.</div>
2514 <br/>
2515 <div style="font-size: smaller"><b>Sample:</b></div>
2516 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">[&#x27;command 1&#x27;, &#x27;command 2&#x27;, &#x27;command 3&#x27;]</div>
2517 </td>
2518 </tr>
2519 </table>
2520 <br/><br/>
2521
2522
2523 Status
2524 ------
2525
2526
2527 Authors
2528 ~~~~~~~
2529
2530 - Kerry Meyer (@kerry-meyer)