summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorNataliia Solomko <natalirs1985@gmail.com>2026-02-11 10:28:14 +0200
committerNataliia Solomko <natalirs1985@gmail.com>2026-02-11 12:37:12 +0200
commiteee03985388eb43396559d551e0bf678568e89fd (patch)
tree2b39d6cea2cf9fe665c0e72b482fbd6bbf070db0 /python
parentf1ebc7820a54d7300e6b6e857be47a6dca289f54 (diff)
downloadvyos-1x-eee03985388eb43396559d551e0bf678568e89fd.tar.gz
vyos-1x-eee03985388eb43396559d551e0bf678568e89fd.zip
vpp: T8252: Change ACL node 'macip' to 'mac'
Diffstat (limited to 'python')
-rw-r--r--python/vyos/vpp/acl/acl.py26
1 files changed, 13 insertions, 13 deletions
diff --git a/python/vyos/vpp/acl/acl.py b/python/vyos/vpp/acl/acl.py
index 57d36ac91..c70b3484c 100644
--- a/python/vyos/vpp/acl/acl.py
+++ b/python/vyos/vpp/acl/acl.py
@@ -70,36 +70,36 @@ class Acl:
count=0,
)
- def get_macip_acl_index_by_tag(self, tag):
- """Get macip ACL by tag name"""
+ def get_mac_acl_index_by_tag(self, tag):
+ """Get mac ACL by tag name"""
for acl in self.vpp.api.macip_acl_dump():
if acl.tag == tag:
return acl.acl_index
return NO_ACL_INDEX
- def add_replace_acl_macip(self, tag, rules):
- """Add or replace existing macip ACL"""
+ def add_replace_acl_mac(self, tag, rules):
+ """Add or replace existing mac ACL"""
self.vpp.api.macip_acl_add_replace(
tag=tag,
- acl_index=self.get_macip_acl_index_by_tag(tag),
+ acl_index=self.get_mac_acl_index_by_tag(tag),
count=len(rules),
r=rules,
)
- def delete_acl_macip(self, tag):
- """Delete existing macip ACL"""
- self.vpp.api.macip_acl_del(acl_index=self.get_macip_acl_index_by_tag(tag))
+ def delete_acl_mac(self, tag):
+ """Delete existing mac ACL"""
+ self.vpp.api.macip_acl_del(acl_index=self.get_mac_acl_index_by_tag(tag))
- def add_acl_macip_interface(self, interface, tag):
- """Add or replace macip ACLs on interface"""
+ def add_acl_mac_interface(self, interface, tag):
+ """Add or replace mac ACLs on interface"""
self.vpp.api.macip_acl_interface_add_del(
sw_if_index=self.vpp.get_sw_if_index(interface),
- acl_index=self.get_macip_acl_index_by_tag(tag),
+ acl_index=self.get_mac_acl_index_by_tag(tag),
is_add=True,
)
- def delete_acl_macip_interface(self, interface):
- """Delete macip ACLs from interface"""
+ def delete_acl_mac_interface(self, interface):
+ """Delete mac ACLs from interface"""
self.vpp.api.macip_acl_interface_add_del(
sw_if_index=self.vpp.get_sw_if_index(interface),
is_add=False,