project/luci.git
7 months agoluci-base: Hardcode 'openwrt-23.05' as the branch name, fixed
Hannu Nyman [Sat, 26 Apr 2025 15:07:24 +0000 (18:07 +0300)]
luci-base: Hardcode 'openwrt-23.05' as the branch name, fixed

Fix the previous commit, really set the 23.05 branding, not 24.10.

Hardcode 'openwrt-23.05' release branch as the branch name to avoid
'LuCI (HEAD detached at 2ac26e56) branch' being shown as the branch.

Feeds are since March 2025 cloned shallow if cloned from a specific
commit, like done with a release tag. Change in OpenWrt:
https://github.com/openwrt/openwrt/commit/32d0a57dc10811a24816e51f10e55963f40fe462

As the only cloned commit of a release tag is without history, the branch
can't be identified.

So, hardcode the branch name to get the proper branch name
'LuCI openwrt-23.05 branch'.

Fixes #7737

Signed-off-by: Hannu Nyman <[email protected]>
7 months agoluci-base: Hardcode 'openwrt-23.05' as the branch name
Hannu Nyman [Sat, 26 Apr 2025 15:00:14 +0000 (18:00 +0300)]
luci-base: Hardcode 'openwrt-23.05' as the branch name

Hardcode 'openwrt-23.05' release branch as the branch name to avoid
'LuCI (HEAD detached at 2ac26e56) branch' being shown as the branch.

Feeds are since March 2025 cloned shallow if cloned from a specific
commit, like done with a release tag. Change in OpenWrt:
https://github.com/openwrt/openwrt/commit/32d0a57dc10811a24816e51f10e55963f40fe462

As the only cloned commit of a release tag is without history, the branch
can't be identified.

So, hardcode the branch name to get the proper branch name
'LuCI openwrt-23.05 branch'.

Fixes #7737

Signed-off-by: Hannu Nyman <[email protected]>
(Backported from commit cca465436cd2d0c3ff97f716fe9761efadfeba2a)

7 months agoluci-base: override the load() function to return boolean for FlagValue
Paul Donald [Fri, 25 Apr 2025 15:17:51 +0000 (17:17 +0200)]
luci-base: override the load() function to return boolean for FlagValue

In the underlying uci system, all variables are effectively strings, so
for those configuration values which serve as 'boolean' flags, we need
to coerce the various forms into a real boolean. Only the following
string values result in true: 1|on|true|yes|enabled. Otherwise, false.

Checkboxes now fill correctly.

"Unchanged" configurations may write changed values as the Flag values
are coerced to '1' or '0' on write, but the configuration behaviour
remains synonymous.

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit 1355a6fa253d765140f5571354939d2e93e6d967)

7 months agotreewide: Backport i18n translations
Hannu Nyman [Thu, 24 Apr 2025 15:50:10 +0000 (18:50 +0300)]
treewide: Backport i18n translations

Backport translations. Sync.

Signed-off-by: Hannu Nyman <[email protected]>
7 months agoluci-mod-network: widgets shall show devices that are online as online
Paul Donald [Wed, 23 Apr 2025 22:13:26 +0000 (00:13 +0200)]
luci-mod-network: widgets shall show devices that are online as online

follow-up to 832680bb84d18132d04f424b7d70ce18d62e1150

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit f17ae7fd96f285aa564579f597f51e2679b27fd4)

7 months agoluci-app-attendedsysupgrade: change error reporting url
Eric Fahlgren [Sun, 20 Apr 2025 23:12:00 +0000 (16:12 -0700)]
luci-app-attendedsysupgrade: change error reporting url

Direct error reports to a LuCI-ASU-app-specific thread on the forum, where
they'll get more attention and reduce clutter on the ASU server's github issues.

Signed-off-by: Eric Fahlgren <[email protected]>
(cherry picked from commit 9fd692ab4402260bbbe5512cfeff6427c18d39b4)

7 months agoluci-base: prevent tools.widgets.ZoneSelect tracebacks
Paul Donald [Wed, 23 Apr 2025 12:04:12 +0000 (14:04 +0200)]
luci-base: prevent tools.widgets.ZoneSelect tracebacks

follow-up fix for 0be4ad51a0bea3e1e3e6cd7d646e11ec6c722540

It seems to have been this way for a while, for zone selections
involving the 'any' ('*') choice. firewall forwards.js has no
'this.allowany;' property on the widgets, so the any choice is absent,
leading to a traceback, caused by the 'src' widget, even though
this code block operates on the 'dst' value. Certain combinations of
'src' and 'dst' also triggered tracebacks.

This might not be the correct behaviour for this widget, but it does
prevent tracebacks caused by null values.

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit aa6924cd4ce64cc6e4ced50b0603f9f34b3e619c)

7 months agoluci-theme-*: ES6 refactor
Paul Donald [Wed, 23 Apr 2025 12:21:40 +0000 (14:21 +0200)]
luci-theme-*: ES6 refactor

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit 9180f2a76219d44ea11bc37574627144d3ced167)

7 months agoluci-theme: fix some dynamic layout issues
Paul Donald [Wed, 23 Apr 2025 12:03:57 +0000 (14:03 +0200)]
luci-theme: fix some dynamic layout issues

Implement a dynamic menu item width to allow item unwrapped and visible:
'min-width: max-content;' or 'max-width: max-content;'

Remove IE hacks and fix a console error for -webkit-scrollbar-thumb

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit 91572540595dae9ea88ae5e38ce01847cb4c08e0)

7 months agoluci-app-ddns: Fix multiple IP display bug
Paul Donald [Wed, 23 Apr 2025 12:03:50 +0000 (14:03 +0200)]
luci-app-ddns: Fix multiple IP display bug

Occasionally, a DNS lookup returns multiple IPs, so the best thing to
do isn't to join them together as a unified string, but to separate
them with an HTML <br/>.

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit 54192d3b3659e0ef94c976c84f71f85efdb4528d)

