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