summaryrefslogtreecommitdiffstats
path: root/modules/luci-mod-network/root/usr/share/luci/menu.d/luci-mod-network.json
blob: 911a366a34394b26745ee09e9a080860398da3c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
{
	"admin/network/switch": {
		"title": "Switch",
		"order": 20,
		"action": {
			"type": "view",
			"path": "network/switch"
		},
		"depends": {
			"acl": [ "luci-mod-network-config" ],
			"fs": { "/sbin/swconfig": "executable" },
			"uci": { "network": { "@switch": true } }
		}
	},

	"admin/network/wireless": {
		"title": "Wireless",
		"order": 15,
		"action": {
			"type": "view",
			"path": "network/wireless"
		},
		"depends": {
			"acl": [ "luci-mod-network-config" ],
			"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"
		},
		"depends": {
			"acl": [ "luci-mod-network-config" ]
		}
	},

	"admin/network/switch-vlan": {
		"title": "Switch/VLAN config",
		"order": 12,
		"action": {
			"type": "view",
			"path": "network/switch-vlan"
		},
		"depends": {
			"acl": [ "luci-mod-network-config" ],
			"uci": [
				{ "network": { "@device": { "type": "bridge", "name": "switch", "vlan_filtering": "1" } } },
				{ "network": { "@device": { "type": "bridge", "name": "switch" }, "@bridge-vlan": { "device": "switch" } } },
				{ "network": { "@device": { "type": "bridge", "vlan_filtering": "1" } } },
				{ "network": { "@bridge-vlan": true } }
			]
		}
	},

	"admin/network/routes": {
		"title": "Routing",
		"order": 30,
		"action": {
			"type": "view",
			"path": "network/routes"
		},
		"depends": {
			"acl": [ "luci-mod-network-config" ]
		}
	},

	"admin/network/dhcp": {
		"title": "DHCP",
		"order": 40,
		"action": {
			"type": "view",
			"path": "network/dhcp"
		},
		"depends": {
			"acl": [ "luci-mod-network-dhcp" ],
			"fs": [
				{ "/usr/sbin/odhcpd": "executable" },
				{ "/usr/sbin/dnsmasq": "executable" }
			],
			"uci": { "dhcp": true }
		}
	},

	"admin/network/dns": {
		"title": "DNS",
		"order": 45,
		"action": {
			"type": "view",
			"path": "network/dns"
		},
		"depends": {
			"acl": [ "luci-mod-network-dns" ],
			"fs": { "/usr/sbin/dnsmasq": "executable" },
			"uci": { "dhcp": true }
		}
	},

	"admin/network/diagnostics": {
		"title": "Diagnostics",
		"order": 50,
		"action": {
			"type": "view",
			"path": "network/diagnostics"
		},
		"depends": {
			"acl": [ "luci-mod-network-diagnostics" ]
		}
	}
}