[libvirt] [PATCH] docs: make interface start mode element optional

Laine Stump laine at laine.org
Mon Mar 27 04:52:59 UTC 2017


This brings the libvirt version of this RNG file in line with the same
file in netcf (as soon as the corresponding patch there is ACKed and
pushed).

There's no reason to require it when defining an interface (the config
option it corresponds to is optional), and it isn't even output in the
status of an interface.

Resolves: https://bugzilla.redhat.com/1414404
---
 docs/schemas/interface.rng | 24 +++++++++++++-----------
 1 file changed, 13 insertions(+), 11 deletions(-)

diff --git a/docs/schemas/interface.rng b/docs/schemas/interface.rng
index 052703c..4bb08e9 100644
--- a/docs/schemas/interface.rng
+++ b/docs/schemas/interface.rng
@@ -279,17 +279,19 @@
   </define>
 
   <define name="startmode">
-    <element name="start">
-      <attribute name="mode">
-        <choice>
-          <value>onboot</value>
-          <value>none</value>
-          <value>hotplug</value>
-          <!-- Jim Fehlig lists the following that SuSe supports:
-               manual, ifplug, nfsroot -->
-        </choice>
-      </attribute>
-    </element>
+    <optional>
+      <element name="start">
+        <attribute name="mode">
+          <choice>
+            <value>onboot</value>
+            <value>none</value>
+            <value>hotplug</value>
+            <!-- Jim Fehlig lists the following that SuSe supports:
+                 manual, ifplug, nfsroot -->
+          </choice>
+        </attribute>
+      </element>
+    </optional>
   </define>
 
   <!--
-- 
2.9.3




More information about the libvir-list mailing list