Commit 19544e52 by Czémán Arnold


parent 65e5a910
......@@ -77,9 +77,9 @@ def reload_firewall_vlan(data, save_config=True):
def reload_dhcp(data):
with open('/etc/dhcp/dhcpd.conf.generated', 'w') as f:
f.write("\n".join(data) + "\n")
if is_there_systemd():
sudo(('/bin/systemctl', 'restart','dhcpd'))
sudo(('/bin/systemctl', 'restart', 'dhcpd'))
sudo(('/etc/init.d/isc-dhcp-server', 'restart'))"DHCP configuration is reloaded.")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment