diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-11-07 19:57:15 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-11-07 19:57:15 +0100 |
commit | 9e956c0dd654458915f7fa41615ac5dfe6a4bd80 (patch) | |
tree | 65107580938234dbf2b0b835c558dd90584fcec8 | |
parent | 05aa22dcb4ce54e3fb9909eddaa2aca3a6ac206e (diff) | |
download | vyos-1x-9e956c0dd654458915f7fa41615ac5dfe6a4bd80.tar.gz vyos-1x-9e956c0dd654458915f7fa41615ac5dfe6a4bd80.zip |
dhcp: T3680: fix lease filename for Vlan interfaces
-rw-r--r-- | python/vyos/template.py | 1 |
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 |