libvirt/src/conf
Julio Faracco 97a0aa2467 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>
2020-04-23 10:59:23 +02:00
..
backup_conf.c Remove checking of return value of virHashNew 2020-01-31 14:28:28 +01:00
backup_conf.h conf: backup: Allow configuration of names exported via NBD 2020-01-24 13:40:48 +01:00
capabilities.c virsh: include virutil.h where used 2020-02-24 23:15:50 +01:00
capabilities.h Add a space before ending a comment 2020-01-30 12:32:03 +01:00
checkpoint_conf.c virDomainCheckpointRedefinePrep: Set 'current' checkpoint if there isn't any 2020-04-03 09:56:57 +02:00
checkpoint_conf.h conf: drop virCapsPtr param from snapshot & checkpoint APIs 2019-12-09 10:17:27 +00:00
cpu_conf.c cpu_conf: Format vendor_id for host-model CPUs 2020-02-19 15:11:40 +01:00
cpu_conf.h Remove virutil.h from all header files 2020-02-24 23:15:50 +01:00
device_conf.c Introducing new address type='unassigned' for PCI hostdevs 2019-12-18 13:08:27 -05:00
device_conf.h Remove virutil.h from all header files 2020-02-24 23:15:50 +01:00
domain_addr.c conf: during PCI hotplug, require that the controller support hotplug 2020-04-12 22:43:48 -04:00
domain_addr.h qemu/conf: set HOTPLUGGABLE connect flag during PCI address set init 2020-04-12 22:39:51 -04:00
domain_audit.c src: assume sys/sysmacros.h always exists on Linux 2020-02-04 14:00:45 +00:00
domain_audit.h conf: domain: use #pragma once in headers 2019-06-13 17:05:08 +02:00
domain_capabilities.c conf: domaincaps: Add 'backup' feature flag 2019-12-10 12:41:58 +01:00
domain_capabilities.h conf: domaincaps: Add 'backup' feature flag 2019-12-10 12:41:58 +01:00
domain_conf.c conf: split out virDomainFeaturesDefParse 2020-04-22 10:46:37 +02:00
domain_conf.h conf: add xen hypervisor feature 'passthrough' 2020-04-21 09:18:58 -06:00
domain_event.c conf: remove NULL check from virDomainQemuMonitorEventNew 2019-11-21 12:44:23 +01:00
domain_event.h conf: remove NULL check from virDomainQemuMonitorEventNew 2019-11-21 12:44:23 +01:00
domain_nwfilter.c conf: use g_strdup instead of VIR_STRDUP 2019-10-21 12:51:56 +02:00
domain_nwfilter.h conf: domain: use #pragma once in headers 2019-06-13 17:05:08 +02:00
interface_conf.c conf: use virStringParseYesNo 2020-03-23 14:13:09 +01:00
interface_conf.h Remove virutil.h from all header files 2020-02-24 23:15:50 +01:00
Makefile.inc.am backup: Parse and output backup XML 2019-12-10 12:41:56 +01:00
moment_conf.c src: replace clock_gettime()/gettimeofday() with g_get_real_time() 2020-01-03 15:42:13 +00:00
moment_conf.h snapshot: Store both config and live XML in the snapshot domain 2019-09-11 13:09:45 +02:00
netdev_bandwidth_conf.c conf: do not pass vm object to virDomainClearNetBandwidth 2020-02-25 17:50:47 +01:00
netdev_bandwidth_conf.h conf: do not pass vm object to virDomainClearNetBandwidth 2020-02-25 17:50:47 +01:00
netdev_vlan_conf.c Always put _LAST enums on second line of VIR_ENUM_IMPL 2019-04-11 12:47:23 -04:00
netdev_vlan_conf.h conf: network: use #pragma once in headers 2019-06-13 17:05:09 +02:00
netdev_vport_profile_conf.c conf: return a const from virDomainNetGetActualVirtPortProfile 2019-11-25 15:29:56 -05:00
netdev_vport_profile_conf.h conf: return a const from virDomainNetGetActualVirtPortProfile 2019-11-25 15:29:56 -05:00
network_conf.c conf: Add <lease/> option for <dhcp/> settings 2020-04-23 10:59:23 +02:00
network_conf.h conf: Add <lease/> option for <dhcp/> settings 2020-04-23 10:59:23 +02:00
network_event.c Require a semicolon for VIR_ONCE_GLOBAL_INIT calls 2019-02-03 17:46:29 -05:00
network_event.h conf: network: use #pragma once in headers 2019-06-13 17:05:09 +02:00
networkcommon_conf.c conf: remove unneeded labels 2020-01-07 16:40:41 +01:00
networkcommon_conf.h conf: network: use #pragma once in headers 2019-06-13 17:05:09 +02:00
node_device_conf.c src: replace mdir_name() with g_path_get_dirname() 2020-01-03 15:42:13 +00:00
node_device_conf.h Remove virutil.h from all header files 2020-02-24 23:15:50 +01:00
node_device_event.c Require a semicolon for VIR_ONCE_GLOBAL_INIT calls 2019-02-03 17:46:29 -05:00
node_device_event.h conf: node device: use #pragma once in headers 2019-06-13 17:05:09 +02:00
node_device_util.c virsh: include virutil.h where used 2020-02-24 23:15:50 +01:00
node_device_util.h conf: node device: use #pragma once in headers 2019-06-13 17:05:09 +02:00
numa_conf.c numa_conf: add virDomainNumaNodesDistancesAreBeingSet() helper 2019-12-16 17:50:31 -05:00
numa_conf.h Remove virutil.h from all header files 2020-02-24 23:15:50 +01:00
nwfilter_conf.c conf: remove unneeded labels 2020-01-07 16:40:41 +01:00
nwfilter_conf.h conf: nwfilter: use #pragma once in headers 2019-06-13 17:05:09 +02:00
nwfilter_ipaddrmap.c conf: use g_strdup instead of VIR_STRDUP 2019-10-21 12:51:56 +02:00
nwfilter_ipaddrmap.h conf: nwfilter: use #pragma once in headers 2019-06-13 17:05:09 +02:00
nwfilter_params.c conf: remove unneeded labels 2020-01-07 16:40:41 +01:00
nwfilter_params.h conf: nwfilter: use #pragma once in headers 2019-06-13 17:05:09 +02:00
object_event_private.h conf: misc: use #pragma once in headers 2019-06-13 17:05:09 +02:00
object_event.c conf: use g_strdup instead of VIR_STRDUP 2019-10-21 12:51:56 +02:00
object_event.h conf: misc: use #pragma once in headers 2019-06-13 17:05:09 +02:00
secret_conf.c util: buffer: Remove virBufferCheckError 2019-10-24 19:35:34 +02:00
secret_conf.h Remove virutil.h from all header files 2020-02-24 23:15:50 +01:00
secret_event.c Require a semicolon for VIR_ONCE_GLOBAL_INIT calls 2019-02-03 17:46:29 -05:00
secret_event.h conf: misc: use #pragma once in headers 2019-06-13 17:05:09 +02:00
snapshot_conf_priv.h conf: snapshot: Provide a function to free virDomainSnapshotDiskDefPtr 2019-07-18 17:59:34 +02:00
snapshot_conf.c conf: Always format storage source auth and encryption under <source> for backing files 2020-01-13 12:53:58 +01:00
snapshot_conf.h src: replace verify(expr) with G_STATIC_ASSERT(expr) 2020-01-17 10:02:01 +00:00
storage_adapter_conf.c conf: make virPCIDeviceAddressFormat void 2019-02-19 15:59:38 +00:00
storage_adapter_conf.h conf: storage: use #pragma once in headers 2019-06-13 17:05:09 +02:00
storage_capabilities.c conf: storagecaps: Fix broken attempt at being const-correct 2019-11-12 14:37:57 +01:00
storage_capabilities.h conf: storagecaps: Fix broken attempt at being const-correct 2019-11-12 14:37:57 +01:00
storage_conf.c virsh: include virutil.h where used 2020-02-24 23:15:50 +01:00
storage_conf.h Add a space before ending a comment 2020-01-30 12:32:03 +01:00
storage_event.c Require a semicolon for VIR_ONCE_GLOBAL_INIT calls 2019-02-03 17:46:29 -05:00
storage_event.h conf: storage: use #pragma once in headers 2019-06-13 17:05:09 +02:00
virchrdev.c virchrdev: Drop needless 'cleanup' label in virChrdevLockFileCreate() 2020-01-16 14:13:47 +01:00
virchrdev.h conf: misc: use #pragma once in headers 2019-06-13 17:05:09 +02:00
virconftypes.h backup: Parse and output backup XML 2019-12-10 12:41:56 +01:00
virdomaincheckpointobjlist.c src: replace verify(expr) with G_STATIC_ASSERT(expr) 2020-01-17 10:02:01 +00:00
virdomaincheckpointobjlist.h backup: Allow for lists of checkpoint objects 2019-07-26 16:48:58 -05:00
virdomainmomentobjlist.c util: consolidate on one free callback for hash data 2019-11-22 14:21:28 +00:00
virdomainmomentobjlist.h backup: Allow for lists of checkpoint objects 2019-07-26 16:48:58 -05:00
virdomainobjlist.c conf: drop virCapsPtr param from domain obj list APIs 2019-12-09 10:17:27 +00:00
virdomainobjlist.h conf: drop virCapsPtr param from domain obj list APIs 2019-12-09 10:17:27 +00:00
virdomainsnapshotobjlist.c Use G_N_ELEMENTS instead of ARRAY_CARDINALITY 2019-10-15 16:14:19 +02:00
virdomainsnapshotobjlist.h snapshot: Don't leak moment obj list metaroot to callers 2019-07-24 17:03:34 -05:00
virinterfaceobj.c conf: use g_strdup instead of VIR_STRDUP 2019-10-21 12:51:56 +02:00
virinterfaceobj.h conf: misc: use #pragma once in headers 2019-06-13 17:05:09 +02:00
virnetworkobj.c conf: fix use after free 2020-02-24 17:24:49 +00:00
virnetworkobj.h Use G_GNUC_WARN_UNUSED_RESULT instead of ATTRIBUTE_RETURN_CHECK 2019-10-15 11:25:22 +02:00
virnetworkportdef.c virNetworkPortDefSaveStatus: Fix potentially uninitialized 'path' by refactoring cleanup 2020-03-05 16:21:47 +01:00
virnetworkportdef.h conf: reduce includes in virnetworkportdef.h 2020-02-25 17:50:47 +01:00
virnodedeviceobj.c conf: use g_strdup instead of VIR_STRDUP 2019-10-21 12:51:56 +02:00
virnodedeviceobj.h nodedev: fix race in API usage vs initial device enumeration 2020-03-16 17:35:04 +00:00
virnwfilterbindingdef.c util: buffer: Remove virBufferCheckError 2019-10-24 19:35:34 +02:00
virnwfilterbindingdef.h conf: virnwfilterbindingdef: include virxml.h 2020-02-25 17:46:45 +01:00
virnwfilterbindingobj.c virsh: include virutil.h where used 2020-02-24 23:15:50 +01:00
virnwfilterbindingobj.h conf: nwfilter: use #pragma once in headers 2019-06-13 17:05:09 +02:00
virnwfilterbindingobjlist.c conf: use G_GNUC_UNUSED 2019-10-15 11:25:22 +02:00
virnwfilterbindingobjlist.h conf: nwfilter: use #pragma once in headers 2019-06-13 17:05:09 +02:00
virnwfilterobj.c conf: use g_strdup instead of VIR_STRDUP 2019-10-21 12:51:56 +02:00
virnwfilterobj.h nwfilter: acquire a pidfile in the driver root directory 2019-07-11 12:46:20 +01:00
virsavecookie.c util: buffer: Remove virBufferCheckError 2019-10-24 19:35:34 +02:00
virsavecookie.h conf: misc: use #pragma once in headers 2019-06-13 17:05:09 +02:00
virsecretobj.c conf: remove unneeded cleanup labels 2019-11-12 17:54:01 +01:00
virsecretobj.h conf: misc: use #pragma once in headers 2019-06-13 17:05:09 +02:00
virstorageobj.c conf: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:58 +01:00
virstorageobj.h storage_driver: Protect pool def during startup and build 2019-08-23 09:32:26 +02:00