]> git.proxmox.com Git - mirror_frr.git/commit - zebra/zserv.c
zserv: simplify handling of route delete requests
authorRenato Westphal <renato@opensourcerouting.org>
Sat, 19 Aug 2017 17:26:00 +0000 (14:26 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Wed, 23 Aug 2017 20:45:17 +0000 (17:45 -0300)
commitd51b9e4509f69cf3f871a787e69534a60842bab5
tree26e3102060d78b501f5a8d402d2118906f997bce
parente959008b1ef36acc572d41555f7df2d3e7f9a0cf
zserv: simplify handling of route delete requests

Route attributes like tag, distance and metric are irrelevant when we
want to delete a route from a client daemon. The same can be said about
the nexthops of the route. Only the IP prefix and client protocol are
enough to identify the route we want to remove, considering that zebra
maintains at most one route from each client daemon for each prefix. Once
rib_delete() is called, it deletes the selected route with all of its
nexthops.

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