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 <carmine.scarpitta@uniroma2.it>
This commit is contained in:
Carmine Scarpitta 2023-02-02 11:20:44 +01:00
parent 94b08a4910
commit b85ecd30a9

View File

@ -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.