]> git.puffer.fish Git - mirror/frr.git/commitdiff
pbrd: add ZAPI_RULE_FAIL_REMOVE flag in switch
authorPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 18 May 2018 15:11:50 +0000 (17:11 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 31 May 2018 15:44:40 +0000 (17:44 +0200)
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 <philippe.guibert@6wind.com>
pbrd/pbr_zebra.c

index cdacfad4b4db1a96339bda5d183e384dd99de4a8..8d336c9d0d95b3b98984e93caaf62a910cc56027 100644 (file)
@@ -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",