summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Franke <chris@opensourcerouting.org>2014-01-07 01:55:45 +0100
committerChristian Franke <chris@opensourcerouting.org>2014-01-07 02:00:37 +0100
commitb9fb5b5bd7da0be11d92504de4f43bf3734726f4 (patch)
treeefa0963a5dd3825e4f8801a7e2d896da5a812e99
parenta83a1e9c2f035d3152451dcfc97ab13b4ac427b9 (diff)
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>
-rw-r--r--isisd/isis_zebra.c2
1 files changed, 1 insertions, 1 deletions
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;