Skip to content

Commit

Permalink
Load global config in caclmgrd only in multi asic NPU (#8812)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dgsudharsan authored and yxieca committed Oct 4, 2021
1 parent 0f48239 commit ccd93cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sonic-host-services/scripts/caclmgrd
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,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)
Expand Down

0 comments on commit ccd93cb

Please sign in to comment.