Skip to content

Commit

Permalink
Remove redundancy
Browse files Browse the repository at this point in the history
  • Loading branch information
arfeigin committed Jun 16, 2024
1 parent 777e88b commit db7f6a9
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions utilities_common/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
from .db import Db
import copy

IFNAMSIZ = 16

def get_port_acl_binding(db_wrap, port, ns):
"""
Verify if the port is not bound to any ACL Table
Expand Down Expand Up @@ -37,15 +35,6 @@ def get_port_acl_binding(db_wrap, port, ns):
return acl_tables


def validate_interface_name_length(iface_name):
"""
Verify that interface name length does not exceed IFNAMSIZ
"""
if len(iface_name) == 0:
return False
return True if len(iface_name) < IFNAMSIZ else False


def get_port_pbh_binding(db_wrap, port, ns):
"""
Verify if the port is not bound to any PBH Table
Expand Down

0 comments on commit db7f6a9

Please sign in to comment.