]> git.puffer.fish Git - mirror/frr.git/commit
isisd: Add new adjacency to LSP neighbor list
authorAmritha Nambiar <amritha.nambiar@intel.com>
Thu, 2 Jul 2015 22:42:58 +0000 (15:42 -0700)
committerDaniel Walton <dwalton@cumulusnetworks.com>
Thu, 26 May 2016 15:33:31 +0000 (15:33 +0000)
commita2d2c0d2268863f6a6300f8e5b9df98276329fad
treef890437f5658add6af681b319f998cf57c7df238
parent14fcc0e631cd171468e68dcf20cb177de63cc795
isisd: Add new adjacency to LSP neighbor list

isis_pdu.c :
New adjacency did not always get added to LSP neighbor list.

The adjacencies that were created once minimum time allowed before LSP
retransmission had surpassed, instantly got their LSP regenerated, but
the adjacency circuit type was not set to IIH PDU circuit type before
the LSP was regenerated , hence didn't pass the check for adjacency
circuit type in lsp_build(), and the adjacency was not added to neighbor list.

When a new adjacency is up, to build LSP with neighbor entry corresponding
to the adjacency, set adjacency circuit type to circuit type from hello PDU
header before new LSP is regenerated/built. This will result in the new
adjacency entry getting added to the LSP neighbor list TLV.

Signed-off-by: Amritha Nambiar <amritha.nambiar@intel.com>
(cherry picked from commit 06cc655c0345d610eb946bd41968caa03dc118ed)
isisd/isis_pdu.c