Skip to content

Commit

Permalink
Revert "[acl_loader] fix show acl table (#329)" (#366)
Browse files Browse the repository at this point in the history
This reverts commit 7a51a85.
  • Loading branch information
qiluo-msft authored and lguohan committed Nov 6, 2018
1 parent 1908631 commit 5e35ff2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions acl_loader/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,8 +498,7 @@ def show_table(self, table_name):
if not val["ports"]:
data.append([key, val["type"], "", val["policy_desc"]])
else:
ports = val["ports"].split(",")
ports.sort(key=lambda name:int(name.strip('Ethernet')))
ports = natsorted(val["ports"])
data.append([key, val["type"], ports[0], val["policy_desc"]])

if len(ports) > 1:
Expand Down

0 comments on commit 5e35ff2

Please sign in to comment.