summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-11-07 19:57:15 +0100
committerChristian Poessinger <christian@poessinger.com>2021-11-07 19:57:15 +0100
commit9e956c0dd654458915f7fa41615ac5dfe6a4bd80 (patch)
tree65107580938234dbf2b0b835c558dd90584fcec8 /python
parent05aa22dcb4ce54e3fb9909eddaa2aca3a6ac206e (diff)
downloadvyos-1x-9e956c0dd654458915f7fa41615ac5dfe6a4bd80.tar.gz
vyos-1x-9e956c0dd654458915f7fa41615ac5dfe6a4bd80.zip
dhcp: T3680: fix lease filename for Vlan interfaces
Diffstat (limited to 'python')
-rw-r--r--python/vyos/template.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/python/vyos/template.py b/python/vyos/template.py
index d13915766..b32cafe74 100644
--- a/python/vyos/template.py
+++ b/python/vyos/template.py
@@ -349,7 +349,6 @@ def get_dhcp_router(interface):
Returns False of no router is found, returns the IP address as string if
a router is found.
"""
- interface = interface.replace('.', '_')
lease_file = f'/var/lib/dhcp/dhclient_{interface}.leases'
if not os.path.exists(lease_file):
return None