Skip to content

Commit

Permalink
[lag_id] Add lagid to free_list when LC absent for 30 minutes (sonic-…
Browse files Browse the repository at this point in the history
…net#542)

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:
sonic-net/sonic-swss#3303
sonic-net/sonic-buildimage#20369

Signed-off-by: mlok <[email protected]>
  • Loading branch information
mlok-nokia authored and vvolam committed Jan 3, 2025
1 parent 6f62340 commit fc28cae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sonic-chassisd/scripts/chassisd
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,7 @@ class ModuleUpdater(logger.Logger):
local lagid = redis.call('HGET', 'SYSTEM_LAG_ID_TABLE', lagname)\n\
redis.call('SREM', 'SYSTEM_LAG_ID_SET', lagid)\n\
redis.call('HDEL', 'SYSTEM_LAG_ID_TABLE', lagname)\n\
redis.call('rpush', 'SYSTEM_LAG_IDS_FREE_LIST', lagid)\n\
end\n\
end\n\
return"
Expand Down

0 comments on commit fc28cae

Please sign in to comment.