treewide: add ACL annotations to menu entries
[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                         "acl": [ "luci-mod-network-config" ],
11                         "fs": { "/sbin/swconfig": "executable" },
12                         "uci": { "network": { "@switch": true } }
13                 }
14         },
15
16         "admin/network/wireless": {
17                 "title": "Wireless",
18                 "order": 15,
19                 "action": {
20                         "type": "view",
21                         "path": "network/wireless"
22                 },
23                 "depends": {
24                         "acl": [ "luci-mod-network-config" ],
25                         "uci": { "wireless": { "@wifi-device": true } }
26                 }
27         },
28
29         "admin/network/remote_addr/*": {
30                 "action": {
31                         "type": "call",
32                         "module": "luci.controller.admin.network",
33                         "function": "remote_addr"
34                 }
35         },
36
37         "admin/network/network": {
38                 "title": "Interfaces",
39                 "order": 10,
40                 "action": {
41                         "type": "view",
42                         "path": "network/interfaces"
43                 },
44                 "depends": {
45                         "acl": [ "luci-mod-network-config" ]
46                 }
47         },
48
49         "admin/network/dhcp": {
50                 "title": "DHCP and DNS",
51                 "order": 30,
52                 "action": {
53                         "type": "view",
54                         "path": "network/dhcp"
55                 },
56                 "depends": {
57                         "acl": [ "luci-mod-network-dhcp" ],
58                         "uci": { "dhcp": true }
59                 }
60         },
61
62         "admin/network/hosts": {
63                 "title": "Hostnames",
64                 "order": 40,
65                 "action": {
66                         "type": "view",
67                         "path": "network/hosts"
68                 },
69                 "depends": {
70                         "acl": [ "luci-mod-network-dhcp" ],
71                         "uci": { "dhcp": true }
72                 }
73         },
74
75         "admin/network/routes": {
76                 "title": "Static Routes",
77                 "order": 50,
78                 "action": {
79                         "type": "view",
80                         "path": "network/routes"
81                 },
82                 "depends": {
83                         "acl": [ "luci-mod-network-config" ]
84                 }
85         },
86
87         "admin/network/diagnostics": {
88                 "title": "Diagnostics",
89                 "order": 60,
90                 "action": {
91                         "type": "view",
92                         "path": "network/diagnostics"
93                 },
94                 "depends": {
95                         "acl": [ "luci-mod-network-diagnostics" ]
96                 }
97         }
98 }