1 module frr-bgp-route-map {
3 namespace "http://frrouting.org/yang/bgp-route-map";
4 prefix frr-bgp-route-map;
6 import ietf-inet-types {
10 import frr-route-map {
18 import frr-bgp-filter {
22 import ietf-routing-types {
29 "FRR Users List: <mailto:frog@lists.frrouting.org>
30 FRR Development List: <mailto:dev@lists.frrouting.org>";
32 "This module defines bgp route map settings";
39 identity match-alias {
40 base frr-route-map:rmap-match-type;
42 "Match BGP community alias name";
45 identity match-local-preference {
46 base frr-route-map:rmap-match-type;
48 "Match local-preference of routes";
51 identity match-script {
52 base frr-route-map:rmap-match-type;
54 "Match script of routes";
57 identity match-origin {
58 base frr-route-map:rmap-match-type;
60 "Match BGP route origin code";
64 base frr-route-map:rmap-match-type;
66 "Control rpki specific settings";
69 identity rpki-extcommunity {
70 base frr-route-map:rmap-match-type;
72 "Control rpki specific settings derived from extended community";
75 identity probability {
76 base frr-route-map:rmap-match-type;
78 "Match portion of routes defined by percentage value";
82 base frr-route-map:rmap-match-type;
84 "Match source vrf of routes";
88 base frr-route-map:rmap-match-type;
93 identity mac-address-list {
94 base frr-route-map:rmap-match-type;
96 "Match MAC address access-list";
99 identity ip-route-source {
100 base frr-route-map:rmap-match-type;
102 "Match advertising source address of route";
105 identity ip-route-source-prefix-list {
106 base frr-route-map:rmap-match-type;
108 "Match advertising source address of route";
111 identity evpn-route-type {
112 base frr-route-map:rmap-match-type;
114 "Match EVPN route type";
117 identity evpn-default-route {
118 base frr-route-map:rmap-match-type;
120 "Match EVPN default Type-5 route";
124 base frr-route-map:rmap-match-type;
130 base frr-route-map:rmap-match-type;
132 "Match EVPN route distinguisher";
135 identity match-community {
136 base frr-route-map:rmap-match-type;
138 "Match BGP community list";
141 identity match-large-community {
142 base frr-route-map:rmap-match-type;
144 "Match BGP large-community list";
147 identity match-extcommunity {
148 base frr-route-map:rmap-match-type;
150 "Match BGP extcommunity list";
153 identity as-path-list {
154 base frr-route-map:rmap-match-type;
156 "Match BGP AS path list";
159 identity ipv4-nexthop {
160 base frr-route-map:rmap-match-type;
162 "Match IPv4 next hop address";
165 identity ipv6-nexthop {
166 base frr-route-map:rmap-match-type;
168 "Match IPv6 next hop address";
172 base frr-route-map:rmap-set-type;
174 "Set BGP administrative distance to use";
177 identity set-extcommunity-none {
178 base frr-route-map:rmap-set-type;
180 "Set BGP extended community attribute";
183 identity set-extcommunity-rt {
184 base frr-route-map:rmap-set-type;
186 "Set BGP extended community attribute";
189 identity set-extcommunity-soo {
190 base frr-route-map:rmap-set-type;
192 "Set BGP extended community attribute";
195 identity set-extcommunity-lb {
196 base frr-route-map:rmap-set-type;
198 "Set BGP extended community attribute";
201 identity set-ipv4-nexthop {
202 base frr-route-map:rmap-set-type;
204 "Set the IPv4 next-hop to peer-address/unchanged";
207 identity ipv4-vpn-address {
208 base frr-route-map:rmap-set-type;
210 "Set IPv4 VPN next-hop address";
213 identity ipv6-nexthop-global {
214 base frr-route-map:rmap-set-type;
216 "Set IPv6 next-hop global address";
219 identity ipv6-prefer-global {
220 base frr-route-map:rmap-set-type;
222 "Set IPv6 next-hop to prefer global address";
225 identity ipv6-peer-address {
226 base frr-route-map:rmap-set-type;
228 "Set IPv6 next-hop peer address";
231 identity ipv6-vpn-address {
232 base frr-route-map:rmap-set-type;
234 "Set IPv6 VPN next-hop address";
237 identity label-index {
238 base frr-route-map:rmap-set-type;
240 "Set the label index to associate with the prefixs";
243 identity set-local-preference {
244 base frr-route-map:rmap-set-type;
246 "Set the BGP local preference path attribute";
249 identity set-origin {
250 base frr-route-map:rmap-set-type;
252 "Set BGP route origin code";
256 base frr-route-map:rmap-set-type;
258 "Set the BGP weight attribute";
261 identity originator-id {
262 base frr-route-map:rmap-set-type;
264 "Set the BGP originator ID attribute";
268 base frr-route-map:rmap-set-type;
270 "Export route to non-main kernel table";
273 identity atomic-aggregate {
274 base frr-route-map:rmap-set-type;
276 "Set BGP atomic-aggregate attribute";
279 identity aigp-metric {
280 base frr-route-map:rmap-set-type;
282 "Set BGP AIGP attribute (AIGP TLV Metric)";
285 identity as-path-prepend {
286 base frr-route-map:rmap-set-type;
288 "Set the BGP AS-path attribute";
291 identity as-path-exclude {
292 base frr-route-map:rmap-set-type;
294 "Set the BGP AS-path attribute";
297 identity as-path-replace {
298 base frr-route-map:rmap-set-type;
300 "Replace ASNs to local AS number";
303 identity set-community {
304 base frr-route-map:rmap-set-type;
306 "Set the BGP community attribute";
309 identity set-large-community {
310 base frr-route-map:rmap-set-type;
312 "Set the BGP large-community attribute";
315 identity aggregator {
316 base frr-route-map:rmap-set-type;
318 "Set the BGP aggregator attribute";
321 identity comm-list-delete {
322 base frr-route-map:rmap-set-type;
324 "Set BGP community list (for deletion)";
327 identity large-comm-list-delete {
328 base frr-route-map:rmap-set-type;
330 "Set BGP large community list (for deletion)";
333 identity set-evpn-gateway-ip-ipv4 {
334 base frr-route-map:rmap-set-type;
336 "Set EVPN gateway IP overlay index IPv4";
339 identity set-evpn-gateway-ip-ipv6 {
340 base frr-route-map:rmap-set-type;
342 "Set EVPN gateway IP overlay index IPv6";
345 identity set-l3vpn-nexthop-encapsulation {
346 base frr-route-map:rmap-set-type;
348 "Accept L3VPN traffic over other than LSP encapsulation";
351 grouping extcommunity-non-transitive-types {
352 leaf two-octet-as-specific {
355 "Non-Transitive Two-Octet AS-Specific Extended Community";
359 typedef route-distinguisher {
362 '(0:(6553[0-5]|655[0-2][0-9]|65[0-4][0-9]{2}|'
364 + '[1-5][0-9]{4}|[1-9][0-9]{0,3}|0):(429496729[0-5]|'
365 + '42949672[0-8][0-9]|'
366 + '4294967[01][0-9]{2}|429496[0-6][0-9]{3}|'
367 + '42949[0-5][0-9]{4}|'
368 + '4294[0-8][0-9]{5}|429[0-3][0-9]{6}|'
369 + '42[0-8][0-9]{7}|4[01][0-9]{8}|'
370 + '[1-3][0-9]{9}|[1-9][0-9]{0,8}|0))|'
371 + '(1:((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|'
372 + '25[0-5])\.){3}([0-9]|[1-9][0-9]|'
373 + '1[0-9]{2}|2[0-4][0-9]|25[0-5])):(6553[0-5]|'
375 + '65[0-4][0-9]{2}|6[0-4][0-9]{3}|'
376 + '[1-5][0-9]{4}|[1-9][0-9]{0,3}|0))|'
377 + '(2:(429496729[0-5]|42949672[0-8][0-9]|'
378 + '4294967[01][0-9]{2}|'
379 + '429496[0-6][0-9]{3}|42949[0-5][0-9]{4}|'
380 + '4294[0-8][0-9]{5}|'
381 + '429[0-3][0-9]{6}|42[0-8][0-9]{7}|4[01][0-9]{8}|'
382 + '[1-3][0-9]{9}|[1-9][0-9]{0,8}|0):'
383 + '(6553[0-5]|655[0-2][0-9]|65[0-4][0-9]{2}|'
385 + '[1-5][0-9]{4}|[1-9][0-9]{0,3}|0))|'
386 + '(6(:[a-fA-F0-9]{2}){6})|'
387 + '(([3-57-9a-fA-F]|[1-9a-fA-F][0-9a-fA-F]{1,3}):'
388 + '[0-9a-fA-F]{1,12})|'
389 + '((6553[0-5]|655[0-2][0-9]|65[0-4][0-9]{2}|'
391 + '[1-5][0-9]{4}|[1-9][0-9]{0,3}|0):(429496729[0-5]|'
392 + '42949672[0-8][0-9]|'
393 + '4294967[01][0-9]{2}|429496[0-6][0-9]{3}|'
394 + '42949[0-5][0-9]{4}|'
395 + '4294[0-8][0-9]{5}|429[0-3][0-9]{6}|'
396 + '42[0-8][0-9]{7}|4[01][0-9]{8}|'
397 + '[1-3][0-9]{9}|[1-9][0-9]{0,8}|0)|'
398 + '((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|'
399 + '25[0-5])\.){3}([0-9]|[1-9][0-9]|'
400 + '1[0-9]{2}|2[0-4][0-9]|25[0-5])):(6553[0-5]|'
402 + '65[0-4][0-9]{2}|6[0-4][0-9]{3}|'
403 + '[1-5][0-9]{4}|[1-9][0-9]{0,3}|0))|'
404 + '((429496729[0-5]|42949672[0-8][0-9]|'
405 + '4294967[01][0-9]{2}|'
406 + '429496[0-6][0-9]{3}|42949[0-5][0-9]{4}|'
407 + '4294[0-8][0-9]{5}|'
408 + '429[0-3][0-9]{6}|42[0-8][0-9]{7}|4[01][0-9]{8}|'
409 + '[1-3][0-9]{9}|[1-9][0-9]{0,8}|0):'
410 + '(6553[0-5]|655[0-2][0-9]|65[0-4][0-9]{2}|'
412 + '[1-5][0-9]{4}|[1-9][0-9]{0,3}|0))|'
413 + '((6553[0-5]|655[0-2][0-9]|65[0-4][0-9]{2}|'
415 + '[1-5][0-9]{4}|[1-9][0-9]{0,3}|0).'
416 + '(6553[0-5]|655[0-2][0-9]|65[0-4][0-9]{2}|'
418 + '[1-5][0-9]{4}|[1-9][0-9]{0,3}|0):'
419 + '(429496729[0-5]|42949672[0-8][0-9]|'
420 + '4294967[01][0-9]{2}|'
421 + '429496[0-6][0-9]{3}|42949[0-5][0-9]{4}|'
422 + '4294[0-8][0-9]{5}|'
423 + '429[0-3][0-9]{6}|42[0-8][0-9]{7}|4[01][0-9]{8}|'
424 + '[1-3][0-9]{9}|[1-9][0-9]{0,8}|0))';
428 "A Route Distinguisher is an 8-octet value used to
429 distinguish routes from different BGP VPNs (RFC 4364).
430 A Route Distinguisher will have the same format as a
431 Route Target as per RFC 4360 and will consist of
432 two or three fields: a 2-octet Type field, an administrator
433 field, and, optionally, an assigned number field.
434 According to the data formats for types 0, 1, 2, and 6 as
435 defined in RFC 4360, RFC 5668, and RFC 7432, the encoding
436 pattern is defined as:
437 0:2-octet-asn:4-octet-number
438 1:4-octet-ipv4addr:2-octet-number
439 2:4-octet-asn:2-octet-number
440 6:6-octet-mac-address
441 Additionally, a generic pattern is defined for future
442 route discriminator types:
443 2-octet-other-hex-number:6-octet-hex-number
444 Some valid examples are 0:100:100, 1:1.1.1.1:100,
445 2:1234567890:203, and 6:26:00:08:92:78:00.
446 The following route distinguisher with two fields are also
447 accepted : 10000:44 1.2.3.4:44.";
449 "RFC 4360: BGP Extended Communities Attribute.
450 RFC 4364: BGP/MPLS IP Virtual Private Networks (VPNs).
451 RFC 5668: 4-Octet AS Specific BGP Extended Community.
452 RFC 7432: BGP MPLS-Based Ethernet VPN.";
455 typedef extcommunity-lb-type {
457 enum "explicit-bandwidth" {
460 "Bandwidth value in Mbps";
462 enum "cumulative-bandwidth" {
465 "Cumulative bandwidth of all multipaths (outbound-only)";
467 enum "computed-bandwidth" {
470 "Internally computed bandwidth based on number of multipaths (outbound-only)";
474 "ext-community link bandwidth types.";
480 range "1..4294967295";
483 pattern '(0|[1-9][0-9]{0,3}|[1-5][0-9]{4}|'
484 + '6[0-4][0-9]{3}|65[0-4][0-9]{2}|'
485 + '655[0-2][0-9]|6553[0-5])\.'
486 + '(0|[1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|'
487 + '65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])' {
488 error-message "AS dot should be in the form [0..65535].[0..65535].";
491 modifier "invert-match";
492 error-message "AS dot can't be equal to 0.0.";
498 augment "/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:match-condition/frr-route-map:rmap-match-condition/frr-route-map:match-condition" {
499 case local-preference {
500 when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:match-condition/frr-route-map:condition, 'frr-bgp-route-map:match-local-preference')";
501 leaf local-preference {
503 range "0..4294967295";
509 when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:match-condition/frr-route-map:condition, 'frr-bgp-route-map:match-alias')";
516 when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:match-condition/frr-route-map:condition, 'frr-bgp-route-map:match-script')";
523 when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:match-condition/frr-route-map:condition, 'frr-bgp-route-map:match-origin')";
546 when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:match-condition/frr-route-map:condition, 'frr-bgp-route-map:rpki')";
568 case rpki-extcommunity {
569 when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:match-condition/frr-route-map:condition, 'frr-bgp-route-map:rpki-extcommunity')";
570 leaf rpki-extcommunity {
592 when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:match-condition/frr-route-map:condition, 'frr-bgp-route-map:probability')";
601 when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:match-condition/frr-route-map:condition, 'frr-bgp-route-map:source-vrf')";
608 when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:match-condition/frr-route-map:condition, 'frr-bgp-route-map:peer')";
612 case peer-ipv4-address {
614 "IP address of peer";
615 leaf peer-ipv4-address {
616 type inet:ipv4-address;
620 case peer-interface {
622 "Interface name of peer";
623 leaf peer-interface {
628 case peer-ipv6-address {
630 "IPv6 address of peer";
631 leaf peer-ipv6-address {
632 type inet:ipv6-address;
638 "Static or Redistributed routes";
646 case access-list-name {
647 when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:match-condition/frr-route-map:condition, 'frr-bgp-route-map:mac-address-list') or "
648 + "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:match-condition/frr-route-map:condition, 'frr-bgp-route-map:as-path-list') or "
649 + "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:match-condition/frr-route-map:condition, 'frr-bgp-route-map:ip-route-source') or "
650 + "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:match-condition/frr-route-map:condition, 'frr-bgp-route-map:ip-route-source-prefix-list')";
654 type filter:access-list-name;
658 case evpn-default-route {
659 when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:match-condition/frr-route-map:condition, 'frr-bgp-route-map:evpn-default-route')";
661 "Match default EVPN type-5 route";
662 leaf evpn-default-route {
668 when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:match-condition/frr-route-map:condition, 'frr-bgp-route-map:evpn-vni')";
678 case evpn-route-type {
679 when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:match-condition/frr-route-map:condition, 'frr-bgp-route-map:evpn-route-type')";
681 "Match eVPN route-type";
682 leaf evpn-route-type {
702 "Ethernet Auto-Discovery route";
707 "Ethernet Segment route";
714 when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:match-condition/frr-route-map:condition, 'frr-bgp-route-map:evpn-rd')";
716 "Match eVPN route-distinguisher";
717 leaf route-distinguisher {
718 type route-distinguisher;
722 case comm-list-name {
723 when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:match-condition/frr-route-map:condition, 'frr-bgp-route-map:match-community') or "
724 + "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:match-condition/frr-route-map:condition, 'frr-bgp-route-map:match-large-community') or "
725 + "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:match-condition/frr-route-map:condition, 'frr-bgp-route-map:match-extcommunity')";
726 container comm-list {
727 leaf comm-list-name {
728 type bgp-filter:bgp-list-name;
731 leaf comm-list-name-exact-match {
734 "Do exact matching of communities";
740 when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:match-condition/frr-route-map:condition, 'frr-bgp-route-map:ipv4-nexthop')";
742 type inet:ipv4-address;
749 when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:match-condition/frr-route-map:condition, 'frr-bgp-route-map:ipv6-nexthop')";
751 type inet:ipv6-address;
758 augment "/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:set-action/frr-route-map:rmap-set-action/frr-route-map:set-action" {
760 when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:set-action/frr-route-map:action, 'frr-bgp-route-map:distance')";
768 case extcommunity-none {
769 when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:set-action/frr-route-map:action, 'frr-bgp-route-map:set-extcommunity-none')";
771 "Value of the BGP extended community attribute";
772 leaf extcommunity-none {
774 description "No extended community attribute";
778 case extcommunity-rt {
779 when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:set-action/frr-route-map:action, 'frr-bgp-route-map:set-extcommunity-rt')";
781 "Value of the ext-community";
782 leaf extcommunity-rt {
785 "Set BGP ext-community route-target attribute";
789 case extcommunity-soo {
790 when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:set-action/frr-route-map:action, 'frr-bgp-route-map:set-extcommunity-soo')";
792 "Value of the ext-community";
793 leaf extcommunity-soo {
796 "Set BGP ext-community site-of-origin attribute";
800 case extcommunity-lb {
801 when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:set-action/frr-route-map:action, 'frr-bgp-route-map:set-extcommunity-lb')";
802 container extcommunity-lb {
804 "Value of the ext-community.";
806 type frr-bgp-route-map:extcommunity-lb-type;
810 when "../lb-type = 'explicit-bandwidth'";
815 "Bandwidth value in Mbps";
817 uses extcommunity-non-transitive-types;
822 when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:set-action/frr-route-map:action, 'frr-bgp-route-map:ipv4-vpn-address')";
824 "Set the IPv4 address";
826 type inet:ipv4-address;
831 when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:set-action/frr-route-map:action, 'frr-bgp-route-map:set-ipv4-nexthop')";
838 when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:set-action/frr-route-map:action, 'frr-bgp-route-map:ipv6-nexthop-global') or "
839 + "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:set-action/frr-route-map:action, 'frr-bgp-route-map:ipv6-vpn-address')";
841 "Set the IPv6 address";
843 type inet:ipv6-address;
848 when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:set-action/frr-route-map:action, 'frr-bgp-route-map:ipv6-prefer-global') or "
849 + "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:set-action/frr-route-map:action, 'frr-bgp-route-map:ipv6-peer-address')";
856 when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:set-action/frr-route-map:action, 'frr-bgp-route-map:label-index')";
865 when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:set-action/frr-route-map:action, 'frr-bgp-route-map:set-local-preference')";
872 when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:set-action/frr-route-map:action, 'frr-bgp-route-map:weight')";
875 range "0..4294967295";
881 when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:set-action/frr-route-map:action, 'frr-bgp-route-map:set-origin')";
904 when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:set-action/frr-route-map:action, 'frr-bgp-route-map:originator-id')";
906 type inet:ipv4-address;
911 when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:set-action/frr-route-map:action, 'frr-bgp-route-map:table')";
914 range "1..4294967295";
919 case atomic-aggregate {
920 when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:set-action/frr-route-map:action, 'frr-bgp-route-map:atomic-aggregate')";
921 leaf atomic-aggregate {
927 when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:set-action/frr-route-map:action, 'frr-bgp-route-map:aigp-metric')";
931 "Set BGP AIGP attribute (AIGP Metric TLV)";
935 case as-path-prepend {
936 when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:set-action/frr-route-map:action, 'frr-bgp-route-map:as-path-prepend')";
937 choice as-path-prepend {
939 "Value of the BGP AS-path attribute";
942 "Prepend the mentioned AS-path";
943 leaf prepend-as-path {
950 "Prepend the last ASN in the AS-path";
960 case as-path-exclude {
961 when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:set-action/frr-route-map:action, 'frr-bgp-route-map:as-path-exclude')";
962 leaf exclude-as-path {
965 "Exclude the mentioned AS-path";
969 case as-path-replace {
970 when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:set-action/frr-route-map:action, 'frr-bgp-route-map:as-path-replace')";
971 leaf replace-as-path {
974 "Replace ASNs to local AS number";
979 when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:set-action/frr-route-map:action, 'frr-bgp-route-map:set-community')";
982 "Value of the BGP community attribute";
985 "No community attribute";
986 leaf community-none {
991 case community-string {
994 leaf community-string {
1001 case large-community {
1002 when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:set-action/frr-route-map:action, 'frr-bgp-route-map:set-large-community')";
1003 choice large-community {
1005 "Value of the BGP large-community attribute";
1008 "No large-community attribute";
1009 leaf large-community-none {
1014 case large-community-string {
1016 "Large-Community string";
1017 leaf large-community-string {
1025 when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:set-action/frr-route-map:action, 'frr-bgp-route-map:aggregator')";
1026 container aggregator {
1027 leaf aggregator-asn {
1030 "ASN of the aggregator";
1033 leaf aggregator-address {
1034 type inet:ipv4-address;
1036 "IPv4 address of the aggregator";
1041 case comm-list-name {
1042 when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:set-action/frr-route-map:action, 'frr-bgp-route-map:comm-list-delete') or "
1043 + "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:set-action/frr-route-map:action, 'frr-bgp-route-map:large-comm-list-delete')";
1044 leaf comm-list-name {
1045 type bgp-filter:bgp-list-name;
1048 case evpn-gateway-ip-ipv4 {
1050 "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:set-action/frr-route-map:action,
1051 'frr-bgp-route-map:set-evpn-gateway-ip-ipv4')";
1053 "Set EVPN gateway IP overlay index IPv4";
1054 leaf evpn-gateway-ip-ipv4 {
1055 type inet:ipv4-address;
1058 case evpn-gateway-ip-ipv6 {
1060 "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:set-action/frr-route-map:action,
1061 'frr-bgp-route-map:set-evpn-gateway-ip-ipv6')";
1063 "Set EVPN gateway IP overlay index IPv6";
1064 leaf evpn-gateway-ip-ipv6 {
1065 type inet:ipv6-address;
1068 case l3vpn-nexthop-encapsulation {
1070 "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:set-action/frr-route-map:action,
1071 'frr-bgp-route-map:set-l3vpn-nexthop-encapsulation')";
1073 "Accept L3VPN traffic over other than LSP encapsulation";
1074 leaf l3vpn-nexthop-encapsulation {