From 99b617954e3d63b2caf6224bd79aa305f92b7dfb Mon Sep 17 00:00:00 2001 From: Y Bharath Date: Wed, 26 Mar 2025 12:46:08 +0530 Subject: [PATCH] yang: Fixed pyang errors at frr-isisd.yang Fixed pyang errors at frr-isisd.yang Signed-off-by: y-bharath14 --- yang/frr-isisd.yang | 103 +++++++++++++++++++++++++++++++++++++------- 1 file changed, 88 insertions(+), 15 deletions(-) diff --git a/yang/frr-isisd.yang b/yang/frr-isisd.yang index 228faa4f10..54ef505b1f 100644 --- a/yang/frr-isisd.yang +++ b/yang/frr-isisd.yang @@ -65,20 +65,28 @@ module frr-isisd { description "Group SRGB and SRLB in a container so that they can be displayed and configured together"; + reference + "ISO/IEC 10589:2002."; } revision 2020-04-06 { description "Group LSP timers in a container so that they can be displayed and configured together"; + reference + "ISO/IEC 10589:2002."; } revision 2019-12-17 { description "Changed default area is-type to level-1-2"; + reference + "ISO/IEC 10589:2002."; } revision 2019-09-09 { description "Changed interface references to use frr-interface:interface-ref typedef"; + reference + "ISO/IEC 10589:2002."; } revision 2018-07-26 { description @@ -134,6 +142,8 @@ module frr-isisd { "Add padding to hello packets during adjacency formation only."; } } + description + "Type for hello padding configuration."; } typedef network-type { @@ -159,6 +169,8 @@ module frr-isisd { "Loopback circuit network-type. Only valid as a state."; } } + description + "Type of network for an IS-IS interface."; } typedef lsp-id { @@ -268,14 +280,20 @@ module frr-isisd { "This enum describes transition metric style"; } } + description + "Enumeration for IS-IS metric styles."; } typedef access-list-ref { type string; + description + "Reference to a access list."; } typedef prefix-list-ref { type string; + description + "Reference to a prefix list."; } grouping redistribute-attributes { @@ -344,6 +362,9 @@ module frr-isisd { } grouping isis-area-password { + description + "Grouping for IS-IS area password configuration."; + uses isis-password; leaf authenticate-snp { @@ -371,6 +392,9 @@ module frr-isisd { } grouping global-config-lfa { + description + "Grouping for LFA configuration."; + container lfa { description "LFA configuration."; @@ -441,6 +465,9 @@ module frr-isisd { } grouping global-config-remote-lfa { + description + "Grouping for Remote LFA configuration."; + container remote-lfa { description "Remote LFA configuration."; @@ -454,6 +481,9 @@ module frr-isisd { } grouping interface-config-lfa { + description + "Grouping for LFA configuration on an interface."; + container lfa { description "LFA configuration."; @@ -472,19 +502,22 @@ module frr-isisd { } grouping interface-config-remote-lfa { + description + "Grouping for remote LFA configuration."; + container remote-lfa { description "Remote LFA configuration."; leaf enable { type boolean; - default false; - description - "Enables remote LFA computation using LDP tunnels."; must ". = 'false' or ../../lfa/enable = 'true'" { error-message "Remote LFA depends on classic LFA being configured in the interface."; } + default false; + description + "Enables remote LFA computation using LDP tunnels."; } leaf maximum-metric { @@ -498,15 +531,18 @@ module frr-isisd { } grouping interface-config-ti-lfa { + description + "Grouping for TI-LFA configuration."; + container ti-lfa { description "TI-LFA configuration."; leaf enable { + type boolean; must ". = 'false' or ../../lfa/enable = 'false'" { error-message "Can't enable both classic LFA and TI-LFA in the same interface."; } - type boolean; default false; description "Enables TI-LFA computation."; @@ -560,6 +596,9 @@ module frr-isisd { } container bfd-monitoring { + description + "Container for BFD monitoring configuration."; + leaf enabled { type boolean; default "false"; @@ -742,6 +781,9 @@ module frr-isisd { container password { presence "Present if a password is set for this IS interface."; uses isis-password; + + description + "Container for the password of this IS interface."; } leaf disable-three-way-handshake { @@ -1035,6 +1077,9 @@ module frr-isisd { description "This container lists the information of adjacency SID."; list adjacency-sid { + description + "List of adjacency SIDs."; + leaf af { type uint8; description @@ -1070,6 +1115,9 @@ module frr-isisd { description "This container lists the information of LAN adjacency SID."; list lan-adjacency-sid { + description + "List of LAN adjacency SIDs."; + leaf af { type uint8; description @@ -1456,6 +1504,8 @@ module frr-isisd { leaf level { type level; must "(. != \"level-1-2\") and ((../../../is-type = \"level-1-2\") or (. = ../../../is-type))"; + description + "Specifies the level to which the default route should be distributed."; } uses redistribute-default; @@ -1468,6 +1518,8 @@ module frr-isisd { leaf level { type level; must "(. != \"level-1-2\") and ((../../../is-type = \"level-1-2\") or (. = ../../../is-type))"; + description + "Specifies the level to which the default route should be distributed."; } uses redistribute-default; @@ -1496,11 +1548,14 @@ module frr-isisd { } choice protocol-type { + description + "Choice of routing protocol type."; + case protocol-table { when "./protocol = \"table\""; list table { - key "table"; when "../protocol = \"table\""; + key "table"; description "Routing table number"; @@ -1540,11 +1595,16 @@ module frr-isisd { } choice protocol-type { + description + "Choice of routing protocol type."; + case protocol-table { - when "./protocol = \"table\""; list table { - key "table"; when "../protocol = \"table\""; + key "table"; + + description + "List of routing tables for the 'table' protocol."; leaf table { type uint16 { @@ -1556,6 +1616,7 @@ module frr-isisd { uses redistribute-attributes; } + when "./protocol = \"table\""; } case protocol-other { uses redistribute-attributes; @@ -1575,6 +1636,8 @@ module frr-isisd { leaf overload { type boolean; default "false"; + description + "If set to true, the router will advertise itself as overloaded to its neighbors."; } } @@ -1585,6 +1648,8 @@ module frr-isisd { leaf overload { type boolean; default "false"; + description + "If set to true, the router will advertise itself as overloaded to its neighbors."; } } @@ -1595,6 +1660,8 @@ module frr-isisd { leaf overload { type boolean; default "false"; + description + "If set to true, the router will advertise itself as overloaded to its neighbors."; } } @@ -1605,6 +1672,8 @@ module frr-isisd { leaf overload { type boolean; default "false"; + description + "If set to true, the router will advertise itself as overloaded to its neighbors."; } } @@ -1615,6 +1684,8 @@ module frr-isisd { leaf overload { type boolean; default "false"; + description + "If set to true, the router will advertise itself as overloaded to its neighbors."; } } @@ -1625,6 +1696,8 @@ module frr-isisd { leaf overload { type boolean; default "false"; + description + "If set to true, the router will advertise itself as overloaded to its neighbors."; } } } @@ -1730,9 +1803,6 @@ module frr-isisd { "Use Flex-algo Prefix Metric"; } leaf metric-type { - default "igp"; - description - "Set the Flex-Algo metric-type"; type enumeration { enum "igp" { value 0; @@ -1750,6 +1820,9 @@ module frr-isisd { "RFC 5305 Sec 3.7 Traffic Engineering Default Metric"; } } + default "igp"; + description + "Set the Flex-Algo metric-type"; } leaf priority { type uint32 { @@ -1799,15 +1872,15 @@ module frr-isisd { description "Global blocks to be advertised."; leaf lower-bound { - must "../upper-bound > ."; type uint32; + must "../upper-bound > ."; default "16000"; description "Lower value in the label range."; } leaf upper-bound { - must ". > ../lower-bound"; type uint32; + must ". > ../lower-bound"; default "23999"; description "Upper value in the label range."; @@ -1817,15 +1890,15 @@ module frr-isisd { description "Local blocks to be advertised."; leaf lower-bound { - must "../upper-bound > ."; type uint32; + must "../upper-bound > ."; default "15000"; description "Lower value in the label range."; } leaf upper-bound { - must ". > ../lower-bound"; type uint32; + must ". > ../lower-bound"; default "15999"; description "Upper value in the label range."; @@ -2053,9 +2126,9 @@ module frr-isisd { } leaf interface { type string; + default "sr0"; description "Dummy interface used to install SRv6 SIDs into the Linux data plane."; - default "sr0"; } } -- 2.39.5