execute: function() {
var self = this;
- L.network.listSwitchNames().then(function(switches) {
+ return L.network.listSwitchNames().then(function(switches) {
L.rpc.batch();
for (var i = 0; i < switches.length; i++)
return L.rpc.flush();
}).then(function(switches) {
var m = new L.cbi.Map('network', {
- readonly: !self.options.acls['switch']
+ readonly: !self.options.acls.network
});
for (var i = 0; i < switches.length; i++)
}
},
- "switch": {
- "description": "Ethernet switch configuration",
- "read": {
- "ubus": {
- "luci2.network": [
- "switch_list",
- "switch_info",
- "switch_status"
- ]
- },
- "uci": [
- "network"
- ]
- },
- "write": {
- "uci": [
- "network"
- ]
- }
- },
-
"diagnostics": {
"description": "Network diagnostic tools",
"read": {
"dhcp"
]
}
+ },
+
+ "network": {
+ "description": "Network, switch and routing configuration",
+ "read": {
+ "ubus": {
+ "luci2.network": [
+ "switch_list",
+ "switch_info",
+ "switch_status"
+ ]
+ },
+ "uci": [
+ "network"
+ ]
+ },
+ "write": {
+ "uci": [
+ "network"
+ ]
+ }
}
}