summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2023-08-15 21:40:56 -0500
committerJohn Estabrook <jestabro@vyos.io>2023-08-15 21:40:56 -0500
commit4ea96d2485971dbdafe921ca65967f8385450f11 (patch)
tree5e3a0c0b544d42ec77cc2c081486f95945577f3b /src
parentf67614c66d6570c06be199ffffe439a589a06d4b (diff)
downloadvyos-1x-4ea96d2485971dbdafe921ca65967f8385450f11.tar.gz
vyos-1x-4ea96d2485971dbdafe921ca65967f8385450f11.zip
T5483: clean up tmp config file
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/dhcp_server.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/conf_mode/dhcp_server.py b/src/conf_mode/dhcp_server.py
index 280057f04..c4c72aae9 100755
--- a/src/conf_mode/dhcp_server.py
+++ b/src/conf_mode/dhcp_server.py
@@ -296,6 +296,10 @@ def generate(dhcp):
render(config_file, 'dhcp-server/dhcpd.conf.j2', dhcp,
formater=lambda _: _.replace("&quot;", '"'))
+ # Clean up configuration test file
+ if os.path.exists(tmp_file):
+ os.unlink(tmp_file)
+
return None
def apply(dhcp):