From: Arun Sharma Date: Mon, 9 Apr 2012 20:29:32 +0000 (-0700) Subject: Python binaries to write comment in db show-log while updating database X-Git-Tag: sliver-openvswitch-0.1-1~120 X-Git-Url: http://git.onelab.eu/?p=sliver-openvswitch.git;a=commitdiff_plain;h=932f36ebdb5be9decb8e95befb3acd986c811185 Python binaries to write comment in db show-log while updating database This is an improvement in python script ovs-xapi-sync to call add_comment() method while updating database. This will help developer to debug binaries and database from ovsdb-tool show-log command output and understand which python binary is updating db. Feature #10543 Signed-off-by: Arun Sharma Signed-off-by: Ben Pfaff --- diff --git a/xenserver/usr_share_openvswitch_scripts_ovs-xapi-sync b/xenserver/usr_share_openvswitch_scripts_ovs-xapi-sync index cc14d6f28..77c07bcd6 100755 --- a/xenserver/usr_share_openvswitch_scripts_ovs-xapi-sync +++ b/xenserver/usr_share_openvswitch_scripts_ovs-xapi-sync @@ -361,6 +361,7 @@ def main(): iface_ids = new_iface_ids vm_ids = new_vm_ids + txn.add_comment("ovs-xapi-sync: Updating records from XAPI") txn.commit_block() unixctl_server.close()