From 5396b42ca2a14c760cb2d32e7ec59525866fddbb Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 6 Sep 2012 11:11:45 -0700 Subject: [PATCH] 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 Acked-by: Ethan Jackson --- ovsdb/ovsdb-client.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ovsdb/ovsdb-client.c b/ovsdb/ovsdb-client.c index 12f34d516..d5d2189ed 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); } -- 2.43.0