[MultiDB] daemon base should use multiDB DBConnector (#4549)
* [MultiDB] daemon base should use multiDB DBConnector * [sonic-platform-daemon] update submodule for multiDB changes
This commit is contained in:
parent
d491c02294
commit
7525fea666
@ -14,11 +14,6 @@ except ImportError, e:
|
||||
# Constants ====================================================================
|
||||
#
|
||||
|
||||
# Redis DB information
|
||||
REDIS_HOSTNAME = 'localhost'
|
||||
REDIS_PORT = 6379
|
||||
REDIS_TIMEOUT_MSECS = 0
|
||||
|
||||
# Platform root directory inside docker
|
||||
PLATFORM_ROOT_DOCKER = '/usr/share/sonic/platform'
|
||||
SONIC_CFGGEN_PATH = '/usr/local/bin/sonic-cfggen'
|
||||
@ -36,12 +31,11 @@ EEPROM_CLASS_NAME = 'board'
|
||||
# Helper functions =============================================================
|
||||
#
|
||||
|
||||
def db_connect(db):
|
||||
def db_connect(db_name):
|
||||
from swsscommon import swsscommon
|
||||
return swsscommon.DBConnector(db,
|
||||
REDIS_HOSTNAME,
|
||||
REDIS_PORT,
|
||||
REDIS_TIMEOUT_MSECS)
|
||||
return swsscommon.DBConnector(db_name,
|
||||
REDIS_TIMEOUT_MSECS,
|
||||
True)
|
||||
|
||||
#
|
||||
# Helper classes ===============================================================
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 6e975f5f61111d399f5f5b44177bba8b4be8162c
|
||||
Subproject commit 0f4fd835f324cb754a8b955f9a5fad6b54d7d6dc
|
Reference in New Issue
Block a user