local page = node("admin", "status", "olsr")
page.target = template("status-olsr/overview")
- page.title = "OLSR"
+ page.title = i18n("OLSR")
page.i18n = "olsr"
page.subindex = true
local page = node("admin", "status", "olsr", "neighbors")
page.target = call("action_neigh")
- page.title = i18n("Neighbors")
+ page.title = i18n("Neighbours")
page.subindex = true
page.order = 5
local page = node("admin", "status", "olsr", "routes")
page.target = call("action_routes")
- page.title = i18n("Routen")
+ page.title = i18n("Routes")
page.order = 10
local page = node("admin", "status", "olsr", "topology")
page.target = call("action_topology")
- page.title = i18n("Topologie")
+ page.title = i18n("Topology")
page.order = 20
local page = node("admin", "status", "olsr", "hna")
page.target = call("action_hna")
- page.title = "HNA"
+ page.title = i18n("HNA")
page.order = 30
local page = node("admin", "status", "olsr", "mid")
page.target = call("action_mid")
- page.title = "MID"
+ page.title = i18n("MID")
page.order = 50
local page = node("admin", "status", "olsr", "smartgw")
page.target = call("action_smartgw")
- page.title = "SmartGW"
+ page.title = i18n("SmartGW")
page.order = 60
local page = node("admin", "status", "olsr", "interfaces")
entry(
{"admin", "services", "olsrd", "hna"},
- cbi("olsr/olsrdhna"), "HNA Announcements"
+ cbi("olsr/olsrdhna"), i18n("HNA Announcements")
)
oplg = entry(
{"admin", "services", "olsrd", "plugins"},
- cbi("olsr/olsrdplugins"), "Plugins"
+ cbi("olsr/olsrdplugins"), i18n("Plugins")
)
+
+ odsp = entry(
+ {"admin", "services", "olsrd", "display"},
+ cbi("olsr/olsrddisplay"), i18n("Display")
+ )
+
oplg.i18n = "olsr"
oplg.leaf = true
oplg.subindex = true
function fetch_txtinfo(otable)
require("luci.sys")
local uci = require "luci.model.uci".cursor_state()
+ local resolve = uci:get("luci_olsr", "general", "resolve")
otable = otable or ""
local rawdata = luci.sys.httpget("http://127.0.0.1:2006/"..otable)
local rawdatav6 = luci.sys.httpget("http://[::1]:2006/"..otable)
for k, key in pairs(keys) do
if key == "Remote IP" or key == "Dest. IP" or key == "Gateway IP" or key == "Gateway" then
data[name][di][key] = fields[k]
- hostname = nixio.getnameinfo(fields[k], "inet")
- if hostname then
- data[name][di]["Hostname"] = hostname
+ if resolve == "1" then
+ hostname = nixio.getnameinfo(fields[k], "inet")
+ if hostname then
+ data[name][di]["Hostname"] = hostname
+ end
end
if key == "Remote IP" and defaultgw then
if defaultgw == fields[k] then
for k, key in pairs(keys) do
if key == "Remote IP" then
data[name][di][key] = "[" .. fields[k] .. "]"
- hostname = nixio.getnameinfo(fields[k], "inet6")
- if hostname then
- data[name][di]["Hostname"] = hostname
+ if resolve == "1" then
+ hostname = nixio.getnameinfo(fields[k], "inet6")
+ if hostname then
+ data[name][di]["Hostname"] = hostname
+ end
end
elseif key == "Local IP" then
data[name][di][key] = fields[k]
--- /dev/null
+--[[
+LuCI - Lua Configuration Interface
+
+Copyright 2011 Manuel Munz <freifunk at somakoma de>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+]]--
+
+m = Map("luci_olsr", translate("OLSR - Display Options"))
+
+s = m:section(TypedSection, "olsr")
+s.anonymous = true
+
+res = s:option(Flag, "resolve", translate("Resolve"),
+ translate("Resolve hostnames on status pages. It is generally safe to allow this, but if you use public IPs and have unstable DNS-Setup then those pages will load really slow. In this case disable it here."))
+res.default = "0"
+res.optional = true
+
+return m
--- /dev/null
+config 'olsr' 'general'
+ option 'resolve' '1'
msgid "Device"
msgstr ""
+msgid "Display"
+msgstr ""
+
msgid "Downlink"
msgstr ""
msgid "HNA"
msgstr ""
+msgid "HNA Announcements"
+msgstr ""
+
msgid "HNA interval"
msgstr "Interval HNA"
msgid "Neighbour IP"
msgstr "IP del veí"
+msgid "Neighbours"
+msgstr ""
+
msgid "Netmask"
msgstr "Màscara de xarxa"
msgid "Nodes"
msgstr ""
+msgid "OLSR"
+msgstr ""
+
+msgid "OLSR - Display Options"
+msgstr ""
+
msgid "OLSR - HNA-Announcements"
msgstr "Anuncis OLSR - HNA"
msgid "Prefix"
msgstr "Prefix"
+msgid "Resolve"
+msgstr ""
+
+msgid ""
+"Resolve hostnames on status pages. It is generally safe to allow this, but "
+"if you use public IPs and have unstable DNS-Setup then those pages will load "
+"really slow. In this case disable it here."
+msgstr ""
+
msgid "Routen"
msgstr ""
+msgid "Routes"
+msgstr ""
+
msgid "Secondary OLSR interfaces"
msgstr "Interfícies OSLR secundàries"
"IP of the first interface."
msgstr ""
+msgid "SmartGW"
+msgstr ""
+
msgid "SmartGW announcements"
msgstr ""
msgid "Topologie"
msgstr ""
+msgid "Topology"
+msgstr ""
+
msgid ""
"Type of service value for the IP header of control traffic. Default is "
"\"16\"."
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: \n"
-"PO-Revision-Date: 2011-02-12 00:12+0100\n"
+"PO-Revision-Date: 2011-02-12 14:23+0100\n"
"Last-Translator: Manuel Munz <freifunk@somakoma.de>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
msgid "Device"
msgstr ""
+msgid "Display"
+msgstr "Anzeige"
+
msgid "Downlink"
msgstr ""
msgid "HNA"
msgstr ""
+msgid "HNA Announcements"
+msgstr ""
+
msgid "HNA interval"
msgstr "HNA-Intervall"
msgid "Neighbour IP"
msgstr "Nachbar-IP"
+msgid "Neighbours"
+msgstr "Nachbarn"
+
msgid "Netmask"
msgstr "Netzmaske"
msgid "Nodes"
msgstr ""
+msgid "OLSR"
+msgstr ""
+
+msgid "OLSR - Display Options"
+msgstr "OLSR - Anzeige"
+
msgid "OLSR - HNA-Announcements"
msgstr "OLSR - HNA-Ankündigungen"
msgid "Prefix"
msgstr "Prefix"
+msgid "Resolve"
+msgstr ""
+
+msgid ""
+"Resolve hostnames on status pages. It is generally safe to allow this, but "
+"if you use public IPs and have unstable DNS-Setup then those pages will load "
+"really slow. In this case disable it here."
+msgstr ""
+"Hostnamen auf den Statusseiten auflösen. Dies ist in der Regel kein Problem, "
+"wenn aber öffentliche IPs benutzt werden und das DNS-Setup nicht stabil ist, "
+"dann werden die OLSR-Statusseiten nur sehr langsam laden. In diesem Fall "
+"sollte man diese Option deaktivieren."
+
msgid "Routen"
msgstr ""
+msgid "Routes"
+msgstr "Routen"
+
msgid "Secondary OLSR interfaces"
msgstr "Sekundäre OLSR Schnittstellen"
"NIEMALS während der Laufzeit von OLSRD verändern. Der Defaultwert ist "
"0.0.0.0. Damit wird die IP des ersten Interfaces verwendet."
+msgid "SmartGW"
+msgstr ""
+
msgid "SmartGW announcements"
msgstr "Smart Gateway Ankündigungen"
msgid "Topologie"
msgstr ""
+msgid "Topology"
+msgstr "Topologie"
+
msgid ""
"Type of service value for the IP header of control traffic. Default is "
"\"16\"."
msgid "Device"
msgstr ""
+msgid "Display"
+msgstr ""
+
msgid "Downlink"
msgstr ""
msgid "HNA"
msgstr ""
+msgid "HNA Announcements"
+msgstr ""
+
msgid "HNA interval"
msgstr ""
msgid "Neighbour IP"
msgstr ""
+msgid "Neighbours"
+msgstr ""
+
msgid "Netmask"
msgstr ""
msgid "Nodes"
msgstr ""
+msgid "OLSR"
+msgstr ""
+
+msgid "OLSR - Display Options"
+msgstr ""
+
msgid "OLSR - HNA-Announcements"
msgstr ""
msgid "Prefix"
msgstr ""
+msgid "Resolve"
+msgstr ""
+
+msgid ""
+"Resolve hostnames on status pages. It is generally safe to allow this, but "
+"if you use public IPs and have unstable DNS-Setup then those pages will load "
+"really slow. In this case disable it here."
+msgstr ""
+
msgid "Routen"
msgstr ""
+msgid "Routes"
+msgstr ""
+
msgid "Secondary OLSR interfaces"
msgstr ""
"IP of the first interface."
msgstr ""
+msgid "SmartGW"
+msgstr ""
+
msgid "SmartGW announcements"
msgstr ""
msgid "Topologie"
msgstr ""
+msgid "Topology"
+msgstr ""
+
msgid ""
"Type of service value for the IP header of control traffic. Default is "
"\"16\"."
msgid "Device"
msgstr ""
+msgid "Display"
+msgstr ""
+
msgid "Downlink"
msgstr ""
msgid "HNA"
msgstr ""
+msgid "HNA Announcements"
+msgstr ""
+
msgid "HNA interval"
msgstr "HNA interval"
msgid "Neighbour IP"
msgstr "Neighbour IP"
+msgid "Neighbours"
+msgstr ""
+
msgid "Netmask"
msgstr "Netmask"
msgid "Nodes"
msgstr ""
+msgid "OLSR"
+msgstr ""
+
+msgid "OLSR - Display Options"
+msgstr ""
+
msgid "OLSR - HNA-Announcements"
msgstr "OLSR - HNA-Announcements"
msgid "Prefix"
msgstr "Prefix"
+msgid "Resolve"
+msgstr ""
+
+msgid ""
+"Resolve hostnames on status pages. It is generally safe to allow this, but "
+"if you use public IPs and have unstable DNS-Setup then those pages will load "
+"really slow. In this case disable it here."
+msgstr ""
+
msgid "Routen"
msgstr ""
+msgid "Routes"
+msgstr ""
+
msgid "Secondary OLSR interfaces"
msgstr "Secondary OLSR interfaces"
"IP of the first interface."
msgstr ""
+msgid "SmartGW"
+msgstr ""
+
msgid "SmartGW announcements"
msgstr ""
msgid "Topologie"
msgstr ""
+msgid "Topology"
+msgstr ""
+
msgid ""
"Type of service value for the IP header of control traffic. Default is "
"\"16\"."
msgid "Device"
msgstr ""
+msgid "Display"
+msgstr ""
+
msgid "Downlink"
msgstr ""
msgid "HNA"
msgstr ""
+msgid "HNA Announcements"
+msgstr ""
+
msgid "HNA interval"
msgstr "Intervalo HNA"
msgid "Neighbour IP"
msgstr "Neighbour IP"
+msgid "Neighbours"
+msgstr ""
+
msgid "Netmask"
msgstr "Máscara de red"
msgid "Nodes"
msgstr ""
+msgid "OLSR"
+msgstr ""
+
+msgid "OLSR - Display Options"
+msgstr ""
+
msgid "OLSR - HNA-Announcements"
msgstr "Anuncios HNA de OLSR"
msgid "Prefix"
msgstr "Prefijo"
+msgid "Resolve"
+msgstr ""
+
+msgid ""
+"Resolve hostnames on status pages. It is generally safe to allow this, but "
+"if you use public IPs and have unstable DNS-Setup then those pages will load "
+"really slow. In this case disable it here."
+msgstr ""
+
msgid "Routen"
msgstr ""
+msgid "Routes"
+msgstr ""
+
msgid "Secondary OLSR interfaces"
msgstr "Interfaces OLSR secundarias"
"IP of the first interface."
msgstr ""
+msgid "SmartGW"
+msgstr ""
+
msgid "SmartGW announcements"
msgstr ""
msgid "Topologie"
msgstr ""
+msgid "Topology"
+msgstr ""
+
msgid ""
"Type of service value for the IP header of control traffic. Default is "
"\"16\"."
msgid "Device"
msgstr ""
+msgid "Display"
+msgstr ""
+
msgid "Downlink"
msgstr ""
msgid "HNA"
msgstr ""
+msgid "HNA Announcements"
+msgstr ""
+
msgid "HNA interval"
msgstr ""
msgid "Neighbour IP"
msgstr ""
+msgid "Neighbours"
+msgstr ""
+
msgid "Netmask"
msgstr ""
msgid "Nodes"
msgstr ""
+msgid "OLSR"
+msgstr ""
+
+msgid "OLSR - Display Options"
+msgstr ""
+
msgid "OLSR - HNA-Announcements"
msgstr ""
msgid "Prefix"
msgstr ""
+msgid "Resolve"
+msgstr ""
+
+msgid ""
+"Resolve hostnames on status pages. It is generally safe to allow this, but "
+"if you use public IPs and have unstable DNS-Setup then those pages will load "
+"really slow. In this case disable it here."
+msgstr ""
+
msgid "Routen"
msgstr ""
+msgid "Routes"
+msgstr ""
+
msgid "Secondary OLSR interfaces"
msgstr ""
"IP of the first interface."
msgstr ""
+msgid "SmartGW"
+msgstr ""
+
msgid "SmartGW announcements"
msgstr ""
msgid "Topologie"
msgstr ""
+msgid "Topology"
+msgstr ""
+
msgid ""
"Type of service value for the IP header of control traffic. Default is "
"\"16\"."
msgid "Device"
msgstr ""
+msgid "Display"
+msgstr ""
+
msgid "Downlink"
msgstr ""
msgid "HNA"
msgstr ""
+msgid "HNA Announcements"
+msgstr ""
+
msgid "HNA interval"
msgstr ""
msgid "Neighbour IP"
msgstr ""
+msgid "Neighbours"
+msgstr ""
+
msgid "Netmask"
msgstr ""
msgid "Nodes"
msgstr ""
+msgid "OLSR"
+msgstr ""
+
+msgid "OLSR - Display Options"
+msgstr ""
+
msgid "OLSR - HNA-Announcements"
msgstr ""
msgid "Prefix"
msgstr ""
+msgid "Resolve"
+msgstr ""
+
+msgid ""
+"Resolve hostnames on status pages. It is generally safe to allow this, but "
+"if you use public IPs and have unstable DNS-Setup then those pages will load "
+"really slow. In this case disable it here."
+msgstr ""
+
msgid "Routen"
msgstr ""
+msgid "Routes"
+msgstr ""
+
msgid "Secondary OLSR interfaces"
msgstr ""
"IP of the first interface."
msgstr ""
+msgid "SmartGW"
+msgstr ""
+
msgid "SmartGW announcements"
msgstr ""
msgid "Topologie"
msgstr ""
+msgid "Topology"
+msgstr ""
+
msgid ""
"Type of service value for the IP header of control traffic. Default is "
"\"16\"."
msgid "Device"
msgstr ""
+msgid "Display"
+msgstr ""
+
msgid "Downlink"
msgstr ""
msgid "HNA"
msgstr ""
+msgid "HNA Announcements"
+msgstr ""
+
msgid "HNA interval"
msgstr ""
msgid "Neighbour IP"
msgstr ""
+msgid "Neighbours"
+msgstr ""
+
msgid "Netmask"
msgstr ""
msgid "Nodes"
msgstr ""
+msgid "OLSR"
+msgstr ""
+
+msgid "OLSR - Display Options"
+msgstr ""
+
msgid "OLSR - HNA-Announcements"
msgstr ""
msgid "Prefix"
msgstr ""
+msgid "Resolve"
+msgstr ""
+
+msgid ""
+"Resolve hostnames on status pages. It is generally safe to allow this, but "
+"if you use public IPs and have unstable DNS-Setup then those pages will load "
+"really slow. In this case disable it here."
+msgstr ""
+
msgid "Routen"
msgstr ""
+msgid "Routes"
+msgstr ""
+
msgid "Secondary OLSR interfaces"
msgstr ""
"IP of the first interface."
msgstr ""
+msgid "SmartGW"
+msgstr ""
+
msgid "SmartGW announcements"
msgstr ""
msgid "Topologie"
msgstr ""
+msgid "Topology"
+msgstr ""
+
msgid ""
"Type of service value for the IP header of control traffic. Default is "
"\"16\"."
msgid "Device"
msgstr ""
+msgid "Display"
+msgstr ""
+
msgid "Downlink"
msgstr ""
msgid "HNA"
msgstr ""
+msgid "HNA Announcements"
+msgstr ""
+
msgid "HNA interval"
msgstr "Intervalo entre HNA"
msgid "Neighbour IP"
msgstr "Endereço IP do Vizinho"
+msgid "Neighbours"
+msgstr ""
+
msgid "Netmask"
msgstr "Máscara de subrede"
msgid "Nodes"
msgstr ""
+msgid "OLSR"
+msgstr ""
+
+msgid "OLSR - Display Options"
+msgstr ""
+
msgid "OLSR - HNA-Announcements"
msgstr "OLSR - Anuncios HNA4"
msgid "Prefix"
msgstr "Prefixo"
+msgid "Resolve"
+msgstr ""
+
+msgid ""
+"Resolve hostnames on status pages. It is generally safe to allow this, but "
+"if you use public IPs and have unstable DNS-Setup then those pages will load "
+"really slow. In this case disable it here."
+msgstr ""
+
msgid "Routen"
msgstr ""
+msgid "Routes"
+msgstr ""
+
msgid "Secondary OLSR interfaces"
msgstr "Interfaces OLSR secundários"
"IP of the first interface."
msgstr ""
+msgid "SmartGW"
+msgstr ""
+
msgid "SmartGW announcements"
msgstr ""
msgid "Topologie"
msgstr ""
+msgid "Topology"
+msgstr ""
+
msgid ""
"Type of service value for the IP header of control traffic. Default is "
"\"16\"."
msgid "Device"
msgstr ""
+msgid "Display"
+msgstr ""
+
msgid "Downlink"
msgstr ""
msgid "HNA"
msgstr ""
+msgid "HNA Announcements"
+msgstr ""
+
msgid "HNA interval"
msgstr "Intervalo entre HNA"
msgid "Neighbour IP"
msgstr "Endereço IP do Vizinho"
+msgid "Neighbours"
+msgstr ""
+
msgid "Netmask"
msgstr "Máscara de subrede"
msgid "Nodes"
msgstr ""
+msgid "OLSR"
+msgstr ""
+
+msgid "OLSR - Display Options"
+msgstr ""
+
msgid "OLSR - HNA-Announcements"
msgstr "OLSR - Anuncios HNA4"
msgid "Prefix"
msgstr "Prefixo"
+msgid "Resolve"
+msgstr ""
+
+msgid ""
+"Resolve hostnames on status pages. It is generally safe to allow this, but "
+"if you use public IPs and have unstable DNS-Setup then those pages will load "
+"really slow. In this case disable it here."
+msgstr ""
+
msgid "Routen"
msgstr ""
+msgid "Routes"
+msgstr ""
+
msgid "Secondary OLSR interfaces"
msgstr "Interfaces OLSR secundários"
"IP of the first interface."
msgstr ""
+msgid "SmartGW"
+msgstr ""
+
msgid "SmartGW announcements"
msgstr ""
msgid "Topologie"
msgstr ""
+msgid "Topology"
+msgstr ""
+
msgid ""
"Type of service value for the IP header of control traffic. Default is "
"\"16\"."
msgid "Device"
msgstr ""
+msgid "Display"
+msgstr ""
+
msgid "Downlink"
msgstr ""
msgid "HNA"
msgstr ""
+msgid "HNA Announcements"
+msgstr ""
+
msgid "HNA interval"
msgstr ""
msgid "Neighbour IP"
msgstr ""
+msgid "Neighbours"
+msgstr ""
+
msgid "Netmask"
msgstr ""
msgid "Nodes"
msgstr ""
+msgid "OLSR"
+msgstr ""
+
+msgid "OLSR - Display Options"
+msgstr ""
+
msgid "OLSR - HNA-Announcements"
msgstr ""
msgid "Prefix"
msgstr ""
+msgid "Resolve"
+msgstr ""
+
+msgid ""
+"Resolve hostnames on status pages. It is generally safe to allow this, but "
+"if you use public IPs and have unstable DNS-Setup then those pages will load "
+"really slow. In this case disable it here."
+msgstr ""
+
msgid "Routen"
msgstr ""
+msgid "Routes"
+msgstr ""
+
msgid "Secondary OLSR interfaces"
msgstr ""
"IP of the first interface."
msgstr ""
+msgid "SmartGW"
+msgstr ""
+
msgid "SmartGW announcements"
msgstr ""
msgid "Topologie"
msgstr ""
+msgid "Topology"
+msgstr ""
+
msgid ""
"Type of service value for the IP header of control traffic. Default is "
"\"16\"."
msgid "Device"
msgstr ""
+msgid "Display"
+msgstr ""
+
msgid "Downlink"
msgstr ""
msgid "HNA"
msgstr ""
+msgid "HNA Announcements"
+msgstr ""
+
msgid "HNA interval"
msgstr ""
msgid "Neighbour IP"
msgstr ""
+msgid "Neighbours"
+msgstr ""
+
msgid "Netmask"
msgstr ""
msgid "Nodes"
msgstr ""
+msgid "OLSR"
+msgstr ""
+
+msgid "OLSR - Display Options"
+msgstr ""
+
msgid "OLSR - HNA-Announcements"
msgstr ""
msgid "Prefix"
msgstr ""
+msgid "Resolve"
+msgstr ""
+
+msgid ""
+"Resolve hostnames on status pages. It is generally safe to allow this, but "
+"if you use public IPs and have unstable DNS-Setup then those pages will load "
+"really slow. In this case disable it here."
+msgstr ""
+
msgid "Routen"
msgstr ""
+msgid "Routes"
+msgstr ""
+
msgid "Secondary OLSR interfaces"
msgstr ""
"IP of the first interface."
msgstr ""
+msgid "SmartGW"
+msgstr ""
+
msgid "SmartGW announcements"
msgstr ""
msgid "Topologie"
msgstr ""
+msgid "Topology"
+msgstr ""
+
msgid ""
"Type of service value for the IP header of control traffic. Default is "
"\"16\"."
msgid "Device"
msgstr ""
+msgid "Display"
+msgstr ""
+
msgid "Downlink"
msgstr ""
msgid "HNA"
msgstr ""
+msgid "HNA Announcements"
+msgstr ""
+
msgid "HNA interval"
msgstr "Khoảng HNA"
msgid "Neighbour IP"
msgstr "Lận cận IP"
+msgid "Neighbours"
+msgstr ""
+
msgid "Netmask"
msgstr "Netmask"
msgid "Nodes"
msgstr ""
+msgid "OLSR"
+msgstr ""
+
+msgid "OLSR - Display Options"
+msgstr ""
+
msgid "OLSR - HNA-Announcements"
msgstr "OLSR - HNA - Thông báo"
msgid "Prefix"
msgstr "Tiền tố"
+msgid "Resolve"
+msgstr ""
+
+msgid ""
+"Resolve hostnames on status pages. It is generally safe to allow this, but "
+"if you use public IPs and have unstable DNS-Setup then those pages will load "
+"really slow. In this case disable it here."
+msgstr ""
+
msgid "Routen"
msgstr ""
+msgid "Routes"
+msgstr ""
+
msgid "Secondary OLSR interfaces"
msgstr "Giao diện OLSR thứ nhì"
"IP of the first interface."
msgstr ""
+msgid "SmartGW"
+msgstr ""
+
msgid "SmartGW announcements"
msgstr ""
msgid "Topologie"
msgstr ""
+msgid "Topology"
+msgstr ""
+
msgid ""
"Type of service value for the IP header of control traffic. Default is "
"\"16\"."