acl: CLI allow replace, allow deletion 24/37924/2
authorPim van Pelt <pim@ipng.nl>
Sun, 15 Jan 2023 19:04:56 +0000 (19:04 +0000)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Tue, 17 Jan 2023 16:36:28 +0000 (16:36 +0000)
commit4da8be4dbabbbf53f1a3a9576f5178d982de6a06
tree30ac4b3042bb8fccccdf7027b7df762dd1b759ac
parent463d5f95a0e5b94ed23963fd87758d3e021280db
acl: CLI allow replace, allow deletion

Allow the CLI caller to specify an optional [index <idx>] index,
which will remove the ACL at that index. This mimicks the API behavior,

Add a 'delete acl-plugin acl index <idx>' to mimick the API acl_del
call, which will refuse to delete a non-existent index, as well as
an index that is referenced by an interface.

Type: improvement
Signed-off-by: pim@ipng.nl
Change-Id: I5f240f7a4e3bca14e8122917e8a5186d80094de2
src/plugins/acl/acl.c