From 1e35915dcf04932a155112d4f491bd5d2a4e8417 Mon Sep 17 00:00:00 2001 From: Sudharsan Dhamal Gopalarathnam Date: Thu, 30 Sep 2021 12:45:51 -0700 Subject: [PATCH] Load global config in caclmgrd only in multi asic NPU (#8812) How I did it Added if multi npu check before invoking the load global config. How to verify it Restart caclmgrd after this change and check if no error log is thrown. --- src/sonic-host-services/scripts/caclmgrd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/sonic-host-services/scripts/caclmgrd b/src/sonic-host-services/scripts/caclmgrd index 3ef3b0d0ef63..b46ade3316f9 100755 --- a/src/sonic-host-services/scripts/caclmgrd +++ b/src/sonic-host-services/scripts/caclmgrd @@ -101,7 +101,9 @@ class ControlPlaneAclManager(daemon_base.DaemonBase): self.lock[DEFAULT_NAMESPACE] = threading.Lock() self.num_changes[DEFAULT_NAMESPACE] = 0 - swsscommon.SonicDBConfig.load_sonic_global_db_config() + if device_info.is_multi_npu(): + swsscommon.SonicDBConfig.load_sonic_global_db_config() + self.config_db_map = {} self.iptables_cmd_ns_prefix = {} self.config_db_map[DEFAULT_NAMESPACE] = swsscommon.ConfigDBConnector(use_unix_socket_path=True, namespace=DEFAULT_NAMESPACE)