]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
interface: allow multiple IPv4 addresses in interface XML
authorLaine Stump <laine@laine.org>
Fri, 27 Mar 2015 00:15:53 +0000 (20:15 -0400)
committerLaine Stump <laine@laine.org>
Mon, 6 Apr 2015 17:27:15 +0000 (13:27 -0400)
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

index bf0346c5c6393a56322ece88fe1ba6e152a36453..45b40cd8fa7b44ddb04171783ec8463ff20a00a3 100644 (file)
         <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>