sonic-swss icon indicating copy to clipboard operation
sonic-swss copied to clipboard

[LUA_SCRIPT] trap_rates.lua get value error

Open inspurSDN opened this issue 2 years ago • 0 comments

Description:
    1. If the SAI_COUNTER_STAT_PACKETS field in the COUNTERS table in the counter db is 0, it will be calculated as a Boolean value by trap_rates.lua, resulting in a script operation error.

    2. Force in_pkts to be converted into a numerical value before operation

What I did

Why I did it

How I verified it

Details if related

inspurSDN avatar Nov 16 '23 08:11 inspurSDN