db-ctl-base: Allow print rows that weak reference to table in
authorAlex Wang <alexw@nicira.com>
Thu, 13 Aug 2015 04:29:06 +0000 (21:29 -0700)
committerAlex Wang <alexw@nicira.com>
Thu, 13 Aug 2015 07:58:59 +0000 (00:58 -0700)
commit016e46846db5decbe6337500230cb56fd4b1bdf7
tree7cb6028c1718e047f4a01a68cd898f8bbc8bde10
parentebbcddeba883d16e203caf22e69c711241a0eef3
db-ctl-base: Allow print rows that weak reference to table in
'cmd_show_table'.

Sometimes, it is desirable to print the table with weak reference to
the table specified in 'struct cmd_show_table'.  For example the
Port_Binding table rows in OVN_Southbound database that refer to the
same Chassis table row can be printed under the same chassis entry
in 'ovn-sbctl show' output.

To achieve it, this commit adds a new struct in 'struct cmd_show_table'
that allows users to print a table with weak reference to 'table'
specified in 'struct cmd_show_table'.  The 'ovn-sbctl' which now prints
the Port_Binding entries with Chassis table, is the first user of this
new feature.

Requested-by: Justin Pettit <jpettit@nicira.com>
Signed-off-by: Alex Wang <alexw@nicira.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
lib/db-ctl-base.c
lib/db-ctl-base.h
ovn/utilities/ovn-sbctl.c
tests/ovn-sbctl.at
utilities/ovs-vsctl.c
vtep/vtep-ctl.c