7 months agoluci-mod-network: widgets shall show devices that are online as online
Paul Donald [Wed, 23 Apr 2025 12:03:39 +0000 (14:03 +0200)]
luci-mod-network: widgets shall show devices that are online as online

Tunnel devices which are up, show as down, since the config being
enumerated does not have access to any device status. The 'device' being
enumerated is e.g. 'wireguard_wg0', a configuration for a tunnel
interface, whose parent is an 'ethernet' type.

That's a bug for another day. So they shall use parent device status.

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit a288354e78d4dd5872dea52bcebf7d1f91fad3b1)

7 months agoluci-base: widgets shall show devices that are online as online
Paul Donald [Wed, 23 Apr 2025 12:03:28 +0000 (14:03 +0200)]
luci-base: widgets shall show devices that are online as online

Tunnel devices which are up, show as down, since they don't have access
to any device status. The 'device' being enumerated is e.g.
'wireguard_wg0', a configuration for a tunnel interface, whose parent
is an 'ethernet' type.

That's a bug for another day. So they shall get parent device status.

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit 832680bb84d18132d04f424b7d70ce18d62e1150)

7 months agoluci-app-lldpd: fix 'redeclaration of s' error
Paul Donald [Mon, 21 Apr 2025 21:31:51 +0000 (23:31 +0200)]
luci-app-lldpd: fix 'redeclaration of s' error

follow-up to 279720fef7a540d52fa2b138aeef14ba3a4d5dee

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit e05852d9cfe454eb57cac57880dd5749c152a5a8)

7 months agoluci-lua-runtime: specify c17 standard
Andrew Robbins [Tue, 15 Apr 2025 06:13:06 +0000 (02:13 -0400)]
luci-lua-runtime: specify c17 standard

build was failing b/c gcc15 defaults to c23, which lemon is not written for (and errors with).

Signed-off-by: Andrew Robbins <[email protected]>
(cherry picked from commit 852fc23b12d4a701ba724a40b6afd4d40a4ad68d)

7 months agoluci-base: specify c17 standard
Andrew Robbins [Tue, 15 Apr 2025 05:38:35 +0000 (01:38 -0400)]
luci-base: specify c17 standard

build was failing b/c gcc15 defaults to c23, which lemon is not written for (and errors with).

Signed-off-by: Andrew Robbins <[email protected]>
(cherry picked from commit 7e6741fbae9b122545e80aad8b9e3a5529c442ce)

7 months agoluci-proto-wireguard: fixed incorrect peer name detection
this-username-has-been-taken [Sun, 13 Apr 2025 13:38:46 +0000 (16:38 +0300)]
luci-proto-wireguard: fixed incorrect peer name detection

Added the legacy peer name detection algorithm. If the new algorithm
fails to find a peer's name (e.g. when the IP address has been changed)
then the legacy value will be used.

Signed-off-by: Tom Haley <[email protected]>
(cherry picked from commit 8bff54dc47057e36c0ceb263efe4c82580003924)
(cherry picked from commit f8dea77b35f082fc7e326f3207560164ebc2b7e3)

7 months agoluci-mod-network: wireless: add LDPC capability flags (X-Box compat)
Paul Donald [Sat, 5 Apr 2025 14:04:37 +0000 (16:04 +0200)]
luci-mod-network: wireless: add LDPC capability flags (X-Box compat)

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit 65a80284cfc4cbef4d6d2dbc85423fef561ac0ea)

7 months agoluci-mod-status: consider family when rendering chains and rules
Stefan Kleeschulte [Fri, 17 Jan 2025 12:42:34 +0000 (13:42 +0100)]
luci-mod-status: consider family when rendering chains and rules

There can be multiple tables with the same name but different family
attribute (inet, ip, ip6, ...). The same goes for chains. So the family
attribute needs to be considered when rendering chains and rules.

Signed-off-by: Stefan Kleeschulte <[email protected]>
(cherry picked from commit e79e7022e50bd1782a528f8c8ddd16f340fbce35)

7 months agoluci-app-lldpd: custom TLV handling
Paul Donald [Tue, 1 Apr 2025 16:12:39 +0000 (18:12 +0200)]
luci-app-lldpd: custom TLV handling

Depends on https://github.com/openwrt/openwrt/pull/14872

Custom TLV have been possible in lldpd; now the machinery is in openwrt
to use them. Extend GUI to enable their handling.

TLV apply either globally or to specific interfaces. The parsing of TLV
strings mirrors that of lldpd. For details see lldpd man page.

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit 279720fef7a540d52fa2b138aeef14ba3a4d5dee)

8 months agoluci-app-firewall: repair handleAdd for rules.js
Paul Donald [Mon, 31 Mar 2025 19:41:11 +0000 (21:41 +0200)]
luci-app-firewall: repair handleAdd for rules.js

handleAdd did not work correctly for a while: the defaults were not
propagated, and some state was not cleaned up (try:
firewall rules -> add -> no changes -> click dismiss -> press save).

The state is now properly removed when pressing dismiss, by stashing
addedSection correctly under the map m and not in this.

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit d356e30ac13cc1648045d8a0bcb5dd92630778f4)

8 months agotreewide: Backport translations
Hannu Nyman [Sat, 29 Mar 2025 07:01:39 +0000 (09:01 +0200)]
treewide: Backport translations

Backport translations.

Signed-off-by: Hannu Nyman <[email protected]>
8 months agoluci-base: update timezone data to 2025b
Hannu Nyman [Thu, 27 Mar 2025 19:02:14 +0000 (21:02 +0200)]
luci-base: update timezone data to 2025b

Update timezone data to 2025b.

https://lists.iana.org/hyperkitty/list/[email protected]/thread/6JVHNHLB6I2WAYTQ75L6KEPEQHFXAJK3/

