summaryrefslogtreecommitdiff
path: root/ovsdb/ovsdb-idlc.in
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2010-01-26 09:32:38 -0800
committerBen Pfaff <blp@nicira.com>2010-01-26 09:32:38 -0800
commit8fdf84570240c50436c839031e4da9f75839e9a3 (patch)
tree81b27962eb4c8dac2864c7a606d2751acfa5a284 /ovsdb/ovsdb-idlc.in
parentf99cd6eed222152d9e6cfb3cc83cba5d02f3e160 (diff)
downloadopenvswitch-8fdf84570240c50436c839031e4da9f75839e9a3.tar.gz
ovsdb-idlc: With "doc" command, output tables and columns alphabetically.
Until this commit, tables and columns in output were output in random order (according to the ordering of Python's internal hash table). Alphabetical order makes more sense. Thanks to Reid Price for useful Python tips.
Diffstat (limited to 'ovsdb/ovsdb-idlc.in')
-rwxr-xr-xovsdb/ovsdb-idlc.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/ovsdb/ovsdb-idlc.in b/ovsdb/ovsdb-idlc.in
index d70e5ebb6..716998267 100755
--- a/ovsdb/ovsdb-idlc.in
+++ b/ovsdb/ovsdb-idlc.in
@@ -659,7 +659,7 @@ def printDoc(schema):
if schema.comment:
print schema.comment
- for tableName, table in schema.tables.iteritems():
+ for tableName, table in sorted(schema.tables.iteritems()):
title = "%s table" % tableName
print
print title
@@ -667,7 +667,7 @@ def printDoc(schema):
if table.comment:
print table.comment
- for columnName, column in table.columns.iteritems():
+ for columnName, column in sorted(table.columns.iteritems()):
print
print "%s (%s)" % (columnName, column.type.toEnglish())
if column.comment: