From 5ff35d8be44f5fb9d4711cfc9ea1c478577a3e0a Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 31 Oct 2019 14:25:53 +0100 Subject: luci-base, luci-mod-network: migrate luci/getDHCPLeases to C plugin Signed-off-by: Jo-Philipp Wich --- modules/luci-base/root/usr/libexec/rpcd/luci | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'modules/luci-base/root/usr/libexec/rpcd') diff --git a/modules/luci-base/root/usr/libexec/rpcd/luci b/modules/luci-base/root/usr/libexec/rpcd/luci index 1e95ff5c68..13a83dfd14 100755 --- a/modules/luci-base/root/usr/libexec/rpcd/luci +++ b/modules/luci-base/root/usr/libexec/rpcd/luci @@ -193,24 +193,6 @@ local methods = { end }, - getDHCPLeases = { - args = { family = 0 }, - call = function(args) - local s = require "luci.tools.status" - - if args.family == 4 then - return { dhcp_leases = s.dhcp_leases() } - elseif args.family == 6 then - return { dhcp6_leases = s.dhcp6_leases() } - else - return { - dhcp_leases = s.dhcp_leases(), - dhcp6_leases = s.dhcp6_leases() - } - end - end - }, - getNetworkDevices = { call = function(args) local dir = fs.dir("/sys/class/net") -- cgit v1.2.3