]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
docs: Document user aliases
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 18 Oct 2017 11:48:46 +0000 (13:48 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 23 Oct 2017 06:58:10 +0000 (08:58 +0200)
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
docs/formatdomain.html.in

index b7d7cba5ac1208a9c11a73e5098709d9fb1b30a3..4609e2ec26788406d6047a283807ef1b6d3594bf 100644 (file)
       </dd>
     </dl>
 
+    <p>
+      To help users identifying devices they care about, every
+      device can have direct child <code>alias</code> element
+      which then has <code>name</code> attribute where users can
+      store identifier for the device. The identifier has to have
+      "ua-" prefix and must be unique within the domain. Additionally, the
+      identifier must consist only of the following characters:
+      <code>[a-zA-Z0-9_-]</code>.
+      <span class="since">Since 3.9.0</span>
+    </p>
+
+<pre>
+&lt;devices&gt;
+  &lt;disk type='file'&gt;
+    &lt;alias name='ua-myDisk'/&gt;
+  &lt;/disk&gt;
+  &lt;interface type='network' trustGuestRxFilters='yes'&gt;
+    &lt;alias name='ua-myNIC'/&gt;
+  &lt;/interface&gt;
+  ...
+&lt;/devices&gt;
+</pre>
+
     <h4><a id="elementsDisks">Hard drives, floppy disks, CDROMs</a></h4>
 
     <p>