]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
bridge: Fix generation of dnsmasq's --dhcp-hostsfile option
authorKay Schubert <kayegypt@web.de>
Thu, 6 Jan 2011 08:14:58 +0000 (09:14 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 6 Jan 2011 14:58:23 +0000 (15:58 +0100)
commita43c7338d8772aa3a5bc0ec5914d3c28c20447c3
tree3b9d956beaa906a3e391394a21d05ee33e27689f
parent4684f478e4211726f229c0c8be94158e58413d69
bridge: Fix generation of dnsmasq's --dhcp-hostsfile option

I added a host definition to a network definition:

<network>
  <name>Lokal</name>
  <uuid>2074f379-b82c-423f-9ada-305d8088daaa</uuid>
  <bridge name='virbr1' stp='on' delay='0' />
  <ip address='192.168.180.1' netmask='255.255.255.0'>
    <dhcp>
      <range start='192.168.180.128' end='192.168.180.254' />
      <host mac='23:74:00:03:42:02' name='somevm' ip='192.168.180.10' />
    </dhcp>
  </ip>
</network>

But due to the wrong if-statement the argument --dhcp-hostsfile doesn't get
added to the dnsmasq command. The patch below fixes it for me.
AUTHORS
src/network/bridge_driver.c