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.";
477 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" {
478 case local-preference {
479 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')";
480 leaf local-preference {
482 range "0..4294967295";
488 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')";
495 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')";
502 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')";
525 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')";
547 case rpki-extcommunity {
548 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')";
549 leaf rpki-extcommunity {
571 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')";
580 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')";
587 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')";
591 case peer-ipv4-address {
593 "IP address of peer";
594 leaf peer-ipv4-address {
595 type inet:ipv4-address;
599 case peer-interface {
601 "Interface name of peer";
602 leaf peer-interface {
607 case peer-ipv6-address {
609 "IPv6 address of peer";
610 leaf peer-ipv6-address {
611 type inet:ipv6-address;
617 "Static or Redistributed routes";
625 case access-list-name {
626 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 "
627 + "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 "
628 + "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 "
629 + "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')";
633 type filter:access-list-name;
637 case evpn-default-route {
638 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')";
640 "Match default EVPN type-5 route";
641 leaf evpn-default-route {
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:evpn-vni')";
657 case evpn-route-type {
658 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')";
660 "Match eVPN route-type";
661 leaf evpn-route-type {
681 "Ethernet Auto-Discovery route";
686 "Ethernet Segment route";
693 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')";
695 "Match eVPN route-distinguisher";
696 leaf route-distinguisher {
697 type route-distinguisher;
701 case comm-list-name {
702 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 "
703 + "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 "
704 + "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')";
705 container comm-list {
706 leaf comm-list-name {
707 type bgp-filter:bgp-list-name;
710 leaf comm-list-name-exact-match {
713 "Do exact matching of communities";
719 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')";
721 type inet:ipv4-address;
728 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')";
730 type inet:ipv6-address;
737 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" {
739 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')";
747 case extcommunity-none {
748 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')";
750 "Value of the BGP extended community attribute";
751 leaf extcommunity-none {
753 description "No extended community attribute";
757 case extcommunity-rt {
758 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')";
760 "Value of the ext-community";
761 leaf extcommunity-rt {
764 "Set BGP ext-community route-target attribute";
768 case extcommunity-soo {
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-soo')";
771 "Value of the ext-community";
772 leaf extcommunity-soo {
775 "Set BGP ext-community site-of-origin attribute";
779 case extcommunity-lb {
780 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')";
781 container extcommunity-lb {
783 "Value of the ext-community.";
785 type frr-bgp-route-map:extcommunity-lb-type;
789 when "../lb-type = 'explicit-bandwidth'";
794 "Bandwidth value in Mbps";
796 uses extcommunity-non-transitive-types;
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:ipv4-vpn-address')";
803 "Set the IPv4 address";
805 type inet:ipv4-address;
810 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')";
817 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 "
818 + "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')";
820 "Set the IPv6 address";
822 type inet:ipv6-address;
827 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 "
828 + "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')";
835 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')";
844 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')";
851 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')";
854 range "0..4294967295";
860 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')";
883 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')";
885 type inet:ipv4-address;
890 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')";
893 range "1..4294967295";
898 case atomic-aggregate {
899 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')";
900 leaf atomic-aggregate {
906 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')";
910 "Set BGP AIGP attribute (AIGP Metric TLV)";
914 case as-path-prepend {
915 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')";
916 choice as-path-prepend {
918 "Value of the BGP AS-path attribute";
921 "Prepend the mentioned AS-path";
922 leaf prepend-as-path {
929 "Prepend the last ASN in the AS-path";
939 case as-path-exclude {
940 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')";
941 leaf exclude-as-path {
944 "Exclude the mentioned AS-path";
948 case as-path-replace {
949 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')";
950 leaf replace-as-path {
953 "Replace ASNs to local AS number";
958 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')";
961 "Value of the BGP community attribute";
964 "No community attribute";
965 leaf community-none {
970 case community-string {
973 leaf community-string {
980 case large-community {
981 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')";
982 choice large-community {
984 "Value of the BGP large-community attribute";
987 "No large-community attribute";
988 leaf large-community-none {
993 case large-community-string {
995 "Large-Community string";
996 leaf large-community-string {
1004 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')";
1005 container aggregator {
1006 leaf aggregator-asn {
1008 range "1..4294967295";
1011 "ASN of the aggregator";
1014 leaf aggregator-address {
1015 when "../aggregator-asn > 0 or "
1016 + "../aggregator-asn <= 4294967295";
1017 type inet:ipv4-address;
1019 "IPv4 address of the aggregator";
1024 case comm-list-name {
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:comm-list-delete') or "
1026 + "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')";
1027 leaf comm-list-name {
1028 type bgp-filter:bgp-list-name;
1031 case evpn-gateway-ip-ipv4 {
1033 "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,
1034 'frr-bgp-route-map:set-evpn-gateway-ip-ipv4')";
1036 "Set EVPN gateway IP overlay index IPv4";
1037 leaf evpn-gateway-ip-ipv4 {
1038 type inet:ipv4-address;
1041 case evpn-gateway-ip-ipv6 {
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,
1044 'frr-bgp-route-map:set-evpn-gateway-ip-ipv6')";
1046 "Set EVPN gateway IP overlay index IPv6";
1047 leaf evpn-gateway-ip-ipv6 {
1048 type inet:ipv6-address;
1051 case l3vpn-nexthop-encapsulation {
1053 "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,
1054 'frr-bgp-route-map:set-l3vpn-nexthop-encapsulation')";
1056 "Accept L3VPN traffic over other than LSP encapsulation";
1057 leaf l3vpn-nexthop-encapsulation {