From b9fb5b5bd7da0be11d92504de4f43bf3734726f4 Mon Sep 17 00:00:00 2001 From: Christian Franke Date: Tue, 7 Jan 2014 01:55:45 +0100 Subject: 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 --- isisd/isis_zebra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isisd/isis_zebra.c b/isisd/isis_zebra.c index 2df74629..c2f0b11f 100644 --- a/isisd/isis_zebra.c +++ b/isisd/isis_zebra.c @@ -415,7 +415,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.type = ZEBRA_ROUTE_ISIS; -- cgit v1.2.1