cnp3/ebook

Better Algorithm for LSP

Closed this issue · 1 comments

Hello,

In the algorithm used to check if the arrival LSP needs to replace the older one in the LSDP.

I would replace the LSBD.add(LSP) by LSBD.replace(LSP.router, LST) whit a comment saying "replacing the older LSP of LSP.router by the newest". I think it's more accurate !

Can you tell me if it is Ok ?

The algorithm already states that LSDB.add(LSP) # implicitly removes older LSP from same router. Also, the add covers the case where no LSP was previously received from the router.