From 5e35ff232759e03e0455f2fe7a92f9c47417fc10 Mon Sep 17 00:00:00 2001 From: Qi Luo Date: Tue, 6 Nov 2018 09:31:49 -0800 Subject: [PATCH] Revert "[acl_loader] fix show acl table (#329)" (#366) This reverts commit 7a51a85615eccab3e4bed943e0e25deb39dec4c7. --- acl_loader/main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/acl_loader/main.py b/acl_loader/main.py index 3eb8511972bd..de28093bedbe 100644 --- a/acl_loader/main.py +++ b/acl_loader/main.py @@ -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: