From 17b8bdb5c792321c4d92f6240f9e2d25ce1d913f Mon Sep 17 00:00:00 2001 From: Judy Joseph Date: Mon, 15 Jun 2020 23:09:17 -0700 Subject: [PATCH] Allowing TCP connections with namespace as well. --- src/swsssdk/dbconnector.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/swsssdk/dbconnector.py b/src/swsssdk/dbconnector.py index 579ab21e3..c5bc26d11 100644 --- a/src/swsssdk/dbconnector.py +++ b/src/swsssdk/dbconnector.py @@ -233,11 +233,6 @@ def __init__(self, use_unix_socket_path=False, namespace=None, **kwargs): """ self.namespace = namespace - # The TCP connection to a DB in another namespace in not supported. - if namespace is not None and use_unix_socket_path == False: - message = "TCP connectivity to the DB instance in a different namespace is not implemented!" - raise NotImplementedError(message) - for db_name in self.get_db_list(): # set a database name as a constant value attribute. setattr(self, db_name, db_name)