sonic-net / sonic-swss

SONiC Switch State Service (SwSS)
https://azure.github.io/SONiC
Other
173 stars 524 forks source link

CRM show resources acl table not counting correctly #524

Open simone-dell opened 6 years ago

simone-dell commented 6 years ago

root@sonic-s6100-01:~# show version SONiC Software Version: SONiC.HEAD.617-ed06aca Distribution: Debian 8.10 Kernel: 3.16.0-5-amd64 Build commit: ed06aca Build date: Sun Jun 10 07:11:33 UTC 2018 Built by: johnar@jenkins-worker-3

When I scale ACL rules beyond the number of available entries specified in the CRM show command, it malfunctions and does not show the proper number of used/available entries

root@sonic-s6100-01:~# crm show resources acl table

Table ID         Resource Name      Used Count    Available Count
---------------  ---------------  ------------  -----------------
0x7000000000ad6  acl_entry                   1               511

Table ID         Resource Name      Used Count    Available Count
---------------  ---------------  ------------  -----------------
0x7000000000b9b  acl_entry                   1                511
0x7000000000b9b  acl_counter                 1              34815

I added 515 ACL rules using acl-loader update full command

root@sonic-s6100-01:~# docker exec -i database redis-cli -n 1 KEYS \* | grep "ACL
518
root@sonic-s6100-01:~# crm show resources acl table

Table ID         Resource Name      Used Count    Available Count
---------------  ---------------  ------------  -----------------
0x7000000000b97  acl_entry                 213                299
0x7000000000b97  acl_counter               213              34603

Table ID         Resource Name      Used Count    Available Count
---------------  ---------------  ------------  -----------------
0x7000000000ad6  acl_entry                   2               1278
simone-dell commented 6 years ago

@prsunny