[ovs-git] [openvswitch/ovs] 016e46: db-ctl-base: Allow print rows that weak reference ...

GitHub noreply at github.com
Thu Aug 13 07:54:53 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 016e46846db5decbe6337500230cb56fd4b1bdf7
      https://github.com/openvswitch/ovs/commit/016e46846db5decbe6337500230cb56fd4b1bdf7
  Author: Alex Wang <alexw at nicira.com>
  Date:   2015-08-13 (Thu, 13 Aug 2015)

  Changed paths:
    M lib/db-ctl-base.c
    M lib/db-ctl-base.h
    M ovn/utilities/ovn-sbctl.c
    M tests/ovn-sbctl.at
    M utilities/ovs-vsctl.c
    M vtep/vtep-ctl.c

  Log Message:
  -----------
  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 at nicira.com>
Signed-off-by: Alex Wang <alexw at nicira.com>
Acked-by: Justin Pettit <jpettit at nicira.com>




More information about the git mailing list