From fc28caee2ed72955aad53380a5bb9a2006d8b762 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 2dbc9e325..2023502cc 100755 --- a/sonic-chassisd/scripts/chassisd +++ b/sonic-chassisd/scripts/chassisd @@ -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"