]> git.proxmox.com Git - mirror_frr.git/blame - yang/frr-bgp.yang
bgpd: yang defination
[mirror_frr.git] / yang / frr-bgp.yang
CommitLineData
2228b116 1module frr-bgp {
2 yang-version 1.1;
3 namespace "http://frrouting.org/yang/bgp";
4 prefix frr-bgp;
5
6 import frr-routing {
7 prefix frr-rt;
8 }
9
10 import ietf-inet-types {
11 prefix inet;
12 }
13
14 import ietf-routing-types {
15 prefix rt-types;
16 }
17
18 import frr-interface {
19 prefix frr-interface;
20 }
21
22 include "frr-bgp-common-structure";
23
24 include "frr-bgp-common";
25
26 include "frr-bgp-common-multiprotocol";
27
28 include "frr-bgp-neighbor";
29
30 include "frr-bgp-peer-group";
31
32 include "frr-bgp-bmp";
33
34 organization
35 "FRRouting";
36 contact
37 "FRR Users List: <mailto:frog@lists.frrouting.org> FRR Development
38 List: <mailto:dev@lists.frrouting.org>";
39 description
40 "This module defines a model for managing FRR bgpd daemon.
41
42 Copyright 2020 FRRouting
43
44 Redistribution and use in source and binary forms, with or without
45 modification, are permitted provided that the following conditions
46 are met:
47
48 1. Redistributions of source code must retain the above copyright notice,
49 this list of conditions and the following disclaimer.
50
51 2. Redistributions in binary form must reproduce the above copyright
52 notice, this list of conditions and the following disclaimer in the
53 documentation and/or other materials provided with the distribution.
54
55 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
56 \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
57 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
58 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
59 HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
60 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
61 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
62 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
63 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
64 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
65 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.";
66
67 revision 2019-12-03 {
68 description
69 "Initial revision.";
70 }
71
72 identity bgp {
73 base frr-rt:routing-protocol;
74 description
75 "BGP protocol.";
76 }
77
78 grouping mp-afi-unicast-common {
79 uses global-group-use-multiple-paths;
80
81 uses global-redistribute;
82
83 uses admin-distance;
84 }
85
86 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol" {
87 container bgp {
88 when "../frr-rt:type = 'frr-bgp:bgp'" {
89 description
90 "BGP protocol augmentation of ietf-routing module
91 control-plane-protocol.";
92 }
93 description
94 "Top-level configuration for the BGP router.";
95 container global {
96 presence "Enables global configuration of BGP";
97 description
98 "Global configuration for the BGP router.";
99 leaf local-as {
100 type inet:as-number;
101 mandatory true;
102 description
103 "Local autonomous system number of the router. Uses
104 the 32-bit as-number type from the model in RFC 6991.";
105 }
106
107 uses frr-rt:router-id;
108
109 container confederation {
110 description
111 "Configuration options specifying parameters when the
112 local router is within an autonomous system which is
113 part of a BGP confederation.";
114 leaf identifier {
115 type inet:as-number;
116 description
117 "Confederation identifier for the autonomous system.";
118 }
119
120 leaf-list member-as {
121 type inet:as-number;
122 description
123 "Remote autonomous systems that are to be treated
124 as part of the local confederation.";
125 }
126 }
127
128 uses med-config;
129
130 uses route-reflector-config;
131
132 uses route-selection-options;
133
134 uses global-neighbor-config;
135
136 container graceful-restart {
137 description
138 "Parameters relating the graceful restart mechanism for
139 BGP.";
140 uses graceful-restart-config;
141 }
142
143 uses global-update-group-config;
144
145 uses global-config-timers;
146
147 uses global-bgp-config;
148
149 uses global-network-config;
150
151 uses global-graceful-shutdown;
152
153 uses global-bmp-config;
154
155 container afi-safis {
156 description
157 "List of address-families associated with the BGP
158 instance.";
159 list afi-safi {
160 key "afi-safi-name";
161 description
162 "AFI, SAFI configuration available for the
163 neighbour or group.";
164 uses mp-afi-safi-config;
165
166 uses mp-all-afi-safi-list-contents;
167 }
168 }
169 }
170
171 container neighbors {
172 description
173 "Configuration for BGP neighbors.";
174 list neighbor {
175 key "remote-address";
176 description
177 "List of BGP neighbors configured on the local system,
178 uniquely identified by remote IPv[46] address.";
179 leaf remote-address {
180 type inet:ip-address;
181 description
182 "The remote IP address of this entry's BGP peer.";
183 }
184
185 leaf local-interface {
186 type frr-interface:interface-ref {
187 require-instance false;
188 }
189 description
190 "Neighbor's interface name.";
191 }
192
193 leaf local-port {
194 type inet:port-number {
195 range "0..65535";
196 }
197 description
198 "Neighbor's BGP TCP port number.";
199 }
200
201 leaf peer-group {
202 type leafref {
203 path "../../../peer-groups/peer-group/peer-group-name";
204 }
205 description
206 "The peer-group with which this neighbor is associated.";
207 }
208
209 uses neighbor-parameters;
210 }
211
212 list unnumbered-neighbor {
213 key "interface";
214 description
215 "List of BGP neighbors configured on the local system,
216 uniquely identified by interfaces.";
217 leaf interface {
218 type frr-interface:interface-ref {
219 require-instance false;
220 }
221 description
222 "The local interface of this entry's BGP peer.";
223 }
224
225 leaf v6only {
226 type boolean;
227 default "false";
228 description
229 "When set to 'true' it will create a neighbor with v6
230 link local only.";
231 }
232
233 leaf peer-group {
234 type leafref {
235 path "../../../peer-groups/peer-group/peer-group-name";
236 }
237 description
238 "The peer-group with which this neighbor is associated.";
239 }
240
241 uses neighbor-parameters;
242 }
243 }
244
245 container peer-groups {
246 description
247 "Configuration for BGP peer-groups.";
248 uses bgp-peer-group-list;
249 }
250 }
251 }
252
253 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/global/afi-safis/afi-safi/ipv4-unicast" {
254 list network-config {
255 key "prefix";
256 description
257 "A list of network routes.";
258 leaf prefix {
259 type inet:ipv4-prefix;
260 description
261 "IPv4 destination prefix.";
262 }
263
264 leaf backdoor {
265 type boolean;
266 default "false";
267 description
268 "Specify a BGP backdoor route.";
269 }
270
271 uses mp-afi-safi-network-config;
272 }
273
274 list aggregate-route {
275 key "prefix";
276 description
277 "A list of aggregated routes.";
278 leaf prefix {
279 type inet:ipv4-prefix;
280 description
281 "IPv4 destination prefix.";
282 }
283
284 uses mp-afi-safi-agg-route-config;
285 }
286
287 list admin-distance-route {
288 key "prefix";
289 description
290 "A list of routes with a particular admin distance.";
291 leaf prefix {
292 type inet:ipv4-prefix;
293 description
294 "IPv4 destination prefix.";
295 }
296
297 uses distance-per-route-config;
298 }
299
300 uses route-flap-dampening;
301
302 uses mp-afi-unicast-common;
303
304 uses global-filter-config;
305
306 uses global-afi-safi-vpn-config;
307 }
308
309 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/global/afi-safis/afi-safi/ipv6-unicast" {
310 list network-config {
311 key "prefix";
312 description
313 "A list of network routes.";
314 leaf prefix {
315 type inet:ipv6-prefix;
316 description
317 "IPv6 destination prefix.";
318 }
319
320 leaf backdoor {
321 type boolean;
322 default "false";
323 description
324 "Specify a BGP backdoor route.";
325 }
326
327 uses mp-afi-safi-network-config;
328 }
329
330 list aggregate-route {
331 key "prefix";
332 description
333 "A list of aggregated routes.";
334 leaf prefix {
335 type inet:ipv6-prefix;
336 description
337 "IPv6 destination prefix.";
338 }
339
340 uses mp-afi-safi-agg-route-config;
341 }
342
343 list admin-distance-route {
344 key "prefix";
345 description
346 "A list of routes with a particular admin distance.";
347 leaf prefix {
348 type inet:ipv6-prefix;
349 description
350 "IPv6 destination prefix.";
351 }
352
353 uses distance-per-route-config;
354 }
355
356 uses mp-afi-unicast-common;
357
358 uses global-filter-config;
359
360 uses global-afi-safi-vpn-config;
361 }
362
363 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/global/afi-safis/afi-safi/ipv4-labeled-unicast" {
364 uses global-group-use-multiple-paths;
365 }
366
367 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/global/afi-safis/afi-safi/ipv6-labeled-unicast" {
368 uses global-group-use-multiple-paths;
369 }
370
371 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/global/afi-safis/afi-safi/ipv4-multicast" {
372 list network-config {
373 key "prefix";
374 description
375 "A list of network routes.";
376 leaf prefix {
377 type rt-types:ipv4-multicast-group-address;
378 description
379 "IPv4 multicast destination prefix.";
380 }
381
382 leaf backdoor {
383 type boolean;
384 default "false";
385 description
386 "Specify a BGP backdoor route.";
387 }
388
389 uses mp-afi-safi-network-config;
390 }
391
392 list aggregate-route {
393 key "prefix";
394 description
395 "A list of aggregated routes.";
396 leaf prefix {
397 type rt-types:ipv4-multicast-group-address;
398 description
399 "IPv4 multicast destination prefix.";
400 }
401
402 uses mp-afi-safi-agg-route-config;
403 }
404
405 list admin-distance-route {
406 key "prefix";
407 description
408 "A list of routes with a particular admin distance.";
409 leaf prefix {
410 type rt-types:ipv4-multicast-group-address;
411 description
412 "IPv4 multicast destination prefix.";
413 }
414 }
415
416 uses admin-distance;
417
418 uses route-flap-dampening;
419
420 uses global-filter-config;
421 }
422
423 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/global/afi-safis/afi-safi/ipv6-multicast" {
424 list network-config {
425 key "prefix";
426 description
427 "A list of network routes.";
428 leaf prefix {
429 type rt-types:ipv6-multicast-group-address;
430 description
431 "IPv6 multicast destination prefix.";
432 }
433
434 leaf backdoor {
435 type boolean;
436 default "false";
437 description
438 "Specify a BGP backdoor route.";
439 }
440
441 uses mp-afi-safi-network-config;
442 }
443
444 list aggregate-route {
445 key "prefix";
446 description
447 "A list of aggregated routes.";
448 leaf prefix {
449 type rt-types:ipv6-multicast-group-address;
450 description
451 "IPv6 multicast destination prefix.";
452 }
453
454 uses mp-afi-safi-agg-route-config;
455 }
456
457 list admin-distance-route {
458 key "prefix";
459 description
460 "A list of routes with a particular admin distance.";
461 leaf prefix {
462 type rt-types:ipv6-multicast-group-address;
463 description
464 "IPv6 multicast destination prefix.";
465 }
466 }
467
468 uses admin-distance;
469 }
470
471 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/global/afi-safis/afi-safi/ipv4-flowspec" {
472 uses flow-spec-config;
473 }
474
475 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/global/afi-safis/afi-safi/l3vpn-ipv4-unicast" {
476 uses global-afi-safi-vpn-network-config;
477 }
478
479 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/global/afi-safis/afi-safi/l3vpn-ipv6-unicast" {
480 uses global-afi-safi-vpn-network-config;
481 }
482
483 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/global/bmp-config/target-list/afi-safis/afi-safi/ipv4-unicast" {
484 uses bmp-afi-safi-common-config;
485 }
486
487 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/global/bmp-config/target-list/afi-safis/afi-safi/ipv4-multicast" {
488 uses bmp-afi-safi-common-config;
489 }
490
491 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/global/bmp-config/target-list/afi-safis/afi-safi/ipv6-unicast" {
492 uses bmp-afi-safi-common-config;
493 }
494
495 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/global/bmp-config/target-list/afi-safis/afi-safi/ipv6-multicast" {
496 uses bmp-afi-safi-common-config;
497 }
498
499 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast" {
500 uses structure-neighbor-group-add-paths;
501
502 uses structure-neighbor-group-as-path-options;
503
504 uses structure-neighbor-default-originate-options;
505
506 uses structure-neighbor-prefix-limit;
507
508 uses structure-neighbor-nexthop-self;
509
510 uses structure-neighbor-private-as;
511
512 uses structure-neighbor-weight;
513
514 uses structure-neighbor-route-reflector;
515
516 uses structure-neighbor-route-server;
517
518 uses structure-neighbor-send-community;
519
520 uses structure-neighbor-group-soft-reconfiguration;
521
522 uses structure-neighbor-group-attr-unchanged;
523
524 uses structure-neighbor-group-orf-capability;
525
526 uses structure-neighbor-group-filter-config;
527 }
528
529 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-unicast" {
530 leaf nexthop-local-unchanged {
531 type boolean;
532 default "false";
533 description
534 "Configure treatment of outgoing link-local nexthop attribute.
535 When set to 'true' it leaves link-local nexthop unchanged
536 for this peer.";
537 }
538
539 uses structure-neighbor-group-add-paths;
540
541 uses structure-neighbor-group-as-path-options;
542
543 uses structure-neighbor-group-attr-unchanged;
544
545 uses structure-neighbor-group-orf-capability;
546
547 uses structure-neighbor-prefix-limit;
548
549 uses structure-neighbor-nexthop-self;
550
551 uses structure-neighbor-private-as;
552
553 uses structure-neighbor-route-reflector;
554
555 uses structure-neighbor-route-server;
556
557 uses structure-neighbor-send-community;
558
559 uses structure-neighbor-group-soft-reconfiguration;
560
561 uses structure-neighbor-weight;
562 }
563
564 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-multicast" {
565 uses structure-neighbor-group-add-paths;
566
567 uses structure-neighbor-group-as-path-options;
568
569 uses structure-neighbor-group-attr-unchanged;
570
571 uses structure-neighbor-group-orf-capability;
572
573 uses structure-neighbor-prefix-limit;
574
575 uses structure-neighbor-nexthop-self;
576
577 uses structure-neighbor-private-as;
578
579 uses structure-neighbor-route-reflector;
580
581 uses structure-neighbor-route-server;
582
583 uses structure-neighbor-send-community;
584
585 uses structure-neighbor-group-soft-reconfiguration;
586
587 uses structure-neighbor-weight;
588 }
589
590 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-multicast" {
591 uses structure-neighbor-group-add-paths;
592
593 uses structure-neighbor-group-as-path-options;
594
595 uses structure-neighbor-group-attr-unchanged;
596
597 uses structure-neighbor-group-orf-capability;
598
599 uses structure-neighbor-prefix-limit;
600
601 uses structure-neighbor-nexthop-self;
602
603 uses structure-neighbor-private-as;
604
605 uses structure-neighbor-route-reflector;
606
607 uses structure-neighbor-route-server;
608
609 uses structure-neighbor-send-community;
610
611 uses structure-neighbor-group-soft-reconfiguration;
612
613 uses structure-neighbor-weight;
614 }
615
616 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-labeled-unicast" {
617 uses structure-neighbor-group-add-paths;
618
619 uses structure-neighbor-group-as-path-options;
620
621 uses structure-neighbor-group-attr-unchanged;
622
623 uses structure-neighbor-group-orf-capability;
624
625 uses structure-neighbor-prefix-limit;
626
627 uses structure-neighbor-nexthop-self;
628
629 uses structure-neighbor-private-as;
630
631 uses structure-neighbor-route-reflector;
632
633 uses structure-neighbor-route-server;
634
635 uses structure-neighbor-send-community;
636
637 uses structure-neighbor-group-soft-reconfiguration;
638
639 uses structure-neighbor-weight;
640 }
641
642 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-labeled-unicast" {
643 uses structure-neighbor-group-add-paths;
644
645 uses structure-neighbor-group-as-path-options;
646
647 uses structure-neighbor-group-attr-unchanged;
648
649 uses structure-neighbor-group-orf-capability;
650
651 uses structure-neighbor-prefix-limit;
652
653 uses structure-neighbor-nexthop-self;
654
655 uses structure-neighbor-private-as;
656
657 uses structure-neighbor-route-reflector;
658
659 uses structure-neighbor-route-server;
660
661 uses structure-neighbor-send-community;
662
663 uses structure-neighbor-group-soft-reconfiguration;
664
665 uses structure-neighbor-weight;
666 }
667
668 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast" {
669 uses structure-neighbor-group-add-paths;
670
671 uses structure-neighbor-group-as-path-options;
672
673 uses structure-neighbor-group-attr-unchanged;
674
675 uses structure-neighbor-prefix-limit;
676
677 uses structure-neighbor-nexthop-self;
678
679 uses structure-neighbor-private-as;
680
681 uses structure-neighbor-route-reflector;
682
683 uses structure-neighbor-route-server;
684
685 uses structure-neighbor-send-community;
686
687 uses structure-neighbor-group-soft-reconfiguration;
688
689 uses structure-neighbor-weight;
690 }
691
692 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast" {
693 uses structure-neighbor-group-add-paths;
694
695 uses structure-neighbor-group-as-path-options;
696
697 uses structure-neighbor-group-attr-unchanged;
698
699 uses structure-neighbor-prefix-limit;
700
701 uses structure-neighbor-nexthop-self;
702
703 uses structure-neighbor-private-as;
704
705 uses structure-neighbor-route-reflector;
706
707 uses structure-neighbor-route-server;
708
709 uses structure-neighbor-send-community;
710
711 uses structure-neighbor-group-soft-reconfiguration;
712
713 uses structure-neighbor-weight;
714 }
715
716 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/neighbors/neighbor/afi-safis/afi-safi/l2vpn-evpn" {
717 uses structure-neighbor-group-as-path-options;
718
719 uses structure-neighbor-group-attr-unchanged;
720
721 uses structure-neighbor-nexthop-self;
722
723 uses structure-neighbor-route-reflector;
724
725 uses structure-neighbor-route-server;
726
727 uses structure-neighbor-group-soft-reconfiguration;
728 }
729
730 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-flowspec" {
731 uses structure-neighbor-route-reflector;
732
733 uses structure-neighbor-route-server;
734
735 uses structure-neighbor-group-soft-reconfiguration;
736 }
737
738 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-flowspec" {
739 uses structure-neighbor-route-reflector;
740
741 uses structure-neighbor-route-server;
742
743 uses structure-neighbor-group-soft-reconfiguration;
744 }
745
746 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast" {
747 uses structure-neighbor-group-add-paths;
748
749 uses structure-neighbor-group-as-path-options;
750
751 uses structure-neighbor-default-originate-options;
752
753 uses structure-neighbor-prefix-limit;
754
755 uses structure-neighbor-nexthop-self;
756
757 uses structure-neighbor-private-as;
758
759 uses structure-neighbor-weight;
760
761 uses structure-neighbor-route-reflector;
762
763 uses structure-neighbor-route-server;
764
765 uses structure-neighbor-send-community;
766
767 uses structure-neighbor-group-soft-reconfiguration;
768
769 uses structure-neighbor-group-attr-unchanged;
770
771 uses structure-neighbor-group-orf-capability;
772
773 uses structure-neighbor-group-filter-config;
774 }
775
776 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-unicast" {
777 leaf nexthop-local-unchanged {
778 type boolean;
779 default "false";
780 description
781 "Configure treatment of outgoing link-local nexthop attribute.
782 When set to 'true' it leaves link-local nexthop unchanged
783 for this peer.";
784 }
785
786 uses structure-neighbor-group-add-paths;
787
788 uses structure-neighbor-group-as-path-options;
789
790 uses structure-neighbor-group-attr-unchanged;
791
792 uses structure-neighbor-group-orf-capability;
793
794 uses structure-neighbor-prefix-limit;
795
796 uses structure-neighbor-nexthop-self;
797
798 uses structure-neighbor-private-as;
799
800 uses structure-neighbor-route-reflector;
801
802 uses structure-neighbor-route-server;
803
804 uses structure-neighbor-send-community;
805
806 uses structure-neighbor-group-soft-reconfiguration;
807
808 uses structure-neighbor-weight;
809 }
810
811 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-multicast" {
812 uses structure-neighbor-group-add-paths;
813
814 uses structure-neighbor-group-as-path-options;
815
816 uses structure-neighbor-group-attr-unchanged;
817
818 uses structure-neighbor-group-orf-capability;
819
820 uses structure-neighbor-prefix-limit;
821
822 uses structure-neighbor-nexthop-self;
823
824 uses structure-neighbor-private-as;
825
826 uses structure-neighbor-route-reflector;
827
828 uses structure-neighbor-route-server;
829
830 uses structure-neighbor-send-community;
831
832 uses structure-neighbor-group-soft-reconfiguration;
833
834 uses structure-neighbor-weight;
835 }
836
837 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-multicast" {
838 uses structure-neighbor-group-add-paths;
839
840 uses structure-neighbor-group-as-path-options;
841
842 uses structure-neighbor-group-attr-unchanged;
843
844 uses structure-neighbor-group-orf-capability;
845
846 uses structure-neighbor-prefix-limit;
847
848 uses structure-neighbor-nexthop-self;
849
850 uses structure-neighbor-private-as;
851
852 uses structure-neighbor-route-reflector;
853
854 uses structure-neighbor-route-server;
855
856 uses structure-neighbor-send-community;
857
858 uses structure-neighbor-group-soft-reconfiguration;
859
860 uses structure-neighbor-weight;
861 }
862
863 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-labeled-unicast" {
864 uses structure-neighbor-group-add-paths;
865
866 uses structure-neighbor-group-as-path-options;
867
868 uses structure-neighbor-group-attr-unchanged;
869
870 uses structure-neighbor-group-orf-capability;
871
872 uses structure-neighbor-prefix-limit;
873
874 uses structure-neighbor-nexthop-self;
875
876 uses structure-neighbor-private-as;
877
878 uses structure-neighbor-route-reflector;
879
880 uses structure-neighbor-route-server;
881
882 uses structure-neighbor-send-community;
883
884 uses structure-neighbor-group-soft-reconfiguration;
885
886 uses structure-neighbor-weight;
887 }
888
889 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-labeled-unicast" {
890 uses structure-neighbor-group-add-paths;
891
892 uses structure-neighbor-group-as-path-options;
893
894 uses structure-neighbor-group-attr-unchanged;
895
896 uses structure-neighbor-group-orf-capability;
897
898 uses structure-neighbor-prefix-limit;
899
900 uses structure-neighbor-nexthop-self;
901
902 uses structure-neighbor-private-as;
903
904 uses structure-neighbor-route-reflector;
905
906 uses structure-neighbor-route-server;
907
908 uses structure-neighbor-send-community;
909
910 uses structure-neighbor-group-soft-reconfiguration;
911
912 uses structure-neighbor-weight;
913 }
914
915 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast" {
916 uses structure-neighbor-group-add-paths;
917
918 uses structure-neighbor-group-as-path-options;
919
920 uses structure-neighbor-group-attr-unchanged;
921
922 uses structure-neighbor-prefix-limit;
923
924 uses structure-neighbor-nexthop-self;
925
926 uses structure-neighbor-private-as;
927
928 uses structure-neighbor-route-reflector;
929
930 uses structure-neighbor-route-server;
931
932 uses structure-neighbor-send-community;
933
934 uses structure-neighbor-group-soft-reconfiguration;
935
936 uses structure-neighbor-weight;
937 }
938
939 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast" {
940 uses structure-neighbor-group-add-paths;
941
942 uses structure-neighbor-group-as-path-options;
943
944 uses structure-neighbor-group-attr-unchanged;
945
946 uses structure-neighbor-prefix-limit;
947
948 uses structure-neighbor-nexthop-self;
949
950 uses structure-neighbor-private-as;
951
952 uses structure-neighbor-route-reflector;
953
954 uses structure-neighbor-route-server;
955
956 uses structure-neighbor-send-community;
957
958 uses structure-neighbor-group-soft-reconfiguration;
959
960 uses structure-neighbor-weight;
961 }
962
963 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l2vpn-evpn" {
964 uses structure-neighbor-group-as-path-options;
965
966 uses structure-neighbor-group-attr-unchanged;
967
968 uses structure-neighbor-nexthop-self;
969
970 uses structure-neighbor-route-reflector;
971
972 uses structure-neighbor-route-server;
973
974 uses structure-neighbor-group-soft-reconfiguration;
975 }
976
977 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-flowspec" {
978 uses structure-neighbor-route-reflector;
979
980 uses structure-neighbor-route-server;
981
982 uses structure-neighbor-group-soft-reconfiguration;
983 }
984
985 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-flowspec" {
986 uses structure-neighbor-route-reflector;
987
988 uses structure-neighbor-route-server;
989
990 uses structure-neighbor-group-soft-reconfiguration;
991 }
992
993 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-unicast" {
994 uses structure-neighbor-group-add-paths;
995
996 uses structure-neighbor-group-as-path-options;
997
998 uses structure-neighbor-default-originate-options;
999
1000 uses structure-neighbor-prefix-limit;
1001
1002 uses structure-neighbor-nexthop-self;
1003
1004 uses structure-neighbor-private-as;
1005
1006 uses structure-neighbor-weight;
1007
1008 uses structure-neighbor-route-reflector;
1009
1010 uses structure-neighbor-route-server;
1011
1012 uses structure-neighbor-send-community;
1013
1014 uses structure-neighbor-group-soft-reconfiguration;
1015
1016 uses structure-neighbor-group-attr-unchanged;
1017
1018 uses structure-neighbor-group-orf-capability;
1019
1020 uses structure-neighbor-group-filter-config;
1021 }
1022
1023 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-unicast" {
1024 leaf nexthop-local-unchanged {
1025 type boolean;
1026 default "false";
1027 description
1028 "Configure treatment of outgoing link-local nexthop attribute.
1029 When set to 'true' it leaves link-local nexthop unchanged
1030 for this peer.";
1031 }
1032
1033 uses structure-neighbor-group-add-paths;
1034
1035 uses structure-neighbor-group-as-path-options;
1036
1037 uses structure-neighbor-group-attr-unchanged;
1038
1039 uses structure-neighbor-group-orf-capability;
1040
1041 uses structure-neighbor-prefix-limit;
1042
1043 uses structure-neighbor-nexthop-self;
1044
1045 uses structure-neighbor-private-as;
1046
1047 uses structure-neighbor-route-reflector;
1048
1049 uses structure-neighbor-route-server;
1050
1051 uses structure-neighbor-send-community;
1052
1053 uses structure-neighbor-group-soft-reconfiguration;
1054
1055 uses structure-neighbor-weight;
1056 }
1057
1058 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-multicast" {
1059 uses structure-neighbor-group-add-paths;
1060
1061 uses structure-neighbor-group-as-path-options;
1062
1063 uses structure-neighbor-group-attr-unchanged;
1064
1065 uses structure-neighbor-group-orf-capability;
1066
1067 uses structure-neighbor-prefix-limit;
1068
1069 uses structure-neighbor-nexthop-self;
1070
1071 uses structure-neighbor-private-as;
1072
1073 uses structure-neighbor-route-reflector;
1074
1075 uses structure-neighbor-route-server;
1076
1077 uses structure-neighbor-send-community;
1078
1079 uses structure-neighbor-group-soft-reconfiguration;
1080
1081 uses structure-neighbor-weight;
1082 }
1083
1084 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-multicast" {
1085 uses structure-neighbor-group-add-paths;
1086
1087 uses structure-neighbor-group-as-path-options;
1088
1089 uses structure-neighbor-group-attr-unchanged;
1090
1091 uses structure-neighbor-group-orf-capability;
1092
1093 uses structure-neighbor-prefix-limit;
1094
1095 uses structure-neighbor-nexthop-self;
1096
1097 uses structure-neighbor-private-as;
1098
1099 uses structure-neighbor-route-reflector;
1100
1101 uses structure-neighbor-route-server;
1102
1103 uses structure-neighbor-send-community;
1104
1105 uses structure-neighbor-group-soft-reconfiguration;
1106
1107 uses structure-neighbor-weight;
1108 }
1109
1110 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-labeled-unicast" {
1111 uses structure-neighbor-group-add-paths;
1112
1113 uses structure-neighbor-group-as-path-options;
1114
1115 uses structure-neighbor-group-attr-unchanged;
1116
1117 uses structure-neighbor-group-orf-capability;
1118
1119 uses structure-neighbor-prefix-limit;
1120
1121 uses structure-neighbor-nexthop-self;
1122
1123 uses structure-neighbor-private-as;
1124
1125 uses structure-neighbor-route-reflector;
1126
1127 uses structure-neighbor-route-server;
1128
1129 uses structure-neighbor-send-community;
1130
1131 uses structure-neighbor-group-soft-reconfiguration;
1132
1133 uses structure-neighbor-weight;
1134 }
1135
1136 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-labeled-unicast" {
1137 uses structure-neighbor-group-add-paths;
1138
1139 uses structure-neighbor-group-as-path-options;
1140
1141 uses structure-neighbor-group-attr-unchanged;
1142
1143 uses structure-neighbor-group-orf-capability;
1144
1145 uses structure-neighbor-prefix-limit;
1146
1147 uses structure-neighbor-nexthop-self;
1148
1149 uses structure-neighbor-private-as;
1150
1151 uses structure-neighbor-route-reflector;
1152
1153 uses structure-neighbor-route-server;
1154
1155 uses structure-neighbor-send-community;
1156
1157 uses structure-neighbor-group-soft-reconfiguration;
1158
1159 uses structure-neighbor-weight;
1160 }
1161
1162 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv4-unicast" {
1163 uses structure-neighbor-group-add-paths;
1164
1165 uses structure-neighbor-group-as-path-options;
1166
1167 uses structure-neighbor-group-attr-unchanged;
1168
1169 uses structure-neighbor-prefix-limit;
1170
1171 uses structure-neighbor-nexthop-self;
1172
1173 uses structure-neighbor-private-as;
1174
1175 uses structure-neighbor-route-reflector;
1176
1177 uses structure-neighbor-route-server;
1178
1179 uses structure-neighbor-send-community;
1180
1181 uses structure-neighbor-group-soft-reconfiguration;
1182
1183 uses structure-neighbor-weight;
1184 }
1185
1186 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv6-unicast" {
1187 uses structure-neighbor-group-add-paths;
1188
1189 uses structure-neighbor-group-as-path-options;
1190
1191 uses structure-neighbor-group-attr-unchanged;
1192
1193 uses structure-neighbor-prefix-limit;
1194
1195 uses structure-neighbor-nexthop-self;
1196
1197 uses structure-neighbor-private-as;
1198
1199 uses structure-neighbor-route-reflector;
1200
1201 uses structure-neighbor-route-server;
1202
1203 uses structure-neighbor-send-community;
1204
1205 uses structure-neighbor-group-soft-reconfiguration;
1206
1207 uses structure-neighbor-weight;
1208 }
1209
1210 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/peer-groups/peer-group/afi-safis/afi-safi/l2vpn-evpn" {
1211 uses structure-neighbor-group-as-path-options;
1212
1213 uses structure-neighbor-group-attr-unchanged;
1214
1215 uses structure-neighbor-nexthop-self;
1216
1217 uses structure-neighbor-route-reflector;
1218
1219 uses structure-neighbor-route-server;
1220
1221 uses structure-neighbor-group-soft-reconfiguration;
1222 }
1223
1224 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-flowspec" {
1225 uses structure-neighbor-route-reflector;
1226
1227 uses structure-neighbor-route-server;
1228
1229 uses structure-neighbor-group-soft-reconfiguration;
1230 }
1231
1232 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-flowspec" {
1233 uses structure-neighbor-route-reflector;
1234
1235 uses structure-neighbor-route-server;
1236
1237 uses structure-neighbor-group-soft-reconfiguration;
1238 }
1239}