]> git.proxmox.com Git - mirror_frr.git/commit - staticd/static_zebra.c
staticd: Fix mixup in vrf translations
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 29 Aug 2018 02:45:06 +0000 (22:45 -0400)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 31 Aug 2018 09:29:27 +0000 (11:29 +0200)
commitf591b309f2c938de48e826c9e669fe88110dd9ed
tree9e59b33649210fb9d80cf4047eb3a6f77da9699f
parent88d52a3f22963e6caa31cc0a7e0e9540b30713c2
staticd: Fix mixup in vrf translations

When we store the nexthop for ref-counting, keep
track of the nexthop vrf_id as well.  This will allow
us to track the nexthop per vrf!

Additionally when we get the callback from zebra about
a nexthop update, iterate over all static routes to
see if the nexthop we are getting a callback is
one we are concerned about.

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