Changeset 5743

Show
Ignore:
Timestamp:
03/08/10 02:07:02 (3 years ago)
Author:
jow
Message:

luci-0.9: drop luci_ethers, static lease mgmnt. is now covered by /etc/config/dhcp

Location:
luci/branches/luci-0.9/modules
Files:
2 removed
1 modified

Legend:

Unmodified
Added
Removed
  • luci/branches/luci-0.9/modules/admin-full/luasrc/model/cbi/admin_network/dhcpleases.lua

    r5118 r5743  
    33 
    44Copyright 2008 Steven Barth <steven@midlink.org> 
     5Copyright 2010 Jo-Philipp Wich <xm@subsignal.org> 
    56 
    67Licensed under the Apache License, Version 2.0 (the "License"); 
     
    1819local fs  = require "nixio.fs" 
    1920 
    20 m2 = Map("luci_ethers", translate("dhcp_leases")) 
     21m2 = Map("dhcp", translate("dhcp_leases")) 
    2122 
    2223local leasefn, leasefp, leases 
     
    4748end 
    4849 
    49 s = m2:section(TypedSection, "static_lease", translate("luci_ethers")) 
     50s = m2:section(TypedSection, "host", translate("luci_ethers")) 
    5051s.addremove = true 
    5152s.anonymous = true 
    5253s.template = "cbi/tblsection" 
    5354 
    54 mac = s:option(Value, "macaddr", translate("macaddress")) 
    55 ip = s:option(Value, "ipaddr", translate("ipaddress")) 
     55name = s:option(Value, "name", translate("hostname")) 
     56mac = s:option(Value, "mac", translate("macaddress")) 
     57ip = s:option(Value, "ip", translate("ipaddress")) 
    5658sys.net.arptable(function(entry) 
    5759    ip:value(entry["IP address"])