From c4dba9c0cdd53661373b1fc19504fe0af671acfa Mon Sep 17 00:00:00 2001 From: "Marty Y. Lok" <76118573+mlok-nokia@users.noreply.github.com> Date: Wed, 27 Nov 2024 13:26:11 -0500 Subject: [PATCH] [lag_id] Add lagid to free_list when LC absent for 30 minutes (#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 --- sonic-chassisd/scripts/chassisd | 1 + 1 file changed, 1 insertion(+) diff --git a/sonic-chassisd/scripts/chassisd b/sonic-chassisd/scripts/chassisd index 9af0c402d..79fa6ad9d 100755 --- a/sonic-chassisd/scripts/chassisd +++ b/sonic-chassisd/scripts/chassisd @@ -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"