* New zone for Aysén Region in Chile which moves from -04/-03 to -03.

Also:
* Europe/Dublin corrected syntax
* Morocco string format change

Signed-off-by: Hannu Nyman <[email protected]>
(cherry picked from commit 05c7844389e36385aa64549a3cc449b9d1a552e7)

8 months agoluci-proto-wireguard: add extra checks for hostname when building qr
Paul Donald [Wed, 26 Mar 2025 21:40:01 +0000 (22:40 +0100)]
luci-proto-wireguard: add extra checks for hostname when building qr

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit 4207c2c5d51470fd273441f92b0a2c104441454c)

8 months agoluci-app-attendedsysupgrade: add more robust handling of downloads
Eric Fahlgren [Wed, 19 Mar 2025 21:15:04 +0000 (14:15 -0700)]
luci-app-attendedsysupgrade: add more robust handling of downloads

Check various aspects of the overview and revision downloads from
the sysupgrade site, giving the user better error messages when
things go wrong.

Partially addresses issue #7687 with respect to diagnosis, but not
root cause.

Signed-off-by: Eric Fahlgren <[email protected]>
(cherry picked from commit 51a8f8cd229cb95deb607422a43d570d2d90980e)

8 months agoluci-app-xinetd: do not show description on table overview
Florian Eckert [Wed, 19 Mar 2025 12:00:24 +0000 (13:00 +0100)]
luci-app-xinetd: do not show description on table overview

Signed-off-by: Florian Eckert <[email protected]>
(cherry picked from commit da878da40916cf5455525ffd52b0979623f247a0)

8 months agoluci-app-xinetd: make the server configuration option mandatory
Florian Eckert [Wed, 19 Mar 2025 11:50:29 +0000 (12:50 +0100)]
luci-app-xinetd: make the server configuration option mandatory

Signed-off-by: Florian Eckert <[email protected]>
(cherry picked from commit 790302ce856c1bf77d9e4e2d782a147fb48e1c7a)

8 months agoluci-app-attendedsysupgrade: show upcoming versions when available
Eric Fahlgren [Sun, 9 Mar 2025 16:24:08 +0000 (09:24 -0700)]
luci-app-attendedsysupgrade: show upcoming versions when available

Do not hide upcoming versions behind the 'advanced_mode' setting,
always show them.

Fixes: https://github.com/openwrt/asu/issues/1202
Signed-off-by: Eric Fahlgren <[email protected]>
(cherry picked from commit 8b00d023b0335783dc459a738a1b1e9c2be9cacc)

8 months agotreewide: Backport translations from master
Hannu Nyman [Sun, 9 Mar 2025 16:51:45 +0000 (18:51 +0200)]
treewide: Backport translations from master

Backport from master.
Sync.

Signed-off-by: Hannu Nyman <[email protected]>
9 months agotreewide: backport translations
Hannu Nyman [Sat, 22 Feb 2025 08:00:10 +0000 (10:00 +0200)]
treewide: backport translations

Backport and sync.

Signed-off-by: Hannu Nyman <[email protected]>
9 months agoluci-app-attendedsysupgrade: backport several bugfixes
Eric Fahlgren [Sat, 8 Feb 2025 14:10:05 +0000 (06:10 -0800)]
luci-app-attendedsysupgrade: backport several bugfixes

Fix bug in applyPackageChanges, it was using the installed version as the
target, resulting in no changes being applied.

Signed-off-by: Eric Fahlgren <[email protected]>
(cherry picked from commit 2e9ffc6628d91065326cc1e16ea15f9f8f4f00a0)

9 months agoluci-base: update timezone data to 2025a
Hannu Nyman [Thu, 6 Feb 2025 18:59:11 +0000 (20:59 +0200)]
luci-base: update timezone data to 2025a

Update timezone data to 2025a.

https://lists.iana.org/hyperkitty/list/[email protected]/thread/MWII7R3HMCEDNUCIYQKSSTYYR7UWK4OQ/

* Paraguay adopts permanent -03 starting spring 2024.
* Asia/Choibalsan is removed from selection list. It is now
  an alias for Asia/Ulaanbaatar rather than being a separate
  Zone (changed in 2024b).

Signed-off-by: Hannu Nyman <[email protected]>
(cherry picked from commit edc352e11040c2d878ad1b697a70f6d8d22c54d3)

10 months agotreewide: Backport i18n translations from master
Hannu Nyman [Tue, 4 Feb 2025 17:35:19 +0000 (19:35 +0200)]
treewide: Backport i18n translations from master

Backport translations from master.
Sync.

Signed-off-by: Hannu Nyman <[email protected]>
10 months agotreewide: Backport translations from master
Hannu Nyman [Fri, 24 Jan 2025 17:46:12 +0000 (19:46 +0200)]
treewide: Backport translations from master

Backport translations from master.
Sync.

Signed-off-by: Hannu Nyman <[email protected]>
11 months agotreewide: Backport translations
Hannu Nyman [Sun, 29 Dec 2024 19:51:23 +0000 (21:51 +0200)]
treewide: Backport translations

Backport translations and sync.

Signed-off-by: Hannu Nyman <[email protected]>
11 months agoluci-mod-system: Fix cron log level settings in 23.05
Hannu Nyman [Wed, 11 Dec 2024 18:34:07 +0000 (20:34 +0200)]
luci-mod-system: Fix cron log level settings in 23.05

Busybox crond only uses level 5, 7 and 8. (And 7 and 8 only differ
on one error regarding finding a crontab without user.)

For simplicity, just provide 5 and 7 as alternatives in LuCI.
Add "Disabled" with value 9 as a choice for cron log level.

9 actually exceeds the highest built-in value 8, but can be
used to quieten the logging in cases where there are e.g. cron
jobs running each minute, which would create log spam.

Show level 7 as the default and as the first offered choice.

Add missing semicolons to the file.

