Skip to content

Commit

Permalink
isisd: clean up own LSPs correctly on update
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
  • Loading branch information
cfra committed Jan 6, 2017
1 parent 4fedc05 commit 07f2fb1
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 @@ -550,6 +550,14 @@ lsp_update (struct isis_lsp *lsp, struct stream *stream,
if (dnode)
dnode_destroy (dict_delete (area->lspdb[level - 1], dnode));

if (lsp->own_lsp)
{
zlog_err("ISIS-Upd (%s): BUG updating LSP %s still marked as own LSP",
area->area_tag, rawlspid_print(lsp->lsp_header->lsp_id));
lsp_clear_data(lsp);
lsp->own_lsp = 0;
}

/* rebuild the lsp data */
lsp_update_data (lsp, stream, area, level);

Expand Down

0 comments on commit 07f2fb1

Please sign in to comment.