]> xenbits.xensource.com Git - libvirt.git/commit
conf: Add <lease/> option for <dhcp/> settings
authorJulio Faracco <jcfaracco@gmail.com>
Wed, 22 Apr 2020 20:05:57 +0000 (17:05 -0300)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 23 Apr 2020 08:59:23 +0000 (10:59 +0200)
commit97a0aa246799c97d0a9ca9ecd6b4fd932ae4756c
tree5d69cc8756be71e848c8a11acf0ae95d335525c5
parent5670fb579407f9f21ad923336adb342012d66aed
conf: Add <lease/> option for <dhcp/> settings

If an user is trying to configure a dhcp neetwork settings, it is not
possible to change the leasetime of a range or a host entry. This is
available using dnsmasq extra options, but they are associated with
dhcp-range or dhcp-hosts fields. This patch implements a leasetime for
range and hosts tags. They can be defined under that settings:

    <dhcp>
      <range ...>
        <lease/>
      </range>
      <host ...>
        <lease/>
      </host>
    </dhcp>

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=913446

Signed-off-by: Julio Faracco <jcfaracco@gmail.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
12 files changed:
docs/schemas/basictypes.rng
docs/schemas/network.rng
src/conf/network_conf.c
src/conf/network_conf.h
src/libvirt_private.syms
src/network/bridge_driver.c
src/network/bridge_driver.h
src/test/test_driver.c
src/util/virdnsmasq.c
src/util/virdnsmasq.h
src/vbox/vbox_network.c
tests/networkxml2conftest.c