Signed-off-by: Hannu Nyman <[email protected]>
(cherry picked from commit 1e7ce8de990e0bcb36b77bdb846b644aa1724568)
(cherry picked from commit ef167782ffc6b700f133557a9196ac846edb3399)
[also modernize system log size placeholder value]

11 months agoMerge pull request #7456 from stangri/23.05-luci-app-adblock-fast
Stan Grishin [Sat, 7 Dec 2024 01:51:04 +0000 (17:51 -0800)]
Merge pull request #7456 from stangri/23.05-luci-app-adblock-fast

[23.05] luci-app-adblock-fast: catch up to snapshots version

12 months agoluci-app-adblock-fast: catch up to snapshots version
Stan Grishin [Fri, 6 Dec 2024 03:20:49 +0000 (03:20 +0000)]
luci-app-adblock-fast: catch up to snapshots version

Signed-off-by: Stan Grishin <[email protected]>
12 months agoluci-proto-wireguard: fixed incorrect peer detection for ipv6 and default port
Tom Haley [Thu, 5 Dec 2024 07:54:19 +0000 (10:54 +0300)]
luci-proto-wireguard: fixed incorrect peer detection for ipv6 and default port

Fixed incorrect peer detection if IP v6 is used and no port for peer is defined.

Signed-off-by: Tom Haley <[email protected]>
(cherry picked from commit 461d632d5c57bb179f2dae0b164b2d7d99d7432c)

12 months agoluci-proto-wireguard: fixed incorrect peer detection if port is not set
Tom Haley [Thu, 5 Dec 2024 07:27:38 +0000 (10:27 +0300)]
luci-proto-wireguard: fixed incorrect peer detection if port is not set

Fixed incorrect peer detection if port is not set (default port is used)

Signed-off-by: Tom Haley <[email protected]>
(cherry picked from commit 27ecfdaafe344a79ed32a5b5dc1fddf8f811f91d)

12 months agoluci-proto-wireguard: fixed a vulnerability in the checkPeerHost method
Tom Haley [Wed, 4 Dec 2024 19:19:25 +0000 (22:19 +0300)]
luci-proto-wireguard: fixed a vulnerability in the checkPeerHost method

shellquote method is introduced so an injected code cannot be executed by the popen command.

Signed-off-by: Tom Haley <[email protected]>
(cherry picked from commit 101ea169c6af90c0aeaff6655b906b6d40155924)

12 months agoluci-proto-wireguard: Fix incorrect peer detection for IP v6
Tom Haley [Mon, 2 Dec 2024 15:40:32 +0000 (18:40 +0300)]
luci-proto-wireguard: Fix incorrect peer detection for IP v6

This commit fixes incorrect peer detection when using IP v6 by deleting all the square the square brackets from the wgHost variable.

Signed-off-by: Tom Haley <[email protected]>
(cherry picked from commit 5c97a89684cbc9eb6cf891f44cfd7f89237c52d4)

12 months agodocs: amend links for real this time
Paul Donald [Tue, 3 Dec 2024 16:19:21 +0000 (17:19 +0100)]
docs: amend links for real this time

Closes #7449

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit e76155d09484602e2b02e84bb8ffafa4848798f0)

12 months agodocs: amend links
Paul Donald [Tue, 3 Dec 2024 15:12:01 +0000 (16:12 +0100)]
docs: amend links

Closes #7449

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit 1ee9d0c8fa432485d2611895c0d99edff26d5e81)

12 months agoluci-app-attendedsysupgrade: Fix logic error in EFI image selection
Jakob Haufe [Sat, 3 Feb 2024 19:22:21 +0000 (20:22 +0100)]
luci-app-attendedsysupgrade: Fix logic error in EFI image selection

If a non-EFI image comes first in the list of images, it would have
been selected even on an EFI system.

Signed-off-by: Jakob Haufe <[email protected]>
(cherry picked from commit cb45737d1bf6f89017e2ab557144c524aea2e57e)

12 months agotreewide: Backport translations
Hannu Nyman [Sun, 1 Dec 2024 17:53:02 +0000 (19:53 +0200)]
treewide: Backport translations

Backport translations from master.
Sync.

Signed-off-by: Hannu Nyman <[email protected]>
12 months agoluci-app-wifischedule: Correct dependencies
Hannu Nyman [Sun, 1 Dec 2024 17:34:24 +0000 (19:34 +0200)]
luci-app-wifischedule: Correct dependencies

As the app is now javascript-based, depend on luci-base
instead of luci-compat.

(modified from 3e7fe9f07 and 019e29f20)

Signed-off-by: Hannu Nyman <[email protected]>
12 months agoluci-app-openvpn: Handle missing openvpn config file.
Milad Mohtashamirad [Mon, 18 Nov 2024 03:09:53 +0000 (14:09 +1100)]
luci-app-openvpn: Handle missing openvpn config file.

With this change if the specified config file (from UCI) doesn't exist,
it won't error out. instead it treats it as an empty file.
Previously, when clicking edit on the custom_config option in the UI, it
will show an error because the file doesn't exist there by default. As a
result, a user can't easily add (paste) a config file content.

Signed-off-by: Milad Mohtashamirad <[email protected]>
(cherry picked from commit a30ae19006cad444e18b10a5e42a35436a59133e)

12 months agoluci-mod-status: NOTRACK action for nftables rule rendering
Paul Donald [Sat, 30 Nov 2024 03:47:52 +0000 (04:47 +0100)]
luci-mod-status: NOTRACK action for nftables rule rendering

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit 63b7e637c94a57973cf889b699be42198af19d49)

12 months agoluci-app-statistics: fix prepare values from list vlaues
Aleksey Kolosov [Fri, 15 Nov 2024 07:42:55 +0000 (10:42 +0300)]
luci-app-statistics: fix prepare values from list vlaues

