Skip to content

Commit 5e35ff2

Browse files
qiluo-msftlguohan
authored andcommitted
Revert "[acl_loader] fix show acl table (sonic-net#329)" (sonic-net#366)
This reverts commit 7a51a85.
1 parent 1908631 commit 5e35ff2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

acl_loader/main.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -498,8 +498,7 @@ def show_table(self, table_name):
498498
if not val["ports"]:
499499
data.append([key, val["type"], "", val["policy_desc"]])
500500
else:
501-
ports = val["ports"].split(",")
502-
ports.sort(key=lambda name:int(name.strip('Ethernet')))
501+
ports = natsorted(val["ports"])
503502
data.append([key, val["type"], ports[0], val["policy_desc"]])
504503

505504
if len(ports) > 1:

0 commit comments

Comments
 (0)