From b85ecd30a935455ac39347eb9fb2192f661354dc Mon Sep 17 00:00:00 2001 From: Carmine Scarpitta Date: Thu, 2 Feb 2023 11:20:44 +0100 Subject: [PATCH] isisd: Add SRv6 Capabilities Sub-TLV to the LSPs Add SRv6 Capabilities Sub-TLV to the Router Capabilities TLV in the LSPs generated with the `lsp_build()` function. Signed-off-by: Carmine Scarpitta --- isisd/isis_lsp.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/isisd/isis_lsp.c b/isisd/isis_lsp.c index 950d5f359c..f667f30e48 100644 --- a/isisd/isis_lsp.c +++ b/isisd/isis_lsp.c @@ -1210,6 +1210,14 @@ static void lsp_build(struct isis_lsp *lsp, struct isis_area *area) /* And finally MSD */ rcap->msd = srdb->config.msd; } + + /* Add SRv6 Sub-TLVs if SRv6 is enabled */ + if (area->srv6db.config.enabled) { + rcap->srv6_cap.is_srv6_capable = true; + + /* SRv6 flags */ + rcap->srv6_cap.flags = 0; + } } /* IPv4 address and TE router ID TLVs.