projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Debian: Add ${misc:Depends} dependency to python-openvswitch
[openvswitch]
/
ovsdb
/
ovsdb-doc.in
diff --git
a/ovsdb/ovsdb-doc.in
b/ovsdb/ovsdb-doc.in
index 5ba4e71682ec7e5491843046cb8ef0c8d4d6567e..b325b263283bd924bbe7ce497078ca34999991e6 100755
(executable)
--- a/
ovsdb/ovsdb-doc.in
+++ b/
ovsdb/ovsdb-doc.in
@@
-136,6
+136,8
@@
def typeAndConstraintsToNroff(column):
constraints = column.type.constraintsToEnglish(escapeNroffLiteral)
if constraints:
type += ", " + constraints
constraints = column.type.constraintsToEnglish(escapeNroffLiteral)
if constraints:
type += ", " + constraints
+ if column.unique:
+ type += " (must be unique within table)"
return type
def columnToNroff(columnName, column, node):
return type
def columnToNroff(columnName, column, node):
@@
-286,6
+288,7
@@
Table Purpose
if erFile:
s += """
if erFile:
s += """
+.if !'\*[.T]'ascii' \{
.sp 1
.SH "TABLE RELATIONSHIPS"
.PP
.sp 1
.SH "TABLE RELATIONSHIPS"
.PP
@@
-293,7
+296,9
@@
The following diagram shows the relationship among tables in the
database. Each node represents a table. Tables that are part of the
``root set'' are shown with double borders. Each edge leads from the
table that contains it and points to the table that its value
database. Each node represents a table. Tables that are part of the
``root set'' are shown with double borders. Each edge leads from the
table that contains it and points to the table that its value
-represents. Edges are labeled with their column names. Thick lines
+represents. Edges are labeled with their column names, followed by a
+constraint on the number of allowed values: \\fB?\\fR for zero or one,
+\\fB*\\fR for zero or more, \\fB+\\fR for one or more. Thick lines
represent strong references; thin lines represent weak references.
.RS -1in
"""
represent strong references; thin lines represent weak references.
.RS -1in
"""
@@
-301,7
+306,7
@@
represent strong references; thin lines represent weak references.
for line in erStream:
s += line + '\n'
erStream.close()
for line in erStream:
s += line + '\n'
erStream.close()
- s += ".RE\n"
+ s += ".RE\
\}\
n"
for node in tableNodes:
s += tableToNroff(schema, node) + "\n"
for node in tableNodes:
s += tableToNroff(schema, node) + "\n"