From 35761aa3a07e6a9ee75cd9a2f4536c11f1cdd9dd Mon Sep 17 00:00:00 2001 From: Nick Hainke Date: Fri, 18 Dec 2020 19:17:07 +0100 Subject: luci-app-babeld: add babeld overview Add overview of babeld status, xroutes and routes. Signed-off-by: Nick Hainke --- .../root/usr/share/luci/menu.d/luci-app-babeld.json | 13 +++++++++++++ .../root/usr/share/rpcd/acl.d/luci-app-babeld.json | 11 +++++++++++ 2 files changed, 24 insertions(+) create mode 100644 applications/luci-app-babeld/root/usr/share/luci/menu.d/luci-app-babeld.json create mode 100644 applications/luci-app-babeld/root/usr/share/rpcd/acl.d/luci-app-babeld.json (limited to 'applications/luci-app-babeld/root/usr') diff --git a/applications/luci-app-babeld/root/usr/share/luci/menu.d/luci-app-babeld.json b/applications/luci-app-babeld/root/usr/share/luci/menu.d/luci-app-babeld.json new file mode 100644 index 0000000000..8d0b010c21 --- /dev/null +++ b/applications/luci-app-babeld/root/usr/share/luci/menu.d/luci-app-babeld.json @@ -0,0 +1,13 @@ +{ + "admin/status/babeld": { + "title": "Babeld", + "action": { + "type": "cbi", + "path": "babeld", + "post": { "cbi.submit": true } + }, + "depends": { + "acl": [ "luci-app-babeld" ] + } + } +} diff --git a/applications/luci-app-babeld/root/usr/share/rpcd/acl.d/luci-app-babeld.json b/applications/luci-app-babeld/root/usr/share/rpcd/acl.d/luci-app-babeld.json new file mode 100644 index 0000000000..51687bad5c --- /dev/null +++ b/applications/luci-app-babeld/root/usr/share/rpcd/acl.d/luci-app-babeld.json @@ -0,0 +1,11 @@ +{ + "luci-app-babeld": { + "description": "Grant UCI access for babeld", + "read": { + "uci": [ "babeld" ] + }, + "write": { + "uci": [ "babeld" ] + } + } +} -- cgit v1.2.3