summaryrefslogtreecommitdiff
path: root/pbrd/pbr_zebra.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-02-12 14:55:15 -0500
committerDonald Sharp <sharpd@cumulusnetworks.com>2019-02-12 19:22:30 -0500
commit38e9ccde2f8edd6946d48c80967027d05e64d73f (patch)
treef5760f72c410ef0bfb60a1138e6ba769ebfc4145 /pbrd/pbr_zebra.c
parent6eb499b0315eea9df04908dea3ef58973f43b9b3 (diff)
pbrd: Do not delete pmi until completion of rule delete.
When we have a pbr-policy applied to an interface and the rule is installed and then deleted, we would not properly clean up the bit field for the pmi as well as not note the rule as properly deleted. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pbrd/pbr_zebra.c')
-rw-r--r--pbrd/pbr_zebra.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pbrd/pbr_zebra.c b/pbrd/pbr_zebra.c
index 425bc04b4d..558e635748 100644
--- a/pbrd/pbr_zebra.c
+++ b/pbrd/pbr_zebra.c
@@ -250,6 +250,8 @@ static int rule_notify_owner(int command, struct zclient *zclient,
break;
}
+ pbr_map_final_interface_deletion(pbrms->parent, pmi);
+
return 0;
}