summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-olsr/luasrc/model/cbi/olsr/olsrdhna.lua
diff options
context:
space:
mode:
authorAyushman Tripathi <ayushmantripathi7724@gmail.com>2023-06-26 01:23:48 +0530
committerAyushman Tripathi <ayushmantripathi7724@gmail.com>2023-07-20 20:05:50 +0530
commitebd09332b4330001ecd3a86d1b379e0afc3bafee (patch)
tree39e973d153f0081800822e6a4a325f71d4441a00 /applications/luci-app-olsr/luasrc/model/cbi/olsr/olsrdhna.lua
parentfd5440a7be5506fa39c3993f10f754dedb5e8888 (diff)
luci-app-olsr: migrate to js
Signed-off-by: Ayushman Tripathi <ayushmantripathi7724@gmail.com> luci-app-olsr: migrate to js fix XSS vulnerability Signed-off-by: Ayushman Tripathi <ayushmantripathi7724@gmail.com> luci-app-olsr: migrate to js luci-app-olsr: migrate to js fix minor bugs Signed-off-by: Ayushman Tripathi <ayushmantripathi7724@gmail.com> luci-app-olsr: migrate to js luci-app-olsr: migrate to js fix plugins bugs Signed-off-by: Ayushman Tripathi <ayushmantripathi7724@gmail.com> luci-app-olsr: migrate to js luci-app-olsr: migrate to js fix interfaces bugs Signed-off-by: Ayushman Tripathi <ayushmantripathi7724@gmail.com> luci-app-olsr: migrate to js luci-app-olsr: migrate to js fix interface & snr bugs Signed-off-by: Ayushman Tripathi <ayushmantripathi7724@gmail.com> luci-app-olsr: migrate to js luci-app-olsr: migrate to js fix hostname Signed-off-by: Ayushman Tripathi <ayushmantripathi7724@gmail.com> luci-app-olsr: migrate to js luci-app-olsr: migrate to js fix typo Signed-off-by: Ayushman Tripathi <ayushmantripathi7724@gmail.com> luci-app-olsr: migrate to js luci-app-olsr: migrate to js fix missing files, use rpc for hostnames, remove luci-compat Signed-off-by: Ayushman Tripathi <ayushmantripathi7724@gmail.com> luci-app-olsr: migrate to js luci-app-olsr: migrate to js fix menu order Signed-off-by: Ayushman Tripathi <ayushmantripathi7724@gmail.com> luci-app-olsr: migrate to js
Diffstat (limited to 'applications/luci-app-olsr/luasrc/model/cbi/olsr/olsrdhna.lua')
-rw-r--r--applications/luci-app-olsr/luasrc/model/cbi/olsr/olsrdhna.lua45
1 files changed, 0 insertions, 45 deletions
diff --git a/applications/luci-app-olsr/luasrc/model/cbi/olsr/olsrdhna.lua b/applications/luci-app-olsr/luasrc/model/cbi/olsr/olsrdhna.lua
deleted file mode 100644
index 230990dd0a..0000000000
--- a/applications/luci-app-olsr/luasrc/model/cbi/olsr/olsrdhna.lua
+++ /dev/null
@@ -1,45 +0,0 @@
--- Copyright 2008 Steven Barth <steven@midlink.org>
--- Copyright 2011 Manuel Munz <freifunk at somakoma dot de>
--- Licensed to the public under the Apache License 2.0.
-
-local uci = require "luci.model.uci".cursor()
-local ipv = uci:get_first("olsrd", "olsrd", "IpVersion", "4")
-
-mh = Map("olsrd", translate("OLSR - HNA-Announcements"), translate("Hosts in an OLSR routed network can announce connectivity " ..
- "to external networks using HNA messages."))
-
-if ipv == "6and4" or ipv == "4" then
- hna4 = mh:section(TypedSection, "Hna4", translate("Hna4"), translate("Both values must use the dotted decimal notation."))
- hna4.addremove = true
- hna4.anonymous = true
- hna4.template = "cbi/tblsection"
-
- net4 = hna4:option(Value, "netaddr", translate("Network address"))
- net4.datatype = "ip4addr"
- net4.placeholder = "10.11.12.13"
- net4.default = "10.11.12.13"
- msk4 = hna4:option(Value, "netmask", translate("Netmask"))
- msk4.datatype = "ip4addr"
- msk4.placeholder = "255.255.255.255"
- msk4.default = "255.255.255.255"
-end
-
-if ipv == "6and4" or ipv == "6" then
- hna6 = mh:section(TypedSection, "Hna6", translate("Hna6"), translate("IPv6 network must be given in full notation, " ..
- "prefix must be in CIDR notation."))
- hna6.addremove = true
- hna6.anonymous = true
- hna6.template = "cbi/tblsection"
-
- net6 = hna6:option(Value, "netaddr", translate("Network address"))
- net6.datatype = "ip6addr"
- net6.placeholder = "fec0:2200:106:0:0:0:0:0"
- net6.default = "fec0:2200:106:0:0:0:0:0"
- msk6 = hna6:option(Value, "prefix", translate("Prefix"))
- msk6.datatype = "range(0,128)"
- msk6.placeholder = "128"
- msk6.default = "128"
-end
-
-return mh
-