[ovs-dev] [PATCH] Python binaries to write comment in db show-log while updating database

Arun Sharma arun.sharma at calsoftinc.com
Mon Apr 9 13:29:32 PDT 2012


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 <arun.sharma at calsoftinc.com>
---
 .../usr_share_openvswitch_scripts_ovs-xapi-sync    |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/xenserver/usr_share_openvswitch_scripts_ovs-xapi-sync b/xenserver/usr_share_openvswitch_scripts_ovs-xapi-sync
index cc14d6f..77c07bc 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()
-- 
1.7.2.5




More information about the dev mailing list