acl-plugin: VAT: add an option to load entire ACL from a ClassBench ruleset file... 50/13050/2
authorAndrew Yourtchenko <ayourtch@gmail.com>
Fri, 18 May 2018 16:10:16 +0000 (18:10 +0200)
committerDamjan Marion <dmarion@me.com>
Thu, 14 Jun 2018 14:38:10 +0000 (14:38 +0000)
commitc553ec20fed9715f0b70b71fca23caac42a1226a
tree7ae34bdb84bdee5cd2dd2cf8015ffd141c9f84ed
parent93a6f25cee919e0544af370cba801dc83a004822
acl-plugin: VAT: add an option to load entire ACL from a ClassBench ruleset file for testing

Add a command "acl_add_replace_from_file" to VAT which can load a ruleset and
add an ACL with it. There are a few options which augment the ACL being created:

"permit+reflect" or "permit" alter the default action from deny on the ACEs
created.

"append-default-permit" adds an entry in the end with the "permit+reflect"
if the default action has been changed to permit+reflect, or with a simple
permit otherwise.

This command is IPv4-only because the available datasets were IPv4-only.

Change-Id: I26b9f33ecb6b59e051d1d9cbafedbc47e8203392
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
src/plugins/acl/acl_test.c