Commit graph

16 commits

Author SHA1 Message Date
Patrick Grimm
498b1fe65f luci-lib-luaneightbl: drop package - all functions ar also in luci-lib-ip
Signed-off-by: Patrick Grimm <patrick@lunatiki.de>
2019-10-21 17:37:34 +02:00
Lars Kruse
7863ff7272 luci-app-olsr: handle empty result for non-status tables
The response of the jsoninfo request may be non-empty (e.g. a linebreak
or just whitespace), but still yield "nil" after "json.decode".
This situation was already handled for the "status" request, but it
leads to a dictionary access against a "nil" value for all other tables.

Signed-off-by: Lars Kruse <lists@sumpfralle.de>
2019-08-02 22:31:03 +02:00
pmelange
7387553a04 luci-app-olsr: make cosmetic changes.
modify the status tables so that then headers and columns align, values
left justified.

Additionally, add the openwrt style interface name to the interfaces table,
change huge  ETX numbers to 'infinate', and add the german translation for
'Selected'.

Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
2018-12-06 20:57:35 +01:00
pmelange
5fd51f05a8 luci-app-olsr: convert olsr.lua and smartgw.htm to new json plugin
Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
2018-11-11 19:50:43 +01:00
pmelange
7fb197c10a luci-app-olsr: convert mid.htm to new json plugin
Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
2018-11-11 19:45:42 +01:00
pmelange
6ef3a00f6b luci-app-olsr: convert olsr.lua and overview.htm to new json plugin
Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
2018-11-07 18:41:58 +01:00
Jo-Philipp Wich
c0d9c4f3ce treewide: filter shell arguments through shellquote() where applicable
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-04-05 09:37:43 +02:00
Jo-Philipp Wich
28e3b32854 treewide: unify mac address handling
Use the new luci.ip MAC address facilities to parse and verify MAC addresses
in a common way, instead of relying on various ad-hoc solutions.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-03-12 16:12:18 +01:00
Bastian Bittorf
bae82052e0 luci-app-olsr: adapt to changed behavior of new OLSRd v0.9.5
controller/olsr.lua:
drop HTTP-headers which are now emitted, we do not need them

status-olsr/neighbors.htm:
olsr ETX value now without muliplication 1024x

Signed-off-by: Bastian Bittorf <bb@npl.de>
Signed-off-by: Freifunk UFO <ufo@rund.freifunk.net>
2017-01-10 17:23:36 +01:00
Jo-Philipp Wich
63155e9932 luci-app-olsr: use public interface of luci.model.network.wifinet (#569)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-12-09 16:51:48 +01:00
Manuel Munz
516ea62f73 applications/olsr: redirect errors on jsoninfo connects with netcat to /dev/null to avoid spamming the log 2015-05-30 21:04:50 +02:00
Manuel Munz
cc39eaa681 applications/olsr: Get jsoninfo source port prom olsrd/olsrd6 config file 2015-05-30 20:48:57 +02:00
Jo-Philipp Wich
44ee102ff9 luci-app-olsr: rewrite mac address resolving
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-22 17:52:44 +01:00
Jo-Philipp Wich
b48386be67 luci-app-olsr: use luci.ip.routes() to find default gw
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-22 15:12:56 +01:00
Jo-Philipp Wich
9d908ffd78 luci-app-olsr: add workaround for finding default gw with policy routing
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-16 21:40:49 +01:00
Jo-Philipp Wich
1bb4822dca Rework LuCI build system
* Rename subdirectories to their repective OpenWrt package names
 * Make each LuCI module its own standalone package
 * Deploy a shared luci.mk which is used by each module Makefile

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-08 16:26:20 +01:00