]> xenbits.xensource.com Git - libvirt.git/commit
bridge_driver: Don't define network if XML contains more IPv4 adreses.
authorPeter Krempa <pkrempa@redhat.com>
Wed, 30 Nov 2011 14:26:25 +0000 (15:26 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 1 Dec 2011 08:35:43 +0000 (09:35 +0100)
commit0763a26dfef240e301e19b9c563c10462e72f255
tree57c5d65e88f7c028e302d285e244fd8443552aac
parent764574f7c73d72e42f69f225b6bbe61fae5ab28b
bridge_driver: Don't define network if XML contains more IPv4 adreses.

Only one IPv4 DHCP definition is supported. Originally the code checked
for a multiple definition and returned an error, but the new domain
definition was already added to networks. This patch moves the check
before the newly defined network is added to active networks.

 *src/network/bridge_driver.c: networkDefine(): - move multiple IPv4
                                                  addresses check before
                                                  definition is used.
src/network/bridge_driver.c