670f2c1a49afe71c09396b797e24b3737eceb8e4
[oweals/luci.git] / modules / luci-mod-network / root / usr / share / luci / menu.d / luci-mod-network.json
1 {
2         "admin/network/switch": {
3                 "title": "Switch",
4                 "order": 20,
5                 "action": {
6                         "type": "view",
7                         "path": "network/switch"
8                 },
9                 "depends": {
10                         "fs": { "/sbin/swconfig": "executable" },
11                         "uci": { "network": { "@switch": true } }
12                 }
13         },
14
15         "admin/network/wireless": {
16                 "title": "Wireless",
17                 "order": 15,
18                 "action": {
19                         "type": "view",
20                         "path": "network/wireless"
21                 },
22                 "depends": {
23                         "uci": { "wireless": { "@wifi-device": true } }
24                 }
25         },
26
27         "admin/network/remote_addr/*": {
28                 "action": {
29                         "type": "call",
30                         "module": "luci.controller.admin.network",
31                         "function": "remote_addr"
32                 }
33         },
34
35         "admin/network/network": {
36                 "title": "Interfaces",
37                 "order": 10,
38                 "action": {
39                         "type": "view",
40                         "path": "network/interfaces"
41                 }
42         },
43
44         "admin/network/dhcp": {
45                 "title": "DHCP and DNS",
46                 "order": 30,
47                 "action": {
48                         "type": "view",
49                         "path": "network/dhcp"
50                 },
51                 "depends": {
52                         "uci": { "dhcp": true }
53                 }
54         },
55
56         "admin/network/hosts": {
57                 "title": "Hostnames",
58                 "order": 40,
59                 "action": {
60                         "type": "view",
61                         "path": "network/hosts"
62                 },
63                 "depends": {
64                         "uci": { "dhcp": true }
65                 }
66         },
67
68         "admin/network/routes": {
69                 "title": "Static Routes",
70                 "order": 50,
71                 "action": {
72                         "type": "view",
73                         "path": "network/routes"
74                 }
75         },
76
77         "admin/network/diagnostics": {
78                 "title": "Diagnostics",
79                 "order": 60,
80                 "action": {
81                         "type": "view",
82                         "path": "network/diagnostics"
83                 }
84         }
85 }