Skip to content

Commit 2df4f40

Browse files
authored
Allowing TCP connections with namespace as well. (sonic-net#81)
1 parent a4d40f2 commit 2df4f40

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/swsssdk/dbconnector.py

-5
Original file line numberDiff line numberDiff line change
@@ -233,11 +233,6 @@ def __init__(self, use_unix_socket_path=False, namespace=None, **kwargs):
233233
"""
234234
self.namespace = namespace
235235

236-
# The TCP connection to a DB in another namespace in not supported.
237-
if namespace is not None and use_unix_socket_path == False:
238-
message = "TCP connectivity to the DB instance in a different namespace is not implemented!"
239-
raise NotImplementedError(message)
240-
241236
for db_name in self.get_db_list():
242237
# set a database name as a constant value attribute.
243238
setattr(self, db_name, db_name)

0 commit comments

Comments
 (0)