aboutsummaryrefslogtreecommitdiffstats
path: root/test/template_classifier.py
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2021-09-30 13:41:00 +0200
committerNeale Ranns <neale@graphiant.com>2021-10-06 11:58:43 +0000
commitabb2a42239430a1a67b259b931848a9195402d1a (patch)
treeebc0c6ed52424f0bea5130090a00b96053e4b451 /test/template_classifier.py
parent7b3a3df263c7a5bf549f350553cbd9bce7ee40b3 (diff)
ip: add classifier-based ACLs support on ip punt
This feature allows one to add classifier-based ACLs on packets punted from the ip infra, eg. to only whitelist specific sender(s). Type: feature Change-Id: Idab37b188583efbca980038875fc3e540cb2e880 Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'test/template_classifier.py')
-rw-r--r--test/template_classifier.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/template_classifier.py b/test/template_classifier.py
index b9a8ca9d7f3..7ce69d436f5 100644
--- a/test/template_classifier.py
+++ b/test/template_classifier.py
@@ -116,11 +116,10 @@ class TestClassifier(VppTestCase):
if self.acl_active_table.endswith('out'):
self.output_acl_set_interface(
self.pg0, self.acl_tbl_idx.get(self.acl_active_table), 0)
- self.acl_active_table = ''
elif self.acl_active_table != '':
self.input_acl_set_interface(
self.pg0, self.acl_tbl_idx.get(self.acl_active_table), 0)
- self.acl_active_table = ''
+ self.acl_active_table = ''
for intf in self.interfaces:
if self.af == AF_INET: