]> git.proxmox.com Git - mirror_frr.git/commit - zebra/rt_netlink.c
zebra: only pass mpls proto type if doing install
authorDon Slice <dslice@cumulusnetworks.com>
Mon, 16 Oct 2017 16:07:15 +0000 (09:07 -0700)
committerDon Slice <dslice@cumulusnetworks.com>
Wed, 25 Oct 2017 12:19:22 +0000 (08:19 -0400)
commit8dc8a4b693a87ca08b120d175e8fb0932674eaef
tree46cff2e399c5adc539e5247fe0cc5d1ae357f3da
parentff2f3a8290edbabeb9b71d6f374f37e048cdda6d
zebra: only pass mpls proto type if doing install

Problem reported with not deleting LSPs from the zebra kernal mpls table
when a delete occurred in bgp.  Found that we were exiting the delete
process incorrectly due to not being able to derive the route_type from
the best_nhlre on the lsp while deleting. Since this info was only
needed for route installation, removed this early exit in the case of
deleting the lsp.

Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
Ticket: CM-18309
Reviewed By: CCR-6781
Testing Done:  Manual testing looks good.  mpls tests successful
zebra/rt_netlink.c