From bf60a27847df44612daa7776fe61c5c64722317b Mon Sep 17 00:00:00 2001 From: Qi Luo Date: Wed, 2 Jun 2021 16:34:28 -0700 Subject: [PATCH] Replace swsssdk.SonicV2Connector with swsscommon implementation (#191) swsssdk will be deprecated, and the python version of redis accessing classes will be replace by the same name classes in swsscommon, which are SWIG wrapped C++ code. --- sonic-pcied/scripts/pcied | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sonic-pcied/scripts/pcied b/sonic-pcied/scripts/pcied index d69ddcb9275e..0f2a5208c68b 100644 --- a/sonic-pcied/scripts/pcied +++ b/sonic-pcied/scripts/pcied @@ -11,7 +11,6 @@ try: import sys import threading - import swsssdk from sonic_py_common import daemon_base, device_info from swsscommon import swsscommon except ImportError as e: @@ -49,7 +48,7 @@ class DaemonPcied(daemon_base.DaemonBase): self.timeout = PCIED_MAIN_THREAD_SLEEP_SECS self.stop_event = threading.Event() - self.state_db = swsssdk.SonicV2Connector(host=REDIS_HOSTIP) + self.state_db = swsscommon.SonicV2Connector(host=REDIS_HOSTIP) self.state_db.connect("STATE_DB") state_db = daemon_base.db_connect("STATE_DB") self.device_table = swsscommon.Table(state_db, PCIE_DEVICE_TABLE_NAME)