{
	"luci-app-secubox-netdiag": {
		"description": "Grant access to SecuBox Network Diagnostics",
		"read": {
			"ubus": {
				"luci.secubox-netdiag": ["get_switch_status", "get_interface_details", "get_error_history", "get_topology", "collect_errors", "get_port_modes", "get_temperature"]
			},
			"file": {
				"/sys/class/net/*/statistics/*": ["read"],
				"/sys/class/net/*/carrier": ["read"],
				"/sys/class/net/*/operstate": ["read"],
				"/sys/class/net/*/address": ["read"],
				"/sys/class/net/*/mtu": ["read"],
				"/sys/class/thermal/thermal_zone*/temp": ["read"],
				"/sys/class/thermal/thermal_zone*/type": ["read"],
				"/sys/class/hwmon/hwmon*/temp*": ["read"],
				"/sys/class/hwmon/hwmon*/name": ["read"]
			}
		},
		"write": {
			"ubus": {
				"luci.secubox-netdiag": ["clear_counters", "set_port_mode"]
			}
		}
	}
}
