[ovs-dev] [PATCH v2]: ovsdb: add capability to dump table content in ovsdb-client

Andy Zhou azhou at nicira.com
Wed Jul 1 03:17:02 UTC 2015


On Tue, Jun 30, 2015 at 7:47 PM, Sabyasachi Sengupta
<Sabyasachi.Sengupta at alcatel-lucent.com> wrote:
>
>> 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?
>
>
> Our deployments typically have large amount of data in tables in ovsdb and
> finding out content of one table has been hard out of such large outputs,
> especially from usability perspective. One can always go to awk/sed, but for
> convenience traditional unix/linux systems often provides different options
> of standard commands that helps narrow down output and present it to users
> in a more presentable manner. I suppose I don't need to mention about
> usefulness of '-d' option of ls, or '-type' of find here. Although it is
> possible to write wrappers over 'find' that does the job of '-type dir', but
> having it as part of 'find' helps in standardizing output and allows users
> to do 'other' stuff rather than each program or individual user do this
> separately..
O.K. I am sold on the table option.
>
> While one can write their own scriptlets, the other important question is
> how one would distribute this script to deployable systems. One easier
> approach if there is something available as part of ovs package itself.
>
OVS currently do not carry many helper scripts. A few of them
currently living in utilities.

> The motivation of contributing this actually came from your existing
> DATABASE option that appears to eliminate the need to have similar scripts,
> but extend it with a new convenience TABLE option.

Make sense. Thanks for working on it.



More information about the dev mailing list