From 5310713bf116b8ad65f9e86346a7c02b2922212e Mon Sep 17 00:00:00 2001 From: Kyrylo Yatsenko Date: Thu, 8 Jan 2026 14:50:51 +0200 Subject: isis: T8158: fix lsp-timers There are three configuration values in VyOS isis XML: * lsp-gen-interval * lsp-refresh-interval * max-lsp-lifetime In FRR they have the following restrictions in yang model: * refresh-interval, default 900 * maximum-lifetime >= refresh-interval + 300 (350-65535), default 1200 * generation-interval < refresh-interval (1..120), default 30 When setting these values in separate steps we can get error e.g.: libyang: Must condition ". >= ../refresh-interval + 300" not satisfied. even when all restrictions are satisfied. To fix the issue: 1. Write default values in our XML. 2. Check these restrictions in protocol_isis.py 3. Use FRR command `lsp-timers` that sets all these values in one go --- interface-definitions/include/isis/protocol-common-config.xml.i | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'interface-definitions/include') diff --git a/interface-definitions/include/isis/protocol-common-config.xml.i b/interface-definitions/include/isis/protocol-common-config.xml.i index 459a048a2..45c048b8a 100644 --- a/interface-definitions/include/isis/protocol-common-config.xml.i +++ b/interface-definitions/include/isis/protocol-common-config.xml.i @@ -98,6 +98,7 @@ + 30 @@ -116,13 +117,14 @@ LSP refresh interval - u32:1-65235 + u32:2-65235 LSP refresh interval in seconds - + + 900 @@ -135,6 +137,7 @@ + 1200 -- cgit v1.2.3