From: Laine Stump Date: Thu, 21 May 2015 15:26:52 +0000 (-0400) Subject: interface: allow multiple IPv4 addresses + dhcp on a single interface X-Git-Tag: v1.2.16-rc1~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba5566e80f95618c3bb8ac327d4a1c370539166d;p=thirdparty%2Flibvirt.git interface: allow multiple IPv4 addresses + dhcp on a single interface As of netcf-0.2.8, netcf supports configuring multipl IPv4 addresses, as well as simultaneously configuring dhcp and static IPv4 addresses, on a single interface. This patch updates libvirt's interface.rng to allow such configurations. This resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1223688 --- diff --git a/docs/schemas/interface.rng b/docs/schemas/interface.rng index 45b40cd8fa..052703ce84 100644 --- a/docs/schemas/interface.rng +++ b/docs/schemas/interface.rng @@ -323,24 +323,22 @@ ipv4 - + - - - - - - - - - + + + + - - - + - - + + + + + + + diff --git a/tests/interfaceschemadata/ethernet-dhcp-and-multi-static.xml b/tests/interfaceschemadata/ethernet-dhcp-and-multi-static.xml new file mode 100644 index 0000000000..3bef2b65f4 --- /dev/null +++ b/tests/interfaceschemadata/ethernet-dhcp-and-multi-static.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/tests/interfacexml2xmltest.c b/tests/interfacexml2xmltest.c index 5e11754575..65f516788c 100644 --- a/tests/interfacexml2xmltest.c +++ b/tests/interfacexml2xmltest.c @@ -75,6 +75,7 @@ mymain(void) ret = -1 DO_TEST("ethernet-dhcp"); + DO_TEST("ethernet-dhcp-and-multi-static"); DO_TEST("ethernet-static"); DO_TEST("ethernet-static-no-prefix"); DO_TEST("bridge");