ACL plugin support tagged subinterfaces
Change-Id: I92b351895c7efb26533c05512b91ead8ddbfb9c8 Signed-off-by: Pavel Kotucek <pkotucek@cisco.com>
This commit is contained in:
committed by
Damjan Marion
parent
6bd0bc347a
commit
8daa80a4ad
File diff suppressed because it is too large
Load Diff
@@ -179,6 +179,11 @@ typedef struct {
|
||||
u32 *acl_ip4_output_classify_table_by_sw_if_index;
|
||||
u32 *acl_ip6_output_classify_table_by_sw_if_index;
|
||||
|
||||
u32 *acl_dot1q_input_classify_table_by_sw_if_index;
|
||||
u32 *acl_dot1ad_input_classify_table_by_sw_if_index;
|
||||
u32 *acl_dot1q_output_classify_table_by_sw_if_index;
|
||||
u32 *acl_dot1ad_output_classify_table_by_sw_if_index;
|
||||
|
||||
/* MACIP (input) ACLs associated with the interfaces */
|
||||
u32 *macip_acl_by_sw_if_index;
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -2493,6 +2493,23 @@ class VppPapiProvider(object):
|
||||
'acls': acls},
|
||||
expected_retval=expected_retval)
|
||||
|
||||
def acl_interface_add_del(self,
|
||||
sw_if_index,
|
||||
acl_index,
|
||||
is_add=1):
|
||||
""" Add/Delete ACL to/from interface
|
||||
|
||||
:param sw_if_index:
|
||||
:param acl_index:
|
||||
:param is_add: (Default value = 1)
|
||||
"""
|
||||
|
||||
return self.api(self.papi.acl_interface_add_del,
|
||||
{'is_add': is_add,
|
||||
'is_input': 1,
|
||||
'sw_if_index': sw_if_index,
|
||||
'acl_index': acl_index})
|
||||
|
||||
def acl_dump(self, acl_index, expected_retval=0):
|
||||
return self.api(self.papi.acl_dump,
|
||||
{'acl_index': acl_index},
|
||||
|
||||
Reference in New Issue
Block a user