acl-plugin: unapply the ACLs if interface is being deleted 53/6653/4
authorAndrew Yourtchenko <ayourtch@gmail.com>
Thu, 11 May 2017 10:33:54 +0000 (12:33 +0200)
committerNeale Ranns <nranns@cisco.com>
Mon, 15 May 2017 20:26:00 +0000 (20:26 +0000)
commit5c85f358bb08403d9edce14d9cc63675bda6799d
tree673e0097455beaad95e926cafd26b8a287ab87ba
parent90b241536653f8acb1401588a2535dead75e5799
acl-plugin: unapply the ACLs if interface is being deleted

(HC2VPP-137 is the client behavior triggering this)

If the user does not unapply the ACLs off the interface,
but deletes the interface, the subsequent reuse of the
sw_if_index might find itself with the datapath
hooked up for ACL processing even though there is
no ACL configured. The fix is to unapply any ACLs
in the callback which is called upon the sw_if_index
addition/deletion.

Change-Id: Icea413d7fbf1ef891844a4818626e1b34fe79cbf
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
(cherry picked from commit 4c72e629e5ace392390a9d6109594254525064f7)
src/plugins/acl/acl.c