]> git.proxmox.com Git - mirror_frr.git/commit
pbrd: only remove interface after all seq uninstalled
authorStephen Worley <sworley@cumulusnetworks.com>
Sat, 23 Nov 2019 18:29:38 +0000 (13:29 -0500)
committerStephen Worley <sworley@cumulusnetworks.com>
Mon, 2 Dec 2019 22:22:29 +0000 (17:22 -0500)
commit74a0ae12391de37d7caf571cb22193f97b7ec46a
treea98c82946f0c7529b79ece283cd7b1b911f262ce
parent7a4429d1f1fb4d63f1a87232b1bc193178cfbc23
pbrd: only remove interface after all seq uninstalled

Only remove the interface from the pbr_map after we get
a callback from zapi that every sequence using that interface
has been removed.

Before, if we created a map with multiple sequences and put that on an interface,
then removed it from that interface, it would fail to mark the sequences after
the first one as uninstalled.

This was because we failed to lookup the other ones after we removed
the interface from the pbr_map.

This patch adds a conditional to only delete the interface from the pbr
map if all its sequneces using that interface have been uninstalled.

This patch extends the work done in 38e9ccde2f8edd6946d48c80967027d05e64d73f

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
pbrd/pbr_map.c