[libvirt] [PATCH] interface: allow multiple IPv4 addresses in interface XML

Laine Stump laine at laine.org
Fri Mar 27 00:18:07 UTC 2015


An upcoming netcf release will support multiple ipv4 addresses, so
let's loosen up libvirt's interface.rng to allow it.
---
 docs/schemas/interface.rng | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/docs/schemas/interface.rng b/docs/schemas/interface.rng
index bf0346c..45b40cd 100644
--- a/docs/schemas/interface.rng
+++ b/docs/schemas/interface.rng
@@ -326,12 +326,14 @@
         <choice>
           <ref name="dhcp-element"/>
           <group>
-            <element name="ip">
-              <attribute name="address"><ref name="ipv4Addr"/></attribute>
-              <optional>
-                <attribute name="prefix"><ref name="ipv4Prefix"/></attribute>
-              </optional>
-            </element>
+            <oneOrMore>
+              <element name="ip">
+                <attribute name="address"><ref name="ipv4Addr"/></attribute>
+                <optional>
+                  <attribute name="prefix"><ref name="ipv4Prefix"/></attribute>
+                </optional>
+              </element>
+            </oneOrMore>
             <optional>
               <element name="route">
                 <attribute name="gateway"><ref name="ipv4Addr"/></attribute>
-- 
2.1.0




More information about the libvir-list mailing list