diff options
author | Paul Donald <newtwen+github@gmail.com> | 2024-04-22 01:31:16 +0200 |
---|---|---|
committer | Paul Donald <newtwen+github@gmail.com> | 2024-04-22 23:55:47 +0200 |
commit | d3953006c2fe54806db97dbbadc2163847cd1dbf (patch) | |
tree | 9324fd2179127fdc57f4dee28421d21ca98c65a7 /applications/luci-app-lldpd/root/usr | |
parent | 49207b47ca048fdb9262b89c0683829f8e75972c (diff) |
luci-app-lldpd: Fixes and additions
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Diffstat (limited to 'applications/luci-app-lldpd/root/usr')
-rw-r--r-- | applications/luci-app-lldpd/root/usr/share/rpcd/acl.d/luci-app-lldpd.json | 23 | ||||
-rw-r--r-- | applications/luci-app-lldpd/root/usr/share/rpcd/ucode/luci.lldpd (renamed from applications/luci-app-lldpd/root/usr/share/rpcd/ucode/lldpd) | 2 |
2 files changed, 6 insertions, 19 deletions
diff --git a/applications/luci-app-lldpd/root/usr/share/rpcd/acl.d/luci-app-lldpd.json b/applications/luci-app-lldpd/root/usr/share/rpcd/acl.d/luci-app-lldpd.json index d79d7bd3c6..240cd24779 100644 --- a/applications/luci-app-lldpd/root/usr/share/rpcd/acl.d/luci-app-lldpd.json +++ b/applications/luci-app-lldpd/root/usr/share/rpcd/acl.d/luci-app-lldpd.json @@ -3,7 +3,7 @@ "description": "Grant access for LLDP status information", "read": { "ubus": { - "lldpd": [ + "luci.lldpd": [ "getStatus" ] }, @@ -18,27 +18,14 @@ "description": "Grant access for LLDP configuration", "read": { "uci": [ - "lldpd", - "luci", - "network", - "wireless", - "firewall" + "lldpd" ], "ubus": { + "luci.lldpd": [ + "getStatus" + ], "luci": [ "getInitList" - ], - "luci-rpc": [ - "getBoardJSON", - "getHostHints", - "getNetworkDevices", - "getWirelessDevices" - ], - "network": [ - "get_proto_handlers" - ], - "network.interface": [ - "dump" ] } }, diff --git a/applications/luci-app-lldpd/root/usr/share/rpcd/ucode/lldpd b/applications/luci-app-lldpd/root/usr/share/rpcd/ucode/luci.lldpd index a35376f871..fff7ac55f3 100644 --- a/applications/luci-app-lldpd/root/usr/share/rpcd/ucode/lldpd +++ b/applications/luci-app-lldpd/root/usr/share/rpcd/ucode/luci.lldpd @@ -7,7 +7,7 @@ function lldpcli_json(section) { } return { - lldpd: { + 'luci.lldpd': { getStatus: { call: function() { return { |