Skip to content

Commit

Permalink
[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>
  • Loading branch information
Shuotian Cheng authored Sep 26, 2018
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
Expand Up @@ -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'],
Expand Down

0 comments on commit 4383300

Please sign in to comment.