From 16d2600c69e62dc37df3ef3c3dd491ea4b939dc3 Mon Sep 17 00:00:00 2001 From: kanaya516 Date: Wed, 4 Jan 2023 03:47:43 +0000 Subject: [PATCH] fix: make two groupings, adjacency-sids and lan-adjacency-sids Signed-off-by: kanaya516 --- yang/frr-isisd.yang | 133 ++++++++++++++++++++++++-------------------- 1 file changed, 72 insertions(+), 61 deletions(-) diff --git a/yang/frr-isisd.yang b/yang/frr-isisd.yang index d6a28f40e7f9..cbdf75234334 100644 --- a/yang/frr-isisd.yang +++ b/yang/frr-isisd.yang @@ -882,67 +882,8 @@ module frr-isisd { "This leaf describes the state of the interface."; } - container adjacency-sids { - description - "This container lists the information of adjacency SID."; - list adjacency-sid { - leaf af { - type uint8; - description - "This leaf describes the protocol-family associated with the - adjacency SID."; - } - - leaf value { - type uint32; - description - "This leaf describes the value of adjacency SID."; - } - - leaf weight { - type uint8; - description - "This leaf describes the weight of the adjacency SID."; - } - - leaf protection-requested { - type boolean; - description - "This leaf describes if the adjacency SID must be protected."; - } - } - } - - container lan-adjacency-sids { - description - "This container lists the information of LAN adjacency SID."; - list lan-adjacency-sid { - leaf af { - type uint8; - description - "This leaf describes the protocol-family associated with the - LAN adjacency SID."; - } - - leaf value { - type uint32; - description - "This leaf describes the value of LAN adjacency SID."; - } - - leaf weight { - type uint8; - description - "This leaf describes the weight of the LAN adjacency SID."; - } - - leaf protection-requested { - type boolean; - description - "This leaf describes if the LAN adjacency SID must be protected."; - } - } - } + uses adjacency-sids; + uses lan-adjacency-sids; } } } @@ -1066,6 +1007,76 @@ module frr-isisd { } } + grouping adjacency-sids { + description + "IS-IS segment routing adjacency SID grouping."; + container adjacency-sids { + description + "This container lists the information of adjacency SID."; + list adjacency-sid { + leaf af { + type uint8; + description + "This leaf describes the protocol-family associated with the + adjacency SID."; + } + + leaf value { + type uint32; + description + "This leaf describes the value of adjacency SID."; + } + + leaf weight { + type uint8; + description + "This leaf describes the weight of the adjacency SID."; + } + + leaf protection-requested { + type boolean; + description + "This leaf describes if the adjacency SID must be protected."; + } + } + } + } + + grouping lan-adjacency-sids { + description + "IS-IS segment routing LAN adjacency SID grouping."; + container lan-adjacency-sids { + description + "This container lists the information of LAN adjacency SID."; + list lan-adjacency-sid { + leaf af { + type uint8; + description + "This leaf describes the protocol-family associated with the + LAN adjacency SID."; + } + + leaf value { + type uint32; + description + "This leaf describes the value of LAN adjacency SID."; + } + + leaf weight { + type uint8; + description + "This leaf describes the weight of the LAN adjacency SID."; + } + + leaf protection-requested { + type boolean; + description + "This leaf describes if the LAN adjacency SID must be protected."; + } + } + } + } + container isis { description "Configuration of the IS-IS routing daemon.";