From c0451d8a72ac139efd85638ddc95a9935664b2ec Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 26 Jun 2012 21:56:52 +0000 Subject: [PATCH] modules/admin-full: remove support for configuring alias interfaces, they're useless now that ifaces can be part of multiple networks --- .../luasrc/model/cbi/admin_network/ifaces.lua | 53 ---------------------- 1 file changed, 53 deletions(-) diff --git a/modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua b/modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua index 1d83eb320..dc59eee99 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua @@ -389,59 +389,6 @@ end -- --- Display IP Aliases --- - -if not net:is_floating() then - s2 = m:section(TypedSection, "alias", translate("IP-Aliases")) - s2.addremove = true - - s2:depends("interface", arg[1]) - s2.defaults.interface = arg[1] - - s2:tab("general", translate("General Setup")) - s2.defaults.proto = "static" - - ip = s2:taboption("general", Value, "ipaddr", translate("IPv4-Address")) - ip.optional = true - ip.datatype = "ip4addr" - - nm = s2:taboption("general", Value, "netmask", translate("IPv4-Netmask")) - nm.optional = true - nm.datatype = "ip4addr" - nm:value("255.255.255.0") - nm:value("255.255.0.0") - nm:value("255.0.0.0") - - gw = s2:taboption("general", Value, "gateway", translate("IPv4-Gateway")) - gw.optional = true - gw.datatype = "ip4addr" - - if has_ipv6 then - s2:tab("ipv6", translate("IPv6 Setup")) - - ip6 = s2:taboption("ipv6", Value, "ip6addr", translate("IPv6-Address"), translate("CIDR-Notation: address/prefix")) - ip6.optional = true - ip6.datatype = "ip6addr" - - gw6 = s2:taboption("ipv6", Value, "ip6gw", translate("IPv6-Gateway")) - gw6.optional = true - gw6.datatype = "ip6addr" - end - - s2:tab("advanced", translate("Advanced Settings")) - - bcast = s2:taboption("advanced", Value, "bcast", translate("IPv4-Broadcast")) - bcast.optional = true - bcast.datatype = "ip4addr" - - dns = s2:taboption("advanced", Value, "dns", translate("DNS-Server")) - dns.optional = true - dns.datatype = "ip4addr" -end - - --- -- Display DNS settings if dnsmasq is available -- -- 2.11.0