]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: improve cleanup of MPLS labels when zclient disconnects
authorRenato Westphal <renato@opensourcerouting.org>
Thu, 8 Aug 2019 20:08:36 +0000 (17:08 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Sat, 7 Sep 2019 00:06:11 +0000 (21:06 -0300)
commit651105b5fb5e928a67349bf49394c69c72435ccf
tree4cdccdd9be782ad41f8a81192793ce23a7d88800
parentb3c49d0e772f4b555c59f72f2e1aa92be33c1510
zebra: improve cleanup of MPLS labels when zclient disconnects

Use the zserv_client_close hook to cleanup all MPLS labels advertised
by a zclient when it disconnects. We were doing this cleanup for
ldpd only, but now we have other daemons that are MPLS aware,
like ospfd (due to the new Segment Routing feature).

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
zebra/zebra_mpls.c
zebra/zebra_mpls.h
zebra/zebra_rnh.c