]> git.proxmox.com Git - mirror_frr.git/commit - zebra/zebra_fpm_netlink.c
zebra: Use ROUTE_ENTRY_INSTALLED as decision for route is installed
authorDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 14 Jan 2019 21:37:53 +0000 (16:37 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Sat, 26 Jan 2019 01:16:15 +0000 (20:16 -0500)
commit677c1dd5cbdc7c58291843bd3709303950ed7c4a
treedd02004ab0b86e58546100c681612084bdba401d
parent4a2f796f2ecf199a9c1ed14d1da37acbab6a05e8
zebra: Use ROUTE_ENTRY_INSTALLED as decision for route is installed

zebra is using NEXTHOP_FLAG_FIB as the basis of whether or not
a route_entry is installed.  This is problematic in that we plan
to separate out nexthop handling from route installation.  So modify
the code to keep track of whether or not a route_entry is installed/failed.

This basically means that every place we set/unset NEXTHOP_FLAG_FIB, we
actually also set/unset ROUTE_ENTRY_INSTALLED on the route_entry.
Additionally where we check for route installed via NEXTHOP_FLAG_FIB
switch over to checking if the route think's it is installed.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
zebra/zebra_fpm_netlink.c
zebra/zebra_rib.c
zebra/zebra_rnh.c
zebra/zebra_vty.c