From 6c151fcddbabc0fcdd9de8c5088153e84f5b0ccd Mon Sep 17 00:00:00 2001 From: Jaymin Patel Date: Sat, 16 Jul 2022 18:42:47 +0530 Subject: luci-app-apinger: Add LuCI for Apinger LuCI Support for Apinger Signed-off-by: Jaymin Patel --- .../usr/share/luci/menu.d/luci-app-apinger.json | 73 ++++++++++++++++++++++ .../usr/share/rpcd/acl.d/luci-app-apinger.json | 19 ++++++ 2 files changed, 92 insertions(+) create mode 100644 applications/luci-app-apinger/root/usr/share/luci/menu.d/luci-app-apinger.json create mode 100644 applications/luci-app-apinger/root/usr/share/rpcd/acl.d/luci-app-apinger.json (limited to 'applications/luci-app-apinger/root/usr/share') diff --git a/applications/luci-app-apinger/root/usr/share/luci/menu.d/luci-app-apinger.json b/applications/luci-app-apinger/root/usr/share/luci/menu.d/luci-app-apinger.json new file mode 100644 index 0000000000..4b76d133f5 --- /dev/null +++ b/applications/luci-app-apinger/root/usr/share/luci/menu.d/luci-app-apinger.json @@ -0,0 +1,73 @@ +{ + "admin/services/apinger": { + "title": "Apinger", + "order": 90, + "action": { + "type": "alias", + "path": "admin/services/apinger/overview" + } + }, + + "admin/services/apinger/overview": { + "title": "Overview", + "order": 10, + "action": { + "type": "view", + "path": "apinger/overview" + } + }, + + "admin/services/apinger/graphs": { + "title": "Graphs", + "order": 11, + "action": { + "type": "view", + "path": "apinger/graphs" + } + }, + + "admin/services/apinger/interfaces": { + "title": "Interfaces", + "order": 19, + "action": { + "type": "view", + "path": "apinger/interfaces" + } + }, + + "admin/services/apinger/alarm_down": { + "title": "Alarm Down", + "order": 20, + "action": { + "type": "view", + "path": "apinger/alarm_down" + } + }, + + "admin/services/apinger/alarm_delay": { + "title": "Alarm Delay", + "order": 30, + "action": { + "type": "view", + "path": "apinger/alarm_delay" + } + }, + + "admin/services/apinger/alarm_loss": { + "title": "Alarm loss", + "order": 40, + "action": { + "type": "view", + "path": "apinger/alarm_loss" + } + }, + + "admin/services/apinger/targets": { + "title": "Targets", + "order": 90, + "action": { + "type": "view", + "path": "apinger/targets" + } + } +} diff --git a/applications/luci-app-apinger/root/usr/share/rpcd/acl.d/luci-app-apinger.json b/applications/luci-app-apinger/root/usr/share/rpcd/acl.d/luci-app-apinger.json new file mode 100644 index 0000000000..69066081e2 --- /dev/null +++ b/applications/luci-app-apinger/root/usr/share/rpcd/acl.d/luci-app-apinger.json @@ -0,0 +1,19 @@ +{ + "luci-app-apinger" : { + "description" : "Grant access to LuCI app Apinger", + "read" : { + "ubus" : { + "apinger" : [ "*" ], + "file": [ "stat" ], + "service": [ "list" ] + }, + "uci": [ "apinger" ] + }, + "write" : { + "ubus" : { + "apinger" : [ "*" ] + }, + "uci": [ "apinger" ] + } + } +} -- cgit v1.2.3