Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[aclshow]: Fix the KeyError issue in aclshow (sonic-net#325)
Browse files Browse the repository at this point in the history
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>
Shuotian Cheng authored Sep 26, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent f78bba4 commit 4383300
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion scripts/aclshow
Original file line number Diff line number Diff line change
@@ -201,7 +201,6 @@ class AclStat(object):
self.get_counter_value(rule_key, 'packets') == 'N/A'):
continue
rule = self.acl_rules[rule_key]
ports = self.acl_tables[rule_key[0]]['ports']
line = [rule_key[1], rule_key[0],
self.acl_tables[rule_key[0]]['type'],
rule['PRIORITY'],

0 comments on commit 4383300

Please sign in to comment.