]> git.proxmox.com Git - mirror_frr.git/blame - yang/frr-isisd.yang
Merge pull request #3534 from opensourcerouting/netlink-length-duplicated
[mirror_frr.git] / yang / frr-isisd.yang
CommitLineData
20bd27e2
EDP
1module frr-isisd {
2 yang-version 1.1;
3 namespace "http://frrouting.org/yang/isisd";
4 prefix frr-isisd;
5
6 import ietf-yang-types {
7 prefix yang;
8 }
9
10 import ietf-inet-types {
11 prefix inet;
12 }
13
14 import frr-interface {
15 prefix frr-interface;
16 }
17
18 import frr-route-types {
19 prefix frr-route-types;
20 }
21
22 organization
23 "Free Range Routing";
24 contact
25 "FRR Users List: <mailto:frog@lists.frrouting.org> FRR Development
26 List: <mailto:dev@lists.frrouting.org>";
27 description
28 "This module defines a model for managing FRR isisd daemon.";
29
30 revision 2018-07-26 {
31 description
32 "Initial revision.";
33 reference
34 "ISO/IEC 10589:2002.";
35 }
36
37 typedef level {
38 type enumeration {
39 enum "level-1" {
40 value 1;
41 description
42 "This enum indicates L1-only capability.";
43 }
44 enum "level-2" {
45 value 2;
46 description
47 "This enum indicates L2-only capability.";
48 }
49 enum "level-1-2" {
50 value 3;
51 description
52 "This enum indicates capability for both levels.";
53 }
54 }
55 description
56 "This type defines IS-IS level of an object.";
57 }
58
59 typedef network-type {
60 type enumeration {
61 enum "unknown" {
62 value 0;
63 description
64 "Unknown network type. Only valid as a state.";
65 }
66 enum "broadcast" {
67 value 1;
68 description
69 "Broadcast circuit network-type.";
70 }
71 enum "point-to-point" {
72 value 2;
73 description
74 "Point-to-point circuit network-type.";
75 }
76 enum "loopback" {
77 value 3;
78 description
79 "Loopback circuit network-type. Only valid as a state.";
80 }
81 }
82 }
83
84 typedef lsp-id {
85 type string {
86 pattern "[0-9A-Fa-f]{4}\\.[0-9A-Fa-f]{4}\\.[0-9A-Fa-f]{4}\\.[0-9][0-9]-[0-9][0-9]";
87 }
88 description
89 "This type defines the IS-IS LSP ID format using a
90 pattern, An example LSP ID is 0143.0438.AeF0.02-01";
91 }
92
93 typedef system-id {
94 type string {
95 pattern "[0-9A-Fa-f]{4}\\.[0-9A-Fa-f]{4}\\.[0-9A-Fa-f]{4}";
96 }
97 description
98 "This type defines IS-IS system-id using a pattern,
99 An example system-id is 0143.0438.AeF0";
100 }
101
102 typedef net-address {
103 type string {
104 pattern "[a-fA-F0-9]{2}(\\.[a-fA-F0-9]{4}){3,9}\\.[a-fA-F0-9]{2}";
105 }
106 description
107 "This type defines an OSI NET address using a pattern,
108 An example net-address is 49.0123.6452.1972.00";
109 }
110
111 typedef if-state-type {
112 type enumeration {
113 enum "up" {
114 value 0;
115 description
116 "Up state.";
117 }
118 enum "down" {
119 value 1;
120 description
121 "Down state";
122 }
123 }
124 description
125 "This type defines the state of an interface";
126 }
127
128 typedef adj-state-type {
129 type enumeration {
130 enum "up" {
131 value 0;
132 description
133 "State indicates the adjacency is established.";
134 }
135 enum "down" {
136 value 1;
137 description
138 "State indicates the adjacency is NOT established.";
139 }
140 enum "init" {
141 value 2;
142 description
143 "State indicates the adjacency is establishing.";
144 }
145 enum "failed" {
146 value 3;
147 description
148 "State indicates the adjacency is failed.";
149 }
150 }
151 description
152 "This type defines states of an adjacency";
153 }
154
155 typedef metric-style-type {
156 type enumeration {
157 enum "narrow" {
158 value 0;
159 description
160 "This enum describes narrow metric style";
161 reference
162 "RFC1195";
163 }
164 enum "wide" {
165 value 1;
166 description
167 "This enum describes wide metric style";
168 reference
169 "RFC5305";
170 }
171 enum "transition" {
172 value 2;
173 description
174 "This enum describes transition metric style";
175 }
176 }
177 }
178
179 grouping redistribute-attributes {
180 description
181 "Common optional attributes of any redistribute entry.";
182 choice attribute {
183 leaf route-map {
184 type string {
185 length "1..max";
186 }
187 description
188 "Applies the conditions of the specified route-map to routes that
189 are redistributed into this routing instance.";
190 }
191
192 leaf metric {
193 type uint32 {
194 range "0..16777215";
195 }
196 default "0";
197 description
198 "Metric used for the redistributed route. If 0,
199 the default-metric attribute is used instead.";
200 }
201 }
202 }
203
204 grouping redistribute-default {
205 description
206 "Redistribution of default route within a level.";
207 leaf always {
5f1e5e3f
EDP
208 type boolean;
209 default "false";
20bd27e2
EDP
210 description
211 "Always advertise default route.";
212 }
213
214 uses redistribute-attributes;
215 }
216
217 grouping isis-password {
218 description
219 "Authentication attributes or an IS-IS area or domain.";
220 leaf password {
221 type string {
222 length "1..254";
223 }
224 mandatory true;
225 description
226 "Actual password.";
227 }
228
229 leaf password-type {
230 type enumeration {
231 enum "clear" {
232 value 1;
233 description
234 "Clear-text password type.";
235 }
236 enum "md5" {
237 value 54;
238 description
239 "MD5 password type.";
240 }
241 }
242 mandatory true;
243 description
244 "Type of password used.";
245 }
246 }
247
248 grouping isis-area-password {
249 uses isis-password;
250
251 leaf authenticate-snp {
252 type enumeration {
253 enum "none" {
254 value 0;
255 description
256 "No SNP authentication.";
257 }
258 enum "send-only" {
259 value 1;
260 description
261 "Send authenticated PDUs but do not check on receiving.";
262 }
263 enum "validate" {
264 value 3;
265 description
266 "Send authenticated PDUs and check on receiving.";
267 }
268 }
269 default "none";
270 description
271 "SNP PDUs authentication.";
272 }
273 }
274
275 grouping notification-instance-hdr {
276 description
277 "Instance specific IS-IS notification data grouping";
278 leaf routing-instance {
279 type string;
280 description
281 "Name of the routing-instance instance.";
282 }
283
284 leaf routing-protocol-name {
285 type string;
286 description
287 "Name of the IS-IS instance.";
288 }
289
290 leaf isis-level {
291 type level;
292 description
293 "IS-IS level of the instance.";
294 }
295 }
296
297 grouping notification-interface-hdr {
298 description
299 "Interface specific IS-IS notification data grouping";
300 leaf interface-name {
301 type string;
302 description
303 "IS-IS interface name";
304 }
305
306 leaf interface-level {
307 type level;
308 description
309 "IS-IS level of the interface.";
310 }
311
312 leaf extended-circuit-id {
313 type uint32;
314 description
315 "Eextended circuit-id of the interface.";
316 }
317 }
318
319 container isis {
320 description
321 "Configuration of the IS-IS routing daemon.";
322 list instance {
323 key "area-tag";
324 description
325 "IS-IS routing instance.";
326 leaf area-tag {
327 type string;
328 description
329 "Area-tag associated to this routing instance.";
330 }
331
332 leaf is-type {
333 type level;
334 default "level-1";
335 description
336 "Level of the IS-IS routing instance (OSI only).";
337 }
338
339 leaf-list area-address {
340 type net-address;
341 max-elements 3;
342 description
343 "List of OSI NET addresses for this protocol instance.";
344 }
345
346 leaf dynamic-hostname {
347 type boolean;
348 default "true";
349 description
350 "Dynamic hostname support for IS-IS.";
351 }
352
353 leaf attached {
5f1e5e3f
EDP
354 type boolean;
355 default "false";
20bd27e2 356 description
5f1e5e3f 357 "If true, identify as L1/L2 router for inter-area traffic.";
20bd27e2
EDP
358 }
359
360 leaf overload {
5f1e5e3f
EDP
361 type boolean;
362 default "false";
20bd27e2 363 description
5f1e5e3f 364 "If true, avoid any transit traffic.";
20bd27e2
EDP
365 }
366
367 leaf metric-style {
368 type metric-style-type;
369 must ". = 'wide' or count(../multi-topology/*) = 0";
370 default "wide";
371 description
372 "Define the style of TLVs metric supported.";
373 }
374
375 leaf purge-originator {
5f1e5e3f
EDP
376 type boolean;
377 default "false";
20bd27e2
EDP
378 description
379 "Use the RFC 6232 purge-originator.";
380 reference
381 "RFC6232";
382 }
383
384 container lsp {
385 description
386 "Configuration of Link-State Packets (LSP) parameters";
387 leaf mtu {
388 type uint16 {
389 range "128..4352";
390 }
391 default "1497";
392 description
393 "MTU of an LSP.";
394 }
395
396 container refresh-interval {
397 description
398 "";
399 leaf level-1 {
400 type uint16;
401 units "seconds";
402 default "900";
403 description
404 "LSP refresh interval for level-1.";
405 }
406
407 leaf level-2 {
408 type uint16;
409 units "seconds";
410 default "900";
411 description
412 "LSP refresh interval for level-2.";
413 }
414 }
415
416 container maximum-lifetime {
417 description
418 "Maximum LSP lifetime.";
419 leaf level-1 {
420 type uint16 {
421 range "350..65535";
422 }
423 units "seconds";
424 must ". >= ../../refresh-interval/level-1 + 300";
425 default "1200";
426 description
427 "Maximum LSP lifetime for level-1.";
428 }
429
430 leaf level-2 {
431 type uint16 {
432 range "350..65535";
433 }
434 units "seconds";
435 must ". >= ../../refresh-interval/level-2 + 300";
436 default "1200";
437 description
438 "Maximum LSP lifetime for level-2.";
439 }
440 }
441
442 container generation-interval {
443 description
444 "Minimum LSP regeneration interval.";
445 leaf level-1 {
446 type uint16 {
447 range "1..120";
448 }
449 units "seconds";
450 must ". < ../../refresh-interval/level-1";
451 default "30";
452 description
453 "Minimum time allowed before level-1 LSP retransmissions.";
454 }
455
456 leaf level-2 {
457 type uint16 {
458 range "1..120";
459 }
460 units "seconds";
461 must ". < ../../refresh-interval/level-2";
462 default "30";
463 description
464 "Minimum time allowed before level-2 LSP retransmissions.";
465 }
466 }
467 }
468
469 container spf {
470 description
471 "Parameters related to the Shortest Path First algorithm.";
472 container ietf-backoff-delay {
473 presence "Present if IETF SPF back-off delay is enabled.";
474 description
475 "SPF back-off delay algorithm parameters (see RFC 8405).";
476 leaf init-delay {
477 type uint16 {
478 range "0..60000";
479 }
480 units "msec";
481 mandatory true;
482 description
483 "Delay used while in QUIET state";
484 }
485
486 leaf short-delay {
487 type uint16 {
488 range "0..60000";
489 }
490 units "msec";
491 mandatory true;
492 description
493 "Delay used while in SHORT_WAIT state";
494 }
495
496 leaf long-delay {
497 type uint16 {
498 range "0..60000";
499 }
500 units "msec";
501 mandatory true;
502 description
503 "Delay used while in LONG_WAIT state";
504 }
505
506 leaf hold-down {
507 type uint16 {
508 range "0..60000";
509 }
510 units "msec";
511 mandatory true;
512 description
513 "Time with no received IGP events before considering IGP stable";
514 }
515
516 leaf time-to-learn {
517 type uint16 {
518 range "0..60000";
519 }
520 units "msec";
521 mandatory true;
522 description
523 "Maximum duration needed to learn all the events related to a
524 single failure";
525 }
526 }
527
528 container minimum-interval {
529 description
530 "Minimum interval between consecutive executions of the
531 SPF algorithm.";
532 leaf level-1 {
533 type uint16 {
534 range "1..120";
535 }
536 units "seconds";
537 default "1";
538 description
539 "Minimum time between consecutive level-1 SPFs.";
540 }
541
542 leaf level-2 {
543 type uint16 {
544 range "1..120";
545 }
546 units "seconds";
547 default "1";
548 description
549 "Minimum time between consecutive level-2 SPFs.";
550 }
551 }
552 }
553
554 container area-password {
555 presence "Present if authentication is required for IS level-1.";
556 description
557 "Authentication password for an IS-IS area.";
558 uses isis-area-password;
559 }
560
561 container domain-password {
562 presence "Present if authentication is required for IS level-2.";
563 description
564 "Authentication password for an IS-IS domain.";
565 uses isis-area-password;
566 }
567
568 container default-information-originate {
569 description
570 "Distribution of default information.";
571 list ipv4 {
572 key "level";
573 description
574 "Distribute default route for IPv4.";
575 leaf level {
576 type level;
577 must "(. != \"level-1-2\") and ((../../../is-type = \"level-1-2\") or (. = ../../../is-type))";
578 }
579
580 uses redistribute-default;
581 }
582
583 list ipv6 {
584 key "level";
585 description
586 "Distribute default route for IPv6.";
587 leaf level {
588 type level;
589 must "(. != \"level-1-2\") and ((../../../is-type = \"level-1-2\") or (. = ../../../is-type))";
590 }
591
592 uses redistribute-default;
593 }
594 }
595
596 container redistribute {
597 description
598 "Redistributes routes learned from other routing protocols.";
599 list ipv4 {
600 key "protocol level";
601 description
602 "IPv4 route redistribution.";
603 leaf protocol {
604 type frr-route-types:frr-route-types-v4;
605 must ". != \"isis\"";
606 description
607 "Originating routing protocol for the IPv4 routes.";
608 }
609
610 leaf level {
611 type level;
612 must "(. != \"level-1-2\") and ((../../../is-type = \"level-1-2\") or (. = ../../../is-type))";
613 description
614 "IS-IS level into which the routes should be redistributed.";
615 }
616
617 uses redistribute-attributes;
618 }
619
620 list ipv6 {
621 key "protocol level";
622 description
623 "IPv6 route redistribution.";
624 leaf protocol {
625 type frr-route-types:frr-route-types-v6;
626 must ". != \"isis\"";
627 description
628 "Originating routing protocol for the IPv6 routes.";
629 }
630
631 leaf level {
632 type level;
633 must "(. != \"level-1-2\") and ((../../../is-type = \"level-1-2\") or (. = ../../../is-type))";
634 description
635 "IS-IS level into which the routes should be redistributed.";
636 }
637
638 uses redistribute-attributes;
639 }
640 }
641
642 container multi-topology {
643 description
644 "IS-IS topologies configured for this area.";
645 container ipv4-multicast {
646 presence "Present if a separate IPv4-multicast topology is configured for this area.";
647 description
648 "IPv4 multicast topology.";
649 leaf overload {
5f1e5e3f
EDP
650 type boolean;
651 default "false";
20bd27e2
EDP
652 }
653 }
654
655 container ipv4-management {
656 presence "Present if a separate IPv4-management topology is configured for this area.";
657 description
658 "IPv4 management topology.";
659 leaf overload {
5f1e5e3f
EDP
660 type boolean;
661 default "false";
20bd27e2
EDP
662 }
663 }
664
665 container ipv6-unicast {
666 presence "Present if a separate IPv6-unicast topology is configured for this area.";
667 description
668 "IPv6 unicast topology.";
669 leaf overload {
5f1e5e3f
EDP
670 type boolean;
671 default "false";
20bd27e2
EDP
672 }
673 }
674
675 container ipv6-multicast {
676 presence "Present if a separate IPv6-multicast topology is configured for this area.";
677 description
678 "IPv6 multicast topology.";
679 leaf overload {
5f1e5e3f
EDP
680 type boolean;
681 default "false";
20bd27e2
EDP
682 }
683 }
684
685 container ipv6-management {
686 presence "Present if a separate IPv6-management topology is configured for this area.";
687 description
688 "IPv6 management topology.";
689 leaf overload {
5f1e5e3f
EDP
690 type boolean;
691 default "false";
20bd27e2
EDP
692 }
693 }
694
695 container ipv6-dstsrc {
696 presence "Present if a separate IPv6 destination-source topology is configured for this area.";
697 description
698 "IPv6 destination-source topology.";
699 leaf overload {
5f1e5e3f
EDP
700 type boolean;
701 default "false";
20bd27e2
EDP
702 }
703 }
704 }
705
706 leaf log-adjacency-changes {
5f1e5e3f
EDP
707 type boolean;
708 default "false";
20bd27e2
EDP
709 description
710 "Log changes to the IS-IS adjacencies in this area.";
711 }
712 }
713
714 container mpls-te {
715 presence "Present if MPLS-TE is enabled.";
716 description
717 "Enable MPLS-TE functionality.";
718 leaf router-address {
719 type inet:ipv4-address;
720 description
721 "Stable IP address of the advertising router.";
722 }
723 }
724 }
725
726 augment "/frr-interface:lib/frr-interface:interface" {
727 description
728 "Extends interface model with IS-IS related parameters.";
729 container isis {
730 presence "Present if an IS-IS circuit is defined for this interface.";
731 description
732 "IS-IS interface parameters.";
733 leaf area-tag {
734 type string;
735 mandatory true;
736 description
737 "Area-tag associated to this circuit.";
738 }
739
740 leaf circuit-type {
741 type level;
742 default "level-1-2";
743 description
744 "IS-type of this circuit.";
745 }
746
747 leaf ipv4-routing {
5f1e5e3f
EDP
748 type boolean;
749 default "false";
20bd27e2
EDP
750 description
751 "Routing IS-IS IPv4 traffic over this circuit.";
752 }
753
754 leaf ipv6-routing {
5f1e5e3f
EDP
755 type boolean;
756 default "false";
20bd27e2
EDP
757 description
758 "Routing IS-IS IPv6 traffic over this circuit.";
759 }
760
761 container csnp-interval {
762 description
763 "Complete Sequence Number PDU (CSNP) generation interval.";
764 leaf level-1 {
765 type uint16 {
766 range "1..600";
767 }
768 units "seconds";
769 default "10";
770 description
771 "CNSP interval for level-1";
772 }
773
774 leaf level-2 {
775 type uint16 {
776 range "1..600";
777 }
778 units "seconds";
779 default "10";
780 description
781 "CNSP interval for level-2";
782 }
783 }
784
785 container psnp-interval {
786 description
787 "Partial Sequence Number PDU (PSNP) generation interval.";
788 leaf level-1 {
789 type uint16 {
790 range "1..120";
791 }
792 units "seconds";
793 default "2";
794 description
795 "PNSP interval for level-1";
796 }
797
798 leaf level-2 {
799 type uint16 {
800 range "1..120";
801 }
802 units "seconds";
803 default "2";
804 description
805 "PCNSP interval for level-2";
806 }
807 }
808
809 container hello {
810 description
811 "Parameters related to IS-IS hello PDUs.";
812 leaf padding {
813 type boolean;
814 default "true";
815 description
816 "Add padding to IS-IS hello PDUs.";
817 }
818
819 container interval {
820 description
821 "Interval between consecutive hello messages.";
822 leaf level-1 {
823 type uint32 {
824 range "1..600";
825 }
826 units "seconds";
827 default "3";
828 description
829 "Holding time for level-1; interval will depend on multiplier.";
830 }
831
832 leaf level-2 {
833 type uint32 {
834 range "1..600";
835 }
836 units "seconds";
837 default "3";
838 description
839 "Holding time for level-2; interval will depend on multiplier.";
840 }
841 }
842
843 container multiplier {
844 description
845 "Multiplier for the hello messages holding time.";
846 leaf level-1 {
847 type uint16 {
848 range "2..100";
849 }
850 default "10";
851 description
852 "Multiplier for the hello holding time.";
853 }
854
855 leaf level-2 {
856 type uint16 {
857 range "2..100";
858 }
859 default "10";
860 description
861 "Multiplier for the hello holding time.";
862 }
863 }
864 }
865
866 container metric {
867 description
868 "Default metric for this IS-IS circuit.";
869 leaf level-1 {
870 type uint32 {
871 range "0..16777215";
872 }
873 must ". < 64 or /frr-isisd:isis/instance[area-tag = current()/../../area-tag]/metric-style = 'wide'";
874 default "10";
875 description
876 "Default level-1 metric for this IS-IS circuit.";
877 }
878
879 leaf level-2 {
880 type uint32 {
881 range "0..16777215";
882 }
883 must ". < 64 or /frr-isisd:isis/instance[area-tag = current()/../../area-tag]/metric-style = 'wide'";
884 default "10";
885 description
886 "Default level-2 metric for this IS-IS circuit.";
887 }
888 }
889
890 container priority {
891 description
892 "Priority for Designated Router election.";
893 leaf level-1 {
894 type uint8 {
895 range "0..127";
896 }
897 default "64";
898 description
899 "Level-1 priority for this IS-IS circuit.";
900 }
901
902 leaf level-2 {
903 type uint8 {
904 range "0..127";
905 }
906 default "64";
907 description
908 "Level-2 priority for this IS-IS circuit.";
909 }
910 }
911
912 leaf network-type {
913 type network-type;
9fe69cbb 914 default "broadcast";
20bd27e2
EDP
915 must "(. = \"point-to-point\") or (. = \"broadcast\")";
916 description
917 "Explicitly configured type of IS-IS circuit (broadcast or point-to-point).";
918 }
919
920 leaf passive {
5f1e5e3f
EDP
921 type boolean;
922 default "false";
20bd27e2
EDP
923 description
924 "Interface is in passive mode.";
925 }
926
927 container password {
928 presence "Present if a password is set for this IS interface.";
929 uses isis-password;
930 }
931
932 leaf disable-three-way-handshake {
5f1e5e3f
EDP
933 type boolean;
934 default "false";
20bd27e2
EDP
935 description
936 "Disables three-way handshake when creating new adjacencies.";
937 }
938
939 container multi-topology {
940 description
941 "IS-IS topologies configured on this circuit.";
942 leaf ipv4-unicast {
943 type boolean;
944 default "true";
945 description
946 "IPv4 unicast topology.";
947 }
948
949 leaf ipv4-multicast {
950 type boolean;
951 default "true";
952 description
953 "IPv4 multicast topology.";
954 }
955
956 leaf ipv4-management {
957 type boolean;
958 default "true";
959 description
960 "IPv4 management topology.";
961 }
962
963 leaf ipv6-unicast {
964 type boolean;
965 default "true";
966 description
967 "IPv6 unicast topology.";
968 }
969
970 leaf ipv6-multicast {
971 type boolean;
972 default "true";
973 description
974 "IPv6 multicast topology.";
975 }
976
977 leaf ipv6-management {
978 type boolean;
979 default "true";
980 description
981 "IPv6 management topology.";
982 }
983
984 leaf ipv6-dstsrc {
985 type boolean;
986 default "true";
987 description
988 "IPv6 destination-source topology.";
989 }
990 }
991 }
992 }
993
994 notification database-overload {
995 description
996 "This notification is sent when an IS-IS instance
997 overload state changes.";
998 uses notification-instance-hdr;
999
1000 leaf overload {
1001 type enumeration {
1002 enum "off" {
1003 value 0;
1004 description
1005 "Indicates IS-IS instance has left overload state";
1006 }
1007 enum "on" {
1008 value 1;
1009 description
1010 "Indicates IS-IS instance has entered overload state";
1011 }
1012 }
1013 description
1014 "New overload state of the IS-IS instance";
1015 }
1016 }
1017
1018 notification lsp-too-large {
1019 description
1020 "This notification is sent when we attempt to propagate
1021 an LSP that is larger than the dataLinkBlockSize for the
1022 circuit. The notification generation must be throttled
1023 with at least 5 seconds betweeen successive
1024 notifications.";
1025 uses notification-instance-hdr;
1026
1027 uses notification-interface-hdr;
1028
1029 leaf pdu-size {
1030 type uint32;
1031 description
1032 "Size of the LSP PDU";
1033 }
1034
1035 leaf lsp-id {
1036 type lsp-id;
1037 description
1038 "LSP ID";
1039 }
1040 }
1041
1042 notification if-state-change {
1043 description
1044 "This notification is sent when an interface
1045 state change is detected.";
1046 uses notification-instance-hdr;
1047
1048 uses notification-interface-hdr;
1049
1050 leaf state {
1051 type if-state-type;
1052 description
1053 "Interface state.";
1054 }
1055 }
1056
1057 notification corrupted-lsp-detected {
1058 description
1059 "This notification is sent when we find that
1060 an LSP that was stored in memory has become
1061 corrupted.";
1062 uses notification-instance-hdr;
1063
1064 leaf lsp-id {
1065 type lsp-id;
1066 description
1067 "LSP ID";
1068 }
1069 }
1070
1071 notification attempt-to-exceed-max-sequence {
1072 description
1073 "This notification is sent when the system
1074 wraps the 32-bit sequence counter of an LSP.";
1075 uses notification-instance-hdr;
1076
1077 leaf lsp-id {
1078 type lsp-id;
1079 description
1080 "LSP ID";
1081 }
1082 }
1083
1084 notification id-len-mismatch {
1085 description
1086 "This notification is sent when we receive a PDU
1087 with a different value for the System ID length.
1088 The notification generation must be throttled
1089 with at least 5 seconds betweeen successive
1090 notifications.";
1091 uses notification-instance-hdr;
1092
1093 uses notification-interface-hdr;
1094
1095 leaf pdu-field-len {
1096 type uint8;
1097 description
1098 "Size of the ID length in the received PDU";
1099 }
1100
1101 leaf raw-pdu {
1102 type binary;
1103 description
1104 "Received raw PDU.";
1105 }
1106 }
1107
1108 notification max-area-addresses-mismatch {
1109 description
1110 "This notification is sent when we receive a PDU
1111 with a different value for the Maximum Area Addresses.
1112 The notification generation must be throttled
1113 with at least 5 seconds betweeen successive
1114 notifications.";
1115 uses notification-instance-hdr;
1116
1117 uses notification-interface-hdr;
1118
1119 leaf max-area-addresses {
1120 type uint8;
1121 description
1122 "Received number of supported areas";
1123 }
1124
1125 leaf raw-pdu {
1126 type binary;
1127 description
1128 "Received raw PDU.";
1129 }
1130 }
1131
1132 notification own-lsp-purge {
1133 description
1134 "This notification is sent when the system receives
1135 a PDU with its own system ID and zero age.";
1136 uses notification-instance-hdr;
1137
1138 uses notification-interface-hdr;
1139
1140 leaf lsp-id {
1141 type lsp-id;
1142 description
1143 "LSP ID";
1144 }
1145 }
1146
1147 notification sequence-number-skipped {
1148 description
1149 "This notification is sent when the system receives a
1150 PDU with its own system ID and different contents. The
1151 system has to reoriginate the LSP with a higher sequence
1152 number.";
1153 uses notification-instance-hdr;
1154
1155 uses notification-interface-hdr;
1156
1157 leaf lsp-id {
1158 type lsp-id;
1159 description
1160 "LSP ID";
1161 }
1162 }
1163
1164 notification authentication-type-failure {
1165 description
1166 "This notification is sent when the system receives a
1167 PDU with the wrong authentication type field.
1168 The notification generation must be throttled
1169 with at least 5 seconds betweeen successive
1170 notifications.";
1171 uses notification-instance-hdr;
1172
1173 uses notification-interface-hdr;
1174
1175 leaf raw-pdu {
1176 type binary;
1177 description
1178 "Received raw PDU.";
1179 }
1180 }
1181
1182 notification authentication-failure {
1183 description
1184 "This notification is sent when the system receives
1185 a PDU with the wrong authentication information.
1186 The notification generation must be throttled with
1187 with at least 5 seconds betweeen successive
1188 notifications.";
1189 uses notification-instance-hdr;
1190
1191 uses notification-interface-hdr;
1192
1193 leaf raw-pdu {
1194 type binary;
1195 description
1196 "Received raw PDU.";
1197 }
1198 }
1199
1200 notification version-skew {
1201 description
1202 "This notification is sent when the system receives a
1203 PDU with a different protocol version number.
1204 The notification generation must be throttled
1205 with at least 5 seconds betweeen successive
1206 notifications.";
1207 uses notification-instance-hdr;
1208
1209 uses notification-interface-hdr;
1210
1211 leaf protocol-version {
1212 type uint8;
1213 description
1214 "Protocol version received in the PDU.";
1215 }
1216
1217 leaf raw-pdu {
1218 type binary;
1219 description
1220 "Received raw PDU.";
1221 }
1222 }
1223
1224 notification area-mismatch {
1225 description
1226 "This notification is sent when the system receives a
1227 Hello PDU from an IS that does not share any area
1228 address. The notification generation must be throttled
1229 with at least 5 seconds betweeen successive
1230 notifications.";
1231 uses notification-instance-hdr;
1232
1233 uses notification-interface-hdr;
1234
1235 leaf raw-pdu {
1236 type binary;
1237 description
1238 "Received raw PDU.";
1239 }
1240 }
1241
1242 notification rejected-adjacency {
1243 description
1244 "This notification is sent when the system receives a
1245 Hello PDU from an IS but does not establish an adjacency
1246 for some reason. The notification generation must be
1247 throttled with at least 5 seconds betweeen successive
1248 notifications.";
1249 uses notification-instance-hdr;
1250
1251 uses notification-interface-hdr;
1252
1253 leaf raw-pdu {
1254 type binary;
1255 description
1256 "Received raw PDU.";
1257 }
1258
1259 leaf reason {
1260 type string;
1261 description
1262 "The system may provide a reason to reject the
1263 adjacency. If the reason is not available,
1264 an empty string will be returned.";
1265 }
1266 }
1267
1268 notification lsp-error-detected {
1269 description
1270 "This notification is sent when the system receives an
1271 LSP with a parse error. The notification generation must
1272 be throttled with at least 5 seconds betweeen successive
1273 notifications.";
1274 uses notification-instance-hdr;
1275
1276 uses notification-interface-hdr;
1277
1278 leaf lsp-id {
1279 type lsp-id;
1280 description
1281 "LSP ID.";
1282 }
1283
1284 leaf raw-pdu {
1285 type binary;
1286 description
1287 "Received raw PDU.";
1288 }
1289
1290 leaf error-offset {
1291 type uint32;
1292 description
1293 "If the problem is a malformed TLV, the error-offset
1294 points to the start of the TLV. If the problem is with
1295 the LSP header, the error-offset points to the errant
1296 byte";
1297 }
1298
1299 leaf tlv-type {
1300 type uint8;
1301 description
1302 "If the problem is a malformed TLV, the tlv-type is set
1303 to the type value of the suspicious TLV. Otherwise,
1304 this leaf is not present.";
1305 }
1306 }
1307
1308 notification adjacency-state-change {
1309 description
1310 "This notification is sent when an IS-IS adjacency
1311 moves to Up state or to Down state.";
1312 uses notification-instance-hdr;
1313
1314 uses notification-interface-hdr;
1315
1316 leaf neighbor {
1317 type string;
1318 description
1319 "Name of the neighbor. If the name of the neighbor is
1320 not available, it is not returned.";
1321 }
1322
1323 leaf neighbor-system-id {
1324 type system-id;
1325 description
1326 "Neighbor system-id";
1327 }
1328
1329 leaf state {
1330 type adj-state-type;
1331 description
1332 "New state of the IS-IS adjacency.";
1333 }
1334
1335 leaf reason {
1336 type string;
1337 description
1338 "If the adjacency is going to DOWN, this leaf provides
1339 a reason for the adjacency going down. The reason is
1340 provided as a text. If the adjacency is going to UP, no
1341 reason is provided.";
1342 }
1343 }
1344
1345 notification lsp-received {
1346 description
1347 "This notification is sent when an LSP is received.
1348 The notification generation must be throttled with at
1349 least 5 seconds betweeen successive notifications.";
1350 uses notification-instance-hdr;
1351
1352 uses notification-interface-hdr;
1353
1354 leaf lsp-id {
1355 type lsp-id;
1356 description
1357 "LSP ID";
1358 }
1359
1360 leaf sequence {
1361 type uint32;
1362 description
1363 "Sequence number of the received LSP.";
1364 }
1365
1366 leaf received-timestamp {
1367 type yang:timestamp;
1368 description
1369 "Timestamp when the LSP was received.";
1370 }
1371
1372 leaf neighbor-system-id {
1373 type system-id;
1374 description
1375 "Neighbor system-id of LSP sender";
1376 }
1377 }
1378
1379 notification lsp-generation {
1380 description
1381 "This notification is sent when an LSP is regenerated.
1382 The notification generation must be throttled with at
1383 least 5 seconds betweeen successive notifications.";
1384 uses notification-instance-hdr;
1385
1386 leaf lsp-id {
1387 type lsp-id;
1388 description
1389 "LSP ID";
1390 }
1391
1392 leaf sequence {
1393 type uint32;
1394 description
1395 "Sequence number of the received LSP.";
1396 }
1397
1398 leaf send-timestamp {
1399 type yang:timestamp;
1400 description
1401 "Timestamp when our LSP was regenerated.";
1402 }
1403 }
1404}