From 604fcd30db1a734b6ddff6aeeb33eabd120c0696 Mon Sep 17 00:00:00 2001 From: Carmine Scarpitta Date: Tue, 6 Dec 2022 21:54:25 +0100 Subject: [PATCH] isisd: Advertise SRv6 Locator in Prefix Reach TLV According to RFC 9352 section #5, the SRv6 Locators associated with algorithms 0 and 1 should be also advertised in a Prefix Reachability TLV (236 or 237) to allow legacy routers (i.e., routers that do not support SRv6) installing a forwarding entry for algorithms 0 and 1 SRv6 traffic. This commits extend IS-IS to advertise SRv6 Locators in IPv6 Reachability TLV. Signed-off-by: Carmine Scarpitta --- isisd/isis_lsp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/isisd/isis_lsp.c b/isisd/isis_lsp.c index e5970f6509..1b3491f5d3 100644 --- a/isisd/isis_lsp.c +++ b/isisd/isis_lsp.c @@ -1262,6 +1262,10 @@ static void lsp_build(struct isis_lsp *lsp, struct isis_area *area) area->area_tag); list_delete(&locator.srv6_sid); + + isis_tlvs_add_ipv6_reach(lsp->tlvs, + isis_area_ipv6_topology(area), + &chunk->prefix, 0, false, NULL); } /* IPv4 address and TE router ID TLVs.