mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
ovsdb-idl: Use modern form of <monitor-requests>.
Long ago, a <monitor-requests> object in the OVSDB protocol mapped a table name to a single <monitor-request>. Since then, it has mapped a table name to an *array of* <monitor-request> objects, but the OVSDB IDL has never been updated to use the modern form. This commit makes that change. Reported-by: Anil Jangam <anilj.mailing@gmail.com> Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Justin Pettit <jpettit@ovn.org>
This commit is contained in:
@@ -425,10 +425,11 @@ class Idl(object):
|
||||
(table.name in self.readonly) and
|
||||
(column not in self.readonly[table.name])):
|
||||
columns.append(column)
|
||||
monitor_requests[table.name] = {"columns": columns}
|
||||
monitor_request = {"columns": columns}
|
||||
if method == "monitor_cond" and table.condition != [True]:
|
||||
monitor_requests[table.name]["where"] = table.condition
|
||||
monitor_request["where"] = table.condition
|
||||
table.cond_change = False
|
||||
monitor_requests[table.name] = [monitor_request]
|
||||
|
||||
msg = ovs.jsonrpc.Message.create_request(
|
||||
method, [self._db.name, str(self.uuid), monitor_requests])
|
||||
|
Reference in New Issue
Block a user