sonic-net / sonic-platform-daemons

Platform module daemons for SONiC
Other
23 stars 152 forks source link

[lag_id] Add lagid to free_list when LC absent for 30 minutes #542

Open mlok-nokia opened 3 weeks ago

mlok-nokia commented 3 weeks ago

Description

When LC is absent for 30 minutes, the database cleanup kicks in. When LagId is released, it needs to be appended to the SYSTEM_LAG_IDS_FREE_LIST

This PR works with the following 2 PRs: https://github.com/sonic-net/sonic-swss/pull/3303 https://github.com/sonic-net/sonic-buildimage/pull/20369

Motivation and Context

To address the issue of the same lagid could be used by two Portchannels in two different linecards. This issue occurs when reboot many Linecards together with 20 seconds delay in each LC reboot.

How Has This Been Tested?

Additional Information (Optional)

mlok-nokia commented 1 week ago

@arlakshm and @judyjoseph Please review these 3 PRs. Thanks.