Allow subclasses of Idl to define a notification hook
authorTerry Wilson <twilson@redhat.com>
Sat, 25 Apr 2015 19:57:44 +0000 (14:57 -0500)
committerBen Pfaff <blp@nicira.com>
Mon, 27 Apr 2015 15:31:39 +0000 (08:31 -0700)
commitd7d417fcddf972ee14e678352017daaf626437fa
tree6d8ed1ad40febf888b704f20f77f95bcc5ddc308
parent596be0ade604110937c82c515744801987346f7b
Allow subclasses of Idl to define a notification hook

It is useful to make the notification events that Idl processes
accessible to users of the library. This will make it possible to
keep external systems in sync, but does not impose any particular
notification pattern.

The Row.from_json() call is added to be able to convert the 'old'
JSON response on an update to a Row object to make it easy for
users of notify() to see what changed, though this usage of Row
is quite different than Idl's typical use.

Signed-off-by: Terry Wilson <twilson@redhat.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
python/ovs/db/idl.py
tests/ovsdb-idl.at
tests/test-ovsdb.py