summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/table.h2
-rw-r--r--lib/table.man8
-rw-r--r--ovn/utilities/ovn-nbctl.c1
-rw-r--r--ovn/utilities/ovn-sbctl.c1
-rw-r--r--ovsdb/ovsdb-client.c2
-rw-r--r--utilities/ovs-vsctl.c1
-rw-r--r--vtep/vtep-ctl.c1
7 files changed, 7 insertions, 9 deletions
diff --git a/lib/table.h b/lib/table.h
index 85b815645..7330a33c1 100644
--- a/lib/table.h
+++ b/lib/table.h
@@ -80,7 +80,7 @@ struct table_style {
int json_flags; /* CF_JSON: Flags for json_to_string(). */
};
-#define TABLE_STYLE_DEFAULT { TF_TABLE, CF_STRING, true, JSSF_SORT }
+#define TABLE_STYLE_DEFAULT { TF_LIST, CF_STRING, true, JSSF_SORT }
#define TABLE_OPTION_ENUMS \
OPT_NO_HEADINGS, \
diff --git a/lib/table.man b/lib/table.man
index a8f109465..62efa9a2a 100644
--- a/lib/table.man
+++ b/lib/table.man
@@ -3,11 +3,11 @@
Sets the type of table formatting. The following types of
\fIformat\fR are available:
.RS
-.ie '\*(PN'ovs\-vsctl' .IP "\fBtable\fR"
-.el .IP "\fBtable\fR (default)"
+.ie '\*(PN'ovsdb\-client' .IP "\fBtable\fR (default)"
+.el .IP "\fBtable\fR"
2-D text tables with aligned columns.
-.ie '\*(PN'ovs\-vsctl' .IP "\fBlist\fR (default)"
-.el .IP "\fBlist\fR"
+.ie '\*(PN'ovsdb\-client' .IP "\fBlist\fR"
+.el .IP "\fBlist\fR (default)"
A list with one column per line and rows separated by a blank line.
.IP "\fBhtml\fR"
HTML tables.
diff --git a/ovn/utilities/ovn-nbctl.c b/ovn/utilities/ovn-nbctl.c
index a01d132b4..af1eeab7f 100644
--- a/ovn/utilities/ovn-nbctl.c
+++ b/ovn/utilities/ovn-nbctl.c
@@ -206,7 +206,6 @@ parse_options(int argc, char *argv[], struct shash *local_options)
allocated_options = ARRAY_SIZE(global_long_options);
n_options = n_global_long_options;
ctl_add_cmd_options(&options, &n_options, &allocated_options, OPT_LOCAL);
- table_style.format = TF_LIST;
for (;;) {
int idx;
diff --git a/ovn/utilities/ovn-sbctl.c b/ovn/utilities/ovn-sbctl.c
index 92ae3e515..c190635b0 100644
--- a/ovn/utilities/ovn-sbctl.c
+++ b/ovn/utilities/ovn-sbctl.c
@@ -200,7 +200,6 @@ parse_options(int argc, char *argv[], struct shash *local_options)
allocated_options = ARRAY_SIZE(global_long_options);
n_options = n_global_long_options;
ctl_add_cmd_options(&options, &n_options, &allocated_options, OPT_LOCAL);
- table_style.format = TF_LIST;
for (;;) {
int idx;
diff --git a/ovsdb/ovsdb-client.c b/ovsdb/ovsdb-client.c
index bd2f152f3..ba232fce1 100644
--- a/ovsdb/ovsdb-client.c
+++ b/ovsdb/ovsdb-client.c
@@ -193,6 +193,8 @@ parse_options(int argc, char *argv[])
};
char *short_options = ovs_cmdl_long_options_to_short_options(long_options);
+ table_style.format = TF_TABLE;
+
for (;;) {
int c;
diff --git a/utilities/ovs-vsctl.c b/utilities/ovs-vsctl.c
index 41fa85273..d6297fd7d 100644
--- a/utilities/ovs-vsctl.c
+++ b/utilities/ovs-vsctl.c
@@ -249,7 +249,6 @@ parse_options(int argc, char *argv[], struct shash *local_options)
allocated_options = ARRAY_SIZE(global_long_options);
n_options = n_global_long_options;
ctl_add_cmd_options(&options, &n_options, &allocated_options, OPT_LOCAL);
- table_style.format = TF_LIST;
for (;;) {
int idx;
diff --git a/vtep/vtep-ctl.c b/vtep/vtep-ctl.c
index c57f592be..1d8cbcb09 100644
--- a/vtep/vtep-ctl.c
+++ b/vtep/vtep-ctl.c
@@ -202,7 +202,6 @@ parse_options(int argc, char *argv[], struct shash *local_options)
allocated_options = ARRAY_SIZE(global_long_options);
n_options = n_global_long_options;
ctl_add_cmd_options(&options, &n_options, &allocated_options, OPT_LOCAL);
- table_style.format = TF_LIST;
for (;;) {
int idx;