diff options
-rw-r--r-- | AUTHORS.rst | 1 | ||||
-rw-r--r-- | lib/ovsdb-idl.c | 3 | ||||
-rw-r--r-- | python/ovs/db/idl.py | 5 |
3 files changed, 6 insertions, 3 deletions
diff --git a/AUTHORS.rst b/AUTHORS.rst index f6bf68c91..dc69ba3f3 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -393,6 +393,7 @@ André Ruß andre.russ@hybris.com Andreas Beckmann debian@abeckmann.de Andrei Andone andrei.andone@softvision.ro Andrey Korolyov andrey@xdel.ru +Anil Jangam anilj.mailing@gmail.com Anshuman Manral anshuman.manral@outlook.com Anton Matsiuk anton.matsiuk@gmail.com Anup Khadka khadka.py@gmail.com diff --git a/lib/ovsdb-idl.c b/lib/ovsdb-idl.c index b027f8cad..642ce66f9 100644 --- a/lib/ovsdb-idl.c +++ b/lib/ovsdb-idl.c @@ -1600,7 +1600,8 @@ ovsdb_idl_send_monitor_request__(struct ovsdb_idl *idl, json_object_put(monitor_request, "where", where); table->cond_changed = false; } - json_object_put(monitor_requests, tc->name, monitor_request); + json_object_put(monitor_requests, tc->name, + json_array_create_1(monitor_request)); } } free_schema(schema); diff --git a/python/ovs/db/idl.py b/python/ovs/db/idl.py index 773a604ed..189b941ce 100644 --- a/python/ovs/db/idl.py +++ b/python/ovs/db/idl.py @@ -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]) |