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-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5396b42ca2a14c760cb2d32e7ec59525866fddbb;p=openvswitch 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 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); }