> > Currently 'ovsdb-client dump' dumps the whole db, which can be lot of > output. Cannot think of an easier way than writing a python script that goes > over the entire output, then parses and prints the particular table in > question. Bash scripting may not be so easy to write as tables can have > varied number of rows. Its probably more practical and user friendly to have > something in ovsdb-client itself that dumps a table rather than have users > distribute/write custom scripts, especially if db is large in size..
It seems we just need to extract the text between the table name and the first blank line below it. this should pretty easy with either awk or sed. As for efficiency, the db files I have access to are sufficiently small that the script should work in practise, especially used only for debugging. Do you have a very large DB file or a different use case? _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev