From 2df4f40fcec2c5ddafe543aec964a6390d2a9a90 Mon Sep 17 00:00:00 2001 From: judyjoseph <53951155+judyjoseph@users.noreply.github.com> Date: Sun, 5 Jul 2020 23:35:59 -0700 Subject: [PATCH] Allowing TCP connections with namespace as well. (#81) --- src/swsssdk/dbconnector.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/swsssdk/dbconnector.py b/src/swsssdk/dbconnector.py index 579ab21e3fca..c5bc26d11bf2 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)