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 <marty.lok@nokia.com>
  • Loading branch information
mlok-nokia authored Nov 27, 2024
1 parent 3624cb7 commit 57f0448
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 57f0448

Please sign in to comment.