Merge "Backend: always operate on (class level) ovsdb_connection"

This commit is contained in:
Zuul 2024-05-11 01:29:58 +00:00 committed by Gerrit Code Review
commit 394f354934
1 changed files with 2 additions and 2 deletions

View File

@ -32,12 +32,12 @@ class Backend(object):
super().__init__(**kwargs)
self.ovsdb_connection = connection
if auto_index:
if connection.is_running:
if self.ovsdb_connection.is_running:
LOG.debug("Connection already started, not creating indices")
else:
self.autocreate_indices()
if start:
self.start_connection(connection)
self.start_connection(self.ovsdb_connection)
@property
def ovsdb_connection(self):