If UCI store values as a list instead of an option, conversation for the
collectd configuration is not work correctly. This is due to the use of
a DynamicList type element in the UI (for example, for the RRATimespans
field). For this function argument val receives as array instead of a
string, so no additional conversion is required.

Signed-off-by: Aleksey Kolosov <[email protected]>
12 months agoluci-mod-network: fix DHCP ip constraint (masks generate "bad address")
Paul Donald [Thu, 28 Nov 2024 18:30:01 +0000 (19:30 +0100)]
luci-mod-network: fix DHCP ip constraint (masks generate "bad address")

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit bbc4a909255c34630f7710aff636c519a12318bd)

12 months agoluci-app-adblock: sync with adblock-4.2.3-1
Dirk Brenken [Sat, 23 Nov 2024 21:57:39 +0000 (22:57 +0100)]
luci-app-adblock: sync with adblock-4.2.3-1

* add new tld option

Signed-off-by: Dirk Brenken <[email protected]>
(cherry picked from commit cb767dc51bd8ccd0fdfda14bd99fcf47c57eea14)

12 months agoluci-app-libreswan: small refactor
Paul Donald [Fri, 22 Nov 2024 23:24:10 +0000 (00:24 +0100)]
luci-app-libreswan: small refactor

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit a4a5cf6af7035a21abc98959747f157a0b453fb5)

12 months agoluci-app-libreswan: prevent proposals and tunnels overwriting each other
Paul Donald [Fri, 22 Nov 2024 22:47:19 +0000 (23:47 +0100)]
luci-app-libreswan: prevent proposals and tunnels overwriting each other

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit 2bf802d844a1eb3f75db6aff26786749df5b2c95)

12 months agoluci-app-libreswan: upgrade uci-defaults for ucitrack handling to use json
Florian Eckert [Thu, 11 Apr 2024 09:44:38 +0000 (11:44 +0200)]
luci-app-libreswan: upgrade uci-defaults for ucitrack handling to use json

Conversion of the 'uci-defaults' script for ucitrack handling to the new
json processing.

Signed-off-by: Florian Eckert <[email protected]>
(cherry picked from commit dd0aa936a5c50e4929f87221ef67ac739ef73b8d)

12 months agoluci-app-libreswan: Add LuCI for Libreswan
Jaymin Patel [Sun, 22 Oct 2023 06:39:57 +0000 (12:09 +0530)]
luci-app-libreswan: Add LuCI for Libreswan

LuCI Support for IPSec VPN (Libreswan)

Signed-off-by: Jaymin Patel <[email protected]>
[fix '15h' label typo]
Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit 9f652445355258497fd7f8c7f06dd75f58cd64ce)

12 months agoluci-proto-openconnect: convert helper to ucode
Paul Donald [Fri, 22 Nov 2024 18:50:43 +0000 (19:50 +0100)]
luci-proto-openconnect: convert helper to ucode

set also dep to luci-base

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit 32249963f1290142fffadc426b08a6712900e12b)

12 months agoluci-proto-openfortivpn: convert helper to ucode
Paul Donald [Fri, 22 Nov 2024 19:10:50 +0000 (20:10 +0100)]
luci-proto-openfortivpn: convert helper to ucode

set also dep to luci-base

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit d304024f3eb45bd18b10eb4c3e14d9bfd5e7035c)

12 months agoluci-proto-openconnect: updated SSL VPN option list and update sha1 hash wording
Nikos Mavrogiannopoulos [Sat, 18 May 2024 19:06:38 +0000 (21:06 +0200)]
luci-proto-openconnect: updated SSL VPN option list and update sha1 hash wording

Signed-off-by: Nikos Mavrogiannopoulos <[email protected]>
(cherry picked from commit c27c0b2505dc4cde9ab1b5de97eabbc6b3c79c71)

12 months agoluci-proto-openconnect: use the uri configuration option
Nikos Mavrogiannopoulos [Sat, 18 May 2024 19:00:25 +0000 (21:00 +0200)]
luci-proto-openconnect: use the uri configuration option

This enables more advanced configuration by allowing complex URIs, including
user groups and hidden directories (camouflage). It further simplifies the configuration
by eliminating the port and usergroup parameters.

Signed-off-by: Nikos Mavrogiannopoulos <[email protected]>
(cherry picked from commit 03d6dec7d25cb87981b4beffe3a1d18d4cc8854c)

12 months agoluci-proto-openconnect: register as simply openconnect
Nikos Mavrogiannopoulos [Sat, 18 May 2024 18:55:12 +0000 (20:55 +0200)]
luci-proto-openconnect: register as simply openconnect

This is no longer a client implementing CISCO anyconnect. Many other
protocols are present.

Signed-off-by: Nikos Mavrogiannopoulos <[email protected]>
(cherry picked from commit 46a2acac92adff44eedf8bd33820c8c30e50b64d)

12 months agoluci-proto-openconnect: add missing license information
Florian Eckert [Tue, 19 Mar 2024 12:16:17 +0000 (13:16 +0100)]
luci-proto-openconnect: add missing license information

Signed-off-by: Florian Eckert <[email protected]>
(cherry picked from commit 216ef47b4f772ebb307ac5b8869b01ad4b72d290)

12 months agoluci-proto-openconnect: add option for array ssl vpn
Tinko Liu [Mon, 8 Jan 2024 12:36:14 +0000 (20:36 +0800)]
luci-proto-openconnect: add option for array ssl vpn

Signed-off-by: Tinko Liu <[email protected]>
(cherry picked from commit 4b31ffa09b49b6f236607cd0d4c9a8aaa58866c9)

12 months agoluci-app-ddns: excise luci-lua-runtime depends
Paul Donald [Thu, 21 Nov 2024 17:55:02 +0000 (18:55 +0100)]
luci-app-ddns: excise luci-lua-runtime depends

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit 8efe23f3be44a28b872f2cb78b5bac5c8ff7e0a3)

