]> git.proxmox.com Git - mirror_frr.git/commit - ldpd/lde_lib.c
ldpd: fix processing of redistributed routes
authorRenato Westphal <renatowestphal@gmail.com>
Wed, 28 Sep 2016 15:25:17 +0000 (12:25 -0300)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 28 Sep 2016 20:05:39 +0000 (16:05 -0400)
commit134970a2a183d5021a1de42e8eede2fc3aa32e56
treeb5c1edc17d6b49d0d0ebab59776454a1354c48d3
parent3f67fb9c307c5f83011b3fc2837436881289ecea
ldpd: fix processing of redistributed routes

Commit 5048fe changed the way zebra behave when a route is updated. Now,
whenever a route is changed, zebra advertises its new version without
withdrawing the old one. This patch adapts ldpd to understand this new
behavior. After processing a ZEBRA_REDISTRIBUTE_IPV[46]_ADD message,
we need to check for nexthops that were removed and, for each of them
(if any), withdraw the associated labels from zebra.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
ldpd/lde.c
ldpd/lde.h
ldpd/lde_lib.c
ldpd/ldp_zebra.c
ldpd/ldpd.h