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>
(cherry picked from commit
49207b47ca048fdb9262b89c0683829f8e75972c)
luci-app-lldpd: Fixes
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
(cherry picked from commit
fe54b3e4f0739bd18f046d91ec69916f0935dc06)
luci-app-lldpd: Fixes and additions
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
(cherry picked from commit
d3953006c2fe54806db97dbbadc2163847cd1dbf)
luci-app-lldpd: retain empty settings for advertisements flags
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
(cherry picked from commit
f79634dc3e18671b3a2fd992d67d0c68fadd84dc)
luci-app-lldpd: helpers for location data in lldpd
They should help with handling coordinate, address and ELIN formats.
It disassembles any lldp_location and fills corresponding fields. The
address fields used are globally common and include those used in Cisco
products. (lldpd has more address properties available)
Changes made to any field trigger write_lldp_location to compose a new
string saved to lldp_location.
The user can override everything by entering a raw config string (in
case an address type field is not available). The last field changed,
wins.
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
(cherry picked from commit
40afc3149da61ed05f0958a8ad3b482b3e5b6f83)
luci-app-lldpd: reveal SNMP agentX socket
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
(cherry picked from commit
b3d0ac820ed1a32da6f918d1f41c6d7a2959fdd4)
luci-app-lldpd: rebase i18n
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit
50d7a339d3ed8b3ac99bde212ef0181871a6e970)