summaryrefslogtreecommitdiff
path: root/luci2/share
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2013-10-12 20:25:45 +0000
committerJo-Philipp Wich <jow@openwrt.org>2013-10-12 20:25:45 +0000
commit7baae58c613f232322c3104ed54c2d32791c6cc5 (patch)
tree5df3ca04f121bdfba54816981240de9d9079461a /luci2/share
parent529fe1dc23dc886428fe90b679bd30bc9648a651 (diff)
downloadluci2-ui-7baae58c613f232322c3104ed54c2d32791c6cc5.tar.gz
luci2: add network diagnostics view
Diffstat (limited to 'luci2/share')
-rw-r--r--luci2/share/acl.d/luci2.json15
-rw-r--r--luci2/share/menu.d/network.json6
2 files changed, 21 insertions, 0 deletions
diff --git a/luci2/share/acl.d/luci2.json b/luci2/share/acl.d/luci2.json
index 62057f3..e8e6949 100644
--- a/luci2/share/acl.d/luci2.json
+++ b/luci2/share/acl.d/luci2.json
@@ -294,5 +294,20 @@
"network"
]
}
+ },
+
+ "diagnostics": {
+ "description": "Network diagnostic tools",
+ "read": {
+ "ubus": {
+ "luci2.network": [
+ "ping",
+ "ping6",
+ "traceroute",
+ "traceroute6",
+ "nslookup"
+ ]
+ }
+ }
}
}
diff --git a/luci2/share/menu.d/network.json b/luci2/share/menu.d/network.json
index 94078e0..fc6f236 100644
--- a/luci2/share/menu.d/network.json
+++ b/luci2/share/menu.d/network.json
@@ -8,5 +8,11 @@
"acls": [ "switch" ],
"view": "network/switch",
"index": 30
+ },
+ "network/diagnostics": {
+ "title": "Diagnostics",
+ "acls": [ "diagnostics" ],
+ "view": "network/diagnostics",
+ "index": 80
}
}