Skip to content

[CRM] upon applying acl.json , crm stats for available counter is reduced by 6 , while used count is 2 #971

@chitra-raghavan

Description

@chitra-raghavan

Description

In broadcom platforms (Z9100) While running crm_test_acl_counter.yml , upon applying acl.json , the counter , "crm_stats_acl_counter_available" is decremented by value 6, but "crm_stats_acl_counter_used" just 2 and hence the testcase fails
is this expected in broadcom platforms ?

Before applying acl

127.0.0.1:6379[2]> hgetall "CRM:ACL_TABLE_STATS:0x7000000000a3e"
1) "crm_stats_acl_counter_used"
2) "0"
3) "crm_stats_acl_entry_used"
4) "0"
5) "crm_stats_acl_counter_available"
6) "30208"
7) "crm_stats_acl_entry_available"
8) "512"

After applying acl :

root@sonic-z9100-02:~# acl-loader update full acl.json

127.0.0.1:6379[2]> hgetall "CRM:ACL_TABLE_STATS:0x7000000000a3e"
1) "crm_stats_acl_counter_used"
2) "2"  << used counter is incremented by 2 
3) "crm_stats_acl_entry_used"
4) "2"
5) "crm_stats_acl_counter_available"
6) "30202"    <<<<<<<<<<<< 6 values are decremented in available counter
7) "crm_stats_acl_entry_available"
8) "510"

After deleting the acl

root@sonic-z9100-02:~# acl-loader delete

127.0.0.1:6379[2]> hgetall "CRM:ACL_TABLE_STATS:0x7000000000a3e"
1) "crm_stats_acl_counter_used"
2) "0"
3) "crm_stats_acl_entry_used"
4) "0"
5) "crm_stats_acl_counter_available"
6) "30208"
7) "crm_stats_acl_entry_available"
8) "512"

Steps to reproduce the issue:

  1. apply acl
  2. check the crm acl counters , available vs used

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions