ovsdb-doc: Add support for references to specific keys.
authorBen Pfaff <blp@nicira.com>
Mon, 20 Jun 2011 21:14:27 +0000 (14:14 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 21 Jun 2011 20:01:55 +0000 (13:01 -0700)
Now a specific key can be referenced with syntax like
<ref table="Bridge" column="other-config" key="datapath-id"/>.

Also fixes up an existing place that needed this feature already (and had
a typo, too).

ovsdb/ovsdb-doc.in
vswitchd/vswitch.xml

index b325b263283bd924bbe7ce497078ca34999991e6..43dda5e0665ef8ecbeff26b047829c1240be26dc 100755 (executable)
@@ -52,6 +52,8 @@ def inlineXmlToNroff(node, font):
             s = r'\fB'
             if node.hasAttribute('column'):
                 s += node.attributes['column'].nodeValue
+                if node.hasAttribute('key'):
+                    s += ':' + node.attributes['key'].nodeValue
             elif node.hasAttribute('table'):
                 s += node.attributes['table'].nodeValue
             elif node.hasAttribute('group'):
index 4288ee6b37f50715b1449a4d1526165534f975cf..3be4ccba4c3f8577ff280554f2cee79d6be5173d 100644 (file)
       </column>
 
       <column name="datapath_id">
-        Reports the OpenFlow datapath ID in use.  Exactly 16 hex
-        digits.  (Setting this column will have no useful effect.  Set
-        <ref column="other_config"/>:<code>other-config</code>
-        instead.)
+        Reports the OpenFlow datapath ID in use.  Exactly 16 hex digits.
+        (Setting this column has no useful effect.  Set <ref
+        column="other-config" key="datapath-id"/> instead.)
       </column>
     </group>