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

tlm_teamd: Filter portchannel subinterface events from STATE_DB LAG_TABLE

Open preetham-singh opened this issue 2 years ago • 4 comments

Avoid processing portchannel subinterfaces in teamd

What I did Fixes #11218 : https://github.com/Azure/sonic-buildimage/issues/11218

As per Subinterface HLD, portchannel subinterfaces once provisioned by intfmgrd, will be updated to STATE_DB LAG_TABLE. Teamd subscribes to STATE_DB LAG_TABLE hence it receives portchannel subinterface events though it is not interested in portchannel subinterface events. Fix is to filter subinterface events prior to adding to teamd event queue.

Why I did it Fix for issue #11218 where teamd syslog errors were observed when portchannel subinterfaces were configured on the system.

How I verified it Ensured tlm does not add portchannel subinterface STATE_DB LAG_TABLE events to its event queue thus filtering portchannel subinterface events.

Details if related

preetham-singh avatar Aug 06 '22 09:08 preetham-singh

CLA Signed

The committers listed above are authorized under a signed CLA.

  • :white_check_mark: login: preetham-singh / name: Preetham (d4ec07c89b1dd6584b6f35e85a1a13c1f74b5de8, b3665fd7081cadb741f07b0ebb590dd71c28f446, d49758f888f36cf36ad6b076929e197e3cce41db)

@preetham-singh , can you please update the title correctly and also better description of the changes. Kindly follow the template and check-mark if the fix is required for any other branch.

prsunny avatar Aug 09 '22 00:08 prsunny

/easycla

adyeung avatar Aug 15 '22 23:08 adyeung

@judyjoseph pls help review and signoff

adyeung avatar Aug 16 '22 18:08 adyeung