Skip to content

Commit 9be3eb5

Browse files
authoredFeb 24, 2025
Revert unix socket for chassis db (sonic-net#21606)
Why I did it Reverting part of sonic-net#21345, since Chassis DB connection from remote host (linecard) cannot use unix socket How I did it Continue to use TCP socket for chassis DB connection How to verify it Bring up BGP on chassis, which currently fails after change in sonic-net#21345
1 parent 4608b26 commit 9be3eb5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎src/sonic-bgpcfgd/bgpcfgd/runner.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def add_manager(self, manager):
4040
db = swsscommon.SonicDBConfig.getDbId(db_name)
4141
if db not in self.db_connectors:
4242
if db_name == "CHASSIS_APP_DB":
43-
self.db_connectors[db] = swsscommon.DBConnector(db_name, 0, False, '')
43+
self.db_connectors[db] = swsscommon.DBConnector(db_name, 0, True, '')
4444
else:
4545
self.db_connectors[db] = swsscommon.DBConnector(db_name, 0)
4646

‎src/sonic-py-common/sonic_py_common/daemon_base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
def db_connect(db_name, namespace=EMPTY_NAMESPACE):
2828
from swsscommon import swsscommon
29-
return swsscommon.DBConnector(db_name, REDIS_TIMEOUT_MSECS, False, namespace)
29+
return swsscommon.DBConnector(db_name, REDIS_TIMEOUT_MSECS, True, namespace)
3030

3131

3232
#

0 commit comments

Comments
 (0)