12 months agoapplications: replace +luci-mod-admin-full with +luci-base
Sergey Ponomarev [Sun, 24 Sep 2023 07:55:27 +0000 (10:55 +0300)]
applications: replace +luci-mod-admin-full with +luci-base

The apps don't need for the admin full.

Signed-off-by: Sergey Ponomarev <[email protected]>
(cherry picked from commit 2edb20189a4bf54e55625a6f88cb475c11e77df6)

12 months agoluci-app-p910nd: excise luci-compat
Paul Donald [Thu, 21 Nov 2024 16:57:00 +0000 (17:57 +0100)]
luci-app-p910nd: excise luci-compat

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit b4a07a23c1bd22ed85ed4680d373344bd0daf80b)

12 months agoluci-app-ddns: Convert to JS
Paul Donald [Thu, 21 Nov 2024 17:34:45 +0000 (18:34 +0100)]
luci-app-ddns: Convert to JS

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit 22fcc720ec5d2ad1426509136447172281d345a0)

12 months agoluci-proto-vxlan: fix format in i18n strings
Paul Donald [Sun, 17 Nov 2024 22:08:28 +0000 (23:08 +0100)]
luci-proto-vxlan: fix format in i18n strings

follow-up to 9ebffc1ecdb8871dea7d35eb8eb10dde688baf5d

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit 42e2e404cfd974a257fe697b424b94abaad09170)

12 months agotreewide: Backport i18n translations
Hannu Nyman [Sat, 16 Nov 2024 10:23:00 +0000 (12:23 +0200)]
treewide: Backport i18n translations

Backport translations from master. Sync.

Signed-off-by: Hannu Nyman <[email protected]>
12 months agoluci-app-wifischedule: really delete lua component
Paul Donald [Thu, 14 Nov 2024 19:47:14 +0000 (20:47 +0100)]
luci-app-wifischedule: really delete lua component

Closes #7390

follow-up for 7327da234957da04285dd39cdb5df1af27a5c8f9 cherry-pick

Signed-off-by: Paul Donald <[email protected]>
12 months agoluci-base: fix documented path
Paul Donald [Thu, 7 Nov 2024 20:23:25 +0000 (21:23 +0100)]
luci-base: fix documented path

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit 8f7f14208a4b694d24ab8faf0a759b8dd8d35ff9)

12 months agoluci-app-wifischedule: tighten acl perms
Paul Donald [Fri, 8 Nov 2024 10:33:44 +0000 (11:33 +0100)]
luci-app-wifischedule: tighten acl perms

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit 0691504ef0df09c64ae74b744f4912a095d6d14e)

12 months agoluci-app-wifischedule: Convert to JS
Ramon Van Gorkom [Thu, 31 Oct 2024 20:38:11 +0000 (21:38 +0100)]
luci-app-wifischedule: Convert to JS

Signed-off-by: Ramon Van Gorkom <[email protected]>
(cherry picked from commit 9ddbc1155566a3d0ebc4aef5a2b46b89b075b14e)

12 months agoluci-proto-vxlan: fix tos write and load handlers
Paul Donald [Thu, 7 Nov 2024 00:45:41 +0000 (01:45 +0100)]
luci-proto-vxlan: fix tos write and load handlers

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit 1de73e16f525a5edc80954afda50db88b3cf96da)

13 months agoRevert "luci-app-opkg: fix passing wrong option on opkg update/install"
Christian Marangi [Mon, 28 Oct 2024 10:45:24 +0000 (11:45 +0100)]
Revert "luci-app-opkg: fix passing wrong option on opkg update/install"

This reverts commit b93fdef9692166396c880a3a8cecde603b932544.

Due to cache problem it's better to revert this minor fixup than adding
a fixup on top of it. For OPKG it doesn't cause any problem as the extra
unsupported options is just ignored.

Signed-off-by: Christian Marangi <[email protected]>
13 months agoluci-app-opkg: add PROVIDES luci-app-package-manager
Hannu Nyman [Sun, 27 Oct 2024 08:42:30 +0000 (10:42 +0200)]
luci-app-opkg: add PROVIDES luci-app-package-manager

To ease image generation with a package list from 24.xx
or main/master snapshot, add a PROVIDES statement to support
also the package's newer name luci-app-package-manager.

Signed-off-by: Hannu Nyman <[email protected]>
13 months agoluci-app-opkg: fix passing wrong option on opkg update/install
Christian Marangi [Tue, 22 Oct 2024 22:21:35 +0000 (00:21 +0200)]
luci-app-opkg: fix passing wrong option on opkg update/install

Fix passing wrong option on opkg update/install. While starting to
introduce support for APK in the opkg module, it was notice that
--force-removal-of-dependent-packages was always passed even with update
and install command.

This was probably a leftover/oversight of old one. To fix this, limit
this option only on remove and also update the acl.d to support single
call to update or install.

Fixes: 9b25031cb29b ("luci-app-opkg: rework backend operations")
Signed-off-by: Christian Marangi <[email protected]>
(cherry picked from commit 3a8e9baf32242f30cf65791b61c460413bd115ce)

13 months agoluci-app-statistics: render all graphs on refresh if no summary
James Haggerty [Thu, 24 Oct 2024 01:17:21 +0000 (12:17 +1100)]
luci-app-statistics: render all graphs on refresh if no summary

Previously, if there would usually be a summary page for the data
but this was not happening because there was only a single instance
(e.g. a single wifi interface), the refresh would mistakenly
request the summary rather than the existing data.

i.e. graphs would mysteriously disappear on refresh.

Signed-off-by: James Haggerty <[email protected]>
(cherry picked from commit 4d75286519015f19e3878008b21fb7342ca5fae3)

13 months agoluci-proto-vxlan: introduce peers tab and additional vxlan settings
Paul Donald [Fri, 27 Sep 2024 01:11:02 +0000 (03:11 +0200)]
luci-proto-vxlan: introduce peers tab and additional vxlan settings

