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 <marty.lok@nokia.com>
  • Loading branch information
mlok-nokia authored and mssonicbld committed Nov 30, 2024
1 parent ff07eeb commit c4dba9c
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 c4dba9c

Please sign in to comment.