From: Ben Pfaff <blp@nicira.com> Date: Mon, 20 Jun 2011 21:14:27 +0000 (-0700) Subject: ovsdb-doc: Add support for references to specific keys. X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=22c98354053baee3c9a93eb552d8767c2be60f7a;p=sliver-openvswitch.git ovsdb-doc: Add support for references to specific keys. 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). --- diff --git a/ovsdb/ovsdb-doc.in b/ovsdb/ovsdb-doc.in index 5ba4e7168..83643c3b9 100755 --- a/ovsdb/ovsdb-doc.in +++ b/ovsdb/ovsdb-doc.in @@ -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'): diff --git a/vswitchd/vswitch.xml b/vswitchd/vswitch.xml index ad1bffa3d..2b12e299f 100644 --- a/vswitchd/vswitch.xml +++ b/vswitchd/vswitch.xml @@ -363,10 +363,9 @@ </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>