Skip to content

Commit

Permalink
isisd: Add SRv6 Capabilities Sub-TLV to the LSPs
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
cscarpitta committed Aug 4, 2023
1 parent 94b08a4 commit b85ecd3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions isisd/isis_lsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b85ecd3

Please sign in to comment.