Skip to content

Commit

Permalink
[lag_id] Add lagid to free_list when LC absent for 30 minutes (#542)
Browse files Browse the repository at this point in the history
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 mssonicbld committed Nov 30, 2024
1 parent ff07eeb commit 2b0d2a6
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 @@ -507,6 +507,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 2b0d2a6

Please sign in to comment.