Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LUA_SCRIPT] trap_rates.lua get value error #2962

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

inspurSDN
Copy link

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

    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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant