[PATCH 1/3] *** DO NOT APPLY UPSTREAM ***

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

 



This is a demo of the problem. Set up two NATed networks with
dnsmasq and start a domain with two interfaces, one from each
network. Only one network will report DHCP lease in 'virsh
net-dhcp-leases'.

Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
---
 src/network/leaseshelper.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/network/leaseshelper.c b/src/network/leaseshelper.c
index a1780ca4e4..02759f2314 100644
--- a/src/network/leaseshelper.c
+++ b/src/network/leaseshelper.c
@@ -172,6 +172,8 @@ main(int argc, char **argv)
     case VIR_LEASE_ACTION_ADD:
     case VIR_LEASE_ACTION_OLD:
         /* Create new lease */
+        sleep(60);
+
         if (virLeaseNew(&lease_new, mac, clientid, ip, hostname, iaid, server_duid) < 0)
             goto cleanup;
         /* Custom ipv6 leases *will not* be created if the env-var DNSMASQ_MAC
-- 
2.26.2




[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