diff options
author | Christian Franke <chris@opensourcerouting.org> | 2015-11-10 18:04:47 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-12-08 14:12:49 -0500 |
commit | 912aac4f670ffd383b757995914f4d1b5e7596aa (patch) | |
tree | 7b7e39d5b7c06d424554164e53a0a7e6ec3c2c28 /isisd | |
parent | f35169ecdb481ca1e176cbb234b5294b2ca901a7 (diff) | |
download | quagga-912aac4f670ffd383b757995914f4d1b5e7596aa.tar.bz2 quagga-912aac4f670ffd383b757995914f4d1b5e7596aa.tar.xz |
isisd: do remove ipv6 routes from Zebra
We can abort isis_zebra_route_del_ipv6 if the route in question has
ISIS_ROUTE_FLAG_ZEBRA_SYNCED unset, meaning it's not in the kernel.
Aborting the function if the flag is set prevents us from removing
any routes.
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Acked-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'isisd')
-rw-r--r-- | isisd/isis_zebra.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/isisd/isis_zebra.c b/isisd/isis_zebra.c index 8a784175..1201627d 100644 --- a/isisd/isis_zebra.c +++ b/isisd/isis_zebra.c @@ -420,7 +420,7 @@ isis_zebra_route_del_ipv6 (struct prefix *prefix, struct listnode *node; struct prefix_ipv6 prefix6; - if (CHECK_FLAG (route_info->flag, ISIS_ROUTE_FLAG_ZEBRA_SYNCED)) + if (!CHECK_FLAG (route_info->flag, ISIS_ROUTE_FLAG_ZEBRA_SYNCED)) return; api.vrf_id = VRF_DEFAULT; |