Skip to content

Commit 4383300

Browse files
author
Shuotian Cheng
authored
[aclshow]: Fix the KeyError issue in aclshow (sonic-net#325)
The variable ports is not used and it causes issue while the control plane ACLs doesn't have this key in the dictionary. Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
1 parent f78bba4 commit 4383300

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

scripts/aclshow

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@ class AclStat(object):
201201
self.get_counter_value(rule_key, 'packets') == 'N/A'):
202202
continue
203203
rule = self.acl_rules[rule_key]
204-
ports = self.acl_tables[rule_key[0]]['ports']
205204
line = [rule_key[1], rule_key[0],
206205
self.acl_tables[rule_key[0]]['type'],
207206
rule['PRIORITY'],

0 commit comments

Comments
 (0)