summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-network/root/usr
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-12-06 22:59:33 +0100
committerJo-Philipp Wich <jo@mein.io>2019-12-16 18:07:18 +0100
commit5448a10e302bae5c5f0a45b2e43328ed00664cb0 (patch)
tree95d113323099b43e700d3a168f1c126666b57ee2 /modules/luci-mod-network/root/usr
parent566a99591b9dd49f1736982a52e17d76f877fa76 (diff)
luci-mod-network: convert menu nodes to JSON
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-network/root/usr')
-rw-r--r--modules/luci-mod-network/root/usr/share/luci/menu.d/luci-mod-network.json130
1 files changed, 130 insertions, 0 deletions
diff --git a/modules/luci-mod-network/root/usr/share/luci/menu.d/luci-mod-network.json b/modules/luci-mod-network/root/usr/share/luci/menu.d/luci-mod-network.json
new file mode 100644
index 0000000000..990c5d35ec
--- /dev/null
+++ b/modules/luci-mod-network/root/usr/share/luci/menu.d/luci-mod-network.json
@@ -0,0 +1,130 @@
+{
+ "admin/network/switch": {
+ "title": "Switch",
+ "order": 20,
+ "action": {
+ "type": "view",
+ "path": "network/switch"
+ },
+ "depends": {
+ "fs": { "/sbin/swconfig": "executable" },
+ "uci": { "network": { "@switch": true } }
+ }
+ },
+
+ "admin/network/wireless": {
+ "title": "Wireless",
+ "order": 15,
+ "action": {
+ "type": "view",
+ "path": "network/wireless"
+ },
+ "depends": {
+ "uci": { "wireless": { "@wifi-device": true } }
+ }
+ },
+
+ "admin/network/remote_addr/*": {
+ "action": {
+ "type": "call",
+ "module": "luci.controller.admin.network",
+ "function": "remote_addr"
+ }
+ },
+
+ "admin/network/network": {
+ "title": "Interfaces",
+ "order": 10,
+ "action": {
+ "type": "view",
+ "path": "network/interfaces"
+ }
+ },
+
+ "admin/network/dhcp": {
+ "title": "DHCP and DNS",
+ "order": 30,
+ "action": {
+ "type": "view",
+ "path": "network/dhcp"
+ },
+ "depends": {
+ "uci": { "dhcp": true }
+ }
+ },
+
+ "admin/network/hosts": {
+ "title": "Hostnames",
+ "order": 40,
+ "action": {
+ "type": "view",
+ "path": "network/hosts"
+ },
+ "depends": {
+ "uci": { "dhcp": true }
+ }
+ },
+
+ "admin/network/routes": {
+ "title": "Static Routes",
+ "order": 50,
+ "action": {
+ "type": "view",
+ "path": "network/routes"
+ }
+ },
+
+ "admin/network/diagnostics": {
+ "title": "Diagnostics",
+ "order": 60,
+ "action": {
+ "type": "template",
+ "path": "admin_network/diagnostics"
+ }
+ },
+
+ "admin/network/diag_ping/*": {
+ "action": {
+ "post": true,
+ "type": "call",
+ "module": "luci.controller.admin.network",
+ "function": "diag_ping"
+ }
+ },
+
+ "admin/network/diag_nslookup/*": {
+ "action": {
+ "post": true,
+ "type": "call",
+ "module": "luci.controller.admin.network",
+ "function": "diag_nslookup"
+ }
+ },
+
+ "admin/network/diag_traceroute/*": {
+ "action": {
+ "post": true,
+ "type": "call",
+ "module": "luci.controller.admin.network",
+ "function": "diag_traceroute"
+ }
+ },
+
+ "admin/network/diag_ping6/*": {
+ "action": {
+ "post": true,
+ "type": "call",
+ "module": "luci.controller.admin.network",
+ "function": "diag_ping6"
+ }
+ },
+
+ "admin/network/diag_traceroute6/*": {
+ "action": {
+ "post": true,
+ "type": "call",
+ "module": "luci.controller.admin.network",
+ "function": "diag_traceroute6"
+ }
+ }
+}