From: Ben Pfaff Date: Thu, 6 Sep 2012 18:11:45 +0000 (-0700) Subject: ovsdb-client: Make "list-dbs" print the list of databases in sorted order. X-Git-Tag: sliver-openvswitch-1.8.90-0~1^2 X-Git-Url: http://git.onelab.eu/?p=sliver-openvswitch.git;a=commitdiff_plain;h=5396b42ca2a14c760cb2d32e7ec59525866fddbb 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 --- 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); }