luci-app-lldpd: Create from Tano Systems 6456/head
authorMarek Küthe <m.k@mk16.de>
Tue, 4 Jul 2023 09:42:23 +0000 (11:42 +0200)
committerMarek Küthe <m.k@mk16.de>
Sat, 21 Oct 2023 12:50:19 +0000 (14:50 +0200)
commit49207b47ca048fdb9262b89c0683829f8e75972c
tree28f14de844a0934897a1a2aebae64e4df49010aa
parent51d9b9d33f35c5c1452909677a75b6ac7ccf6de6
luci-app-lldpd: Create from Tano Systems

This is a copy of https://github.com/tano-systems/luci-app-tn-lldpd, which is licensed under the MIT License.

Signed-off-by: Marek Küthe <m.k@mk16.de>
luci-app-lldpd: Rename luci-app-tn-lldpd to luci-app-lldpd

The original version of Tanosystem has a naming scheme which does not correspond to the standard naming scheme in OpenWrt LuCi. Therefore the renaming.

Signed-off-by: Marek Küthe <m.k@mk16.de>
luci-app-lldpd: Fix bug not getting the current lldpd status

Specifying the arguments in the wrong order can (and has in my tests) resulted in errors. So you can see in the man page that flags like -f come first and then the command.

Signed-off-by: Marek Küthe <m.k@mk16.de>
luci-app-lldpd: Disable option to enable SNMP agent

SNMP agent support is not enabled by default in lldpd. This can (and has in my tests) cause LLDP to stop working. See comment in source code.

Signed-off-by: Marek Küthe <m.k@mk16.de>
luci-app-lldpd: Add option to disable sending sensitive information

Added an option that sets the "-k" flag, which results in less sensitive information being sent. See man pages and description in source code.

Signed-off-by: Marek Küthe <m.k@mk16.de>
luci-app-lldpd: Add license information to Makefile

All of Tano Systems source code for the app is licensed under the MIT License. This has now been indicated accordingly in the Makefile.

Signed-off-by: Marek Küthe <m.k@mk16.de>
luci-app-lldpd: Remove old footer from Tano Systems

The app from Tano Systems appears to include a footer. Since most LuCi apps do not, I have removed it.

Signed-off-by: Marek Küthe <m.k@mk16.de>
luci-app-lldpd: Bug fix caused that the management IP address could not be set.

The TanoWrt fork calls the option to set the management IP addresses "lldp_sys_mgmt_ip". However, in OpenWrt it is called "lldp_mgmt_ip".

Signed-off-by: Marek Küthe <m.k@mk16.de>
luci-app-lldpd: Improve style

Remove double space

Signed-off-by: Marek Küthe <m.k@mk16.de>
luci-app-lldpd: Adding the Lua dependency

The rpcd script used by the Luci app is written in Lua. Therefore, runtime dependencies for Lua must exist when using the Luci app.

Signed-off-by: Marek Küthe <m.k@mk16.de>
luci-app-lldpd: Remove old files

Since the app is called luci-app-lldpd and not luci-app-tn-lldpd, the files for the TanoWrt app are no longer necessary.

Signed-off-by: Marek Küthe <m.k@mk16.de>
luci-app-lldpd: RPCd backend change from Lua to ucode

Signed-off-by: Marek Küthe <m.k@mk16.de>
luci-app-lldpd: Update filter matrix

The old filter matrix was based on the man pages, but the selected value in the range 1-20 was also assigned to the configuration and thus lldpd was configured incorrectly. lldpd expects a value in the range 0-19. The webapp matrix has now been changed so that the values 0-19 also appear there.
This leads to a unification of configuration and webapp.

Signed-off-by: Marek Küthe <m.k@mk16.de>
luci-app-lldpd: Add location parameter

Signed-off-by: Marek Küthe <m.k@mk16.de>
13 files changed:
applications/luci-app-lldpd/Makefile [new file with mode: 0644]
applications/luci-app-lldpd/htdocs/luci-static/resources/lldpd.js [new file with mode: 0644]
applications/luci-app-lldpd/htdocs/luci-static/resources/lldpd/details_hide.svg [new file with mode: 0644]
applications/luci-app-lldpd/htdocs/luci-static/resources/lldpd/details_show.svg [new file with mode: 0644]
applications/luci-app-lldpd/htdocs/luci-static/resources/lldpd/lldpd.css [new file with mode: 0644]
applications/luci-app-lldpd/htdocs/luci-static/resources/view/lldpd/config.js [new file with mode: 0644]
applications/luci-app-lldpd/htdocs/luci-static/resources/view/lldpd/status.js [new file with mode: 0644]
applications/luci-app-lldpd/po/ru/lldpd.po [new file with mode: 0644]
applications/luci-app-lldpd/po/templates/lldpd.pot [new file with mode: 0644]
applications/luci-app-lldpd/root/etc/uci-defaults/40_luci-lldpd [new file with mode: 0644]
applications/luci-app-lldpd/root/usr/share/luci/menu.d/luci-app-lldpd.json [new file with mode: 0644]
applications/luci-app-lldpd/root/usr/share/rpcd/acl.d/luci-app-lldpd.json [new file with mode: 0644]
applications/luci-app-lldpd/root/usr/share/rpcd/ucode/lldpd [new file with mode: 0644]