summaryrefslogtreecommitdiff
path: root/src/conf_mode/lldp.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-12-22 22:23:52 +0100
committerChristian Poessinger <christian@poessinger.com>2019-12-22 22:24:37 +0100
commitdc318d47cd180bd7bb1135fb5f7b00ce25c1c368 (patch)
treec22b7d6eada63b6f81f2ba3f361f4e130e69caa4 /src/conf_mode/lldp.py
parent70531105859843441d355f6655f237ab9736a48f (diff)
downloadvyos-1x-dc318d47cd180bd7bb1135fb5f7b00ce25c1c368.tar.gz
vyos-1x-dc318d47cd180bd7bb1135fb5f7b00ce25c1c368.zip
lldp: T393: unlink /etc/lldpd.d/01-vyos.conf on service deletion
Diffstat (limited to 'src/conf_mode/lldp.py')
-rwxr-xr-xsrc/conf_mode/lldp.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/conf_mode/lldp.py b/src/conf_mode/lldp.py
index da01de56f..d8b8cb77e 100755
--- a/src/conf_mode/lldp.py
+++ b/src/conf_mode/lldp.py
@@ -299,6 +299,7 @@ def apply(lldp):
# LLDP service has been terminated
os.system('sudo systemctl stop lldpd.service')
os.unlink(config_file)
+ os.unlink(vyos_config_file)
if __name__ == '__main__':
try: