Currently python-ovs claims to be "db change aware" but does not parse the "monitor_canceled" notification. Transactions can continue being made, but the monitor updates will not be sent. Adding a force_reconnect() upon receiving a "monitor_canceled" notification resolves this issue.
Signed-off-by: Terry Wilson <twil...@redhat.com> --- python/ovs/db/idl.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/ovs/db/idl.py b/python/ovs/db/idl.py index 16ece0334..cfd81a1ec 100644 --- a/python/ovs/db/idl.py +++ b/python/ovs/db/idl.py @@ -481,6 +481,10 @@ class Idl(object): break else: self.__parse_update(msg.params[1], OVSDB_UPDATE) + elif (msg.type == ovs.jsonrpc.Message.T_NOTIFY + and msg.method == "monitor_canceled"): + self.force_reconnect() + break elif (msg.type == ovs.jsonrpc.Message.T_REPLY and self._monitor_request_id is not None and self._monitor_request_id == msg.id): -- 2.34.3 _______________________________________________ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev