Skip to content
Snippets Groups Projects
Commit 2d4c2f04 authored by ROLLAND Valentin's avatar ROLLAND Valentin
Browse files

remodelement add dhcp + ajout des requirements.txt

parent 21090b09
Branches
No related tags found
No related merge requests found
Pipeline #48896 failed
......@@ -64,6 +64,7 @@ def add_dhcp_client(mac: str, ip: str):
# Supprimer l'ancienne entrée
cnx.run(f"sudo sed -i '/{mac}/d' {chemin_config_dnsmasq}", hide=True)
break
cnx.run(f"echo dhcp-host={mac},{ip} | sudo tee -a {chemin_config_dnsmasq}", hide=True)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment