aboutsummaryrefslogtreecommitdiff
path: root/ovsdb
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2012-09-06 11:11:45 -0700
committerBen Pfaff <blp@nicira.com>2012-09-21 09:50:12 -0700
commit5396b42ca2a14c760cb2d32e7ec59525866fddbb (patch)
tree0350da16a962468e976b4fabdf3f1b06c80c1d5f /ovsdb
parent9a61462490ca299d6b80e0ced9b2acff8c7e38ad (diff)
ovsdb-client: Make "list-dbs" print the list of databases in sorted order.
This makes the command's behavior more predictable when there is more than one database. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Ethan Jackson <ethan@nicira.com>
Diffstat (limited to 'ovsdb')
-rw-r--r--ovsdb/ovsdb-client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ovsdb/ovsdb-client.c b/ovsdb/ovsdb-client.c
index 12f34d51..d5d2189e 100644
--- a/ovsdb/ovsdb-client.c
+++ b/ovsdb/ovsdb-client.c
@@ -405,6 +405,7 @@ do_list_dbs(struct jsonrpc *rpc, const char *database OVS_UNUSED,
svec_init(&dbs);
fetch_dbs(rpc, &dbs);
+ svec_sort(&dbs);
SVEC_FOR_EACH (i, db_name, &dbs) {
puts(db_name);
}