diff --git a/acl_loader/main.py b/acl_loader/main.py index de28093bedbe..3eb8511972bd 100644 --- a/acl_loader/main.py +++ b/acl_loader/main.py @@ -498,7 +498,8 @@ def show_table(self, table_name): if not val["ports"]: data.append([key, val["type"], "", val["policy_desc"]]) else: - ports = natsorted(val["ports"]) + ports = val["ports"].split(",") + ports.sort(key=lambda name:int(name.strip('Ethernet'))) data.append([key, val["type"], ports[0], val["policy_desc"]]) if len(ports) > 1: