Changeset 8787

Show
Ignore:
Timestamp:
06/26/12 22:56:52 (11 months ago)
Author:
jow
Message:

modules/admin-full: remove support for configuring alias interfaces, they're useless now that ifaces can be part of multiple networks

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • luci/trunk/modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua

    r8696 r8787  
    390390 
    391391-- 
    392 -- Display IP Aliases 
    393 -- 
    394  
    395 if not net:is_floating() then 
    396     s2 = m:section(TypedSection, "alias", translate("IP-Aliases")) 
    397     s2.addremove = true 
    398  
    399     s2:depends("interface", arg[1]) 
    400     s2.defaults.interface = arg[1] 
    401  
    402     s2:tab("general", translate("General Setup")) 
    403     s2.defaults.proto = "static" 
    404  
    405     ip = s2:taboption("general", Value, "ipaddr", translate("<abbr title=\"Internet Protocol Version 4\">IPv4</abbr>-Address")) 
    406     ip.optional = true 
    407     ip.datatype = "ip4addr" 
    408  
    409     nm = s2:taboption("general", Value, "netmask", translate("<abbr title=\"Internet Protocol Version 4\">IPv4</abbr>-Netmask")) 
    410     nm.optional = true 
    411     nm.datatype = "ip4addr" 
    412     nm:value("255.255.255.0") 
    413     nm:value("255.255.0.0") 
    414     nm:value("255.0.0.0") 
    415  
    416     gw = s2:taboption("general", Value, "gateway", translate("<abbr title=\"Internet Protocol Version 4\">IPv4</abbr>-Gateway")) 
    417     gw.optional = true 
    418     gw.datatype = "ip4addr" 
    419  
    420     if has_ipv6 then 
    421         s2:tab("ipv6", translate("IPv6 Setup")) 
    422  
    423         ip6 = s2:taboption("ipv6", Value, "ip6addr", translate("<abbr title=\"Internet Protocol Version 6\">IPv6</abbr>-Address"), translate("<abbr title=\"Classless Inter-Domain Routing\">CIDR</abbr>-Notation: address/prefix")) 
    424         ip6.optional = true 
    425         ip6.datatype = "ip6addr" 
    426  
    427         gw6 = s2:taboption("ipv6", Value, "ip6gw", translate("<abbr title=\"Internet Protocol Version 6\">IPv6</abbr>-Gateway")) 
    428         gw6.optional = true 
    429         gw6.datatype = "ip6addr" 
    430     end 
    431  
    432     s2:tab("advanced", translate("Advanced Settings")) 
    433  
    434     bcast = s2:taboption("advanced", Value, "bcast", translate("<abbr title=\"Internet Protocol Version 4\">IPv4</abbr>-Broadcast")) 
    435     bcast.optional = true 
    436     bcast.datatype = "ip4addr" 
    437  
    438     dns = s2:taboption("advanced", Value, "dns", translate("<abbr title=\"Domain Name System\">DNS</abbr>-Server")) 
    439     dns.optional = true 
    440     dns.datatype = "ip4addr" 
    441 end 
    442  
    443  
    444 -- 
    445392-- Display DNS settings if dnsmasq is available 
    446393--