Added ip-bridge dep for bridge command to manage FDB entries.

Reference:
https://events.static.linuxfound.org/sites/events/files/slides/2013-linuxcon.pdf

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit ba530891d56ff89db799d5ccb87333dadfabf88e)

13 months agoluci-proto-wireguard: make peer entries sortable
Paul Donald [Fri, 25 Oct 2024 19:41:33 +0000 (21:41 +0200)]
luci-proto-wireguard: make peer entries sortable

Closes #7354

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit f1b302d49bce91b0e25814af08c63681cf2744a5)

13 months agoluci-proto-wireguard: fixed bug with incorrect peer name detection
this-username-has-been-taken [Wed, 23 Oct 2024 10:15:33 +0000 (13:15 +0300)]
luci-proto-wireguard: fixed bug with incorrect peer name detection

Fixed bug with incorrect peer name detection on `Status -> WireGuard`
page when more than one peer with the same public key exist:
1. Peers are now tested not only by public key, but also by
enabled/disabled status, peer host (both IP and FQDN are supported)
and port.
2. Added required `resolveip` dependency.

Closes #7342

Signed-off-by: @this-username-has-been-taken
Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit 7acea818735a9c5e8577d6b57f359996956f15e4)

luci-proto-wireguard: follow-up fix for status overview

follow-up to 7acea818735a9c5e8577d6b57f359996956f15e4

Closes #7347

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit 760ac165fa76952161e82bd825d9c757a10e0436)

13 months agoluci-proto-wireguard: disable peers from the tab
Paul Donald [Fri, 25 Oct 2024 20:33:33 +0000 (22:33 +0200)]
luci-proto-wireguard: disable peers from the tab

It's clumsy to enable/disable peers from the modal, save some clicks

Signed-off-by: Bryan Roessler <[email protected]>
(cherry picked from commit 071fc1bc92980454b6701d9394711b9d758f332a)

13 months agoluci-proto-wireguard: adapt to use uqr
Paul Donald [Wed, 1 May 2024 16:43:51 +0000 (18:43 +0200)]
luci-proto-wireguard: adapt to use uqr

If for some reason luci-lib-uqr is absent, the GUI shows that the proto
handler needs installing (since it now has a dep which is missing).

Suitable action is to install the lib or remove/install wireguard again.

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit 74f366a1e54f54079fde6e4906e7307f199127e5)

13 months agoluci-lib-uqr: introduce JS library
Paul Donald [Wed, 1 May 2024 23:21:57 +0000 (01:21 +0200)]
luci-lib-uqr: introduce JS library

Initial idea by Christian Marangi <[email protected]>

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit b2e7441a60e9d0fa9bda8a95fac61958a14cef85)

13 months agotreewide: Backport translations - sync
Hannu Nyman [Fri, 25 Oct 2024 17:27:01 +0000 (20:27 +0300)]
treewide: Backport translations - sync

Backport translations from master and sync.

Signed-off-by: Hannu Nyman <[email protected]>
13 months agoMerge pull request #7317 from stangri/openwrt-23.05-luci-app-advanced-reboot
Stan Grishin [Fri, 25 Oct 2024 02:18:33 +0000 (19:18 -0700)]
Merge pull request #7317 from stangri/openwrt-23.05-luci-app-advanced-reboot

[23.05] luci-app-advanced-reboot: update to 1.0.1-15

13 months agoluci-app-lldpd: Fix mysterious Command failed: Unknown error
Paul Donald [Thu, 10 Oct 2024 20:03:46 +0000 (22:03 +0200)]
luci-app-lldpd: Fix mysterious Command failed: Unknown error

Executing the following command:

ubus call luci.lldpd getStatus

always returned 'Command failed: Unknown error', but the underlying

lldpcli -f json0 show *

worked fine. Fixed with a chained ?.read?

Tested on 23.05.3

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit c40253ada3d3e0257e1e3796aeab5ad46bc02f5b)

13 months agoluci-app-adblock: sync with adblock-4.2.2-6
Dirk Brenken [Thu, 10 Oct 2024 17:04:22 +0000 (19:04 +0200)]
luci-app-adblock: sync with adblock-4.2.2-6

* adjust changed sources field in the online status

Signed-off-by: Dirk Brenken <[email protected]>
(cherry picked from commit 02f2d471026cc0a77fecf54c278065ec334bd73b)

13 months agotreewide: Backport and sync translations
Hannu Nyman [Thu, 10 Oct 2024 04:37:06 +0000 (07:37 +0300)]
treewide: Backport and sync translations

Backport translations from master.
Sync.

Signed-off-by: Hannu Nyman <[email protected]>
13 months agoluci-app-advanced-reboot: update to 1.0.1-15
Stan Grishin [Tue, 8 Oct 2024 23:04:40 +0000 (23:04 +0000)]
luci-app-advanced-reboot: update to 1.0.1-15

Update to the most recent version, this update includes:
* copyright & license updates
* better package definitions in Makefile
* better presence in make menuconfig
* better version/release information compatible with both opkg/apk
* updated link to upstream code
* updated README link wording
* add support for Linksys MX4200v1
* add support for Linksys MX4200v2
* add support for Linksys MX4300
* add support for Linksys WHW03
* add support for Linksys EA6350v4

Signed-off-by: Stan Grishin <[email protected]>
(cherry picked from commit a917ad6c31f70fadc093d215bdef2b14e940e129)

13 months agoluci-app-advanced-reboot: update to 1.0.1-13
Stan Grishin [Sun, 22 Sep 2024 17:45:28 +0000 (17:45 +0000)]
luci-app-advanced-reboot: update to 1.0.1-13

* update copyright
* update license
* split version string into PKG_VERSION and PKG_RELEASE for APK compatibility
* update upstream URL link
* add menuconfig title/version info
* update README
* add support for:
  * Linksys MX4200v1 (Thanks @innovara)
  * Linksys MX4200v2 (Thanks @innovara)
  * Linksys MX4300 (Thanks @PIPIPIG233666)

