From 9e956c0dd654458915f7fa41615ac5dfe6a4bd80 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 7 Nov 2021 19:57:15 +0100 Subject: dhcp: T3680: fix lease filename for Vlan interfaces --- python/vyos/template.py | 1 - 1 file changed, 1 deletion(-) (limited to 'python') 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 -- cgit v1.2.3