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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]