Signed-off-by: Stan Grishin <[email protected]>
(cherry picked from commit b884bf4f47e5bea487a2f0962976bd373ffa727f)

13 months agoluci-app-advanced-reboot: add support for Linksys WHW03 V1
Rodrigo Balerdi [Tue, 7 May 2024 09:25:50 +0000 (06:25 -0300)]
luci-app-advanced-reboot: add support for Linksys WHW03 V1

Signed-off-by: Rodrigo Balerdi <[email protected]>
(cherry picked from commit 8875f414f939a64cbe3f718f1ac36fb9427f576f)

13 months agoluci-app-rp-pppoe-server: convert to JS
Paul Donald [Mon, 7 Oct 2024 20:18:04 +0000 (22:18 +0200)]
luci-app-rp-pppoe-server: convert to JS

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit 3aa60877ea4bc47b86c3ee11448db7503a20ae01)

13 months agoluci-mod-network: split interface name and protocol validation
Daniel Nilsson [Sat, 21 Sep 2024 17:38:49 +0000 (19:38 +0200)]
luci-mod-network: split interface name and protocol validation

The previous implementation of binding the protocol validation to the
name validation caused problems when creating a new interface where an
already existing interface had the new one's protocol as its name, as the
protocol would be used when validating if an interface of that name already
existed.

Consider the following case:
1. Interface 'gre' with protocol PPPoE is created
2. Interface 'foo' with protocol GRE tunnel over IPv4 (which resolves to
   'gre') tries to be created

Creating interface 'foo' would error out during protocol validation as
'gre' would be passed to the name validation, which in turn would check if
an interface with name 'gre' already exists, which it does.

Instead of reusing the validation logic, simply trigger the name
validation manually as the protocol changes to properly pass the name of
the interface instead of the protocol. This also gives the benefit of
keeping all error states related to the name contained in the appropriate
UI element.

Fixes #7146

Tested-by: Tiago Gaspar <[email protected]>
Signed-off-by: Daniel Nilsson <[email protected]>
(cherry picked from commit 300961bb1ba7d71b50288b97c0fdeae0c71253e7)

13 months agoluci-mod-dashboard: Minor repairs
Paul Donald [Mon, 7 Oct 2024 15:10:57 +0000 (17:10 +0200)]
luci-mod-dashboard: Minor repairs

Strength gauge is now displayed. Appended dBm measurement also.

Corrected some labels.

Closes #6147

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit 723eb386340c8da681aa2c5fb60101690b3231fc)

14 months agoMerge pull request #7293 from stangri/openwrt-23.05-luci-app-https-dns-proxy
Stan Grishin [Tue, 24 Sep 2024 22:15:05 +0000 (15:15 -0700)]
Merge pull request #7293 from stangri/openwrt-23.05-luci-app-https-dns-proxy

[23.05] luci-app-https-dns-proxy: better description/link for force_dns

14 months agoluci-app-https-dns-proxy: better description/link for force_dns
Stan Grishin [Mon, 23 Sep 2024 23:32:47 +0000 (23:32 +0000)]
luci-app-https-dns-proxy: better description/link for force_dns

* better description/link for force_dns in WebUI

Signed-off-by: Stan Grishin <[email protected]>
(cherry picked from commit c70ec6f8c7e2fbf6c66697117914313289f0a14f)

14 months agoluci-mod-network: change to non-breaking space character
Paul Donald [Fri, 20 Sep 2024 15:49:07 +0000 (17:49 +0200)]
luci-mod-network: change to non-breaking space character

Closes #7252

Thanks to @efahl

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit a2c21a62c9cd10b61baa48f4881cd8794930e4ff)

14 months agoluci-base: expunge correct transport cookies on logout
Paul Donald [Fri, 20 Sep 2024 15:39:58 +0000 (17:39 +0200)]
luci-base: expunge correct transport cookies on logout

Closes #7269

Thanks to @mikma

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit 8449716ceb0641c3f76f103fa52b8529013f2581)

14 months agotreewide: Backport and sync translations
Hannu Nyman [Thu, 19 Sep 2024 18:16:27 +0000 (21:16 +0300)]
treewide: Backport and sync translations

Sync translations.
Backport translations.

Signed-off-by: Hannu Nyman <[email protected]>
14 months agoluci-app-lldpd: Create from Tano Systems
Marek Küthe [Tue, 4 Jul 2023 09:42:23 +0000 (11:42 +0200)]
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
luci-app-lldpd: Improve style

Remove double space

Signed-off-by: Marek Küthe <[email protected]>
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 <[email protected]>
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 <[email protected]>
luci-app-lldpd: RPCd backend change from Lua to ucode

Signed-off-by: Marek Küthe <[email protected]>
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 <[email protected]>
luci-app-lldpd: Add location parameter

Signed-off-by: Marek Küthe <[email protected]>
(cherry picked from commit 49207b47ca048fdb9262b89c0683829f8e75972c)

luci-app-lldpd: Fixes

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit fe54b3e4f0739bd18f046d91ec69916f0935dc06)

luci-app-lldpd: Fixes and additions

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit d3953006c2fe54806db97dbbadc2163847cd1dbf)

luci-app-lldpd: retain empty settings for advertisements flags

Signed-off-by: Paul Donald <[email protected]>
(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 <[email protected]>
(cherry picked from commit 40afc3149da61ed05f0958a8ad3b482b3e5b6f83)

luci-app-lldpd: reveal SNMP agentX socket

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit b3d0ac820ed1a32da6f918d1f41c6d7a2959fdd4)

luci-app-lldpd: rebase i18n

Signed-off-by: Florian Eckert <[email protected]>
(cherry picked from commit 50d7a339d3ed8b3ac99bde212ef0181871a6e970)