[PATCH 0/2] Include lease time option into DHCP settings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This series is based on latest series from Alberto. It includes a new
entry called <leasetime/> under <dhcp/> scope to add a default lease
time for range and host options for dnsmasq. There is no point to
configure both separately. If they are defined (range and/or host), they
should have the same lease time value.

This series includes some test cases to cover lease time XML syntax
also.

Julio Faracco (2):
  conf: Add <leasetime/> option for <dhcp/> settings
  tests: Add tests for <leasetime/> to cover dnsmasq settings

 docs/schemas/basictypes.rng                   |  9 +++
 docs/schemas/network.rng                      | 11 ++++
 src/conf/network_conf.c                       | 62 ++++++++++++++++++-
 src/conf/network_conf.h                       | 14 +++++
 src/libvirt_private.syms                      |  2 +
 src/network/bridge_driver.c                   | 37 ++++++++++-
 src/util/virdnsmasq.c                         | 40 ++++++------
 src/util/virdnsmasq.h                         |  1 +
 .../networkxml2confdata/leasetime-hours.conf  | 16 +++++
 tests/networkxml2confdata/leasetime-hours.xml | 12 ++++
 .../leasetime-infinite.conf                   | 16 +++++
 .../leasetime-infinite.xml                    | 12 ++++
 .../leasetime-minutes.conf                    | 16 +++++
 .../networkxml2confdata/leasetime-minutes.xml | 12 ++++
 .../leasetime-seconds.conf                    | 16 +++++
 .../networkxml2confdata/leasetime-seconds.xml | 12 ++++
 tests/networkxml2conftest.c                   |  4 ++
 tests/networkxml2xmlin/leasetime-hours.xml    | 12 ++++
 tests/networkxml2xmlin/leasetime-infinite.xml | 12 ++++
 tests/networkxml2xmlin/leasetime-minutes.xml  | 12 ++++
 tests/networkxml2xmlin/leasetime-seconds.xml  | 12 ++++
 tests/networkxml2xmlout/leasetime-hours.xml   | 14 +++++
 .../networkxml2xmlout/leasetime-infinite.xml  | 14 +++++
 tests/networkxml2xmlout/leasetime-minutes.xml | 14 +++++
 tests/networkxml2xmlout/leasetime-seconds.xml | 14 +++++
 tests/networkxml2xmltest.c                    |  4 ++
 26 files changed, 376 insertions(+), 24 deletions(-)
 create mode 100644 tests/networkxml2confdata/leasetime-hours.conf
 create mode 100644 tests/networkxml2confdata/leasetime-hours.xml
 create mode 100644 tests/networkxml2confdata/leasetime-infinite.conf
 create mode 100644 tests/networkxml2confdata/leasetime-infinite.xml
 create mode 100644 tests/networkxml2confdata/leasetime-minutes.conf
 create mode 100644 tests/networkxml2confdata/leasetime-minutes.xml
 create mode 100644 tests/networkxml2confdata/leasetime-seconds.conf
 create mode 100644 tests/networkxml2confdata/leasetime-seconds.xml
 create mode 100644 tests/networkxml2xmlin/leasetime-hours.xml
 create mode 100644 tests/networkxml2xmlin/leasetime-infinite.xml
 create mode 100644 tests/networkxml2xmlin/leasetime-minutes.xml
 create mode 100644 tests/networkxml2xmlin/leasetime-seconds.xml
 create mode 100644 tests/networkxml2xmlout/leasetime-hours.xml
 create mode 100644 tests/networkxml2xmlout/leasetime-infinite.xml
 create mode 100644 tests/networkxml2xmlout/leasetime-minutes.xml
 create mode 100644 tests/networkxml2xmlout/leasetime-seconds.xml

-- 
2.24.1






[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux