summaryrefslogtreecommitdiff
path: root/luci2/share
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2013-10-09 18:58:24 +0000
committerJo-Philipp Wich <jow@openwrt.org>2013-10-09 18:58:24 +0000
commit040ed60573605041313680e51b285cecff45f8cf (patch)
tree65d03dde11e1660dece65928b0bf8c21990b5cc6 /luci2/share
parentdc8ecce100784dab2e89601be0dba22e2516094f (diff)
downloadluci2-ui-040ed60573605041313680e51b285cecff45f8cf.tar.gz
luci2: add initial switch configuration view
Diffstat (limited to 'luci2/share')
-rw-r--r--luci2/share/acl.d/luci2.json21
-rw-r--r--luci2/share/menu.d/network.json12
2 files changed, 33 insertions, 0 deletions
diff --git a/luci2/share/acl.d/luci2.json b/luci2/share/acl.d/luci2.json
index ca5dd3c..62057f3 100644
--- a/luci2/share/acl.d/luci2.json
+++ b/luci2/share/acl.d/luci2.json
@@ -273,5 +273,26 @@
"system"
]
}
+ },
+
+ "switch": {
+ "description": "Ethernet switch configuration",
+ "read": {
+ "ubus": {
+ "luci2.network": [
+ "switch_list",
+ "switch_info",
+ "switch_status"
+ ]
+ },
+ "uci": [
+ "network"
+ ]
+ },
+ "write": {
+ "uci": [
+ "network"
+ ]
+ }
}
}
diff --git a/luci2/share/menu.d/network.json b/luci2/share/menu.d/network.json
new file mode 100644
index 0000000..94078e0
--- /dev/null
+++ b/luci2/share/menu.d/network.json
@@ -0,0 +1,12 @@
+{
+ "network": {
+ "title": "Network",
+ "index": 30
+ },
+ "network/switch": {
+ "title": "Switch",
+ "acls": [ "switch" ],
+ "view": "network/switch",
+ "index": 30
+ }
+}