From 5dff9ddd12cd8490fda880c6213a98f5e673d926 Mon Sep 17 00:00:00 2001 From: Philippe Guibert Date: Fri, 18 May 2018 17:11:50 +0200 Subject: [PATCH] pbrd: add ZAPI_RULE_FAIL_REMOVE flag in switch The notification handler consecutive to an add/remove of a rule in zebra is being added the FAIL_REMOVE flag. It is mapped on REMOVE flag behaviour for now. Signed-off-by: Philippe Guibert --- pbrd/pbr_zebra.c | 1 + 1 file changed, 1 insertion(+) diff --git a/pbrd/pbr_zebra.c b/pbrd/pbr_zebra.c index cdacfad4b4..8d336c9d0d 100644 --- a/pbrd/pbr_zebra.c +++ b/pbrd/pbr_zebra.c @@ -222,6 +222,7 @@ static int rule_notify_owner(int command, struct zclient *zclient, DEBUGD(&pbr_dbg_zebra, "%s: Recived RULE_INSTALLED", __PRETTY_FUNCTION__); break; + case ZAPI_RULE_FAIL_REMOVE: case ZAPI_RULE_REMOVED: pbrms->installed &= ~installed; DEBUGD(&pbr_dbg_zebra, "%s: Received RULE REMOVED", -- 2.39.5