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

[sonic-swss]: Added flap counter and last flap time functionality.

Open prprakas opened this issue 6 years ago • 14 comments

Number of times a link got reset(up/down) has been added under this change, also the last flap timestamp for the link has also been added, they will be updated once the oper status of any port changes. 2 additional fields have been added to appl_db i.e. "flap_counter" and "last_flap_time" which willbe updated when "oper_status" is updated.

Signed-off-by: Prem Prakash [email protected]

What I did Added flap counter and last flap timestamp feature

Why I did it This would help in solving operational issues faster. Instead of relying on the logs to figure out a bad flapper we can see this feature under status command.

How I verified it Tested it by building up the docker-orchagent.gz after my change, changes were required on sonic-utilities repo as well to see the output, I will raise a parallel PR for that.

flap_output.txt

prprakas avatar Jun 12 '19 06:06 prprakas

CLA assistant check
All CLA requirements met.

msftclas avatar Jun 12 '19 06:06 msftclas

retest this please

zhenggen-xu avatar Jun 13 '19 04:06 zhenggen-xu

retest this please

prprakas avatar Jun 13 '19 05:06 prprakas

retest this please

prprakas avatar Jun 13 '19 07:06 prprakas

retest this please

prprakas avatar Jun 13 '19 09:06 prprakas

retest this please

prprakas avatar Jun 14 '19 11:06 prprakas

retest this please

prprakas avatar Jun 19 '19 08:06 prprakas

Please review the changes.

prprakas avatar Jun 26 '19 03:06 prprakas

redis incr is nice but it requires much more changes. i suggest a design review first

stcheng avatar Jul 26 '19 21:07 stcheng

how to move forward on this one? schedule a call to discuss this feature? @prprakas to schedule?

lguohan avatar Jul 26 '19 21:07 lguohan

@lguohan @stcheng Yeah we can schedule a call to discuss on this. I am based out of Bangalore, India so let me know what is the good time to talk to you

prprakas avatar Jul 29 '19 06:07 prprakas

@lguohan will add a vs-test for this, I think that should be good to move ahead with this as per the communication from @zhenggen-xu

prprakas avatar Aug 08 '19 16:08 prprakas

@prprakas , can you fix simply comments we have requested, also can you share the ETA for adding vs test?

lguohan avatar Sep 06 '19 22:09 lguohan

retest this please

lguohan avatar Jan 29 '20 05:01 lguohan