Skip to content
Browse files

zebra: handle multiple events for netns deletion event

When handling events from /var/run/netns folder, if several netns are
removed at the same time, only the first one is deleted in the frr. Fix
this behaviour by applying continue in the loop.

Signed-off-by: Philippe Guibert <>
  • Loading branch information...
pguibert6WIND committed Dec 18, 2018
1 parent c05f659 commit f245bcaebbd499f888c8f9355c73f8d78fded17f
Showing with 4 additions and 3 deletions.
  1. +4 −3 zebra/zebra_netns_notify.c
@@ -266,9 +266,10 @@ static int zebra_ns_notify_read(struct thread *t)

if (event->mask & IN_DELETE)
return zebra_ns_delete(event->name);

if (event->mask & IN_DELETE) {
netnspath = ns_netns_pathname(NULL, event->name);
if (!netnspath)

0 comments on commit f245bca

Please sign in to comment.
You can’t perform that action at this time.