]> git.proxmox.com Git - mirror_frr.git/commit - zebra/zebra_rib.c
zebra: Allow zebra to delete self originated routes
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 1 Sep 2017 14:28:19 +0000 (10:28 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 5 Sep 2017 22:56:36 +0000 (18:56 -0400)
commit915902cb82cfd57fa059b3a508ea9973bd056a96
treeb5080590b20f95b85fd9e491d30c7fc05a8ca1ec
parentf24fdd9921b98f99d63b1299029d177954090243
zebra: Allow zebra to delete self originated routes

With the change to make zebra pass routes to the kernel
with the 'correct' proto name, it caused zebra to
not properly recognize them on startup again
the next time such that the route would not
be deleted.

Modify rt_netlink.c to notice that we have a
self originated route and to properly mark
the type of route it was.

Modify rib_table_sweep to mark the nexthops
as active so that when we go to delete the
self originated routes it would properly
delete from the kernel.

Fixes: #1061
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
zebra/rt_netlink.c
zebra/zebra_rib.c