]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: Move clear_nhlfe_installed to calling functions
authorDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 23 Oct 2017 14:10:06 +0000 (10:10 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 27 Oct 2017 14:41:07 +0000 (10:41 -0400)
commit3d468f66043d444476004d004954503b17fdf96d
treed140210910c932bbaef3cdc93c3cc44b605d961a
parente4715aed63b9b791f35baa8abeb473870bb62213
zebra: Move clear_nhlfe_installed to calling functions

The function clear_nhlfe_installed is to be called
when we get a install failure of some sort for
a lsp change.  Since an install failure can happen
in both linux and openBSD moving the function call
northbound is a good idea.

I've also added it to the kernel_del_lsp for completeness
on failure as well, even though neither linux or openBSD
currently can fail a uninstall.

This still leaves the hole where if we have multiple
nhlfes and have an install failure we are not quite
doing the right thing by just blanketly calling
clear_nhlfe_installed.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
zebra/rt_netlink.c
zebra/rt_netlink.h
zebra/zebra_mpls.c
zebra/zebra_mpls_netlink.c