Skip to content

Commit bf60a27

Browse files
authored
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.
1 parent 9297a29 commit bf60a27

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sonic-pcied/scripts/pcied

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ try:
1111
import sys
1212
import threading
1313

14-
import swsssdk
1514
from sonic_py_common import daemon_base, device_info
1615
from swsscommon import swsscommon
1716
except ImportError as e:
@@ -49,7 +48,7 @@ class DaemonPcied(daemon_base.DaemonBase):
4948
self.timeout = PCIED_MAIN_THREAD_SLEEP_SECS
5049
self.stop_event = threading.Event()
5150

52-
self.state_db = swsssdk.SonicV2Connector(host=REDIS_HOSTIP)
51+
self.state_db = swsscommon.SonicV2Connector(host=REDIS_HOSTIP)
5352
self.state_db.connect("STATE_DB")
5453
state_db = daemon_base.db_connect("STATE_DB")
5554
self.device_table = swsscommon.Table(state_db, PCIE_DEVICE_TABLE_NAME)

0 commit comments

Comments
 (0)