-
Notifications
You must be signed in to change notification settings - Fork 670
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[aclshow] fix aclshow when clear is called before counters are popula…
…ted (#2037) - What I did Fixed a bug that in case ACL counters are cleared before counters are populated in COUNTERS DB the next aclshow will fail: admin@sonic:~$ aclshow -c -t DATAACL admin@sonic:~$ aclshow -a -t DATAACL 'NoneType' object is not subscriptable - How I did it Keep self.acl_counters in sync with COUNTERS DB and don't put empty values when no counters are available, so when dumping counters and loading them back there are no empty values. - How to verify it Without this change the added UT fails: Signed-off-by: Stepan Blyschak <[email protected]>
- Loading branch information
1 parent
a48a027
commit 71fdee7
Showing
4 changed files
with
108 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters