diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-07-15 22:26:17 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-07-16 13:35:45 +0200 |
commit | 27da30442fbe5cd1358d231cbbf1265441f0e849 (patch) | |
tree | 24372011e99a6978ff3429ed30f49467de3f3f98 /staticd/static_routes.c | |
parent | Merge pull request #4635 from AnuradhaKaruppiah/evpn-pim-replay (diff) | |
download | frr-27da30442fbe5cd1358d231cbbf1265441f0e849.tar.xz frr-27da30442fbe5cd1358d231cbbf1265441f0e849.zip |
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>
Diffstat (limited to 'staticd/static_routes.c')
-rw-r--r-- | staticd/static_routes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/staticd/static_routes.c b/staticd/static_routes.c index 5f9ecad69..a6d4c1806 100644 --- a/staticd/static_routes.c +++ b/staticd/static_routes.c @@ -39,7 +39,7 @@ static void static_install_route(struct route_node *rn, struct static_route *si; for (si = rn->info; si; si = si->next) - static_zebra_nht_register(si, true); + static_zebra_nht_register(rn, si, true); si = rn->info; if (si) @@ -242,7 +242,7 @@ int static_delete_route(afi_t afi, safi_t safi, uint8_t type, struct prefix *p, return 0; } - static_zebra_nht_register(si, false); + static_zebra_nht_register(rn, si, false); /* Unlink static route from linked list. */ if (si->prev) |