]> git.puffer.fish Git - matthieu/pve-network.git/commit
sdn: dnsmasq: extract function that updates dnsmasq lease via dbus
authorStefan Lendl <s.lendl@proxmox.com>
Fri, 5 Apr 2024 13:18:01 +0000 (15:18 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 8 Apr 2024 15:57:18 +0000 (17:57 +0200)
commit40f020660d5bd2eb7e3e6450cd8f26094a4ccfd3
tree696c5006e448389311ef37a09818af7d172c62f4
parent23e7fe3197145e8ba5702ff832df11389a3a1f6a
sdn: dnsmasq: extract function that updates dnsmasq lease via dbus

Extract the dbus based interactions with dnsmasq so that it can be
mocked in tests.

Signed-off-by: Stefan Lendl <s.lendl@proxmox.com>
Reviewed-by: Max Carrara <m.carrara@proxmox.com>
Tested-by: Max Carrara <m.carrara@proxmox.com>
Reviewed-by: Stefan Hanreich <s.hanreich@proxmox.com>
Tested-by: Stefan Hanreich <s.hanreich@proxmox.com>
src/PVE/Network/SDN/Dhcp/Dnsmasq.pm