Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allowing TCP connections with namespace as well. #81

Merged
merged 1 commit into from
Jul 6, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions src/swsssdk/dbconnector.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down