Disable only connecting to SB leader
As we are only doing read operations, we can connect to any Southbound cluster member, not necessarily only the leader. Change-Id: I3f528dd10736c71825983d1fb1ee8c621c08a745
This commit is contained in:
parent
2e750e2d25
commit
44cb26aa32
@ -30,8 +30,8 @@ LOG = logging.getLogger(__name__)
|
|||||||
|
|
||||||
|
|
||||||
class OvnIdl(connection.OvsdbIdl):
|
class OvnIdl(connection.OvsdbIdl):
|
||||||
def __init__(self, driver, remote, schema):
|
def __init__(self, driver, remote, schema, **kwargs):
|
||||||
super(OvnIdl, self).__init__(remote, schema)
|
super(OvnIdl, self).__init__(remote, schema, **kwargs)
|
||||||
self.driver = driver
|
self.driver = driver
|
||||||
self.notify_handler = OvnDbNotifyHandler(driver)
|
self.notify_handler = OvnDbNotifyHandler(driver)
|
||||||
|
|
||||||
@ -60,7 +60,7 @@ class OvnSbIdl(OvnIdl):
|
|||||||
for table in tables:
|
for table in tables:
|
||||||
helper.register_table(table)
|
helper.register_table(table)
|
||||||
super(OvnSbIdl, self).__init__(
|
super(OvnSbIdl, self).__init__(
|
||||||
None, connection_string, helper)
|
None, connection_string, helper, leader_only=False)
|
||||||
if chassis:
|
if chassis:
|
||||||
table = ('Chassis_Private' if 'Chassis_Private' in tables
|
table = ('Chassis_Private' if 'Chassis_Private' in tables
|
||||||
else 'Chassis')
|
else 'Chassis')
|
||||||
|
Loading…
Reference in New Issue
Block a user