]> git.proxmox.com Git - mirror_frr.git/commit - staticd/static_zebra.h
staticd: Fix static_nht_update to actually know route we are installing
authorDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 15 Jul 2019 20:26:17 +0000 (16:26 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 16 Jul 2019 11:35:45 +0000 (07:35 -0400)
commit27da30442fbe5cd1358d231cbbf1265441f0e849
tree24372011e99a6978ff3429ed30f49467de3f3f98
parent5f7faeb041c75c01641c6d8bb29617a014b6a8ac
staticd: Fix static_nht_update to actually know route we are installing

We are using static_nht_update in two different cases:
1) We have received a callback that a nexthop has changed and we need
to find any static route that is using it and we must refigure it.
2) We have received a new static route that depends on a pre-existing
nexthop, in which case we can go straight to the chase and just refigure
that particular node, since we already have all the information we need.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
staticd/static_nht.c
staticd/static_nht.h
staticd/static_routes.c
staticd/static_zebra.c
staticd/static_zebra.h