From 6c11235de83a42cb074b6e77d1b92effba5198bd Mon Sep 17 00:00:00 2001 From: ganglv <88995770+ganglyu@users.noreply.github.com> Date: Tue, 12 Nov 2024 17:17:28 +0800 Subject: [PATCH] [202311] Update dbus timeout to 10 minutes (#328) Why I did it We found that GCU takes about 10 minutes to update ACL rules Backport #326 How I did it Update dbus timeout to 10 minutes so that we can use GNMI to update ACL rules. How to verify it Run GNMI unit test and end to end test --- sonic_service_client/dbus_client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sonic_service_client/dbus_client.go b/sonic_service_client/dbus_client.go index 275d461c..4c616c31 100644 --- a/sonic_service_client/dbus_client.go +++ b/sonic_service_client/dbus_client.go @@ -114,7 +114,7 @@ func (c *DbusClient) ApplyPatchYang(patch string) error { busName := c.busNamePrefix + modName busPath := c.busPathPrefix + modName intName := c.intNamePrefix + modName + ".apply_patch_yang" - err := DbusApi(busName, busPath, intName, 240, patch) + err := DbusApi(busName, busPath, intName, 600, patch) return err } @@ -124,7 +124,7 @@ func (c *DbusClient) ApplyPatchDb(patch string) error { busName := c.busNamePrefix + modName busPath := c.busPathPrefix + modName intName := c.intNamePrefix + modName + ".apply_patch_db" - err := DbusApi(busName, busPath, intName, 240, patch) + err := DbusApi(busName, busPath, intName, 600, patch) return err }