summaryrefslogtreecommitdiff
path: root/vtep
diff options
context:
space:
mode:
authorMark Michelson <mmichels@redhat.com>2018-02-26 14:04:02 -0600
committerBen Pfaff <blp@ovn.org>2018-02-26 14:19:56 -0800
commit8519ea87d7b84166a02d8f3f25c91a2ff7d5fe57 (patch)
treec9f42eb8bdac4cbff8ed4d774646076190fb6018 /vtep
parent2696bcb1205837b50cdf4f5402926efa8753f7f6 (diff)
downloadopenvswitch-8519ea87d7b84166a02d8f3f25c91a2ff7d5fe57.tar.gz
Refer to database manpages in *ctl manpages
The ovn-nbctl, ovn-sbctl, and ovs-vsctl manpages are inconsistent in their "Database Commands" section when it comes to referring to what database tables exist. This commit amends this by making each *ctl manpage reference the corresponding database manpage instead. To aid in having a more handy list, the --help text of ovn-nbctl, ovn-sbctl, and ovs-vsctl have been modified to list the available tables. This is also referenced in the manpages for those applications. Signed-off-by: Mark Michelson <mmichels@redhat.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'vtep')
-rw-r--r--vtep/vtep-ctl.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/vtep/vtep-ctl.c b/vtep/vtep-ctl.c
index 056dc687a..a8967ea1c 100644
--- a/vtep/vtep-ctl.c
+++ b/vtep/vtep-ctl.c
@@ -361,6 +361,7 @@ MAC binding commands:\n\
list-remote-macs LS list remote mac entries\n\
\n\
%s\
+%s\
\n\
Options:\n\
--db=DATABASE connect to DATABASE\n\
@@ -368,7 +369,8 @@ Options:\n\
-t, --timeout=SECS wait at most SECS seconds\n\
--dry-run do not commit changes to database\n\
--oneline print exactly one line of output per command\n",
- program_name, program_name, ctl_get_db_cmd_usage(), ctl_default_db());
+ program_name, program_name, ctl_get_db_cmd_usage(),
+ ctl_list_db_tables_usage(), ctl_default_db());
table_usage();
vlog_usage();
printf("\
@@ -2499,6 +2501,7 @@ static const struct ctl_command_syntax vtep_commands[] = {
static void
vtep_ctl_cmd_init(void)
{
- ctl_init(vteprec_table_classes, tables, cmd_show_tables, vtep_ctl_exit);
+ ctl_init(&vteprec_idl_class, vteprec_table_classes, tables,
+ cmd_show_tables, vtep_ctl_exit);
ctl_register_commands(vtep_commands);
}