Skip to content

Commit 51558b5

Browse files
committed
isisd: use IPv6 MTID for SRv6 locator TLVs when IPv6 MT is enabled
When IS-IS is configured with IPv6 Multi-Topology (topology ipv6-unicast), SRv6 locator TLVs are still advertised with MTID 0 (ISIS_MT_STANDARD). This patch makes SRv6 locator TLVs use the IPv6 MTID returned by isis_area_ipv6_topology(area), so that they are consistent with IPv6 reachability TLVs and interoperable with implementations that expect locators in the IPv6-unicast MT. Signed-off-by: Kunio AKASHI <akashi004@gmail.com>
1 parent 5abf1ee commit 51558b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

isisd/isis_lsp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1236,7 +1236,7 @@ static void lsp_build(struct isis_lsp *lsp, struct isis_area *area)
12361236
listnode_add(locator.srv6_sid, sid);
12371237
}
12381238

1239-
isis_tlvs_add_srv6_locator(lsp->tlvs, 0, &locator);
1239+
isis_tlvs_add_srv6_locator(lsp->tlvs, isis_area_ipv6_topology(area), &locator);
12401240
lsp_debug("ISIS (%s): Adding SRv6 Locator information",
12411241
area->area_tag);
12421242

0 commit comments

Comments
 (0)