luci2: add initial switch configuration view
[project/luci2/ui.git] / luci2 / share / acl.d / luci2.json
index ca5dd3c..62057f3 100644 (file)
                                "system"
                        ]
                }
+       },
+
+       "switch": {
+               "description": "Ethernet switch configuration",
+               "read": {
+                       "ubus": {
+                               "luci2.network": [
+                                       "switch_list",
+                                       "switch_info",
+                                       "switch_status"
+                               ]
+                       },
+                       "uci": [
+                               "network"
+                       ]
+               },
+               "write": {
+                       "uci": [
+                               "network"
+                       ]
+               }
        }
 }