luci-base: firewall.js: add zone.getDevices() and zone.getSubnets() getters
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
e6ff0f39bb
commit
b63576bbe7
1 changed files with 8 additions and 0 deletions
|
@ -375,6 +375,14 @@ Zone = AbstractFirewallItem.extend({
|
|||
this.set('network', ' ');
|
||||
},
|
||||
|
||||
getDevices: function() {
|
||||
return L.toArray(this.get('device'));
|
||||
},
|
||||
|
||||
getSubnets: function() {
|
||||
return L.toArray(this.get('subnet'));
|
||||
},
|
||||
|
||||
getForwardingsBy: function(what) {
|
||||
var sections = uci.sections('firewall', 'forwarding'),
|
||||
forwards = [];
|
||||
|
|
Loading…
Reference in a new issue