docs: update js api docs
[oweals/luci.git] / docs / jsapi / network.js.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4     <meta charset="utf-8">
5     <title>Source: network.js</title>
6     
7     
8     <script src="scripts/prettify/prettify.js"></script>
9     <script src="scripts/prettify/lang-css.js"></script>
10     <script src="scripts/jquery.min.js"></script>
11     <!--[if lt IE 9]>
12       <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
13     <![endif]-->
14     <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
15     <link type="text/css" rel="stylesheet" href="styles/bootstrap.min.css">
16     <link type="text/css" rel="stylesheet" href="styles/jaguar.css">
17     
18     
19     <script>
20     var config = {"monospaceLinks":true,"cleverLinks":true,"default":{"outputSourceFiles":true}};
21     </script>
22     
23
24     
25 </head>
26 <body>
27 <div id="wrap" class="clearfix">
28     
29 <div class="navigation">
30     <h3 class="applicationName"><a href="index.html"></a></h3>
31
32     <div class="search">
33         <input id="search" type="text" class="form-control input-sm" placeholder="Search Documentations">
34     </div>
35     <ul class="list">
36     
37         <li class="item" data-name="LuCI">
38             <span class="title">
39                 <a href="LuCI.html">LuCI</a>
40                 
41             </span>
42             <ul class="members itemMembers">
43             
44             <span class="subtitle">Members</span>
45             
46                 <li data-name="LuCI#Class"><a href="LuCI.html#Class">Class</a></li>
47             
48                 <li data-name="LuCI#dom"><a href="LuCI.html#dom">dom</a></li>
49             
50                 <li data-name="LuCI#env"><a href="LuCI.html#env">env</a></li>
51             
52                 <li data-name="LuCI#Poll"><a href="LuCI.html#Poll">Poll</a></li>
53             
54                 <li data-name="LuCI#Request"><a href="LuCI.html#Request">Request</a></li>
55             
56                 <li data-name="LuCI#view"><a href="LuCI.html#view">view</a></li>
57             
58             </ul>
59             <ul class="typedefs itemMembers">
60             
61             <span class="subtitle">Typedefs</span>
62             
63                 <li data-name="LuCI.requestCallbackFn"><a href="LuCI.html#.requestCallbackFn">requestCallbackFn</a></li>
64             
65             </ul>
66             <ul class="typedefs itemMembers">
67             
68             </ul>
69             <ul class="methods itemMembers">
70             
71             <span class="subtitle">Methods</span>
72             
73                 <li data-name="LuCI#bind"><a href="LuCI.html#bind">bind</a></li>
74             
75                 <li data-name="LuCI#error"><a href="LuCI.html#error">error</a></li>
76             
77                 <li data-name="LuCI#get"><a href="LuCI.html#get">get</a></li>
78             
79                 <li data-name="LuCI#halt"><a href="LuCI.html#halt">halt</a></li>
80             
81                 <li data-name="LuCI#hasSystemFeature"><a href="LuCI.html#hasSystemFeature">hasSystemFeature</a></li>
82             
83                 <li data-name="LuCI#isObject"><a href="LuCI.html#isObject">isObject</a></li>
84             
85                 <li data-name="LuCI#location"><a href="LuCI.html#location">location</a></li>
86             
87                 <li data-name="LuCI#media"><a href="LuCI.html#media">media</a></li>
88             
89                 <li data-name="LuCI#path"><a href="LuCI.html#path">path</a></li>
90             
91                 <li data-name="LuCI#poll"><a href="LuCI.html#poll">poll</a></li>
92             
93                 <li data-name="LuCI#post"><a href="LuCI.html#post">post</a></li>
94             
95                 <li data-name="LuCI#raise"><a href="LuCI.html#raise">raise</a></li>
96             
97                 <li data-name="LuCI#require"><a href="LuCI.html#require">require</a></li>
98             
99                 <li data-name="LuCI#resolveDefault"><a href="LuCI.html#resolveDefault">resolveDefault</a></li>
100             
101                 <li data-name="LuCI#resource"><a href="LuCI.html#resource">resource</a></li>
102             
103                 <li data-name="LuCI#run"><a href="LuCI.html#run">run</a></li>
104             
105                 <li data-name="LuCI#sortedKeys"><a href="LuCI.html#sortedKeys">sortedKeys</a></li>
106             
107                 <li data-name="LuCI#stop"><a href="LuCI.html#stop">stop</a></li>
108             
109                 <li data-name="LuCI#toArray"><a href="LuCI.html#toArray">toArray</a></li>
110             
111                 <li data-name="LuCI#url"><a href="LuCI.html#url">url</a></li>
112             
113             </ul>
114             <ul class="events itemMembers">
115             
116             </ul>
117         </li>
118     
119         <li class="item" data-name="LuCI.baseclass">
120             <span class="title">
121                 <a href="LuCI.baseclass.html">LuCI.baseclass</a>
122                 
123             </span>
124             <ul class="members itemMembers">
125             
126             </ul>
127             <ul class="typedefs itemMembers">
128             
129             </ul>
130             <ul class="typedefs itemMembers">
131             
132             </ul>
133             <ul class="methods itemMembers">
134             
135             <span class="subtitle">Methods</span>
136             
137                 <li data-name="LuCI.baseclass.extend"><a href="LuCI.baseclass.html#.extend">extend</a></li>
138             
139                 <li data-name="LuCI.baseclass.instantiate"><a href="LuCI.baseclass.html#.instantiate">instantiate</a></li>
140             
141                 <li data-name="LuCI.baseclass.isSubclass"><a href="LuCI.baseclass.html#.isSubclass">isSubclass</a></li>
142             
143                 <li data-name="LuCI.baseclass.singleton"><a href="LuCI.baseclass.html#.singleton">singleton</a></li>
144             
145                 <li data-name="LuCI.baseclass#super"><a href="LuCI.baseclass.html#super">super</a></li>
146             
147                 <li data-name="LuCI.baseclass#varargs"><a href="LuCI.baseclass.html#varargs">varargs</a></li>
148             
149             </ul>
150             <ul class="events itemMembers">
151             
152             </ul>
153         </li>
154     
155         <li class="item" data-name="LuCI.dom">
156             <span class="title">
157                 <a href="LuCI.dom.html">LuCI.dom</a>
158                 
159             </span>
160             <ul class="members itemMembers">
161             
162             </ul>
163             <ul class="typedefs itemMembers">
164             
165             <span class="subtitle">Typedefs</span>
166             
167                 <li data-name="LuCI.dom~ignoreCallbackFn"><a href="LuCI.dom.html#~ignoreCallbackFn">ignoreCallbackFn</a></li>
168             
169             </ul>
170             <ul class="typedefs itemMembers">
171             
172             </ul>
173             <ul class="methods itemMembers">
174             
175             <span class="subtitle">Methods</span>
176             
177                 <li data-name="LuCI.dom#append"><a href="LuCI.dom.html#append">append</a></li>
178             
179                 <li data-name="LuCI.dom#attr"><a href="LuCI.dom.html#attr">attr</a></li>
180             
181                 <li data-name="LuCI.dom#bindClassInstance"><a href="LuCI.dom.html#bindClassInstance">bindClassInstance</a></li>
182             
183                 <li data-name="LuCI.dom#callClassMethod"><a href="LuCI.dom.html#callClassMethod">callClassMethod</a></li>
184             
185                 <li data-name="LuCI.dom#content"><a href="LuCI.dom.html#content">content</a></li>
186             
187                 <li data-name="LuCI.dom#create"><a href="LuCI.dom.html#create">create</a></li>
188             
189                 <li data-name="LuCI.dom#data"><a href="LuCI.dom.html#data">data</a></li>
190             
191                 <li data-name="LuCI.dom#elem"><a href="LuCI.dom.html#elem">elem</a></li>
192             
193                 <li data-name="LuCI.dom#findClassInstance"><a href="LuCI.dom.html#findClassInstance">findClassInstance</a></li>
194             
195                 <li data-name="LuCI.dom#isEmpty"><a href="LuCI.dom.html#isEmpty">isEmpty</a></li>
196             
197                 <li data-name="LuCI.dom#matches"><a href="LuCI.dom.html#matches">matches</a></li>
198             
199                 <li data-name="LuCI.dom#parent"><a href="LuCI.dom.html#parent">parent</a></li>
200             
201                 <li data-name="LuCI.dom#parse"><a href="LuCI.dom.html#parse">parse</a></li>
202             
203             </ul>
204             <ul class="events itemMembers">
205             
206             </ul>
207         </li>
208     
209         <li class="item" data-name="LuCI.form">
210             <span class="title">
211                 <a href="LuCI.form.html">LuCI.form</a>
212                 
213             </span>
214             <ul class="members itemMembers">
215             
216             </ul>
217             <ul class="typedefs itemMembers">
218             
219             </ul>
220             <ul class="typedefs itemMembers">
221             
222             </ul>
223             <ul class="methods itemMembers">
224             
225             </ul>
226             <ul class="events itemMembers">
227             
228             </ul>
229         </li>
230     
231         <li class="item" data-name="LuCI.form.AbstractElement">
232             <span class="title">
233                 <a href="LuCI.form.AbstractElement.html">LuCI.form.AbstractElement</a>
234                 
235             </span>
236             <ul class="members itemMembers">
237             
238             </ul>
239             <ul class="typedefs itemMembers">
240             
241             </ul>
242             <ul class="typedefs itemMembers">
243             
244             </ul>
245             <ul class="methods itemMembers">
246             
247             <span class="subtitle">Methods</span>
248             
249                 <li data-name="LuCI.form.AbstractElement#append"><a href="LuCI.form.AbstractElement.html#append">append</a></li>
250             
251                 <li data-name="LuCI.form.AbstractElement#parse"><a href="LuCI.form.AbstractElement.html#parse">parse</a></li>
252             
253                 <li data-name="LuCI.form.AbstractElement#render"><a href="LuCI.form.AbstractElement.html#render">render</a></li>
254             
255                 <li data-name="LuCI.form.AbstractElement#stripTags"><a href="LuCI.form.AbstractElement.html#stripTags">stripTags</a></li>
256             
257                 <li data-name="LuCI.form.AbstractElement#titleFn"><a href="LuCI.form.AbstractElement.html#titleFn">titleFn</a></li>
258             
259             </ul>
260             <ul class="events itemMembers">
261             
262             </ul>
263         </li>
264     
265         <li class="item" data-name="LuCI.form.AbstractSection">
266             <span class="title">
267                 <a href="LuCI.form.AbstractSection.html">LuCI.form.AbstractSection</a>
268                 
269             </span>
270             <ul class="members itemMembers">
271             
272             <span class="subtitle">Members</span>
273             
274                 <li data-name="LuCI.form.AbstractSection##parentoption"><a href="LuCI.form.AbstractSection.html#parentoption">parentoption</a></li>
275             
276             </ul>
277             <ul class="typedefs itemMembers">
278             
279             </ul>
280             <ul class="typedefs itemMembers">
281             
282             </ul>
283             <ul class="methods itemMembers">
284             
285             <span class="subtitle">Methods</span>
286             
287                 <li data-name="LuCI.form.AbstractSection#append"><a href="LuCI.form.AbstractSection.html#append">append</a></li>
288             
289                 <li data-name="LuCI.form.AbstractSection#cfgsections"><a href="LuCI.form.AbstractSection.html#cfgsections">cfgsections</a></li>
290             
291                 <li data-name="LuCI.form.AbstractSection#filter"><a href="LuCI.form.AbstractSection.html#filter">filter</a></li>
292             
293                 <li data-name="LuCI.form.AbstractSection#load"><a href="LuCI.form.AbstractSection.html#load">load</a></li>
294             
295                 <li data-name="LuCI.form.AbstractSection#option"><a href="LuCI.form.AbstractSection.html#option">option</a></li>
296             
297                 <li data-name="LuCI.form.AbstractSection#parse"><a href="LuCI.form.AbstractSection.html#parse">parse</a></li>
298             
299                 <li data-name="LuCI.form.AbstractSection#render"><a href="LuCI.form.AbstractSection.html#render">render</a></li>
300             
301                 <li data-name="LuCI.form.AbstractSection#stripTags"><a href="LuCI.form.AbstractSection.html#stripTags">stripTags</a></li>
302             
303                 <li data-name="LuCI.form.AbstractSection#tab"><a href="LuCI.form.AbstractSection.html#tab">tab</a></li>
304             
305                 <li data-name="LuCI.form.AbstractSection#taboption"><a href="LuCI.form.AbstractSection.html#taboption">taboption</a></li>
306             
307                 <li data-name="LuCI.form.AbstractSection#titleFn"><a href="LuCI.form.AbstractSection.html#titleFn">titleFn</a></li>
308             
309             </ul>
310             <ul class="events itemMembers">
311             
312             </ul>
313         </li>
314     
315         <li class="item" data-name="LuCI.form.AbstractValue">
316             <span class="title">
317                 <a href="LuCI.form.AbstractValue.html">LuCI.form.AbstractValue</a>
318                 
319             </span>
320             <ul class="members itemMembers">
321             
322             <span class="subtitle">Members</span>
323             
324                 <li data-name="LuCI.form.AbstractValue##datatype"><a href="LuCI.form.AbstractValue.html#datatype">datatype</a></li>
325             
326                 <li data-name="LuCI.form.AbstractValue##default"><a href="LuCI.form.AbstractValue.html#default">default</a></li>
327             
328                 <li data-name="LuCI.form.AbstractValue##editable"><a href="LuCI.form.AbstractValue.html#editable">editable</a></li>
329             
330                 <li data-name="LuCI.form.AbstractValue##modalonly"><a href="LuCI.form.AbstractValue.html#modalonly">modalonly</a></li>
331             
332                 <li data-name="LuCI.form.AbstractValue##optional"><a href="LuCI.form.AbstractValue.html#optional">optional</a></li>
333             
334                 <li data-name="LuCI.form.AbstractValue##rmempty"><a href="LuCI.form.AbstractValue.html#rmempty">rmempty</a></li>
335             
336                 <li data-name="LuCI.form.AbstractValue##uciconfig"><a href="LuCI.form.AbstractValue.html#uciconfig">uciconfig</a></li>
337             
338                 <li data-name="LuCI.form.AbstractValue##ucioption"><a href="LuCI.form.AbstractValue.html#ucioption">ucioption</a></li>
339             
340                 <li data-name="LuCI.form.AbstractValue##ucisection"><a href="LuCI.form.AbstractValue.html#ucisection">ucisection</a></li>
341             
342                 <li data-name="LuCI.form.AbstractValue##validate"><a href="LuCI.form.AbstractValue.html#validate">validate</a></li>
343             
344                 <li data-name="LuCI.form.AbstractValue##width"><a href="LuCI.form.AbstractValue.html#width">width</a></li>
345             
346             </ul>
347             <ul class="typedefs itemMembers">
348             
349             </ul>
350             <ul class="typedefs itemMembers">
351             
352             </ul>
353             <ul class="methods itemMembers">
354             
355             <span class="subtitle">Methods</span>
356             
357                 <li data-name="LuCI.form.AbstractValue#append"><a href="LuCI.form.AbstractValue.html#append">append</a></li>
358             
359                 <li data-name="LuCI.form.AbstractValue#cbid"><a href="LuCI.form.AbstractValue.html#cbid">cbid</a></li>
360             
361                 <li data-name="LuCI.form.AbstractValue#cfgvalue"><a href="LuCI.form.AbstractValue.html#cfgvalue">cfgvalue</a></li>
362             
363                 <li data-name="LuCI.form.AbstractValue#depends"><a href="LuCI.form.AbstractValue.html#depends">depends</a></li>
364             
365                 <li data-name="LuCI.form.AbstractValue#formvalue"><a href="LuCI.form.AbstractValue.html#formvalue">formvalue</a></li>
366             
367                 <li data-name="LuCI.form.AbstractValue#getUIElement"><a href="LuCI.form.AbstractValue.html#getUIElement">getUIElement</a></li>
368             
369                 <li data-name="LuCI.form.AbstractValue#isActive"><a href="LuCI.form.AbstractValue.html#isActive">isActive</a></li>
370             
371                 <li data-name="LuCI.form.AbstractValue#isValid"><a href="LuCI.form.AbstractValue.html#isValid">isValid</a></li>
372             
373                 <li data-name="LuCI.form.AbstractValue#load"><a href="LuCI.form.AbstractValue.html#load">load</a></li>
374             
375                 <li data-name="LuCI.form.AbstractValue#parse"><a href="LuCI.form.AbstractValue.html#parse">parse</a></li>
376             
377                 <li data-name="LuCI.form.AbstractValue#remove"><a href="LuCI.form.AbstractValue.html#remove">remove</a></li>
378             
379                 <li data-name="LuCI.form.AbstractValue#render"><a href="LuCI.form.AbstractValue.html#render">render</a></li>
380             
381                 <li data-name="LuCI.form.AbstractValue#stripTags"><a href="LuCI.form.AbstractValue.html#stripTags">stripTags</a></li>
382             
383                 <li data-name="LuCI.form.AbstractValue#textvalue"><a href="LuCI.form.AbstractValue.html#textvalue">textvalue</a></li>
384             
385                 <li data-name="LuCI.form.AbstractValue#titleFn"><a href="LuCI.form.AbstractValue.html#titleFn">titleFn</a></li>
386             
387                 <li data-name="LuCI.form.AbstractValue#validate"><a href="LuCI.form.AbstractValue.html#validate">validate</a></li>
388             
389                 <li data-name="LuCI.form.AbstractValue#write"><a href="LuCI.form.AbstractValue.html#write">write</a></li>
390             
391             </ul>
392             <ul class="events itemMembers">
393             
394             </ul>
395         </li>
396     
397         <li class="item" data-name="LuCI.form.ButtonValue">
398             <span class="title">
399                 <a href="LuCI.form.ButtonValue.html">LuCI.form.ButtonValue</a>
400                 
401             </span>
402             <ul class="members itemMembers">
403             
404             <span class="subtitle">Members</span>
405             
406                 <li data-name="LuCI.form.ButtonValue##inputstyle"><a href="LuCI.form.ButtonValue.html#inputstyle">inputstyle</a></li>
407             
408                 <li data-name="LuCI.form.ButtonValue##inputtitle"><a href="LuCI.form.ButtonValue.html#inputtitle">inputtitle</a></li>
409             
410                 <li data-name="LuCI.form.ButtonValue##onclick"><a href="LuCI.form.ButtonValue.html#onclick">onclick</a></li>
411             
412                 <li data-name="LuCI.form.ButtonValue#datatype"><a href="LuCI.form.ButtonValue.html#datatype">datatype</a></li>
413             
414                 <li data-name="LuCI.form.ButtonValue#default"><a href="LuCI.form.ButtonValue.html#default">default</a></li>
415             
416                 <li data-name="LuCI.form.ButtonValue#editable"><a href="LuCI.form.ButtonValue.html#editable">editable</a></li>
417             
418                 <li data-name="LuCI.form.ButtonValue#modalonly"><a href="LuCI.form.ButtonValue.html#modalonly">modalonly</a></li>
419             
420                 <li data-name="LuCI.form.ButtonValue#optional"><a href="LuCI.form.ButtonValue.html#optional">optional</a></li>
421             
422                 <li data-name="LuCI.form.ButtonValue#password"><a href="LuCI.form.ButtonValue.html#password">password</a></li>
423             
424                 <li data-name="LuCI.form.ButtonValue#placeholder"><a href="LuCI.form.ButtonValue.html#placeholder">placeholder</a></li>
425             
426                 <li data-name="LuCI.form.ButtonValue#rmempty"><a href="LuCI.form.ButtonValue.html#rmempty">rmempty</a></li>
427             
428                 <li data-name="LuCI.form.ButtonValue#uciconfig"><a href="LuCI.form.ButtonValue.html#uciconfig">uciconfig</a></li>
429             
430                 <li data-name="LuCI.form.ButtonValue#ucioption"><a href="LuCI.form.ButtonValue.html#ucioption">ucioption</a></li>
431             
432                 <li data-name="LuCI.form.ButtonValue#ucisection"><a href="LuCI.form.ButtonValue.html#ucisection">ucisection</a></li>
433             
434                 <li data-name="LuCI.form.ButtonValue#validate"><a href="LuCI.form.ButtonValue.html#validate">validate</a></li>
435             
436                 <li data-name="LuCI.form.ButtonValue#width"><a href="LuCI.form.ButtonValue.html#width">width</a></li>
437             
438             </ul>
439             <ul class="typedefs itemMembers">
440             
441             </ul>
442             <ul class="typedefs itemMembers">
443             
444             </ul>
445             <ul class="methods itemMembers">
446             
447             <span class="subtitle">Methods</span>
448             
449                 <li data-name="LuCI.form.ButtonValue#append"><a href="LuCI.form.ButtonValue.html#append">append</a></li>
450             
451                 <li data-name="LuCI.form.ButtonValue#cbid"><a href="LuCI.form.ButtonValue.html#cbid">cbid</a></li>
452             
453                 <li data-name="LuCI.form.ButtonValue#cfgvalue"><a href="LuCI.form.ButtonValue.html#cfgvalue">cfgvalue</a></li>
454             
455                 <li data-name="LuCI.form.ButtonValue#depends"><a href="LuCI.form.ButtonValue.html#depends">depends</a></li>
456             
457                 <li data-name="LuCI.form.ButtonValue#formvalue"><a href="LuCI.form.ButtonValue.html#formvalue">formvalue</a></li>
458             
459                 <li data-name="LuCI.form.ButtonValue#getUIElement"><a href="LuCI.form.ButtonValue.html#getUIElement">getUIElement</a></li>
460             
461                 <li data-name="LuCI.form.ButtonValue#isActive"><a href="LuCI.form.ButtonValue.html#isActive">isActive</a></li>
462             
463                 <li data-name="LuCI.form.ButtonValue#isValid"><a href="LuCI.form.ButtonValue.html#isValid">isValid</a></li>
464             
465                 <li data-name="LuCI.form.ButtonValue#load"><a href="LuCI.form.ButtonValue.html#load">load</a></li>
466             
467                 <li data-name="LuCI.form.ButtonValue#parse"><a href="LuCI.form.ButtonValue.html#parse">parse</a></li>
468             
469                 <li data-name="LuCI.form.ButtonValue#remove"><a href="LuCI.form.ButtonValue.html#remove">remove</a></li>
470             
471                 <li data-name="LuCI.form.ButtonValue#stripTags"><a href="LuCI.form.ButtonValue.html#stripTags">stripTags</a></li>
472             
473                 <li data-name="LuCI.form.ButtonValue#textvalue"><a href="LuCI.form.ButtonValue.html#textvalue">textvalue</a></li>
474             
475                 <li data-name="LuCI.form.ButtonValue#titleFn"><a href="LuCI.form.ButtonValue.html#titleFn">titleFn</a></li>
476             
477                 <li data-name="LuCI.form.ButtonValue#value"><a href="LuCI.form.ButtonValue.html#value">value</a></li>
478             
479                 <li data-name="LuCI.form.ButtonValue#write"><a href="LuCI.form.ButtonValue.html#write">write</a></li>
480             
481             </ul>
482             <ul class="events itemMembers">
483             
484             </ul>
485         </li>
486     
487         <li class="item" data-name="LuCI.form.DummyValue">
488             <span class="title">
489                 <a href="LuCI.form.DummyValue.html">LuCI.form.DummyValue</a>
490                 
491             </span>
492             <ul class="members itemMembers">
493             
494             <span class="subtitle">Members</span>
495             
496                 <li data-name="LuCI.form.DummyValue##href"><a href="LuCI.form.DummyValue.html#href">href</a></li>
497             
498                 <li data-name="LuCI.form.DummyValue##rawhtml"><a href="LuCI.form.DummyValue.html#rawhtml">rawhtml</a></li>
499             
500                 <li data-name="LuCI.form.DummyValue#datatype"><a href="LuCI.form.DummyValue.html#datatype">datatype</a></li>
501             
502                 <li data-name="LuCI.form.DummyValue#default"><a href="LuCI.form.DummyValue.html#default">default</a></li>
503             
504                 <li data-name="LuCI.form.DummyValue#editable"><a href="LuCI.form.DummyValue.html#editable">editable</a></li>
505             
506                 <li data-name="LuCI.form.DummyValue#modalonly"><a href="LuCI.form.DummyValue.html#modalonly">modalonly</a></li>
507             
508                 <li data-name="LuCI.form.DummyValue#optional"><a href="LuCI.form.DummyValue.html#optional">optional</a></li>
509             
510                 <li data-name="LuCI.form.DummyValue#password"><a href="LuCI.form.DummyValue.html#password">password</a></li>
511             
512                 <li data-name="LuCI.form.DummyValue#placeholder"><a href="LuCI.form.DummyValue.html#placeholder">placeholder</a></li>
513             
514                 <li data-name="LuCI.form.DummyValue#rmempty"><a href="LuCI.form.DummyValue.html#rmempty">rmempty</a></li>
515             
516                 <li data-name="LuCI.form.DummyValue#uciconfig"><a href="LuCI.form.DummyValue.html#uciconfig">uciconfig</a></li>
517             
518                 <li data-name="LuCI.form.DummyValue#ucioption"><a href="LuCI.form.DummyValue.html#ucioption">ucioption</a></li>
519             
520                 <li data-name="LuCI.form.DummyValue#ucisection"><a href="LuCI.form.DummyValue.html#ucisection">ucisection</a></li>
521             
522                 <li data-name="LuCI.form.DummyValue#validate"><a href="LuCI.form.DummyValue.html#validate">validate</a></li>
523             
524                 <li data-name="LuCI.form.DummyValue#width"><a href="LuCI.form.DummyValue.html#width">width</a></li>
525             
526             </ul>
527             <ul class="typedefs itemMembers">
528             
529             </ul>
530             <ul class="typedefs itemMembers">
531             
532             </ul>
533             <ul class="methods itemMembers">
534             
535             <span class="subtitle">Methods</span>
536             
537                 <li data-name="LuCI.form.DummyValue#append"><a href="LuCI.form.DummyValue.html#append">append</a></li>
538             
539                 <li data-name="LuCI.form.DummyValue#cbid"><a href="LuCI.form.DummyValue.html#cbid">cbid</a></li>
540             
541                 <li data-name="LuCI.form.DummyValue#cfgvalue"><a href="LuCI.form.DummyValue.html#cfgvalue">cfgvalue</a></li>
542             
543                 <li data-name="LuCI.form.DummyValue#depends"><a href="LuCI.form.DummyValue.html#depends">depends</a></li>
544             
545                 <li data-name="LuCI.form.DummyValue#formvalue"><a href="LuCI.form.DummyValue.html#formvalue">formvalue</a></li>
546             
547                 <li data-name="LuCI.form.DummyValue#getUIElement"><a href="LuCI.form.DummyValue.html#getUIElement">getUIElement</a></li>
548             
549                 <li data-name="LuCI.form.DummyValue#isActive"><a href="LuCI.form.DummyValue.html#isActive">isActive</a></li>
550             
551                 <li data-name="LuCI.form.DummyValue#isValid"><a href="LuCI.form.DummyValue.html#isValid">isValid</a></li>
552             
553                 <li data-name="LuCI.form.DummyValue#load"><a href="LuCI.form.DummyValue.html#load">load</a></li>
554             
555                 <li data-name="LuCI.form.DummyValue#parse"><a href="LuCI.form.DummyValue.html#parse">parse</a></li>
556             
557                 <li data-name="LuCI.form.DummyValue#remove"><a href="LuCI.form.DummyValue.html#remove">remove</a></li>
558             
559                 <li data-name="LuCI.form.DummyValue#stripTags"><a href="LuCI.form.DummyValue.html#stripTags">stripTags</a></li>
560             
561                 <li data-name="LuCI.form.DummyValue#textvalue"><a href="LuCI.form.DummyValue.html#textvalue">textvalue</a></li>
562             
563                 <li data-name="LuCI.form.DummyValue#titleFn"><a href="LuCI.form.DummyValue.html#titleFn">titleFn</a></li>
564             
565                 <li data-name="LuCI.form.DummyValue#value"><a href="LuCI.form.DummyValue.html#value">value</a></li>
566             
567                 <li data-name="LuCI.form.DummyValue#write"><a href="LuCI.form.DummyValue.html#write">write</a></li>
568             
569             </ul>
570             <ul class="events itemMembers">
571             
572             </ul>
573         </li>
574     
575         <li class="item" data-name="LuCI.form.DynamicList">
576             <span class="title">
577                 <a href="LuCI.form.DynamicList.html">LuCI.form.DynamicList</a>
578                 
579             </span>
580             <ul class="members itemMembers">
581             
582             <span class="subtitle">Members</span>
583             
584                 <li data-name="LuCI.form.DynamicList#datatype"><a href="LuCI.form.DynamicList.html#datatype">datatype</a></li>
585             
586                 <li data-name="LuCI.form.DynamicList#default"><a href="LuCI.form.DynamicList.html#default">default</a></li>
587             
588                 <li data-name="LuCI.form.DynamicList#editable"><a href="LuCI.form.DynamicList.html#editable">editable</a></li>
589             
590                 <li data-name="LuCI.form.DynamicList#modalonly"><a href="LuCI.form.DynamicList.html#modalonly">modalonly</a></li>
591             
592                 <li data-name="LuCI.form.DynamicList#optional"><a href="LuCI.form.DynamicList.html#optional">optional</a></li>
593             
594                 <li data-name="LuCI.form.DynamicList#password"><a href="LuCI.form.DynamicList.html#password">password</a></li>
595             
596                 <li data-name="LuCI.form.DynamicList#placeholder"><a href="LuCI.form.DynamicList.html#placeholder">placeholder</a></li>
597             
598                 <li data-name="LuCI.form.DynamicList#rmempty"><a href="LuCI.form.DynamicList.html#rmempty">rmempty</a></li>
599             
600                 <li data-name="LuCI.form.DynamicList#uciconfig"><a href="LuCI.form.DynamicList.html#uciconfig">uciconfig</a></li>
601             
602                 <li data-name="LuCI.form.DynamicList#ucioption"><a href="LuCI.form.DynamicList.html#ucioption">ucioption</a></li>
603             
604                 <li data-name="LuCI.form.DynamicList#ucisection"><a href="LuCI.form.DynamicList.html#ucisection">ucisection</a></li>
605             
606                 <li data-name="LuCI.form.DynamicList#validate"><a href="LuCI.form.DynamicList.html#validate">validate</a></li>
607             
608                 <li data-name="LuCI.form.DynamicList#width"><a href="LuCI.form.DynamicList.html#width">width</a></li>
609             
610             </ul>
611             <ul class="typedefs itemMembers">
612             
613             </ul>
614             <ul class="typedefs itemMembers">
615             
616             </ul>
617             <ul class="methods itemMembers">
618             
619             <span class="subtitle">Methods</span>
620             
621                 <li data-name="LuCI.form.DynamicList#append"><a href="LuCI.form.DynamicList.html#append">append</a></li>
622             
623                 <li data-name="LuCI.form.DynamicList#cbid"><a href="LuCI.form.DynamicList.html#cbid">cbid</a></li>
624             
625                 <li data-name="LuCI.form.DynamicList#cfgvalue"><a href="LuCI.form.DynamicList.html#cfgvalue">cfgvalue</a></li>
626             
627                 <li data-name="LuCI.form.DynamicList#depends"><a href="LuCI.form.DynamicList.html#depends">depends</a></li>
628             
629                 <li data-name="LuCI.form.DynamicList#formvalue"><a href="LuCI.form.DynamicList.html#formvalue">formvalue</a></li>
630             
631                 <li data-name="LuCI.form.DynamicList#getUIElement"><a href="LuCI.form.DynamicList.html#getUIElement">getUIElement</a></li>
632             
633                 <li data-name="LuCI.form.DynamicList#isActive"><a href="LuCI.form.DynamicList.html#isActive">isActive</a></li>
634             
635                 <li data-name="LuCI.form.DynamicList#isValid"><a href="LuCI.form.DynamicList.html#isValid">isValid</a></li>
636             
637                 <li data-name="LuCI.form.DynamicList#load"><a href="LuCI.form.DynamicList.html#load">load</a></li>
638             
639                 <li data-name="LuCI.form.DynamicList#parse"><a href="LuCI.form.DynamicList.html#parse">parse</a></li>
640             
641                 <li data-name="LuCI.form.DynamicList#remove"><a href="LuCI.form.DynamicList.html#remove">remove</a></li>
642             
643                 <li data-name="LuCI.form.DynamicList#stripTags"><a href="LuCI.form.DynamicList.html#stripTags">stripTags</a></li>
644             
645                 <li data-name="LuCI.form.DynamicList#textvalue"><a href="LuCI.form.DynamicList.html#textvalue">textvalue</a></li>
646             
647                 <li data-name="LuCI.form.DynamicList#titleFn"><a href="LuCI.form.DynamicList.html#titleFn">titleFn</a></li>
648             
649                 <li data-name="LuCI.form.DynamicList#value"><a href="LuCI.form.DynamicList.html#value">value</a></li>
650             
651                 <li data-name="LuCI.form.DynamicList#write"><a href="LuCI.form.DynamicList.html#write">write</a></li>
652             
653             </ul>
654             <ul class="events itemMembers">
655             
656             </ul>
657         </li>
658     
659         <li class="item" data-name="LuCI.form.FileUpload">
660             <span class="title">
661                 <a href="LuCI.form.FileUpload.html">LuCI.form.FileUpload</a>
662                 
663             </span>
664             <ul class="members itemMembers">
665             
666             <span class="subtitle">Members</span>
667             
668                 <li data-name="LuCI.form.FileUpload##enable_remove"><a href="LuCI.form.FileUpload.html#enable_remove">enable_remove</a></li>
669             
670                 <li data-name="LuCI.form.FileUpload##enable_upload"><a href="LuCI.form.FileUpload.html#enable_upload">enable_upload</a></li>
671             
672                 <li data-name="LuCI.form.FileUpload##root_directory"><a href="LuCI.form.FileUpload.html#root_directory">root_directory</a></li>
673             
674                 <li data-name="LuCI.form.FileUpload##show_hidden"><a href="LuCI.form.FileUpload.html#show_hidden">show_hidden</a></li>
675             
676                 <li data-name="LuCI.form.FileUpload#datatype"><a href="LuCI.form.FileUpload.html#datatype">datatype</a></li>
677             
678                 <li data-name="LuCI.form.FileUpload#default"><a href="LuCI.form.FileUpload.html#default">default</a></li>
679             
680                 <li data-name="LuCI.form.FileUpload#editable"><a href="LuCI.form.FileUpload.html#editable">editable</a></li>
681             
682                 <li data-name="LuCI.form.FileUpload#modalonly"><a href="LuCI.form.FileUpload.html#modalonly">modalonly</a></li>
683             
684                 <li data-name="LuCI.form.FileUpload#optional"><a href="LuCI.form.FileUpload.html#optional">optional</a></li>
685             
686                 <li data-name="LuCI.form.FileUpload#password"><a href="LuCI.form.FileUpload.html#password">password</a></li>
687             
688                 <li data-name="LuCI.form.FileUpload#placeholder"><a href="LuCI.form.FileUpload.html#placeholder">placeholder</a></li>
689             
690                 <li data-name="LuCI.form.FileUpload#rmempty"><a href="LuCI.form.FileUpload.html#rmempty">rmempty</a></li>
691             
692                 <li data-name="LuCI.form.FileUpload#uciconfig"><a href="LuCI.form.FileUpload.html#uciconfig">uciconfig</a></li>
693             
694                 <li data-name="LuCI.form.FileUpload#ucioption"><a href="LuCI.form.FileUpload.html#ucioption">ucioption</a></li>
695             
696                 <li data-name="LuCI.form.FileUpload#ucisection"><a href="LuCI.form.FileUpload.html#ucisection">ucisection</a></li>
697             
698                 <li data-name="LuCI.form.FileUpload#validate"><a href="LuCI.form.FileUpload.html#validate">validate</a></li>
699             
700                 <li data-name="LuCI.form.FileUpload#width"><a href="LuCI.form.FileUpload.html#width">width</a></li>
701             
702             </ul>
703             <ul class="typedefs itemMembers">
704             
705             </ul>
706             <ul class="typedefs itemMembers">
707             
708             </ul>
709             <ul class="methods itemMembers">
710             
711             <span class="subtitle">Methods</span>
712             
713                 <li data-name="LuCI.form.FileUpload#append"><a href="LuCI.form.FileUpload.html#append">append</a></li>
714             
715                 <li data-name="LuCI.form.FileUpload#cbid"><a href="LuCI.form.FileUpload.html#cbid">cbid</a></li>
716             
717                 <li data-name="LuCI.form.FileUpload#cfgvalue"><a href="LuCI.form.FileUpload.html#cfgvalue">cfgvalue</a></li>
718             
719                 <li data-name="LuCI.form.FileUpload#depends"><a href="LuCI.form.FileUpload.html#depends">depends</a></li>
720             
721                 <li data-name="LuCI.form.FileUpload#formvalue"><a href="LuCI.form.FileUpload.html#formvalue">formvalue</a></li>
722             
723                 <li data-name="LuCI.form.FileUpload#getUIElement"><a href="LuCI.form.FileUpload.html#getUIElement">getUIElement</a></li>
724             
725                 <li data-name="LuCI.form.FileUpload#isActive"><a href="LuCI.form.FileUpload.html#isActive">isActive</a></li>
726             
727                 <li data-name="LuCI.form.FileUpload#isValid"><a href="LuCI.form.FileUpload.html#isValid">isValid</a></li>
728             
729                 <li data-name="LuCI.form.FileUpload#load"><a href="LuCI.form.FileUpload.html#load">load</a></li>
730             
731                 <li data-name="LuCI.form.FileUpload#parse"><a href="LuCI.form.FileUpload.html#parse">parse</a></li>
732             
733                 <li data-name="LuCI.form.FileUpload#remove"><a href="LuCI.form.FileUpload.html#remove">remove</a></li>
734             
735                 <li data-name="LuCI.form.FileUpload#stripTags"><a href="LuCI.form.FileUpload.html#stripTags">stripTags</a></li>
736             
737                 <li data-name="LuCI.form.FileUpload#textvalue"><a href="LuCI.form.FileUpload.html#textvalue">textvalue</a></li>
738             
739                 <li data-name="LuCI.form.FileUpload#titleFn"><a href="LuCI.form.FileUpload.html#titleFn">titleFn</a></li>
740             
741                 <li data-name="LuCI.form.FileUpload#value"><a href="LuCI.form.FileUpload.html#value">value</a></li>
742             
743                 <li data-name="LuCI.form.FileUpload#write"><a href="LuCI.form.FileUpload.html#write">write</a></li>
744             
745             </ul>
746             <ul class="events itemMembers">
747             
748             </ul>
749         </li>
750     
751         <li class="item" data-name="LuCI.form.FlagValue">
752             <span class="title">
753                 <a href="LuCI.form.FlagValue.html">LuCI.form.FlagValue</a>
754                 
755             </span>
756             <ul class="members itemMembers">
757             
758             <span class="subtitle">Members</span>
759             
760                 <li data-name="LuCI.form.FlagValue##disabled"><a href="LuCI.form.FlagValue.html#disabled">disabled</a></li>
761             
762                 <li data-name="LuCI.form.FlagValue##enabled"><a href="LuCI.form.FlagValue.html#enabled">enabled</a></li>
763             
764                 <li data-name="LuCI.form.FlagValue#datatype"><a href="LuCI.form.FlagValue.html#datatype">datatype</a></li>
765             
766                 <li data-name="LuCI.form.FlagValue#default"><a href="LuCI.form.FlagValue.html#default">default</a></li>
767             
768                 <li data-name="LuCI.form.FlagValue#editable"><a href="LuCI.form.FlagValue.html#editable">editable</a></li>
769             
770                 <li data-name="LuCI.form.FlagValue#modalonly"><a href="LuCI.form.FlagValue.html#modalonly">modalonly</a></li>
771             
772                 <li data-name="LuCI.form.FlagValue#optional"><a href="LuCI.form.FlagValue.html#optional">optional</a></li>
773             
774                 <li data-name="LuCI.form.FlagValue#password"><a href="LuCI.form.FlagValue.html#password">password</a></li>
775             
776                 <li data-name="LuCI.form.FlagValue#placeholder"><a href="LuCI.form.FlagValue.html#placeholder">placeholder</a></li>
777             
778                 <li data-name="LuCI.form.FlagValue#rmempty"><a href="LuCI.form.FlagValue.html#rmempty">rmempty</a></li>
779             
780                 <li data-name="LuCI.form.FlagValue#uciconfig"><a href="LuCI.form.FlagValue.html#uciconfig">uciconfig</a></li>
781             
782                 <li data-name="LuCI.form.FlagValue#ucioption"><a href="LuCI.form.FlagValue.html#ucioption">ucioption</a></li>
783             
784                 <li data-name="LuCI.form.FlagValue#ucisection"><a href="LuCI.form.FlagValue.html#ucisection">ucisection</a></li>
785             
786                 <li data-name="LuCI.form.FlagValue#validate"><a href="LuCI.form.FlagValue.html#validate">validate</a></li>
787             
788                 <li data-name="LuCI.form.FlagValue#width"><a href="LuCI.form.FlagValue.html#width">width</a></li>
789             
790             </ul>
791             <ul class="typedefs itemMembers">
792             
793             </ul>
794             <ul class="typedefs itemMembers">
795             
796             </ul>
797             <ul class="methods itemMembers">
798             
799             <span class="subtitle">Methods</span>
800             
801                 <li data-name="LuCI.form.FlagValue#append"><a href="LuCI.form.FlagValue.html#append">append</a></li>
802             
803                 <li data-name="LuCI.form.FlagValue#cbid"><a href="LuCI.form.FlagValue.html#cbid">cbid</a></li>
804             
805                 <li data-name="LuCI.form.FlagValue#cfgvalue"><a href="LuCI.form.FlagValue.html#cfgvalue">cfgvalue</a></li>
806             
807                 <li data-name="LuCI.form.FlagValue#depends"><a href="LuCI.form.FlagValue.html#depends">depends</a></li>
808             
809                 <li data-name="LuCI.form.FlagValue#formvalue"><a href="LuCI.form.FlagValue.html#formvalue">formvalue</a></li>
810             
811                 <li data-name="LuCI.form.FlagValue#getUIElement"><a href="LuCI.form.FlagValue.html#getUIElement">getUIElement</a></li>
812             
813                 <li data-name="LuCI.form.FlagValue#isActive"><a href="LuCI.form.FlagValue.html#isActive">isActive</a></li>
814             
815                 <li data-name="LuCI.form.FlagValue#isValid"><a href="LuCI.form.FlagValue.html#isValid">isValid</a></li>
816             
817                 <li data-name="LuCI.form.FlagValue#load"><a href="LuCI.form.FlagValue.html#load">load</a></li>
818             
819                 <li data-name="LuCI.form.FlagValue#parse"><a href="LuCI.form.FlagValue.html#parse">parse</a></li>
820             
821                 <li data-name="LuCI.form.FlagValue#remove"><a href="LuCI.form.FlagValue.html#remove">remove</a></li>
822             
823                 <li data-name="LuCI.form.FlagValue#stripTags"><a href="LuCI.form.FlagValue.html#stripTags">stripTags</a></li>
824             
825                 <li data-name="LuCI.form.FlagValue#textvalue"><a href="LuCI.form.FlagValue.html#textvalue">textvalue</a></li>
826             
827                 <li data-name="LuCI.form.FlagValue#titleFn"><a href="LuCI.form.FlagValue.html#titleFn">titleFn</a></li>
828             
829                 <li data-name="LuCI.form.FlagValue#value"><a href="LuCI.form.FlagValue.html#value">value</a></li>
830             
831                 <li data-name="LuCI.form.FlagValue#write"><a href="LuCI.form.FlagValue.html#write">write</a></li>
832             
833             </ul>
834             <ul class="events itemMembers">
835             
836             </ul>
837         </li>
838     
839         <li class="item" data-name="LuCI.form.GridSection">
840             <span class="title">
841                 <a href="LuCI.form.GridSection.html">LuCI.form.GridSection</a>
842                 
843             </span>
844             <ul class="members itemMembers">
845             
846             <span class="subtitle">Members</span>
847             
848                 <li data-name="LuCI.form.GridSection#addbtntitle"><a href="LuCI.form.GridSection.html#addbtntitle">addbtntitle</a></li>
849             
850                 <li data-name="LuCI.form.GridSection#addremove"><a href="LuCI.form.GridSection.html#addremove">addremove</a></li>
851             
852                 <li data-name="LuCI.form.GridSection#anonymous"><a href="LuCI.form.GridSection.html#anonymous">anonymous</a></li>
853             
854                 <li data-name="LuCI.form.GridSection#extedit"><a href="LuCI.form.GridSection.html#extedit">extedit</a></li>
855             
856                 <li data-name="LuCI.form.GridSection#max_cols"><a href="LuCI.form.GridSection.html#max_cols">max_cols</a></li>
857             
858                 <li data-name="LuCI.form.GridSection#modaltitle"><a href="LuCI.form.GridSection.html#modaltitle">modaltitle</a></li>
859             
860                 <li data-name="LuCI.form.GridSection#parentoption"><a href="LuCI.form.GridSection.html#parentoption">parentoption</a></li>
861             
862                 <li data-name="LuCI.form.GridSection#rowcolors"><a href="LuCI.form.GridSection.html#rowcolors">rowcolors</a></li>
863             
864                 <li data-name="LuCI.form.GridSection#sectiontitle"><a href="LuCI.form.GridSection.html#sectiontitle">sectiontitle</a></li>
865             
866                 <li data-name="LuCI.form.GridSection#sortable"><a href="LuCI.form.GridSection.html#sortable">sortable</a></li>
867             
868                 <li data-name="LuCI.form.GridSection#tabbed"><a href="LuCI.form.GridSection.html#tabbed">tabbed</a></li>
869             
870                 <li data-name="LuCI.form.GridSection#uciconfig"><a href="LuCI.form.GridSection.html#uciconfig">uciconfig</a></li>
871             
872             </ul>
873             <ul class="typedefs itemMembers">
874             
875             </ul>
876             <ul class="typedefs itemMembers">
877             
878             </ul>
879             <ul class="methods itemMembers">
880             
881             <span class="subtitle">Methods</span>
882             
883                 <li data-name="LuCI.form.GridSection#addModalOptions"><a href="LuCI.form.GridSection.html#addModalOptions">addModalOptions</a></li>
884             
885                 <li data-name="LuCI.form.GridSection#append"><a href="LuCI.form.GridSection.html#append">append</a></li>
886             
887                 <li data-name="LuCI.form.GridSection#filter"><a href="LuCI.form.GridSection.html#filter">filter</a></li>
888             
889                 <li data-name="LuCI.form.GridSection#load"><a href="LuCI.form.GridSection.html#load">load</a></li>
890             
891                 <li data-name="LuCI.form.GridSection#option"><a href="LuCI.form.GridSection.html#option">option</a></li>
892             
893                 <li data-name="LuCI.form.GridSection#parse"><a href="LuCI.form.GridSection.html#parse">parse</a></li>
894             
895                 <li data-name="LuCI.form.GridSection#stripTags"><a href="LuCI.form.GridSection.html#stripTags">stripTags</a></li>
896             
897                 <li data-name="LuCI.form.GridSection#tab"><a href="LuCI.form.GridSection.html#tab">tab</a></li>
898             
899                 <li data-name="LuCI.form.GridSection#taboption"><a href="LuCI.form.GridSection.html#taboption">taboption</a></li>
900             
901                 <li data-name="LuCI.form.GridSection#titleFn"><a href="LuCI.form.GridSection.html#titleFn">titleFn</a></li>
902             
903             </ul>
904             <ul class="events itemMembers">
905             
906             </ul>
907         </li>
908     
909         <li class="item" data-name="LuCI.form.HiddenValue">
910             <span class="title">
911                 <a href="LuCI.form.HiddenValue.html">LuCI.form.HiddenValue</a>
912                 
913             </span>
914             <ul class="members itemMembers">
915             
916             <span class="subtitle">Members</span>
917             
918                 <li data-name="LuCI.form.HiddenValue#datatype"><a href="LuCI.form.HiddenValue.html#datatype">datatype</a></li>
919             
920                 <li data-name="LuCI.form.HiddenValue#default"><a href="LuCI.form.HiddenValue.html#default">default</a></li>
921             
922                 <li data-name="LuCI.form.HiddenValue#editable"><a href="LuCI.form.HiddenValue.html#editable">editable</a></li>
923             
924                 <li data-name="LuCI.form.HiddenValue#modalonly"><a href="LuCI.form.HiddenValue.html#modalonly">modalonly</a></li>
925             
926                 <li data-name="LuCI.form.HiddenValue#optional"><a href="LuCI.form.HiddenValue.html#optional">optional</a></li>
927             
928                 <li data-name="LuCI.form.HiddenValue#password"><a href="LuCI.form.HiddenValue.html#password">password</a></li>
929             
930                 <li data-name="LuCI.form.HiddenValue#placeholder"><a href="LuCI.form.HiddenValue.html#placeholder">placeholder</a></li>
931             
932                 <li data-name="LuCI.form.HiddenValue#rmempty"><a href="LuCI.form.HiddenValue.html#rmempty">rmempty</a></li>
933             
934                 <li data-name="LuCI.form.HiddenValue#uciconfig"><a href="LuCI.form.HiddenValue.html#uciconfig">uciconfig</a></li>
935             
936                 <li data-name="LuCI.form.HiddenValue#ucioption"><a href="LuCI.form.HiddenValue.html#ucioption">ucioption</a></li>
937             
938                 <li data-name="LuCI.form.HiddenValue#ucisection"><a href="LuCI.form.HiddenValue.html#ucisection">ucisection</a></li>
939             
940                 <li data-name="LuCI.form.HiddenValue#validate"><a href="LuCI.form.HiddenValue.html#validate">validate</a></li>
941             
942                 <li data-name="LuCI.form.HiddenValue#width"><a href="LuCI.form.HiddenValue.html#width">width</a></li>
943             
944             </ul>
945             <ul class="typedefs itemMembers">
946             
947             </ul>
948             <ul class="typedefs itemMembers">
949             
950             </ul>
951             <ul class="methods itemMembers">
952             
953             <span class="subtitle">Methods</span>
954             
955                 <li data-name="LuCI.form.HiddenValue#append"><a href="LuCI.form.HiddenValue.html#append">append</a></li>
956             
957                 <li data-name="LuCI.form.HiddenValue#cbid"><a href="LuCI.form.HiddenValue.html#cbid">cbid</a></li>
958             
959                 <li data-name="LuCI.form.HiddenValue#cfgvalue"><a href="LuCI.form.HiddenValue.html#cfgvalue">cfgvalue</a></li>
960             
961                 <li data-name="LuCI.form.HiddenValue#depends"><a href="LuCI.form.HiddenValue.html#depends">depends</a></li>
962             
963                 <li data-name="LuCI.form.HiddenValue#formvalue"><a href="LuCI.form.HiddenValue.html#formvalue">formvalue</a></li>
964             
965                 <li data-name="LuCI.form.HiddenValue#getUIElement"><a href="LuCI.form.HiddenValue.html#getUIElement">getUIElement</a></li>
966             
967                 <li data-name="LuCI.form.HiddenValue#isActive"><a href="LuCI.form.HiddenValue.html#isActive">isActive</a></li>
968             
969                 <li data-name="LuCI.form.HiddenValue#isValid"><a href="LuCI.form.HiddenValue.html#isValid">isValid</a></li>
970             
971                 <li data-name="LuCI.form.HiddenValue#load"><a href="LuCI.form.HiddenValue.html#load">load</a></li>
972             
973                 <li data-name="LuCI.form.HiddenValue#parse"><a href="LuCI.form.HiddenValue.html#parse">parse</a></li>
974             
975                 <li data-name="LuCI.form.HiddenValue#remove"><a href="LuCI.form.HiddenValue.html#remove">remove</a></li>
976             
977                 <li data-name="LuCI.form.HiddenValue#stripTags"><a href="LuCI.form.HiddenValue.html#stripTags">stripTags</a></li>
978             
979                 <li data-name="LuCI.form.HiddenValue#textvalue"><a href="LuCI.form.HiddenValue.html#textvalue">textvalue</a></li>
980             
981                 <li data-name="LuCI.form.HiddenValue#titleFn"><a href="LuCI.form.HiddenValue.html#titleFn">titleFn</a></li>
982             
983                 <li data-name="LuCI.form.HiddenValue#value"><a href="LuCI.form.HiddenValue.html#value">value</a></li>
984             
985                 <li data-name="LuCI.form.HiddenValue#write"><a href="LuCI.form.HiddenValue.html#write">write</a></li>
986             
987             </ul>
988             <ul class="events itemMembers">
989             
990             </ul>
991         </li>
992     
993         <li class="item" data-name="LuCI.form.JSONMap">
994             <span class="title">
995                 <a href="LuCI.form.JSONMap.html">LuCI.form.JSONMap</a>
996                 
997             </span>
998             <ul class="members itemMembers">
999             
1000             </ul>
1001             <ul class="typedefs itemMembers">
1002             
1003             </ul>
1004             <ul class="typedefs itemMembers">
1005             
1006             </ul>
1007             <ul class="methods itemMembers">
1008             
1009             <span class="subtitle">Methods</span>
1010             
1011                 <li data-name="LuCI.form.JSONMap#append"><a href="LuCI.form.JSONMap.html#append">append</a></li>
1012             
1013                 <li data-name="LuCI.form.JSONMap#chain"><a href="LuCI.form.JSONMap.html#chain">chain</a></li>
1014             
1015                 <li data-name="LuCI.form.JSONMap#findElement"><a href="LuCI.form.JSONMap.html#findElement">findElement</a></li>
1016             
1017                 <li data-name="LuCI.form.JSONMap#findElements"><a href="LuCI.form.JSONMap.html#findElements">findElements</a></li>
1018             
1019                 <li data-name="LuCI.form.JSONMap#load"><a href="LuCI.form.JSONMap.html#load">load</a></li>
1020             
1021                 <li data-name="LuCI.form.JSONMap#lookupOption"><a href="LuCI.form.JSONMap.html#lookupOption">lookupOption</a></li>
1022             
1023                 <li data-name="LuCI.form.JSONMap#parse"><a href="LuCI.form.JSONMap.html#parse">parse</a></li>
1024             
1025                 <li data-name="LuCI.form.JSONMap#render"><a href="LuCI.form.JSONMap.html#render">render</a></li>
1026             
1027                 <li data-name="LuCI.form.JSONMap#reset"><a href="LuCI.form.JSONMap.html#reset">reset</a></li>
1028             
1029                 <li data-name="LuCI.form.JSONMap#save"><a href="LuCI.form.JSONMap.html#save">save</a></li>
1030             
1031                 <li data-name="LuCI.form.JSONMap#section"><a href="LuCI.form.JSONMap.html#section">section</a></li>
1032             
1033                 <li data-name="LuCI.form.JSONMap#stripTags"><a href="LuCI.form.JSONMap.html#stripTags">stripTags</a></li>
1034             
1035                 <li data-name="LuCI.form.JSONMap#titleFn"><a href="LuCI.form.JSONMap.html#titleFn">titleFn</a></li>
1036             
1037             </ul>
1038             <ul class="events itemMembers">
1039             
1040             </ul>
1041         </li>
1042     
1043         <li class="item" data-name="LuCI.form.ListValue">
1044             <span class="title">
1045                 <a href="LuCI.form.ListValue.html">LuCI.form.ListValue</a>
1046                 
1047             </span>
1048             <ul class="members itemMembers">
1049             
1050             <span class="subtitle">Members</span>
1051             
1052                 <li data-name="LuCI.form.ListValue##size"><a href="LuCI.form.ListValue.html#size">size</a></li>
1053             
1054                 <li data-name="LuCI.form.ListValue#datatype"><a href="LuCI.form.ListValue.html#datatype">datatype</a></li>
1055             
1056                 <li data-name="LuCI.form.ListValue#default"><a href="LuCI.form.ListValue.html#default">default</a></li>
1057             
1058                 <li data-name="LuCI.form.ListValue#editable"><a href="LuCI.form.ListValue.html#editable">editable</a></li>
1059             
1060                 <li data-name="LuCI.form.ListValue#modalonly"><a href="LuCI.form.ListValue.html#modalonly">modalonly</a></li>
1061             
1062                 <li data-name="LuCI.form.ListValue#optional"><a href="LuCI.form.ListValue.html#optional">optional</a></li>
1063             
1064                 <li data-name="LuCI.form.ListValue#password"><a href="LuCI.form.ListValue.html#password">password</a></li>
1065             
1066                 <li data-name="LuCI.form.ListValue#placeholder"><a href="LuCI.form.ListValue.html#placeholder">placeholder</a></li>
1067             
1068                 <li data-name="LuCI.form.ListValue#rmempty"><a href="LuCI.form.ListValue.html#rmempty">rmempty</a></li>
1069             
1070                 <li data-name="LuCI.form.ListValue#uciconfig"><a href="LuCI.form.ListValue.html#uciconfig">uciconfig</a></li>
1071             
1072                 <li data-name="LuCI.form.ListValue#ucioption"><a href="LuCI.form.ListValue.html#ucioption">ucioption</a></li>
1073             
1074                 <li data-name="LuCI.form.ListValue#ucisection"><a href="LuCI.form.ListValue.html#ucisection">ucisection</a></li>
1075             
1076                 <li data-name="LuCI.form.ListValue#validate"><a href="LuCI.form.ListValue.html#validate">validate</a></li>
1077             
1078                 <li data-name="LuCI.form.ListValue#width"><a href="LuCI.form.ListValue.html#width">width</a></li>
1079             
1080             </ul>
1081             <ul class="typedefs itemMembers">
1082             
1083             </ul>
1084             <ul class="typedefs itemMembers">
1085             
1086             </ul>
1087             <ul class="methods itemMembers">
1088             
1089             <span class="subtitle">Methods</span>
1090             
1091                 <li data-name="LuCI.form.ListValue#append"><a href="LuCI.form.ListValue.html#append">append</a></li>
1092             
1093                 <li data-name="LuCI.form.ListValue#cbid"><a href="LuCI.form.ListValue.html#cbid">cbid</a></li>
1094             
1095                 <li data-name="LuCI.form.ListValue#cfgvalue"><a href="LuCI.form.ListValue.html#cfgvalue">cfgvalue</a></li>
1096             
1097                 <li data-name="LuCI.form.ListValue#depends"><a href="LuCI.form.ListValue.html#depends">depends</a></li>
1098             
1099                 <li data-name="LuCI.form.ListValue#formvalue"><a href="LuCI.form.ListValue.html#formvalue">formvalue</a></li>
1100             
1101                 <li data-name="LuCI.form.ListValue#getUIElement"><a href="LuCI.form.ListValue.html#getUIElement">getUIElement</a></li>
1102             
1103                 <li data-name="LuCI.form.ListValue#isActive"><a href="LuCI.form.ListValue.html#isActive">isActive</a></li>
1104             
1105                 <li data-name="LuCI.form.ListValue#isValid"><a href="LuCI.form.ListValue.html#isValid">isValid</a></li>
1106             
1107                 <li data-name="LuCI.form.ListValue#load"><a href="LuCI.form.ListValue.html#load">load</a></li>
1108             
1109                 <li data-name="LuCI.form.ListValue#parse"><a href="LuCI.form.ListValue.html#parse">parse</a></li>
1110             
1111                 <li data-name="LuCI.form.ListValue#remove"><a href="LuCI.form.ListValue.html#remove">remove</a></li>
1112             
1113                 <li data-name="LuCI.form.ListValue#stripTags"><a href="LuCI.form.ListValue.html#stripTags">stripTags</a></li>
1114             
1115                 <li data-name="LuCI.form.ListValue#textvalue"><a href="LuCI.form.ListValue.html#textvalue">textvalue</a></li>
1116             
1117                 <li data-name="LuCI.form.ListValue#titleFn"><a href="LuCI.form.ListValue.html#titleFn">titleFn</a></li>
1118             
1119                 <li data-name="LuCI.form.ListValue#value"><a href="LuCI.form.ListValue.html#value">value</a></li>
1120             
1121                 <li data-name="LuCI.form.ListValue#write"><a href="LuCI.form.ListValue.html#write">write</a></li>
1122             
1123             </ul>
1124             <ul class="events itemMembers">
1125             
1126             </ul>
1127         </li>
1128     
1129         <li class="item" data-name="LuCI.form.Map">
1130             <span class="title">
1131                 <a href="LuCI.form.Map.html">LuCI.form.Map</a>
1132                 
1133             </span>
1134             <ul class="members itemMembers">
1135             
1136             </ul>
1137             <ul class="typedefs itemMembers">
1138             
1139             </ul>
1140             <ul class="typedefs itemMembers">
1141             
1142             </ul>
1143             <ul class="methods itemMembers">
1144             
1145             <span class="subtitle">Methods</span>
1146             
1147                 <li data-name="LuCI.form.Map#append"><a href="LuCI.form.Map.html#append">append</a></li>
1148             
1149                 <li data-name="LuCI.form.Map#chain"><a href="LuCI.form.Map.html#chain">chain</a></li>
1150             
1151                 <li data-name="LuCI.form.Map#findElement"><a href="LuCI.form.Map.html#findElement">findElement</a></li>
1152             
1153                 <li data-name="LuCI.form.Map#findElements"><a href="LuCI.form.Map.html#findElements">findElements</a></li>
1154             
1155                 <li data-name="LuCI.form.Map#load"><a href="LuCI.form.Map.html#load">load</a></li>
1156             
1157                 <li data-name="LuCI.form.Map#lookupOption"><a href="LuCI.form.Map.html#lookupOption">lookupOption</a></li>
1158             
1159                 <li data-name="LuCI.form.Map#parse"><a href="LuCI.form.Map.html#parse">parse</a></li>
1160             
1161                 <li data-name="LuCI.form.Map#render"><a href="LuCI.form.Map.html#render">render</a></li>
1162             
1163                 <li data-name="LuCI.form.Map#reset"><a href="LuCI.form.Map.html#reset">reset</a></li>
1164             
1165                 <li data-name="LuCI.form.Map#save"><a href="LuCI.form.Map.html#save">save</a></li>
1166             
1167                 <li data-name="LuCI.form.Map#section"><a href="LuCI.form.Map.html#section">section</a></li>
1168             
1169                 <li data-name="LuCI.form.Map#stripTags"><a href="LuCI.form.Map.html#stripTags">stripTags</a></li>
1170             
1171                 <li data-name="LuCI.form.Map#titleFn"><a href="LuCI.form.Map.html#titleFn">titleFn</a></li>
1172             
1173             </ul>
1174             <ul class="events itemMembers">
1175             
1176             </ul>
1177         </li>
1178     
1179         <li class="item" data-name="LuCI.form.MultiValue">
1180             <span class="title">
1181                 <a href="LuCI.form.MultiValue.html">LuCI.form.MultiValue</a>
1182                 
1183             </span>
1184             <ul class="members itemMembers">
1185             
1186             <span class="subtitle">Members</span>
1187             
1188                 <li data-name="LuCI.form.MultiValue##display_size"><a href="LuCI.form.MultiValue.html#display_size">display_size</a></li>
1189             
1190                 <li data-name="LuCI.form.MultiValue##dropdown_size"><a href="LuCI.form.MultiValue.html#dropdown_size">dropdown_size</a></li>
1191             
1192                 <li data-name="LuCI.form.MultiValue#datatype"><a href="LuCI.form.MultiValue.html#datatype">datatype</a></li>
1193             
1194                 <li data-name="LuCI.form.MultiValue#default"><a href="LuCI.form.MultiValue.html#default">default</a></li>
1195             
1196                 <li data-name="LuCI.form.MultiValue#editable"><a href="LuCI.form.MultiValue.html#editable">editable</a></li>
1197             
1198                 <li data-name="LuCI.form.MultiValue#modalonly"><a href="LuCI.form.MultiValue.html#modalonly">modalonly</a></li>
1199             
1200                 <li data-name="LuCI.form.MultiValue#optional"><a href="LuCI.form.MultiValue.html#optional">optional</a></li>
1201             
1202                 <li data-name="LuCI.form.MultiValue#password"><a href="LuCI.form.MultiValue.html#password">password</a></li>
1203             
1204                 <li data-name="LuCI.form.MultiValue#placeholder"><a href="LuCI.form.MultiValue.html#placeholder">placeholder</a></li>
1205             
1206                 <li data-name="LuCI.form.MultiValue#rmempty"><a href="LuCI.form.MultiValue.html#rmempty">rmempty</a></li>
1207             
1208                 <li data-name="LuCI.form.MultiValue#uciconfig"><a href="LuCI.form.MultiValue.html#uciconfig">uciconfig</a></li>
1209             
1210                 <li data-name="LuCI.form.MultiValue#ucioption"><a href="LuCI.form.MultiValue.html#ucioption">ucioption</a></li>
1211             
1212                 <li data-name="LuCI.form.MultiValue#ucisection"><a href="LuCI.form.MultiValue.html#ucisection">ucisection</a></li>
1213             
1214                 <li data-name="LuCI.form.MultiValue#validate"><a href="LuCI.form.MultiValue.html#validate">validate</a></li>
1215             
1216                 <li data-name="LuCI.form.MultiValue#width"><a href="LuCI.form.MultiValue.html#width">width</a></li>
1217             
1218             </ul>
1219             <ul class="typedefs itemMembers">
1220             
1221             </ul>
1222             <ul class="typedefs itemMembers">
1223             
1224             </ul>
1225             <ul class="methods itemMembers">
1226             
1227             <span class="subtitle">Methods</span>
1228             
1229                 <li data-name="LuCI.form.MultiValue#append"><a href="LuCI.form.MultiValue.html#append">append</a></li>
1230             
1231                 <li data-name="LuCI.form.MultiValue#cbid"><a href="LuCI.form.MultiValue.html#cbid">cbid</a></li>
1232             
1233                 <li data-name="LuCI.form.MultiValue#cfgvalue"><a href="LuCI.form.MultiValue.html#cfgvalue">cfgvalue</a></li>
1234             
1235                 <li data-name="LuCI.form.MultiValue#depends"><a href="LuCI.form.MultiValue.html#depends">depends</a></li>
1236             
1237                 <li data-name="LuCI.form.MultiValue#formvalue"><a href="LuCI.form.MultiValue.html#formvalue">formvalue</a></li>
1238             
1239                 <li data-name="LuCI.form.MultiValue#getUIElement"><a href="LuCI.form.MultiValue.html#getUIElement">getUIElement</a></li>
1240             
1241                 <li data-name="LuCI.form.MultiValue#isActive"><a href="LuCI.form.MultiValue.html#isActive">isActive</a></li>
1242             
1243                 <li data-name="LuCI.form.MultiValue#isValid"><a href="LuCI.form.MultiValue.html#isValid">isValid</a></li>
1244             
1245                 <li data-name="LuCI.form.MultiValue#load"><a href="LuCI.form.MultiValue.html#load">load</a></li>
1246             
1247                 <li data-name="LuCI.form.MultiValue#parse"><a href="LuCI.form.MultiValue.html#parse">parse</a></li>
1248             
1249                 <li data-name="LuCI.form.MultiValue#remove"><a href="LuCI.form.MultiValue.html#remove">remove</a></li>
1250             
1251                 <li data-name="LuCI.form.MultiValue#stripTags"><a href="LuCI.form.MultiValue.html#stripTags">stripTags</a></li>
1252             
1253                 <li data-name="LuCI.form.MultiValue#textvalue"><a href="LuCI.form.MultiValue.html#textvalue">textvalue</a></li>
1254             
1255                 <li data-name="LuCI.form.MultiValue#titleFn"><a href="LuCI.form.MultiValue.html#titleFn">titleFn</a></li>
1256             
1257                 <li data-name="LuCI.form.MultiValue#value"><a href="LuCI.form.MultiValue.html#value">value</a></li>
1258             
1259                 <li data-name="LuCI.form.MultiValue#write"><a href="LuCI.form.MultiValue.html#write">write</a></li>
1260             
1261             </ul>
1262             <ul class="events itemMembers">
1263             
1264             </ul>
1265         </li>
1266     
1267         <li class="item" data-name="LuCI.form.NamedSection">
1268             <span class="title">
1269                 <a href="LuCI.form.NamedSection.html">LuCI.form.NamedSection</a>
1270                 
1271             </span>
1272             <ul class="members itemMembers">
1273             
1274             <span class="subtitle">Members</span>
1275             
1276                 <li data-name="LuCI.form.NamedSection##addremove"><a href="LuCI.form.NamedSection.html#addremove">addremove</a></li>
1277             
1278                 <li data-name="LuCI.form.NamedSection##uciconfig"><a href="LuCI.form.NamedSection.html#uciconfig">uciconfig</a></li>
1279             
1280                 <li data-name="LuCI.form.NamedSection#parentoption"><a href="LuCI.form.NamedSection.html#parentoption">parentoption</a></li>
1281             
1282             </ul>
1283             <ul class="typedefs itemMembers">
1284             
1285             </ul>
1286             <ul class="typedefs itemMembers">
1287             
1288             </ul>
1289             <ul class="methods itemMembers">
1290             
1291             <span class="subtitle">Methods</span>
1292             
1293                 <li data-name="LuCI.form.NamedSection#append"><a href="LuCI.form.NamedSection.html#append">append</a></li>
1294             
1295                 <li data-name="LuCI.form.NamedSection#cfgsections"><a href="LuCI.form.NamedSection.html#cfgsections">cfgsections</a></li>
1296             
1297                 <li data-name="LuCI.form.NamedSection#filter"><a href="LuCI.form.NamedSection.html#filter">filter</a></li>
1298             
1299                 <li data-name="LuCI.form.NamedSection#load"><a href="LuCI.form.NamedSection.html#load">load</a></li>
1300             
1301                 <li data-name="LuCI.form.NamedSection#option"><a href="LuCI.form.NamedSection.html#option">option</a></li>
1302             
1303                 <li data-name="LuCI.form.NamedSection#parse"><a href="LuCI.form.NamedSection.html#parse">parse</a></li>
1304             
1305                 <li data-name="LuCI.form.NamedSection#render"><a href="LuCI.form.NamedSection.html#render">render</a></li>
1306             
1307                 <li data-name="LuCI.form.NamedSection#stripTags"><a href="LuCI.form.NamedSection.html#stripTags">stripTags</a></li>
1308             
1309                 <li data-name="LuCI.form.NamedSection#tab"><a href="LuCI.form.NamedSection.html#tab">tab</a></li>
1310             
1311                 <li data-name="LuCI.form.NamedSection#taboption"><a href="LuCI.form.NamedSection.html#taboption">taboption</a></li>
1312             
1313                 <li data-name="LuCI.form.NamedSection#titleFn"><a href="LuCI.form.NamedSection.html#titleFn">titleFn</a></li>
1314             
1315             </ul>
1316             <ul class="events itemMembers">
1317             
1318             </ul>
1319         </li>
1320     
1321         <li class="item" data-name="LuCI.form.SectionValue">
1322             <span class="title">
1323                 <a href="LuCI.form.SectionValue.html">LuCI.form.SectionValue</a>
1324                 
1325             </span>
1326             <ul class="members itemMembers">
1327             
1328             <span class="subtitle">Members</span>
1329             
1330                 <li data-name="LuCI.form.SectionValue##subsection"><a href="LuCI.form.SectionValue.html#subsection">subsection</a></li>
1331             
1332                 <li data-name="LuCI.form.SectionValue#datatype"><a href="LuCI.form.SectionValue.html#datatype">datatype</a></li>
1333             
1334                 <li data-name="LuCI.form.SectionValue#default"><a href="LuCI.form.SectionValue.html#default">default</a></li>
1335             
1336                 <li data-name="LuCI.form.SectionValue#editable"><a href="LuCI.form.SectionValue.html#editable">editable</a></li>
1337             
1338                 <li data-name="LuCI.form.SectionValue#modalonly"><a href="LuCI.form.SectionValue.html#modalonly">modalonly</a></li>
1339             
1340                 <li data-name="LuCI.form.SectionValue#optional"><a href="LuCI.form.SectionValue.html#optional">optional</a></li>
1341             
1342                 <li data-name="LuCI.form.SectionValue#password"><a href="LuCI.form.SectionValue.html#password">password</a></li>
1343             
1344                 <li data-name="LuCI.form.SectionValue#placeholder"><a href="LuCI.form.SectionValue.html#placeholder">placeholder</a></li>
1345             
1346                 <li data-name="LuCI.form.SectionValue#rmempty"><a href="LuCI.form.SectionValue.html#rmempty">rmempty</a></li>
1347             
1348                 <li data-name="LuCI.form.SectionValue#uciconfig"><a href="LuCI.form.SectionValue.html#uciconfig">uciconfig</a></li>
1349             
1350                 <li data-name="LuCI.form.SectionValue#ucioption"><a href="LuCI.form.SectionValue.html#ucioption">ucioption</a></li>
1351             
1352                 <li data-name="LuCI.form.SectionValue#ucisection"><a href="LuCI.form.SectionValue.html#ucisection">ucisection</a></li>
1353             
1354                 <li data-name="LuCI.form.SectionValue#validate"><a href="LuCI.form.SectionValue.html#validate">validate</a></li>
1355             
1356                 <li data-name="LuCI.form.SectionValue#width"><a href="LuCI.form.SectionValue.html#width">width</a></li>
1357             
1358             </ul>
1359             <ul class="typedefs itemMembers">
1360             
1361             </ul>
1362             <ul class="typedefs itemMembers">
1363             
1364             </ul>
1365             <ul class="methods itemMembers">
1366             
1367             <span class="subtitle">Methods</span>
1368             
1369                 <li data-name="LuCI.form.SectionValue#append"><a href="LuCI.form.SectionValue.html#append">append</a></li>
1370             
1371                 <li data-name="LuCI.form.SectionValue#cbid"><a href="LuCI.form.SectionValue.html#cbid">cbid</a></li>
1372             
1373                 <li data-name="LuCI.form.SectionValue#cfgvalue"><a href="LuCI.form.SectionValue.html#cfgvalue">cfgvalue</a></li>
1374             
1375                 <li data-name="LuCI.form.SectionValue#depends"><a href="LuCI.form.SectionValue.html#depends">depends</a></li>
1376             
1377                 <li data-name="LuCI.form.SectionValue#formvalue"><a href="LuCI.form.SectionValue.html#formvalue">formvalue</a></li>
1378             
1379                 <li data-name="LuCI.form.SectionValue#getUIElement"><a href="LuCI.form.SectionValue.html#getUIElement">getUIElement</a></li>
1380             
1381                 <li data-name="LuCI.form.SectionValue#isActive"><a href="LuCI.form.SectionValue.html#isActive">isActive</a></li>
1382             
1383                 <li data-name="LuCI.form.SectionValue#isValid"><a href="LuCI.form.SectionValue.html#isValid">isValid</a></li>
1384             
1385                 <li data-name="LuCI.form.SectionValue#load"><a href="LuCI.form.SectionValue.html#load">load</a></li>
1386             
1387                 <li data-name="LuCI.form.SectionValue#parse"><a href="LuCI.form.SectionValue.html#parse">parse</a></li>
1388             
1389                 <li data-name="LuCI.form.SectionValue#remove"><a href="LuCI.form.SectionValue.html#remove">remove</a></li>
1390             
1391                 <li data-name="LuCI.form.SectionValue#stripTags"><a href="LuCI.form.SectionValue.html#stripTags">stripTags</a></li>
1392             
1393                 <li data-name="LuCI.form.SectionValue#textvalue"><a href="LuCI.form.SectionValue.html#textvalue">textvalue</a></li>
1394             
1395                 <li data-name="LuCI.form.SectionValue#titleFn"><a href="LuCI.form.SectionValue.html#titleFn">titleFn</a></li>
1396             
1397                 <li data-name="LuCI.form.SectionValue#value"><a href="LuCI.form.SectionValue.html#value">value</a></li>
1398             
1399                 <li data-name="LuCI.form.SectionValue#write"><a href="LuCI.form.SectionValue.html#write">write</a></li>
1400             
1401             </ul>
1402             <ul class="events itemMembers">
1403             
1404             </ul>
1405         </li>
1406     
1407         <li class="item" data-name="LuCI.form.TableSection">
1408             <span class="title">
1409                 <a href="LuCI.form.TableSection.html">LuCI.form.TableSection</a>
1410                 
1411             </span>
1412             <ul class="members itemMembers">
1413             
1414             <span class="subtitle">Members</span>
1415             
1416                 <li data-name="LuCI.form.TableSection##addbtntitle"><a href="LuCI.form.TableSection.html#addbtntitle">addbtntitle</a></li>
1417             
1418                 <li data-name="LuCI.form.TableSection##addremove"><a href="LuCI.form.TableSection.html#addremove">addremove</a></li>
1419             
1420                 <li data-name="LuCI.form.TableSection##anonymous"><a href="LuCI.form.TableSection.html#anonymous">anonymous</a></li>
1421             
1422                 <li data-name="LuCI.form.TableSection##extedit"><a href="LuCI.form.TableSection.html#extedit">extedit</a></li>
1423             
1424                 <li data-name="LuCI.form.TableSection##max_cols"><a href="LuCI.form.TableSection.html#max_cols">max_cols</a></li>
1425             
1426                 <li data-name="LuCI.form.TableSection##modaltitle"><a href="LuCI.form.TableSection.html#modaltitle">modaltitle</a></li>
1427             
1428                 <li data-name="LuCI.form.TableSection##rowcolors"><a href="LuCI.form.TableSection.html#rowcolors">rowcolors</a></li>
1429             
1430                 <li data-name="LuCI.form.TableSection##sectiontitle"><a href="LuCI.form.TableSection.html#sectiontitle">sectiontitle</a></li>
1431             
1432                 <li data-name="LuCI.form.TableSection##sortable"><a href="LuCI.form.TableSection.html#sortable">sortable</a></li>
1433             
1434                 <li data-name="LuCI.form.TableSection##uciconfig"><a href="LuCI.form.TableSection.html#uciconfig">uciconfig</a></li>
1435             
1436                 <li data-name="LuCI.form.TableSection#addbtntitle"><a href="LuCI.form.TableSection.html#addbtntitle">addbtntitle</a></li>
1437             
1438                 <li data-name="LuCI.form.TableSection#addremove"><a href="LuCI.form.TableSection.html#addremove">addremove</a></li>
1439             
1440                 <li data-name="LuCI.form.TableSection#anonymous"><a href="LuCI.form.TableSection.html#anonymous">anonymous</a></li>
1441             
1442                 <li data-name="LuCI.form.TableSection#parentoption"><a href="LuCI.form.TableSection.html#parentoption">parentoption</a></li>
1443             
1444                 <li data-name="LuCI.form.TableSection#tabbed"><a href="LuCI.form.TableSection.html#tabbed">tabbed</a></li>
1445             
1446                 <li data-name="LuCI.form.TableSection#uciconfig"><a href="LuCI.form.TableSection.html#uciconfig">uciconfig</a></li>
1447             
1448             </ul>
1449             <ul class="typedefs itemMembers">
1450             
1451             </ul>
1452             <ul class="typedefs itemMembers">
1453             
1454             </ul>
1455             <ul class="methods itemMembers">
1456             
1457             <span class="subtitle">Methods</span>
1458             
1459                 <li data-name="LuCI.form.TableSection#addModalOptions"><a href="LuCI.form.TableSection.html#addModalOptions">addModalOptions</a></li>
1460             
1461                 <li data-name="LuCI.form.TableSection#append"><a href="LuCI.form.TableSection.html#append">append</a></li>
1462             
1463                 <li data-name="LuCI.form.TableSection#filter"><a href="LuCI.form.TableSection.html#filter">filter</a></li>
1464             
1465                 <li data-name="LuCI.form.TableSection#load"><a href="LuCI.form.TableSection.html#load">load</a></li>
1466             
1467                 <li data-name="LuCI.form.TableSection#option"><a href="LuCI.form.TableSection.html#option">option</a></li>
1468             
1469                 <li data-name="LuCI.form.TableSection#parse"><a href="LuCI.form.TableSection.html#parse">parse</a></li>
1470             
1471                 <li data-name="LuCI.form.TableSection#stripTags"><a href="LuCI.form.TableSection.html#stripTags">stripTags</a></li>
1472             
1473                 <li data-name="LuCI.form.TableSection#tab"><a href="LuCI.form.TableSection.html#tab">tab</a></li>
1474             
1475                 <li data-name="LuCI.form.TableSection#taboption"><a href="LuCI.form.TableSection.html#taboption">taboption</a></li>
1476             
1477                 <li data-name="LuCI.form.TableSection#titleFn"><a href="LuCI.form.TableSection.html#titleFn">titleFn</a></li>
1478             
1479             </ul>
1480             <ul class="events itemMembers">
1481             
1482             </ul>
1483         </li>
1484     
1485         <li class="item" data-name="LuCI.form.TextValue">
1486             <span class="title">
1487                 <a href="LuCI.form.TextValue.html">LuCI.form.TextValue</a>
1488                 
1489             </span>
1490             <ul class="members itemMembers">
1491             
1492             <span class="subtitle">Members</span>
1493             
1494                 <li data-name="LuCI.form.TextValue##cols"><a href="LuCI.form.TextValue.html#cols">cols</a></li>
1495             
1496                 <li data-name="LuCI.form.TextValue##monospace"><a href="LuCI.form.TextValue.html#monospace">monospace</a></li>
1497             
1498                 <li data-name="LuCI.form.TextValue##rows"><a href="LuCI.form.TextValue.html#rows">rows</a></li>
1499             
1500                 <li data-name="LuCI.form.TextValue##wrap"><a href="LuCI.form.TextValue.html#wrap">wrap</a></li>
1501             
1502                 <li data-name="LuCI.form.TextValue#datatype"><a href="LuCI.form.TextValue.html#datatype">datatype</a></li>
1503             
1504                 <li data-name="LuCI.form.TextValue#default"><a href="LuCI.form.TextValue.html#default">default</a></li>
1505             
1506                 <li data-name="LuCI.form.TextValue#editable"><a href="LuCI.form.TextValue.html#editable">editable</a></li>
1507             
1508                 <li data-name="LuCI.form.TextValue#modalonly"><a href="LuCI.form.TextValue.html#modalonly">modalonly</a></li>
1509             
1510                 <li data-name="LuCI.form.TextValue#optional"><a href="LuCI.form.TextValue.html#optional">optional</a></li>
1511             
1512                 <li data-name="LuCI.form.TextValue#password"><a href="LuCI.form.TextValue.html#password">password</a></li>
1513             
1514                 <li data-name="LuCI.form.TextValue#placeholder"><a href="LuCI.form.TextValue.html#placeholder">placeholder</a></li>
1515             
1516                 <li data-name="LuCI.form.TextValue#rmempty"><a href="LuCI.form.TextValue.html#rmempty">rmempty</a></li>
1517             
1518                 <li data-name="LuCI.form.TextValue#uciconfig"><a href="LuCI.form.TextValue.html#uciconfig">uciconfig</a></li>
1519             
1520                 <li data-name="LuCI.form.TextValue#ucioption"><a href="LuCI.form.TextValue.html#ucioption">ucioption</a></li>
1521             
1522                 <li data-name="LuCI.form.TextValue#ucisection"><a href="LuCI.form.TextValue.html#ucisection">ucisection</a></li>
1523             
1524                 <li data-name="LuCI.form.TextValue#validate"><a href="LuCI.form.TextValue.html#validate">validate</a></li>
1525             
1526                 <li data-name="LuCI.form.TextValue#width"><a href="LuCI.form.TextValue.html#width">width</a></li>
1527             
1528             </ul>
1529             <ul class="typedefs itemMembers">
1530             
1531             </ul>
1532             <ul class="typedefs itemMembers">
1533             
1534             </ul>
1535             <ul class="methods itemMembers">
1536             
1537             <span class="subtitle">Methods</span>
1538             
1539                 <li data-name="LuCI.form.TextValue#append"><a href="LuCI.form.TextValue.html#append">append</a></li>
1540             
1541                 <li data-name="LuCI.form.TextValue#cbid"><a href="LuCI.form.TextValue.html#cbid">cbid</a></li>
1542             
1543                 <li data-name="LuCI.form.TextValue#cfgvalue"><a href="LuCI.form.TextValue.html#cfgvalue">cfgvalue</a></li>
1544             
1545                 <li data-name="LuCI.form.TextValue#depends"><a href="LuCI.form.TextValue.html#depends">depends</a></li>
1546             
1547                 <li data-name="LuCI.form.TextValue#formvalue"><a href="LuCI.form.TextValue.html#formvalue">formvalue</a></li>
1548             
1549                 <li data-name="LuCI.form.TextValue#getUIElement"><a href="LuCI.form.TextValue.html#getUIElement">getUIElement</a></li>
1550             
1551                 <li data-name="LuCI.form.TextValue#isActive"><a href="LuCI.form.TextValue.html#isActive">isActive</a></li>
1552             
1553                 <li data-name="LuCI.form.TextValue#isValid"><a href="LuCI.form.TextValue.html#isValid">isValid</a></li>
1554             
1555                 <li data-name="LuCI.form.TextValue#load"><a href="LuCI.form.TextValue.html#load">load</a></li>
1556             
1557                 <li data-name="LuCI.form.TextValue#parse"><a href="LuCI.form.TextValue.html#parse">parse</a></li>
1558             
1559                 <li data-name="LuCI.form.TextValue#remove"><a href="LuCI.form.TextValue.html#remove">remove</a></li>
1560             
1561                 <li data-name="LuCI.form.TextValue#stripTags"><a href="LuCI.form.TextValue.html#stripTags">stripTags</a></li>
1562             
1563                 <li data-name="LuCI.form.TextValue#textvalue"><a href="LuCI.form.TextValue.html#textvalue">textvalue</a></li>
1564             
1565                 <li data-name="LuCI.form.TextValue#titleFn"><a href="LuCI.form.TextValue.html#titleFn">titleFn</a></li>
1566             
1567                 <li data-name="LuCI.form.TextValue#write"><a href="LuCI.form.TextValue.html#write">write</a></li>
1568             
1569             </ul>
1570             <ul class="events itemMembers">
1571             
1572             </ul>
1573         </li>
1574     
1575         <li class="item" data-name="LuCI.form.TypedSection">
1576             <span class="title">
1577                 <a href="LuCI.form.TypedSection.html">LuCI.form.TypedSection</a>
1578                 
1579             </span>
1580             <ul class="members itemMembers">
1581             
1582             <span class="subtitle">Members</span>
1583             
1584                 <li data-name="LuCI.form.TypedSection##addbtntitle"><a href="LuCI.form.TypedSection.html#addbtntitle">addbtntitle</a></li>
1585             
1586                 <li data-name="LuCI.form.TypedSection##addremove"><a href="LuCI.form.TypedSection.html#addremove">addremove</a></li>
1587             
1588                 <li data-name="LuCI.form.TypedSection##anonymous"><a href="LuCI.form.TypedSection.html#anonymous">anonymous</a></li>
1589             
1590                 <li data-name="LuCI.form.TypedSection##tabbed"><a href="LuCI.form.TypedSection.html#tabbed">tabbed</a></li>
1591             
1592                 <li data-name="LuCI.form.TypedSection##uciconfig"><a href="LuCI.form.TypedSection.html#uciconfig">uciconfig</a></li>
1593             
1594                 <li data-name="LuCI.form.TypedSection#parentoption"><a href="LuCI.form.TypedSection.html#parentoption">parentoption</a></li>
1595             
1596             </ul>
1597             <ul class="typedefs itemMembers">
1598             
1599             </ul>
1600             <ul class="typedefs itemMembers">
1601             
1602             </ul>
1603             <ul class="methods itemMembers">
1604             
1605             <span class="subtitle">Methods</span>
1606             
1607                 <li data-name="LuCI.form.TypedSection#append"><a href="LuCI.form.TypedSection.html#append">append</a></li>
1608             
1609                 <li data-name="LuCI.form.TypedSection#cfgsections"><a href="LuCI.form.TypedSection.html#cfgsections">cfgsections</a></li>
1610             
1611                 <li data-name="LuCI.form.TypedSection#filter"><a href="LuCI.form.TypedSection.html#filter">filter</a></li>
1612             
1613                 <li data-name="LuCI.form.TypedSection#load"><a href="LuCI.form.TypedSection.html#load">load</a></li>
1614             
1615                 <li data-name="LuCI.form.TypedSection#option"><a href="LuCI.form.TypedSection.html#option">option</a></li>
1616             
1617                 <li data-name="LuCI.form.TypedSection#parse"><a href="LuCI.form.TypedSection.html#parse">parse</a></li>
1618             
1619                 <li data-name="LuCI.form.TypedSection#render"><a href="LuCI.form.TypedSection.html#render">render</a></li>
1620             
1621                 <li data-name="LuCI.form.TypedSection#stripTags"><a href="LuCI.form.TypedSection.html#stripTags">stripTags</a></li>
1622             
1623                 <li data-name="LuCI.form.TypedSection#tab"><a href="LuCI.form.TypedSection.html#tab">tab</a></li>
1624             
1625                 <li data-name="LuCI.form.TypedSection#taboption"><a href="LuCI.form.TypedSection.html#taboption">taboption</a></li>
1626             
1627                 <li data-name="LuCI.form.TypedSection#titleFn"><a href="LuCI.form.TypedSection.html#titleFn">titleFn</a></li>
1628             
1629             </ul>
1630             <ul class="events itemMembers">
1631             
1632             </ul>
1633         </li>
1634     
1635         <li class="item" data-name="LuCI.form.Value">
1636             <span class="title">
1637                 <a href="LuCI.form.Value.html">LuCI.form.Value</a>
1638                 
1639             </span>
1640             <ul class="members itemMembers">
1641             
1642             <span class="subtitle">Members</span>
1643             
1644                 <li data-name="LuCI.form.Value##password"><a href="LuCI.form.Value.html#password">password</a></li>
1645             
1646                 <li data-name="LuCI.form.Value##placeholder"><a href="LuCI.form.Value.html#placeholder">placeholder</a></li>
1647             
1648                 <li data-name="LuCI.form.Value#datatype"><a href="LuCI.form.Value.html#datatype">datatype</a></li>
1649             
1650                 <li data-name="LuCI.form.Value#default"><a href="LuCI.form.Value.html#default">default</a></li>
1651             
1652                 <li data-name="LuCI.form.Value#editable"><a href="LuCI.form.Value.html#editable">editable</a></li>
1653             
1654                 <li data-name="LuCI.form.Value#modalonly"><a href="LuCI.form.Value.html#modalonly">modalonly</a></li>
1655             
1656                 <li data-name="LuCI.form.Value#optional"><a href="LuCI.form.Value.html#optional">optional</a></li>
1657             
1658                 <li data-name="LuCI.form.Value#rmempty"><a href="LuCI.form.Value.html#rmempty">rmempty</a></li>
1659             
1660                 <li data-name="LuCI.form.Value#uciconfig"><a href="LuCI.form.Value.html#uciconfig">uciconfig</a></li>
1661             
1662                 <li data-name="LuCI.form.Value#ucioption"><a href="LuCI.form.Value.html#ucioption">ucioption</a></li>
1663             
1664                 <li data-name="LuCI.form.Value#ucisection"><a href="LuCI.form.Value.html#ucisection">ucisection</a></li>
1665             
1666                 <li data-name="LuCI.form.Value#validate"><a href="LuCI.form.Value.html#validate">validate</a></li>
1667             
1668                 <li data-name="LuCI.form.Value#width"><a href="LuCI.form.Value.html#width">width</a></li>
1669             
1670             </ul>
1671             <ul class="typedefs itemMembers">
1672             
1673             </ul>
1674             <ul class="typedefs itemMembers">
1675             
1676             </ul>
1677             <ul class="methods itemMembers">
1678             
1679             <span class="subtitle">Methods</span>
1680             
1681                 <li data-name="LuCI.form.Value#append"><a href="LuCI.form.Value.html#append">append</a></li>
1682             
1683                 <li data-name="LuCI.form.Value#cbid"><a href="LuCI.form.Value.html#cbid">cbid</a></li>
1684             
1685                 <li data-name="LuCI.form.Value#cfgvalue"><a href="LuCI.form.Value.html#cfgvalue">cfgvalue</a></li>
1686             
1687                 <li data-name="LuCI.form.Value#depends"><a href="LuCI.form.Value.html#depends">depends</a></li>
1688             
1689                 <li data-name="LuCI.form.Value#formvalue"><a href="LuCI.form.Value.html#formvalue">formvalue</a></li>
1690             
1691                 <li data-name="LuCI.form.Value#getUIElement"><a href="LuCI.form.Value.html#getUIElement">getUIElement</a></li>
1692             
1693                 <li data-name="LuCI.form.Value#isActive"><a href="LuCI.form.Value.html#isActive">isActive</a></li>
1694             
1695                 <li data-name="LuCI.form.Value#isValid"><a href="LuCI.form.Value.html#isValid">isValid</a></li>
1696             
1697                 <li data-name="LuCI.form.Value#load"><a href="LuCI.form.Value.html#load">load</a></li>
1698             
1699                 <li data-name="LuCI.form.Value#parse"><a href="LuCI.form.Value.html#parse">parse</a></li>
1700             
1701                 <li data-name="LuCI.form.Value#remove"><a href="LuCI.form.Value.html#remove">remove</a></li>
1702             
1703                 <li data-name="LuCI.form.Value#render"><a href="LuCI.form.Value.html#render">render</a></li>
1704             
1705                 <li data-name="LuCI.form.Value#stripTags"><a href="LuCI.form.Value.html#stripTags">stripTags</a></li>
1706             
1707                 <li data-name="LuCI.form.Value#textvalue"><a href="LuCI.form.Value.html#textvalue">textvalue</a></li>
1708             
1709                 <li data-name="LuCI.form.Value#titleFn"><a href="LuCI.form.Value.html#titleFn">titleFn</a></li>
1710             
1711                 <li data-name="LuCI.form.Value#value"><a href="LuCI.form.Value.html#value">value</a></li>
1712             
1713                 <li data-name="LuCI.form.Value#write"><a href="LuCI.form.Value.html#write">write</a></li>
1714             
1715             </ul>
1716             <ul class="events itemMembers">
1717             
1718             </ul>
1719         </li>
1720     
1721         <li class="item" data-name="LuCI.fs">
1722             <span class="title">
1723                 <a href="LuCI.fs.html">LuCI.fs</a>
1724                 
1725             </span>
1726             <ul class="members itemMembers">
1727             
1728             </ul>
1729             <ul class="typedefs itemMembers">
1730             
1731             <span class="subtitle">Typedefs</span>
1732             
1733                 <li data-name="LuCI.fs.FileExecResult"><a href="LuCI.fs.html#.FileExecResult">FileExecResult</a></li>
1734             
1735                 <li data-name="LuCI.fs.FileStatEntry"><a href="LuCI.fs.html#.FileStatEntry">FileStatEntry</a></li>
1736             
1737             </ul>
1738             <ul class="typedefs itemMembers">
1739             
1740             </ul>
1741             <ul class="methods itemMembers">
1742             
1743             <span class="subtitle">Methods</span>
1744             
1745                 <li data-name="LuCI.fs#exec"><a href="LuCI.fs.html#exec">exec</a></li>
1746             
1747                 <li data-name="LuCI.fs#exec_direct"><a href="LuCI.fs.html#exec_direct">exec_direct</a></li>
1748             
1749                 <li data-name="LuCI.fs#lines"><a href="LuCI.fs.html#lines">lines</a></li>
1750             
1751                 <li data-name="LuCI.fs#list"><a href="LuCI.fs.html#list">list</a></li>
1752             
1753                 <li data-name="LuCI.fs#read"><a href="LuCI.fs.html#read">read</a></li>
1754             
1755                 <li data-name="LuCI.fs#read_direct"><a href="LuCI.fs.html#read_direct">read_direct</a></li>
1756             
1757                 <li data-name="LuCI.fs#remove"><a href="LuCI.fs.html#remove">remove</a></li>
1758             
1759                 <li data-name="LuCI.fs#stat"><a href="LuCI.fs.html#stat">stat</a></li>
1760             
1761                 <li data-name="LuCI.fs#trimmed"><a href="LuCI.fs.html#trimmed">trimmed</a></li>
1762             
1763                 <li data-name="LuCI.fs#write"><a href="LuCI.fs.html#write">write</a></li>
1764             
1765             </ul>
1766             <ul class="events itemMembers">
1767             
1768             </ul>
1769         </li>
1770     
1771         <li class="item" data-name="LuCI.headers">
1772             <span class="title">
1773                 <a href="LuCI.headers.html">LuCI.headers</a>
1774                 
1775             </span>
1776             <ul class="members itemMembers">
1777             
1778             </ul>
1779             <ul class="typedefs itemMembers">
1780             
1781             </ul>
1782             <ul class="typedefs itemMembers">
1783             
1784             </ul>
1785             <ul class="methods itemMembers">
1786             
1787             <span class="subtitle">Methods</span>
1788             
1789                 <li data-name="LuCI.headers#get"><a href="LuCI.headers.html#get">get</a></li>
1790             
1791                 <li data-name="LuCI.headers#has"><a href="LuCI.headers.html#has">has</a></li>
1792             
1793             </ul>
1794             <ul class="events itemMembers">
1795             
1796             </ul>
1797         </li>
1798     
1799         <li class="item" data-name="LuCI.network">
1800             <span class="title">
1801                 <a href="LuCI.network.html">LuCI.network</a>
1802                 
1803             </span>
1804             <ul class="members itemMembers">
1805             
1806             </ul>
1807             <ul class="typedefs itemMembers">
1808             
1809             <span class="subtitle">Typedefs</span>
1810             
1811                 <li data-name="LuCI.network.SwitchTopology"><a href="LuCI.network.html#.SwitchTopology">SwitchTopology</a></li>
1812             
1813                 <li data-name="LuCI.network.WifiEncryption"><a href="LuCI.network.html#.WifiEncryption">WifiEncryption</a></li>
1814             
1815                 <li data-name="LuCI.network.WifiPeerEntry"><a href="LuCI.network.html#.WifiPeerEntry">WifiPeerEntry</a></li>
1816             
1817                 <li data-name="LuCI.network.WifiRateEntry"><a href="LuCI.network.html#.WifiRateEntry">WifiRateEntry</a></li>
1818             
1819                 <li data-name="LuCI.network.WifiScanResult"><a href="LuCI.network.html#.WifiScanResult">WifiScanResult</a></li>
1820             
1821             </ul>
1822             <ul class="typedefs itemMembers">
1823             
1824             </ul>
1825             <ul class="methods itemMembers">
1826             
1827             <span class="subtitle">Methods</span>
1828             
1829                 <li data-name="LuCI.network#addNetwork"><a href="LuCI.network.html#addNetwork">addNetwork</a></li>
1830             
1831                 <li data-name="LuCI.network#addWifiNetwork"><a href="LuCI.network.html#addWifiNetwork">addWifiNetwork</a></li>
1832             
1833                 <li data-name="LuCI.network#deleteNetwork"><a href="LuCI.network.html#deleteNetwork">deleteNetwork</a></li>
1834             
1835                 <li data-name="LuCI.network#deleteWifiNetwork"><a href="LuCI.network.html#deleteWifiNetwork">deleteWifiNetwork</a></li>
1836             
1837                 <li data-name="LuCI.network#flushCache"><a href="LuCI.network.html#flushCache">flushCache</a></li>
1838             
1839                 <li data-name="LuCI.network#formatWifiEncryption"><a href="LuCI.network.html#formatWifiEncryption">formatWifiEncryption</a></li>
1840             
1841                 <li data-name="LuCI.network#getDevice"><a href="LuCI.network.html#getDevice">getDevice</a></li>
1842             
1843                 <li data-name="LuCI.network#getDevices"><a href="LuCI.network.html#getDevices">getDevices</a></li>
1844             
1845                 <li data-name="LuCI.network#getDSLModemType"><a href="LuCI.network.html#getDSLModemType">getDSLModemType</a></li>
1846             
1847                 <li data-name="LuCI.network#getHostHints"><a href="LuCI.network.html#getHostHints">getHostHints</a></li>
1848             
1849                 <li data-name="LuCI.network#getIfnameOf"><a href="LuCI.network.html#getIfnameOf">getIfnameOf</a></li>
1850             
1851                 <li data-name="LuCI.network#getNetwork"><a href="LuCI.network.html#getNetwork">getNetwork</a></li>
1852             
1853                 <li data-name="LuCI.network#getNetworks"><a href="LuCI.network.html#getNetworks">getNetworks</a></li>
1854             
1855                 <li data-name="LuCI.network#getProtocol"><a href="LuCI.network.html#getProtocol">getProtocol</a></li>
1856             
1857                 <li data-name="LuCI.network#getProtocols"><a href="LuCI.network.html#getProtocols">getProtocols</a></li>
1858             
1859                 <li data-name="LuCI.network#getSwitchTopologies"><a href="LuCI.network.html#getSwitchTopologies">getSwitchTopologies</a></li>
1860             
1861                 <li data-name="LuCI.network#getWAN6Networks"><a href="LuCI.network.html#getWAN6Networks">getWAN6Networks</a></li>
1862             
1863                 <li data-name="LuCI.network#getWANNetworks"><a href="LuCI.network.html#getWANNetworks">getWANNetworks</a></li>
1864             
1865                 <li data-name="LuCI.network#getWifiDevice"><a href="LuCI.network.html#getWifiDevice">getWifiDevice</a></li>
1866             
1867                 <li data-name="LuCI.network#getWifiDevices"><a href="LuCI.network.html#getWifiDevices">getWifiDevices</a></li>
1868             
1869                 <li data-name="LuCI.network#getWifiNetwork"><a href="LuCI.network.html#getWifiNetwork">getWifiNetwork</a></li>
1870             
1871                 <li data-name="LuCI.network#getWifiNetworks"><a href="LuCI.network.html#getWifiNetworks">getWifiNetworks</a></li>
1872             
1873                 <li data-name="LuCI.network#isIgnoredDevice"><a href="LuCI.network.html#isIgnoredDevice">isIgnoredDevice</a></li>
1874             
1875                 <li data-name="LuCI.network#maskToPrefix"><a href="LuCI.network.html#maskToPrefix">maskToPrefix</a></li>
1876             
1877                 <li data-name="LuCI.network#prefixToMask"><a href="LuCI.network.html#prefixToMask">prefixToMask</a></li>
1878             
1879                 <li data-name="LuCI.network#registerErrorCode"><a href="LuCI.network.html#registerErrorCode">registerErrorCode</a></li>
1880             
1881                 <li data-name="LuCI.network#registerPatternVirtual"><a href="LuCI.network.html#registerPatternVirtual">registerPatternVirtual</a></li>
1882             
1883                 <li data-name="LuCI.network#registerProtocol"><a href="LuCI.network.html#registerProtocol">registerProtocol</a></li>
1884             
1885                 <li data-name="LuCI.network#renameNetwork"><a href="LuCI.network.html#renameNetwork">renameNetwork</a></li>
1886             
1887             </ul>
1888             <ul class="events itemMembers">
1889             
1890             </ul>
1891         </li>
1892     
1893         <li class="item" data-name="LuCI.network.Device">
1894             <span class="title">
1895                 <a href="LuCI.network.Device.html">LuCI.network.Device</a>
1896                 
1897             </span>
1898             <ul class="members itemMembers">
1899             
1900             </ul>
1901             <ul class="typedefs itemMembers">
1902             
1903             </ul>
1904             <ul class="typedefs itemMembers">
1905             
1906             </ul>
1907             <ul class="methods itemMembers">
1908             
1909             <span class="subtitle">Methods</span>
1910             
1911                 <li data-name="LuCI.network.Device#getBridgeID"><a href="LuCI.network.Device.html#getBridgeID">getBridgeID</a></li>
1912             
1913                 <li data-name="LuCI.network.Device#getBridgeSTP"><a href="LuCI.network.Device.html#getBridgeSTP">getBridgeSTP</a></li>
1914             
1915                 <li data-name="LuCI.network.Device#getI18n"><a href="LuCI.network.Device.html#getI18n">getI18n</a></li>
1916             
1917                 <li data-name="LuCI.network.Device#getIP6Addrs"><a href="LuCI.network.Device.html#getIP6Addrs">getIP6Addrs</a></li>
1918             
1919                 <li data-name="LuCI.network.Device#getIPAddrs"><a href="LuCI.network.Device.html#getIPAddrs">getIPAddrs</a></li>
1920             
1921                 <li data-name="LuCI.network.Device#getMAC"><a href="LuCI.network.Device.html#getMAC">getMAC</a></li>
1922             
1923                 <li data-name="LuCI.network.Device#getMTU"><a href="LuCI.network.Device.html#getMTU">getMTU</a></li>
1924             
1925                 <li data-name="LuCI.network.Device#getName"><a href="LuCI.network.Device.html#getName">getName</a></li>
1926             
1927                 <li data-name="LuCI.network.Device#getNetwork"><a href="LuCI.network.Device.html#getNetwork">getNetwork</a></li>
1928             
1929                 <li data-name="LuCI.network.Device#getNetworks"><a href="LuCI.network.Device.html#getNetworks">getNetworks</a></li>
1930             
1931                 <li data-name="LuCI.network.Device#getPorts"><a href="LuCI.network.Device.html#getPorts">getPorts</a></li>
1932             
1933                 <li data-name="LuCI.network.Device#getRXBytes"><a href="LuCI.network.Device.html#getRXBytes">getRXBytes</a></li>
1934             
1935                 <li data-name="LuCI.network.Device#getRXPackets"><a href="LuCI.network.Device.html#getRXPackets">getRXPackets</a></li>
1936             
1937                 <li data-name="LuCI.network.Device#getShortName"><a href="LuCI.network.Device.html#getShortName">getShortName</a></li>
1938             
1939                 <li data-name="LuCI.network.Device#getTXBytes"><a href="LuCI.network.Device.html#getTXBytes">getTXBytes</a></li>
1940             
1941                 <li data-name="LuCI.network.Device#getTXPackets"><a href="LuCI.network.Device.html#getTXPackets">getTXPackets</a></li>
1942             
1943                 <li data-name="LuCI.network.Device#getType"><a href="LuCI.network.Device.html#getType">getType</a></li>
1944             
1945                 <li data-name="LuCI.network.Device#getTypeI18n"><a href="LuCI.network.Device.html#getTypeI18n">getTypeI18n</a></li>
1946             
1947                 <li data-name="LuCI.network.Device#getWifiNetwork"><a href="LuCI.network.Device.html#getWifiNetwork">getWifiNetwork</a></li>
1948             
1949                 <li data-name="LuCI.network.Device#isBridge"><a href="LuCI.network.Device.html#isBridge">isBridge</a></li>
1950             
1951                 <li data-name="LuCI.network.Device#isBridgePort"><a href="LuCI.network.Device.html#isBridgePort">isBridgePort</a></li>
1952             
1953                 <li data-name="LuCI.network.Device#isUp"><a href="LuCI.network.Device.html#isUp">isUp</a></li>
1954             
1955             </ul>
1956             <ul class="events itemMembers">
1957             
1958             </ul>
1959         </li>
1960     
1961         <li class="item" data-name="LuCI.network.Hosts">
1962             <span class="title">
1963                 <a href="LuCI.network.Hosts.html">LuCI.network.Hosts</a>
1964                 
1965             </span>
1966             <ul class="members itemMembers">
1967             
1968             </ul>
1969             <ul class="typedefs itemMembers">
1970             
1971             </ul>
1972             <ul class="typedefs itemMembers">
1973             
1974             </ul>
1975             <ul class="methods itemMembers">
1976             
1977             <span class="subtitle">Methods</span>
1978             
1979                 <li data-name="LuCI.network.Hosts#getHostnameByIP6Addr"><a href="LuCI.network.Hosts.html#getHostnameByIP6Addr">getHostnameByIP6Addr</a></li>
1980             
1981                 <li data-name="LuCI.network.Hosts#getHostnameByIPAddr"><a href="LuCI.network.Hosts.html#getHostnameByIPAddr">getHostnameByIPAddr</a></li>
1982             
1983                 <li data-name="LuCI.network.Hosts#getHostnameByMACAddr"><a href="LuCI.network.Hosts.html#getHostnameByMACAddr">getHostnameByMACAddr</a></li>
1984             
1985                 <li data-name="LuCI.network.Hosts#getIP6AddrByMACAddr"><a href="LuCI.network.Hosts.html#getIP6AddrByMACAddr">getIP6AddrByMACAddr</a></li>
1986             
1987                 <li data-name="LuCI.network.Hosts#getIPAddrByMACAddr"><a href="LuCI.network.Hosts.html#getIPAddrByMACAddr">getIPAddrByMACAddr</a></li>
1988             
1989                 <li data-name="LuCI.network.Hosts#getMACAddrByIP6Addr"><a href="LuCI.network.Hosts.html#getMACAddrByIP6Addr">getMACAddrByIP6Addr</a></li>
1990             
1991                 <li data-name="LuCI.network.Hosts#getMACAddrByIPAddr"><a href="LuCI.network.Hosts.html#getMACAddrByIPAddr">getMACAddrByIPAddr</a></li>
1992             
1993                 <li data-name="LuCI.network.Hosts#getMACHints"><a href="LuCI.network.Hosts.html#getMACHints">getMACHints</a></li>
1994             
1995             </ul>
1996             <ul class="events itemMembers">
1997             
1998             </ul>
1999         </li>
2000     
2001         <li class="item" data-name="LuCI.network.Protocol">
2002             <span class="title">
2003                 <a href="LuCI.network.Protocol.html">LuCI.network.Protocol</a>
2004                 
2005             </span>
2006             <ul class="members itemMembers">
2007             
2008             </ul>
2009             <ul class="typedefs itemMembers">
2010             
2011             </ul>
2012             <ul class="typedefs itemMembers">
2013             
2014             </ul>
2015             <ul class="methods itemMembers">
2016             
2017             <span class="subtitle">Methods</span>
2018             
2019                 <li data-name="LuCI.network.Protocol#addDevice"><a href="LuCI.network.Protocol.html#addDevice">addDevice</a></li>
2020             
2021                 <li data-name="LuCI.network.Protocol#containsDevice"><a href="LuCI.network.Protocol.html#containsDevice">containsDevice</a></li>
2022             
2023                 <li data-name="LuCI.network.Protocol#deleteConfiguration"><a href="LuCI.network.Protocol.html#deleteConfiguration">deleteConfiguration</a></li>
2024             
2025                 <li data-name="LuCI.network.Protocol#deleteDevice"><a href="LuCI.network.Protocol.html#deleteDevice">deleteDevice</a></li>
2026             
2027                 <li data-name="LuCI.network.Protocol#get"><a href="LuCI.network.Protocol.html#get">get</a></li>
2028             
2029                 <li data-name="LuCI.network.Protocol#getDevice"><a href="LuCI.network.Protocol.html#getDevice">getDevice</a></li>
2030             
2031                 <li data-name="LuCI.network.Protocol#getDevices"><a href="LuCI.network.Protocol.html#getDevices">getDevices</a></li>
2032             
2033                 <li data-name="LuCI.network.Protocol#getDNS6Addrs"><a href="LuCI.network.Protocol.html#getDNS6Addrs">getDNS6Addrs</a></li>
2034             
2035                 <li data-name="LuCI.network.Protocol#getDNSAddrs"><a href="LuCI.network.Protocol.html#getDNSAddrs">getDNSAddrs</a></li>
2036             
2037                 <li data-name="LuCI.network.Protocol#getErrors"><a href="LuCI.network.Protocol.html#getErrors">getErrors</a></li>
2038             
2039                 <li data-name="LuCI.network.Protocol#getExpiry"><a href="LuCI.network.Protocol.html#getExpiry">getExpiry</a></li>
2040             
2041                 <li data-name="LuCI.network.Protocol#getGateway6Addr"><a href="LuCI.network.Protocol.html#getGateway6Addr">getGateway6Addr</a></li>
2042             
2043                 <li data-name="LuCI.network.Protocol#getGatewayAddr"><a href="LuCI.network.Protocol.html#getGatewayAddr">getGatewayAddr</a></li>
2044             
2045                 <li data-name="LuCI.network.Protocol#getI18n"><a href="LuCI.network.Protocol.html#getI18n">getI18n</a></li>
2046             
2047                 <li data-name="LuCI.network.Protocol#getIfname"><a href="LuCI.network.Protocol.html#getIfname">getIfname</a></li>
2048             
2049                 <li data-name="LuCI.network.Protocol#getIP6Addr"><a href="LuCI.network.Protocol.html#getIP6Addr">getIP6Addr</a></li>
2050             
2051                 <li data-name="LuCI.network.Protocol#getIP6Addrs"><a href="LuCI.network.Protocol.html#getIP6Addrs">getIP6Addrs</a></li>
2052             
2053                 <li data-name="LuCI.network.Protocol#getIP6Prefix"><a href="LuCI.network.Protocol.html#getIP6Prefix">getIP6Prefix</a></li>
2054             
2055                 <li data-name="LuCI.network.Protocol#getIPAddr"><a href="LuCI.network.Protocol.html#getIPAddr">getIPAddr</a></li>
2056             
2057                 <li data-name="LuCI.network.Protocol#getIPAddrs"><a href="LuCI.network.Protocol.html#getIPAddrs">getIPAddrs</a></li>
2058             
2059                 <li data-name="LuCI.network.Protocol#getL2Device"><a href="LuCI.network.Protocol.html#getL2Device">getL2Device</a></li>
2060             
2061                 <li data-name="LuCI.network.Protocol#getL3Device"><a href="LuCI.network.Protocol.html#getL3Device">getL3Device</a></li>
2062             
2063                 <li data-name="LuCI.network.Protocol#getMetric"><a href="LuCI.network.Protocol.html#getMetric">getMetric</a></li>
2064             
2065                 <li data-name="LuCI.network.Protocol#getName"><a href="LuCI.network.Protocol.html#getName">getName</a></li>
2066             
2067                 <li data-name="LuCI.network.Protocol#getNetmask"><a href="LuCI.network.Protocol.html#getNetmask">getNetmask</a></li>
2068             
2069                 <li data-name="LuCI.network.Protocol#getOpkgPackage"><a href="LuCI.network.Protocol.html#getOpkgPackage">getOpkgPackage</a></li>
2070             
2071                 <li data-name="LuCI.network.Protocol#getProtocol"><a href="LuCI.network.Protocol.html#getProtocol">getProtocol</a></li>
2072             
2073                 <li data-name="LuCI.network.Protocol#getType"><a href="LuCI.network.Protocol.html#getType">getType</a></li>
2074             
2075                 <li data-name="LuCI.network.Protocol#getUptime"><a href="LuCI.network.Protocol.html#getUptime">getUptime</a></li>
2076             
2077                 <li data-name="LuCI.network.Protocol#getZoneName"><a href="LuCI.network.Protocol.html#getZoneName">getZoneName</a></li>
2078             
2079                 <li data-name="LuCI.network.Protocol#isAlias"><a href="LuCI.network.Protocol.html#isAlias">isAlias</a></li>
2080             
2081                 <li data-name="LuCI.network.Protocol#isBridge"><a href="LuCI.network.Protocol.html#isBridge">isBridge</a></li>
2082             
2083                 <li data-name="LuCI.network.Protocol#isCreateable"><a href="LuCI.network.Protocol.html#isCreateable">isCreateable</a></li>
2084             
2085                 <li data-name="LuCI.network.Protocol#isDynamic"><a href="LuCI.network.Protocol.html#isDynamic">isDynamic</a></li>
2086             
2087                 <li data-name="LuCI.network.Protocol#isEmpty"><a href="LuCI.network.Protocol.html#isEmpty">isEmpty</a></li>
2088             
2089                 <li data-name="LuCI.network.Protocol#isFloating"><a href="LuCI.network.Protocol.html#isFloating">isFloating</a></li>
2090             
2091                 <li data-name="LuCI.network.Protocol#isInstalled"><a href="LuCI.network.Protocol.html#isInstalled">isInstalled</a></li>
2092             
2093                 <li data-name="LuCI.network.Protocol#isUp"><a href="LuCI.network.Protocol.html#isUp">isUp</a></li>
2094             
2095                 <li data-name="LuCI.network.Protocol#isVirtual"><a href="LuCI.network.Protocol.html#isVirtual">isVirtual</a></li>
2096             
2097                 <li data-name="LuCI.network.Protocol#set"><a href="LuCI.network.Protocol.html#set">set</a></li>
2098             
2099             </ul>
2100             <ul class="events itemMembers">
2101             
2102             </ul>
2103         </li>
2104     
2105         <li class="item" data-name="LuCI.network.WifiDevice">
2106             <span class="title">
2107                 <a href="LuCI.network.WifiDevice.html">LuCI.network.WifiDevice</a>
2108                 
2109             </span>
2110             <ul class="members itemMembers">
2111             
2112             </ul>
2113             <ul class="typedefs itemMembers">
2114             
2115             </ul>
2116             <ul class="typedefs itemMembers">
2117             
2118             </ul>
2119             <ul class="methods itemMembers">
2120             
2121             <span class="subtitle">Methods</span>
2122             
2123                 <li data-name="LuCI.network.WifiDevice#addWifiNetwork"><a href="LuCI.network.WifiDevice.html#addWifiNetwork">addWifiNetwork</a></li>
2124             
2125                 <li data-name="LuCI.network.WifiDevice#deleteWifiNetwork"><a href="LuCI.network.WifiDevice.html#deleteWifiNetwork">deleteWifiNetwork</a></li>
2126             
2127                 <li data-name="LuCI.network.WifiDevice#get"><a href="LuCI.network.WifiDevice.html#get">get</a></li>
2128             
2129                 <li data-name="LuCI.network.WifiDevice#getHTModes"><a href="LuCI.network.WifiDevice.html#getHTModes">getHTModes</a></li>
2130             
2131                 <li data-name="LuCI.network.WifiDevice#getHWModes"><a href="LuCI.network.WifiDevice.html#getHWModes">getHWModes</a></li>
2132             
2133                 <li data-name="LuCI.network.WifiDevice#getI18n"><a href="LuCI.network.WifiDevice.html#getI18n">getI18n</a></li>
2134             
2135                 <li data-name="LuCI.network.WifiDevice#getName"><a href="LuCI.network.WifiDevice.html#getName">getName</a></li>
2136             
2137                 <li data-name="LuCI.network.WifiDevice#getScanList"><a href="LuCI.network.WifiDevice.html#getScanList">getScanList</a></li>
2138             
2139                 <li data-name="LuCI.network.WifiDevice#getWifiNetwork"><a href="LuCI.network.WifiDevice.html#getWifiNetwork">getWifiNetwork</a></li>
2140             
2141                 <li data-name="LuCI.network.WifiDevice#getWifiNetworks"><a href="LuCI.network.WifiDevice.html#getWifiNetworks">getWifiNetworks</a></li>
2142             
2143                 <li data-name="LuCI.network.WifiDevice#isDisabled"><a href="LuCI.network.WifiDevice.html#isDisabled">isDisabled</a></li>
2144             
2145                 <li data-name="LuCI.network.WifiDevice#isUp"><a href="LuCI.network.WifiDevice.html#isUp">isUp</a></li>
2146             
2147                 <li data-name="LuCI.network.WifiDevice#set"><a href="LuCI.network.WifiDevice.html#set">set</a></li>
2148             
2149             </ul>
2150             <ul class="events itemMembers">
2151             
2152             </ul>
2153         </li>
2154     
2155         <li class="item" data-name="LuCI.network.WifiNetwork">
2156             <span class="title">
2157                 <a href="LuCI.network.WifiNetwork.html">LuCI.network.WifiNetwork</a>
2158                 
2159             </span>
2160             <ul class="members itemMembers">
2161             
2162             </ul>
2163             <ul class="typedefs itemMembers">
2164             
2165             </ul>
2166             <ul class="typedefs itemMembers">
2167             
2168             </ul>
2169             <ul class="methods itemMembers">
2170             
2171             <span class="subtitle">Methods</span>
2172             
2173                 <li data-name="LuCI.network.WifiNetwork#disconnectClient"><a href="LuCI.network.WifiNetwork.html#disconnectClient">disconnectClient</a></li>
2174             
2175                 <li data-name="LuCI.network.WifiNetwork#get"><a href="LuCI.network.WifiNetwork.html#get">get</a></li>
2176             
2177                 <li data-name="LuCI.network.WifiNetwork#getActiveBSSID"><a href="LuCI.network.WifiNetwork.html#getActiveBSSID">getActiveBSSID</a></li>
2178             
2179                 <li data-name="LuCI.network.WifiNetwork#getActiveEncryption"><a href="LuCI.network.WifiNetwork.html#getActiveEncryption">getActiveEncryption</a></li>
2180             
2181                 <li data-name="LuCI.network.WifiNetwork#getActiveMode"><a href="LuCI.network.WifiNetwork.html#getActiveMode">getActiveMode</a></li>
2182             
2183                 <li data-name="LuCI.network.WifiNetwork#getActiveModeI18n"><a href="LuCI.network.WifiNetwork.html#getActiveModeI18n">getActiveModeI18n</a></li>
2184             
2185                 <li data-name="LuCI.network.WifiNetwork#getActiveSSID"><a href="LuCI.network.WifiNetwork.html#getActiveSSID">getActiveSSID</a></li>
2186             
2187                 <li data-name="LuCI.network.WifiNetwork#getAssocList"><a href="LuCI.network.WifiNetwork.html#getAssocList">getAssocList</a></li>
2188             
2189                 <li data-name="LuCI.network.WifiNetwork#getBitRate"><a href="LuCI.network.WifiNetwork.html#getBitRate">getBitRate</a></li>
2190             
2191                 <li data-name="LuCI.network.WifiNetwork#getBSSID"><a href="LuCI.network.WifiNetwork.html#getBSSID">getBSSID</a></li>
2192             
2193                 <li data-name="LuCI.network.WifiNetwork#getChannel"><a href="LuCI.network.WifiNetwork.html#getChannel">getChannel</a></li>
2194             
2195                 <li data-name="LuCI.network.WifiNetwork#getCountryCode"><a href="LuCI.network.WifiNetwork.html#getCountryCode">getCountryCode</a></li>
2196             
2197                 <li data-name="LuCI.network.WifiNetwork#getDevice"><a href="LuCI.network.WifiNetwork.html#getDevice">getDevice</a></li>
2198             
2199                 <li data-name="LuCI.network.WifiNetwork#getFrequency"><a href="LuCI.network.WifiNetwork.html#getFrequency">getFrequency</a></li>
2200             
2201                 <li data-name="LuCI.network.WifiNetwork#getI18n"><a href="LuCI.network.WifiNetwork.html#getI18n">getI18n</a></li>
2202             
2203                 <li data-name="LuCI.network.WifiNetwork#getID"><a href="LuCI.network.WifiNetwork.html#getID">getID</a></li>
2204             
2205                 <li data-name="LuCI.network.WifiNetwork#getIfname"><a href="LuCI.network.WifiNetwork.html#getIfname">getIfname</a></li>
2206             
2207                 <li data-name="LuCI.network.WifiNetwork#getMeshID"><a href="LuCI.network.WifiNetwork.html#getMeshID">getMeshID</a></li>
2208             
2209                 <li data-name="LuCI.network.WifiNetwork#getMode"><a href="LuCI.network.WifiNetwork.html#getMode">getMode</a></li>
2210             
2211                 <li data-name="LuCI.network.WifiNetwork#getName"><a href="LuCI.network.WifiNetwork.html#getName">getName</a></li>
2212             
2213                 <li data-name="LuCI.network.WifiNetwork#getNetwork"><a href="LuCI.network.WifiNetwork.html#getNetwork">getNetwork</a></li>
2214             
2215                 <li data-name="LuCI.network.WifiNetwork#getNetworkNames"><a href="LuCI.network.WifiNetwork.html#getNetworkNames">getNetworkNames</a></li>
2216             
2217                 <li data-name="LuCI.network.WifiNetwork#getNetworks"><a href="LuCI.network.WifiNetwork.html#getNetworks">getNetworks</a></li>
2218             
2219                 <li data-name="LuCI.network.WifiNetwork#getNoise"><a href="LuCI.network.WifiNetwork.html#getNoise">getNoise</a></li>
2220             
2221                 <li data-name="LuCI.network.WifiNetwork#getShortName"><a href="LuCI.network.WifiNetwork.html#getShortName">getShortName</a></li>
2222             
2223                 <li data-name="LuCI.network.WifiNetwork#getSignal"><a href="LuCI.network.WifiNetwork.html#getSignal">getSignal</a></li>
2224             
2225                 <li data-name="LuCI.network.WifiNetwork#getSignalLevel"><a href="LuCI.network.WifiNetwork.html#getSignalLevel">getSignalLevel</a></li>
2226             
2227                 <li data-name="LuCI.network.WifiNetwork#getSignalPercent"><a href="LuCI.network.WifiNetwork.html#getSignalPercent">getSignalPercent</a></li>
2228             
2229                 <li data-name="LuCI.network.WifiNetwork#getSSID"><a href="LuCI.network.WifiNetwork.html#getSSID">getSSID</a></li>
2230             
2231                 <li data-name="LuCI.network.WifiNetwork#getTXPower"><a href="LuCI.network.WifiNetwork.html#getTXPower">getTXPower</a></li>
2232             
2233                 <li data-name="LuCI.network.WifiNetwork#getTXPowerOffset"><a href="LuCI.network.WifiNetwork.html#getTXPowerOffset">getTXPowerOffset</a></li>
2234             
2235                 <li data-name="LuCI.network.WifiNetwork#getWifiDevice"><a href="LuCI.network.WifiNetwork.html#getWifiDevice">getWifiDevice</a></li>
2236             
2237                 <li data-name="LuCI.network.WifiNetwork#getWifiDeviceName"><a href="LuCI.network.WifiNetwork.html#getWifiDeviceName">getWifiDeviceName</a></li>
2238             
2239                 <li data-name="LuCI.network.WifiNetwork#isClientDisconnectSupported"><a href="LuCI.network.WifiNetwork.html#isClientDisconnectSupported">isClientDisconnectSupported</a></li>
2240             
2241                 <li data-name="LuCI.network.WifiNetwork#isDisabled"><a href="LuCI.network.WifiNetwork.html#isDisabled">isDisabled</a></li>
2242             
2243                 <li data-name="LuCI.network.WifiNetwork#isUp"><a href="LuCI.network.WifiNetwork.html#isUp">isUp</a></li>
2244             
2245                 <li data-name="LuCI.network.WifiNetwork#set"><a href="LuCI.network.WifiNetwork.html#set">set</a></li>
2246             
2247             </ul>
2248             <ul class="events itemMembers">
2249             
2250             </ul>
2251         </li>
2252     
2253         <li class="item" data-name="LuCI.poll">
2254             <span class="title">
2255                 <a href="LuCI.poll.html">LuCI.poll</a>
2256                 
2257             </span>
2258             <ul class="members itemMembers">
2259             
2260             </ul>
2261             <ul class="typedefs itemMembers">
2262             
2263             </ul>
2264             <ul class="typedefs itemMembers">
2265             
2266             </ul>
2267             <ul class="methods itemMembers">
2268             
2269             <span class="subtitle">Methods</span>
2270             
2271                 <li data-name="LuCI.poll#active"><a href="LuCI.poll.html#active">active</a></li>
2272             
2273                 <li data-name="LuCI.poll#add"><a href="LuCI.poll.html#add">add</a></li>
2274             
2275                 <li data-name="LuCI.poll#remove"><a href="LuCI.poll.html#remove">remove</a></li>
2276             
2277                 <li data-name="LuCI.poll#start"><a href="LuCI.poll.html#start">start</a></li>
2278             
2279                 <li data-name="LuCI.poll#stop"><a href="LuCI.poll.html#stop">stop</a></li>
2280             
2281             </ul>
2282             <ul class="events itemMembers">
2283             
2284             </ul>
2285         </li>
2286     
2287         <li class="item" data-name="LuCI.request">
2288             <span class="title">
2289                 <a href="LuCI.request.html">LuCI.request</a>
2290                 
2291             </span>
2292             <ul class="members itemMembers">
2293             
2294             </ul>
2295             <ul class="typedefs itemMembers">
2296             
2297             <span class="subtitle">Typedefs</span>
2298             
2299                 <li data-name="LuCI.request.interceptorFn"><a href="LuCI.request.html#.interceptorFn">interceptorFn</a></li>
2300             
2301                 <li data-name="LuCI.request.RequestOptions"><a href="LuCI.request.html#.RequestOptions">RequestOptions</a></li>
2302             
2303             </ul>
2304             <ul class="typedefs itemMembers">
2305             
2306             </ul>
2307             <ul class="methods itemMembers">
2308             
2309             <span class="subtitle">Methods</span>
2310             
2311                 <li data-name="LuCI.request#addInterceptor"><a href="LuCI.request.html#addInterceptor">addInterceptor</a></li>
2312             
2313                 <li data-name="LuCI.request#expandURL"><a href="LuCI.request.html#expandURL">expandURL</a></li>
2314             
2315                 <li data-name="LuCI.request#get"><a href="LuCI.request.html#get">get</a></li>
2316             
2317                 <li data-name="LuCI.request#post"><a href="LuCI.request.html#post">post</a></li>
2318             
2319                 <li data-name="LuCI.request#removeInterceptor"><a href="LuCI.request.html#removeInterceptor">removeInterceptor</a></li>
2320             
2321                 <li data-name="LuCI.request#request"><a href="LuCI.request.html#request">request</a></li>
2322             
2323             </ul>
2324             <ul class="events itemMembers">
2325             
2326             </ul>
2327         </li>
2328     
2329         <li class="item" data-name="LuCI.request.poll">
2330             <span class="title">
2331                 <a href="LuCI.request.poll.html">LuCI.request.poll</a>
2332                 
2333             </span>
2334             <ul class="members itemMembers">
2335             
2336             </ul>
2337             <ul class="typedefs itemMembers">
2338             
2339             <span class="subtitle">Typedefs</span>
2340             
2341                 <li data-name="LuCI.request.poll~callbackFn"><a href="LuCI.request.poll.html#~callbackFn">callbackFn</a></li>
2342             
2343             </ul>
2344             <ul class="typedefs itemMembers">
2345             
2346             </ul>
2347             <ul class="methods itemMembers">
2348             
2349             <span class="subtitle">Methods</span>
2350             
2351                 <li data-name="LuCI.request.poll#active"><a href="LuCI.request.poll.html#active">active</a></li>
2352             
2353                 <li data-name="LuCI.request.poll#add"><a href="LuCI.request.poll.html#add">add</a></li>
2354             
2355                 <li data-name="LuCI.request.poll#remove"><a href="LuCI.request.poll.html#remove">remove</a></li>
2356             
2357                 <li data-name="LuCI.request.poll#start"><a href="LuCI.request.poll.html#start">start</a></li>
2358             
2359                 <li data-name="LuCI.request.poll#stop"><a href="LuCI.request.poll.html#stop">stop</a></li>
2360             
2361             </ul>
2362             <ul class="events itemMembers">
2363             
2364             </ul>
2365         </li>
2366     
2367         <li class="item" data-name="LuCI.response">
2368             <span class="title">
2369                 <a href="LuCI.response.html">LuCI.response</a>
2370                 
2371             </span>
2372             <ul class="members itemMembers">
2373             
2374             <span class="subtitle">Members</span>
2375             
2376                 <li data-name="LuCI.response#duration"><a href="LuCI.response.html#duration">duration</a></li>
2377             
2378                 <li data-name="LuCI.response#headers"><a href="LuCI.response.html#headers">headers</a></li>
2379             
2380                 <li data-name="LuCI.response#ok"><a href="LuCI.response.html#ok">ok</a></li>
2381             
2382                 <li data-name="LuCI.response#status"><a href="LuCI.response.html#status">status</a></li>
2383             
2384                 <li data-name="LuCI.response#statusText"><a href="LuCI.response.html#statusText">statusText</a></li>
2385             
2386                 <li data-name="LuCI.response#url"><a href="LuCI.response.html#url">url</a></li>
2387             
2388             </ul>
2389             <ul class="typedefs itemMembers">
2390             
2391             </ul>
2392             <ul class="typedefs itemMembers">
2393             
2394             </ul>
2395             <ul class="methods itemMembers">
2396             
2397             <span class="subtitle">Methods</span>
2398             
2399                 <li data-name="LuCI.response#blob"><a href="LuCI.response.html#blob">blob</a></li>
2400             
2401                 <li data-name="LuCI.response#clone"><a href="LuCI.response.html#clone">clone</a></li>
2402             
2403                 <li data-name="LuCI.response#json"><a href="LuCI.response.html#json">json</a></li>
2404             
2405                 <li data-name="LuCI.response#text"><a href="LuCI.response.html#text">text</a></li>
2406             
2407             </ul>
2408             <ul class="events itemMembers">
2409             
2410             </ul>
2411         </li>
2412     
2413         <li class="item" data-name="LuCI.rpc">
2414             <span class="title">
2415                 <a href="LuCI.rpc.html">LuCI.rpc</a>
2416                 
2417             </span>
2418             <ul class="members itemMembers">
2419             
2420             </ul>
2421             <ul class="typedefs itemMembers">
2422             
2423             <span class="subtitle">Typedefs</span>
2424             
2425                 <li data-name="LuCI.rpc.DeclareOptions"><a href="LuCI.rpc.html#.DeclareOptions">DeclareOptions</a></li>
2426             
2427                 <li data-name="LuCI.rpc~filterFn"><a href="LuCI.rpc.html#~filterFn">filterFn</a></li>
2428             
2429                 <li data-name="LuCI.rpc~interceptorFn"><a href="LuCI.rpc.html#~interceptorFn">interceptorFn</a></li>
2430             
2431                 <li data-name="LuCI.rpc~invokeFn"><a href="LuCI.rpc.html#~invokeFn">invokeFn</a></li>
2432             
2433             </ul>
2434             <ul class="typedefs itemMembers">
2435             
2436             </ul>
2437             <ul class="methods itemMembers">
2438             
2439             <span class="subtitle">Methods</span>
2440             
2441                 <li data-name="LuCI.rpc#addInterceptor"><a href="LuCI.rpc.html#addInterceptor">addInterceptor</a></li>
2442             
2443                 <li data-name="LuCI.rpc#declare"><a href="LuCI.rpc.html#declare">declare</a></li>
2444             
2445                 <li data-name="LuCI.rpc#getBaseURL"><a href="LuCI.rpc.html#getBaseURL">getBaseURL</a></li>
2446             
2447                 <li data-name="LuCI.rpc#getSessionID"><a href="LuCI.rpc.html#getSessionID">getSessionID</a></li>
2448             
2449                 <li data-name="LuCI.rpc#getStatusText"><a href="LuCI.rpc.html#getStatusText">getStatusText</a></li>
2450             
2451                 <li data-name="LuCI.rpc#list"><a href="LuCI.rpc.html#list">list</a></li>
2452             
2453                 <li data-name="LuCI.rpc#removeInterceptor"><a href="LuCI.rpc.html#removeInterceptor">removeInterceptor</a></li>
2454             
2455                 <li data-name="LuCI.rpc#setBaseURL"><a href="LuCI.rpc.html#setBaseURL">setBaseURL</a></li>
2456             
2457                 <li data-name="LuCI.rpc#setSessionID"><a href="LuCI.rpc.html#setSessionID">setSessionID</a></li>
2458             
2459             </ul>
2460             <ul class="events itemMembers">
2461             
2462             </ul>
2463         </li>
2464     
2465         <li class="item" data-name="LuCI.uci">
2466             <span class="title">
2467                 <a href="LuCI.uci.html">LuCI.uci</a>
2468                 
2469             </span>
2470             <ul class="members itemMembers">
2471             
2472             </ul>
2473             <ul class="typedefs itemMembers">
2474             
2475             <span class="subtitle">Typedefs</span>
2476             
2477                 <li data-name="LuCI.uci.ChangeRecord"><a href="LuCI.uci.html#.ChangeRecord">ChangeRecord</a></li>
2478             
2479                 <li data-name="LuCI.uci.SectionObject"><a href="LuCI.uci.html#.SectionObject">SectionObject</a></li>
2480             
2481                 <li data-name="LuCI.uci~sectionsFn"><a href="LuCI.uci.html#~sectionsFn">sectionsFn</a></li>
2482             
2483             </ul>
2484             <ul class="typedefs itemMembers">
2485             
2486             </ul>
2487             <ul class="methods itemMembers">
2488             
2489             <span class="subtitle">Methods</span>
2490             
2491                 <li data-name="LuCI.uci#add"><a href="LuCI.uci.html#add">add</a></li>
2492             
2493                 <li data-name="LuCI.uci#apply"><a href="LuCI.uci.html#apply">apply</a></li>
2494             
2495                 <li data-name="LuCI.uci#changes"><a href="LuCI.uci.html#changes">changes</a></li>
2496             
2497                 <li data-name="LuCI.uci#createSID"><a href="LuCI.uci.html#createSID">createSID</a></li>
2498             
2499                 <li data-name="LuCI.uci#get"><a href="LuCI.uci.html#get">get</a></li>
2500             
2501                 <li data-name="LuCI.uci#get_first"><a href="LuCI.uci.html#get_first">get_first</a></li>
2502             
2503                 <li data-name="LuCI.uci#load"><a href="LuCI.uci.html#load">load</a></li>
2504             
2505                 <li data-name="LuCI.uci#move"><a href="LuCI.uci.html#move">move</a></li>
2506             
2507                 <li data-name="LuCI.uci#remove"><a href="LuCI.uci.html#remove">remove</a></li>
2508             
2509                 <li data-name="LuCI.uci#resolveSID"><a href="LuCI.uci.html#resolveSID">resolveSID</a></li>
2510             
2511                 <li data-name="LuCI.uci#save"><a href="LuCI.uci.html#save">save</a></li>
2512             
2513                 <li data-name="LuCI.uci#sections"><a href="LuCI.uci.html#sections">sections</a></li>
2514             
2515                 <li data-name="LuCI.uci#set"><a href="LuCI.uci.html#set">set</a></li>
2516             
2517                 <li data-name="LuCI.uci#set_first"><a href="LuCI.uci.html#set_first">set_first</a></li>
2518             
2519                 <li data-name="LuCI.uci#unload"><a href="LuCI.uci.html#unload">unload</a></li>
2520             
2521                 <li data-name="LuCI.uci#unset"><a href="LuCI.uci.html#unset">unset</a></li>
2522             
2523                 <li data-name="LuCI.uci#unset_first"><a href="LuCI.uci.html#unset_first">unset_first</a></li>
2524             
2525             </ul>
2526             <ul class="events itemMembers">
2527             
2528             </ul>
2529         </li>
2530     
2531         <li class="item" data-name="LuCI.ui">
2532             <span class="title">
2533                 <a href="LuCI.ui.html">LuCI.ui</a>
2534                 
2535             </span>
2536             <ul class="members itemMembers">
2537             
2538             </ul>
2539             <ul class="typedefs itemMembers">
2540             
2541             <span class="subtitle">Typedefs</span>
2542             
2543                 <li data-name="LuCI.ui.FileUploadReply"><a href="LuCI.ui.html#.FileUploadReply">FileUploadReply</a></li>
2544             
2545             </ul>
2546             <ul class="typedefs itemMembers">
2547             
2548             </ul>
2549             <ul class="methods itemMembers">
2550             
2551             <span class="subtitle">Methods</span>
2552             
2553                 <li data-name="LuCI.ui#addNotification"><a href="LuCI.ui.html#addNotification">addNotification</a></li>
2554             
2555                 <li data-name="LuCI.ui#addValidator"><a href="LuCI.ui.html#addValidator">addValidator</a></li>
2556             
2557                 <li data-name="LuCI.ui#awaitReconnect"><a href="LuCI.ui.html#awaitReconnect">awaitReconnect</a></li>
2558             
2559                 <li data-name="LuCI.ui#createHandlerFn"><a href="LuCI.ui.html#createHandlerFn">createHandlerFn</a></li>
2560             
2561                 <li data-name="LuCI.ui#hideIndicator"><a href="LuCI.ui.html#hideIndicator">hideIndicator</a></li>
2562             
2563                 <li data-name="LuCI.ui#hideModal"><a href="LuCI.ui.html#hideModal">hideModal</a></li>
2564             
2565                 <li data-name="LuCI.ui#instantiateView"><a href="LuCI.ui.html#instantiateView">instantiateView</a></li>
2566             
2567                 <li data-name="LuCI.ui#itemlist"><a href="LuCI.ui.html#itemlist">itemlist</a></li>
2568             
2569                 <li data-name="LuCI.ui#pingDevice"><a href="LuCI.ui.html#pingDevice">pingDevice</a></li>
2570             
2571                 <li data-name="LuCI.ui#showIndicator"><a href="LuCI.ui.html#showIndicator">showIndicator</a></li>
2572             
2573                 <li data-name="LuCI.ui#showModal"><a href="LuCI.ui.html#showModal">showModal</a></li>
2574             
2575                 <li data-name="LuCI.ui#uploadFile"><a href="LuCI.ui.html#uploadFile">uploadFile</a></li>
2576             
2577             </ul>
2578             <ul class="events itemMembers">
2579             
2580             </ul>
2581         </li>
2582     
2583         <li class="item" data-name="LuCI.ui.AbstractElement">
2584             <span class="title">
2585                 <a href="LuCI.ui.AbstractElement.html">LuCI.ui.AbstractElement</a>
2586                 
2587             </span>
2588             <ul class="members itemMembers">
2589             
2590             </ul>
2591             <ul class="typedefs itemMembers">
2592             
2593             <span class="subtitle">Typedefs</span>
2594             
2595                 <li data-name="LuCI.ui.AbstractElement.InitOptions"><a href="LuCI.ui.AbstractElement.html#.InitOptions">InitOptions</a></li>
2596             
2597             </ul>
2598             <ul class="typedefs itemMembers">
2599             
2600             </ul>
2601             <ul class="methods itemMembers">
2602             
2603             <span class="subtitle">Methods</span>
2604             
2605                 <li data-name="LuCI.ui.AbstractElement#getValue"><a href="LuCI.ui.AbstractElement.html#getValue">getValue</a></li>
2606             
2607                 <li data-name="LuCI.ui.AbstractElement#isValid"><a href="LuCI.ui.AbstractElement.html#isValid">isValid</a></li>
2608             
2609                 <li data-name="LuCI.ui.AbstractElement#registerEvents"><a href="LuCI.ui.AbstractElement.html#registerEvents">registerEvents</a></li>
2610             
2611                 <li data-name="LuCI.ui.AbstractElement#render"><a href="LuCI.ui.AbstractElement.html#render">render</a></li>
2612             
2613                 <li data-name="LuCI.ui.AbstractElement#setChangeEvents"><a href="LuCI.ui.AbstractElement.html#setChangeEvents">setChangeEvents</a></li>
2614             
2615                 <li data-name="LuCI.ui.AbstractElement#setUpdateEvents"><a href="LuCI.ui.AbstractElement.html#setUpdateEvents">setUpdateEvents</a></li>
2616             
2617                 <li data-name="LuCI.ui.AbstractElement#setValue"><a href="LuCI.ui.AbstractElement.html#setValue">setValue</a></li>
2618             
2619                 <li data-name="LuCI.ui.AbstractElement#triggerValidation"><a href="LuCI.ui.AbstractElement.html#triggerValidation">triggerValidation</a></li>
2620             
2621             </ul>
2622             <ul class="events itemMembers">
2623             
2624             </ul>
2625         </li>
2626     
2627         <li class="item" data-name="LuCI.ui.changes">
2628             <span class="title">
2629                 <a href="LuCI.ui.changes.html">LuCI.ui.changes</a>
2630                 
2631             </span>
2632             <ul class="members itemMembers">
2633             
2634             </ul>
2635             <ul class="typedefs itemMembers">
2636             
2637             </ul>
2638             <ul class="typedefs itemMembers">
2639             
2640             </ul>
2641             <ul class="methods itemMembers">
2642             
2643             <span class="subtitle">Methods</span>
2644             
2645                 <li data-name="LuCI.ui.changes#apply"><a href="LuCI.ui.changes.html#apply">apply</a></li>
2646             
2647                 <li data-name="LuCI.ui.changes#displayChanges"><a href="LuCI.ui.changes.html#displayChanges">displayChanges</a></li>
2648             
2649                 <li data-name="LuCI.ui.changes#renderChangeIndicator"><a href="LuCI.ui.changes.html#renderChangeIndicator">renderChangeIndicator</a></li>
2650             
2651                 <li data-name="LuCI.ui.changes#revert"><a href="LuCI.ui.changes.html#revert">revert</a></li>
2652             
2653                 <li data-name="LuCI.ui.changes#setIndicator"><a href="LuCI.ui.changes.html#setIndicator">setIndicator</a></li>
2654             
2655             </ul>
2656             <ul class="events itemMembers">
2657             
2658             </ul>
2659         </li>
2660     
2661         <li class="item" data-name="LuCI.ui.Checkbox">
2662             <span class="title">
2663                 <a href="LuCI.ui.Checkbox.html">LuCI.ui.Checkbox</a>
2664                 
2665             </span>
2666             <ul class="members itemMembers">
2667             
2668             </ul>
2669             <ul class="typedefs itemMembers">
2670             
2671             <span class="subtitle">Typedefs</span>
2672             
2673                 <li data-name="LuCI.ui.Checkbox.InitOptions"><a href="LuCI.ui.Checkbox.html#.InitOptions">InitOptions</a></li>
2674             
2675             </ul>
2676             <ul class="typedefs itemMembers">
2677             
2678             </ul>
2679             <ul class="methods itemMembers">
2680             
2681             <span class="subtitle">Methods</span>
2682             
2683                 <li data-name="LuCI.ui.Checkbox#getValue"><a href="LuCI.ui.Checkbox.html#getValue">getValue</a></li>
2684             
2685                 <li data-name="LuCI.ui.Checkbox#isChecked"><a href="LuCI.ui.Checkbox.html#isChecked">isChecked</a></li>
2686             
2687                 <li data-name="LuCI.ui.Checkbox#isValid"><a href="LuCI.ui.Checkbox.html#isValid">isValid</a></li>
2688             
2689                 <li data-name="LuCI.ui.Checkbox#registerEvents"><a href="LuCI.ui.Checkbox.html#registerEvents">registerEvents</a></li>
2690             
2691                 <li data-name="LuCI.ui.Checkbox#render"><a href="LuCI.ui.Checkbox.html#render">render</a></li>
2692             
2693                 <li data-name="LuCI.ui.Checkbox#setChangeEvents"><a href="LuCI.ui.Checkbox.html#setChangeEvents">setChangeEvents</a></li>
2694             
2695                 <li data-name="LuCI.ui.Checkbox#setUpdateEvents"><a href="LuCI.ui.Checkbox.html#setUpdateEvents">setUpdateEvents</a></li>
2696             
2697                 <li data-name="LuCI.ui.Checkbox#setValue"><a href="LuCI.ui.Checkbox.html#setValue">setValue</a></li>
2698             
2699                 <li data-name="LuCI.ui.Checkbox#triggerValidation"><a href="LuCI.ui.Checkbox.html#triggerValidation">triggerValidation</a></li>
2700             
2701             </ul>
2702             <ul class="events itemMembers">
2703             
2704             </ul>
2705         </li>
2706     
2707         <li class="item" data-name="LuCI.ui.Combobox">
2708             <span class="title">
2709                 <a href="LuCI.ui.Combobox.html">LuCI.ui.Combobox</a>
2710                 
2711             </span>
2712             <ul class="members itemMembers">
2713             
2714             </ul>
2715             <ul class="typedefs itemMembers">
2716             
2717             <span class="subtitle">Typedefs</span>
2718             
2719                 <li data-name="LuCI.ui.Combobox.InitOptions"><a href="LuCI.ui.Combobox.html#.InitOptions">InitOptions</a></li>
2720             
2721             </ul>
2722             <ul class="typedefs itemMembers">
2723             
2724             </ul>
2725             <ul class="methods itemMembers">
2726             
2727             <span class="subtitle">Methods</span>
2728             
2729                 <li data-name="LuCI.ui.Combobox#addChoices"><a href="LuCI.ui.Combobox.html#addChoices">addChoices</a></li>
2730             
2731                 <li data-name="LuCI.ui.Combobox#clearChoices"><a href="LuCI.ui.Combobox.html#clearChoices">clearChoices</a></li>
2732             
2733                 <li data-name="LuCI.ui.Combobox#closeAllDropdowns"><a href="LuCI.ui.Combobox.html#closeAllDropdowns">closeAllDropdowns</a></li>
2734             
2735                 <li data-name="LuCI.ui.Combobox#isValid"><a href="LuCI.ui.Combobox.html#isValid">isValid</a></li>
2736             
2737                 <li data-name="LuCI.ui.Combobox#registerEvents"><a href="LuCI.ui.Combobox.html#registerEvents">registerEvents</a></li>
2738             
2739                 <li data-name="LuCI.ui.Combobox#setChangeEvents"><a href="LuCI.ui.Combobox.html#setChangeEvents">setChangeEvents</a></li>
2740             
2741                 <li data-name="LuCI.ui.Combobox#setUpdateEvents"><a href="LuCI.ui.Combobox.html#setUpdateEvents">setUpdateEvents</a></li>
2742             
2743                 <li data-name="LuCI.ui.Combobox#triggerValidation"><a href="LuCI.ui.Combobox.html#triggerValidation">triggerValidation</a></li>
2744             
2745             </ul>
2746             <ul class="events itemMembers">
2747             
2748             </ul>
2749         </li>
2750     
2751         <li class="item" data-name="LuCI.ui.ComboButton">
2752             <span class="title">
2753                 <a href="LuCI.ui.ComboButton.html">LuCI.ui.ComboButton</a>
2754                 
2755             </span>
2756             <ul class="members itemMembers">
2757             
2758             </ul>
2759             <ul class="typedefs itemMembers">
2760             
2761             <span class="subtitle">Typedefs</span>
2762             
2763                 <li data-name="LuCI.ui.ComboButton.InitOptions"><a href="LuCI.ui.ComboButton.html#.InitOptions">InitOptions</a></li>
2764             
2765             </ul>
2766             <ul class="typedefs itemMembers">
2767             
2768             </ul>
2769             <ul class="methods itemMembers">
2770             
2771             <span class="subtitle">Methods</span>
2772             
2773                 <li data-name="LuCI.ui.ComboButton#addChoices"><a href="LuCI.ui.ComboButton.html#addChoices">addChoices</a></li>
2774             
2775                 <li data-name="LuCI.ui.ComboButton#clearChoices"><a href="LuCI.ui.ComboButton.html#clearChoices">clearChoices</a></li>
2776             
2777                 <li data-name="LuCI.ui.ComboButton#closeAllDropdowns"><a href="LuCI.ui.ComboButton.html#closeAllDropdowns">closeAllDropdowns</a></li>
2778             
2779                 <li data-name="LuCI.ui.ComboButton#isValid"><a href="LuCI.ui.ComboButton.html#isValid">isValid</a></li>
2780             
2781                 <li data-name="LuCI.ui.ComboButton#registerEvents"><a href="LuCI.ui.ComboButton.html#registerEvents">registerEvents</a></li>
2782             
2783                 <li data-name="LuCI.ui.ComboButton#setChangeEvents"><a href="LuCI.ui.ComboButton.html#setChangeEvents">setChangeEvents</a></li>
2784             
2785                 <li data-name="LuCI.ui.ComboButton#setUpdateEvents"><a href="LuCI.ui.ComboButton.html#setUpdateEvents">setUpdateEvents</a></li>
2786             
2787                 <li data-name="LuCI.ui.ComboButton#triggerValidation"><a href="LuCI.ui.ComboButton.html#triggerValidation">triggerValidation</a></li>
2788             
2789             </ul>
2790             <ul class="events itemMembers">
2791             
2792             </ul>
2793         </li>
2794     
2795         <li class="item" data-name="LuCI.ui.Dropdown">
2796             <span class="title">
2797                 <a href="LuCI.ui.Dropdown.html">LuCI.ui.Dropdown</a>
2798                 
2799             </span>
2800             <ul class="members itemMembers">
2801             
2802             </ul>
2803             <ul class="typedefs itemMembers">
2804             
2805             <span class="subtitle">Typedefs</span>
2806             
2807                 <li data-name="LuCI.ui.Dropdown.InitOptions"><a href="LuCI.ui.Dropdown.html#.InitOptions">InitOptions</a></li>
2808             
2809             </ul>
2810             <ul class="typedefs itemMembers">
2811             
2812             </ul>
2813             <ul class="methods itemMembers">
2814             
2815             <span class="subtitle">Methods</span>
2816             
2817                 <li data-name="LuCI.ui.Dropdown#addChoices"><a href="LuCI.ui.Dropdown.html#addChoices">addChoices</a></li>
2818             
2819                 <li data-name="LuCI.ui.Dropdown#clearChoices"><a href="LuCI.ui.Dropdown.html#clearChoices">clearChoices</a></li>
2820             
2821                 <li data-name="LuCI.ui.Dropdown#closeAllDropdowns"><a href="LuCI.ui.Dropdown.html#closeAllDropdowns">closeAllDropdowns</a></li>
2822             
2823                 <li data-name="LuCI.ui.Dropdown#getValue"><a href="LuCI.ui.Dropdown.html#getValue">getValue</a></li>
2824             
2825                 <li data-name="LuCI.ui.Dropdown#isValid"><a href="LuCI.ui.Dropdown.html#isValid">isValid</a></li>
2826             
2827                 <li data-name="LuCI.ui.Dropdown#registerEvents"><a href="LuCI.ui.Dropdown.html#registerEvents">registerEvents</a></li>
2828             
2829                 <li data-name="LuCI.ui.Dropdown#render"><a href="LuCI.ui.Dropdown.html#render">render</a></li>
2830             
2831                 <li data-name="LuCI.ui.Dropdown#setChangeEvents"><a href="LuCI.ui.Dropdown.html#setChangeEvents">setChangeEvents</a></li>
2832             
2833                 <li data-name="LuCI.ui.Dropdown#setUpdateEvents"><a href="LuCI.ui.Dropdown.html#setUpdateEvents">setUpdateEvents</a></li>
2834             
2835                 <li data-name="LuCI.ui.Dropdown#setValue"><a href="LuCI.ui.Dropdown.html#setValue">setValue</a></li>
2836             
2837                 <li data-name="LuCI.ui.Dropdown#triggerValidation"><a href="LuCI.ui.Dropdown.html#triggerValidation">triggerValidation</a></li>
2838             
2839             </ul>
2840             <ul class="events itemMembers">
2841             
2842             </ul>
2843         </li>
2844     
2845         <li class="item" data-name="LuCI.ui.DynamicList">
2846             <span class="title">
2847                 <a href="LuCI.ui.DynamicList.html">LuCI.ui.DynamicList</a>
2848                 
2849             </span>
2850             <ul class="members itemMembers">
2851             
2852             </ul>
2853             <ul class="typedefs itemMembers">
2854             
2855             <span class="subtitle">Typedefs</span>
2856             
2857                 <li data-name="LuCI.ui.DynamicList.InitOptions"><a href="LuCI.ui.DynamicList.html#.InitOptions">InitOptions</a></li>
2858             
2859             </ul>
2860             <ul class="typedefs itemMembers">
2861             
2862             </ul>
2863             <ul class="methods itemMembers">
2864             
2865             <span class="subtitle">Methods</span>
2866             
2867                 <li data-name="LuCI.ui.DynamicList#addChoices"><a href="LuCI.ui.DynamicList.html#addChoices">addChoices</a></li>
2868             
2869                 <li data-name="LuCI.ui.DynamicList#clearChoices"><a href="LuCI.ui.DynamicList.html#clearChoices">clearChoices</a></li>
2870             
2871                 <li data-name="LuCI.ui.DynamicList#getValue"><a href="LuCI.ui.DynamicList.html#getValue">getValue</a></li>
2872             
2873                 <li data-name="LuCI.ui.DynamicList#isValid"><a href="LuCI.ui.DynamicList.html#isValid">isValid</a></li>
2874             
2875                 <li data-name="LuCI.ui.DynamicList#registerEvents"><a href="LuCI.ui.DynamicList.html#registerEvents">registerEvents</a></li>
2876             
2877                 <li data-name="LuCI.ui.DynamicList#render"><a href="LuCI.ui.DynamicList.html#render">render</a></li>
2878             
2879                 <li data-name="LuCI.ui.DynamicList#setChangeEvents"><a href="LuCI.ui.DynamicList.html#setChangeEvents">setChangeEvents</a></li>
2880             
2881                 <li data-name="LuCI.ui.DynamicList#setUpdateEvents"><a href="LuCI.ui.DynamicList.html#setUpdateEvents">setUpdateEvents</a></li>
2882             
2883                 <li data-name="LuCI.ui.DynamicList#setValue"><a href="LuCI.ui.DynamicList.html#setValue">setValue</a></li>
2884             
2885                 <li data-name="LuCI.ui.DynamicList#triggerValidation"><a href="LuCI.ui.DynamicList.html#triggerValidation">triggerValidation</a></li>
2886             
2887             </ul>
2888             <ul class="events itemMembers">
2889             
2890             </ul>
2891         </li>
2892     
2893         <li class="item" data-name="LuCI.ui.FileUpload">
2894             <span class="title">
2895                 <a href="LuCI.ui.FileUpload.html">LuCI.ui.FileUpload</a>
2896                 
2897             </span>
2898             <ul class="members itemMembers">
2899             
2900             </ul>
2901             <ul class="typedefs itemMembers">
2902             
2903             <span class="subtitle">Typedefs</span>
2904             
2905                 <li data-name="LuCI.ui.FileUpload.InitOptions"><a href="LuCI.ui.FileUpload.html#.InitOptions">InitOptions</a></li>
2906             
2907             </ul>
2908             <ul class="typedefs itemMembers">
2909             
2910             </ul>
2911             <ul class="methods itemMembers">
2912             
2913             <span class="subtitle">Methods</span>
2914             
2915                 <li data-name="LuCI.ui.FileUpload#getValue"><a href="LuCI.ui.FileUpload.html#getValue">getValue</a></li>
2916             
2917                 <li data-name="LuCI.ui.FileUpload#isValid"><a href="LuCI.ui.FileUpload.html#isValid">isValid</a></li>
2918             
2919                 <li data-name="LuCI.ui.FileUpload#registerEvents"><a href="LuCI.ui.FileUpload.html#registerEvents">registerEvents</a></li>
2920             
2921                 <li data-name="LuCI.ui.FileUpload#render"><a href="LuCI.ui.FileUpload.html#render">render</a></li>
2922             
2923                 <li data-name="LuCI.ui.FileUpload#setChangeEvents"><a href="LuCI.ui.FileUpload.html#setChangeEvents">setChangeEvents</a></li>
2924             
2925                 <li data-name="LuCI.ui.FileUpload#setUpdateEvents"><a href="LuCI.ui.FileUpload.html#setUpdateEvents">setUpdateEvents</a></li>
2926             
2927                 <li data-name="LuCI.ui.FileUpload#setValue"><a href="LuCI.ui.FileUpload.html#setValue">setValue</a></li>
2928             
2929                 <li data-name="LuCI.ui.FileUpload#triggerValidation"><a href="LuCI.ui.FileUpload.html#triggerValidation">triggerValidation</a></li>
2930             
2931             </ul>
2932             <ul class="events itemMembers">
2933             
2934             </ul>
2935         </li>
2936     
2937         <li class="item" data-name="LuCI.ui.Hiddenfield">
2938             <span class="title">
2939                 <a href="LuCI.ui.Hiddenfield.html">LuCI.ui.Hiddenfield</a>
2940                 
2941             </span>
2942             <ul class="members itemMembers">
2943             
2944             </ul>
2945             <ul class="typedefs itemMembers">
2946             
2947             </ul>
2948             <ul class="typedefs itemMembers">
2949             
2950             </ul>
2951             <ul class="methods itemMembers">
2952             
2953             <span class="subtitle">Methods</span>
2954             
2955                 <li data-name="LuCI.ui.Hiddenfield#getValue"><a href="LuCI.ui.Hiddenfield.html#getValue">getValue</a></li>
2956             
2957                 <li data-name="LuCI.ui.Hiddenfield#isValid"><a href="LuCI.ui.Hiddenfield.html#isValid">isValid</a></li>
2958             
2959                 <li data-name="LuCI.ui.Hiddenfield#registerEvents"><a href="LuCI.ui.Hiddenfield.html#registerEvents">registerEvents</a></li>
2960             
2961                 <li data-name="LuCI.ui.Hiddenfield#render"><a href="LuCI.ui.Hiddenfield.html#render">render</a></li>
2962             
2963                 <li data-name="LuCI.ui.Hiddenfield#setChangeEvents"><a href="LuCI.ui.Hiddenfield.html#setChangeEvents">setChangeEvents</a></li>
2964             
2965                 <li data-name="LuCI.ui.Hiddenfield#setUpdateEvents"><a href="LuCI.ui.Hiddenfield.html#setUpdateEvents">setUpdateEvents</a></li>
2966             
2967                 <li data-name="LuCI.ui.Hiddenfield#setValue"><a href="LuCI.ui.Hiddenfield.html#setValue">setValue</a></li>
2968             
2969                 <li data-name="LuCI.ui.Hiddenfield#triggerValidation"><a href="LuCI.ui.Hiddenfield.html#triggerValidation">triggerValidation</a></li>
2970             
2971             </ul>
2972             <ul class="events itemMembers">
2973             
2974             </ul>
2975         </li>
2976     
2977         <li class="item" data-name="LuCI.ui.Select">
2978             <span class="title">
2979                 <a href="LuCI.ui.Select.html">LuCI.ui.Select</a>
2980                 
2981             </span>
2982             <ul class="members itemMembers">
2983             
2984             </ul>
2985             <ul class="typedefs itemMembers">
2986             
2987             <span class="subtitle">Typedefs</span>
2988             
2989                 <li data-name="LuCI.ui.Select.InitOptions"><a href="LuCI.ui.Select.html#.InitOptions">InitOptions</a></li>
2990             
2991             </ul>
2992             <ul class="typedefs itemMembers">
2993             
2994             </ul>
2995             <ul class="methods itemMembers">
2996             
2997             <span class="subtitle">Methods</span>
2998             
2999                 <li data-name="LuCI.ui.Select#getValue"><a href="LuCI.ui.Select.html#getValue">getValue</a></li>
3000             
3001                 <li data-name="LuCI.ui.Select#isValid"><a href="LuCI.ui.Select.html#isValid">isValid</a></li>
3002             
3003                 <li data-name="LuCI.ui.Select#registerEvents"><a href="LuCI.ui.Select.html#registerEvents">registerEvents</a></li>
3004             
3005                 <li data-name="LuCI.ui.Select#render"><a href="LuCI.ui.Select.html#render">render</a></li>
3006             
3007                 <li data-name="LuCI.ui.Select#setChangeEvents"><a href="LuCI.ui.Select.html#setChangeEvents">setChangeEvents</a></li>
3008             
3009                 <li data-name="LuCI.ui.Select#setUpdateEvents"><a href="LuCI.ui.Select.html#setUpdateEvents">setUpdateEvents</a></li>
3010             
3011                 <li data-name="LuCI.ui.Select#setValue"><a href="LuCI.ui.Select.html#setValue">setValue</a></li>
3012             
3013                 <li data-name="LuCI.ui.Select#triggerValidation"><a href="LuCI.ui.Select.html#triggerValidation">triggerValidation</a></li>
3014             
3015             </ul>
3016             <ul class="events itemMembers">
3017             
3018             </ul>
3019         </li>
3020     
3021         <li class="item" data-name="LuCI.ui.tabs">
3022             <span class="title">
3023                 <a href="LuCI.ui.tabs.html">LuCI.ui.tabs</a>
3024                 
3025             </span>
3026             <ul class="members itemMembers">
3027             
3028             </ul>
3029             <ul class="typedefs itemMembers">
3030             
3031             </ul>
3032             <ul class="typedefs itemMembers">
3033             
3034             </ul>
3035             <ul class="methods itemMembers">
3036             
3037             <span class="subtitle">Methods</span>
3038             
3039                 <li data-name="LuCI.ui.tabs#initTabGroup"><a href="LuCI.ui.tabs.html#initTabGroup">initTabGroup</a></li>
3040             
3041                 <li data-name="LuCI.ui.tabs#isEmptyPane"><a href="LuCI.ui.tabs.html#isEmptyPane">isEmptyPane</a></li>
3042             
3043             </ul>
3044             <ul class="events itemMembers">
3045             
3046             </ul>
3047         </li>
3048     
3049         <li class="item" data-name="LuCI.ui.Textarea">
3050             <span class="title">
3051                 <a href="LuCI.ui.Textarea.html">LuCI.ui.Textarea</a>
3052                 
3053             </span>
3054             <ul class="members itemMembers">
3055             
3056             </ul>
3057             <ul class="typedefs itemMembers">
3058             
3059             <span class="subtitle">Typedefs</span>
3060             
3061                 <li data-name="LuCI.ui.Textarea.InitOptions"><a href="LuCI.ui.Textarea.html#.InitOptions">InitOptions</a></li>
3062             
3063             </ul>
3064             <ul class="typedefs itemMembers">
3065             
3066             </ul>
3067             <ul class="methods itemMembers">
3068             
3069             <span class="subtitle">Methods</span>
3070             
3071                 <li data-name="LuCI.ui.Textarea#getValue"><a href="LuCI.ui.Textarea.html#getValue">getValue</a></li>
3072             
3073                 <li data-name="LuCI.ui.Textarea#isValid"><a href="LuCI.ui.Textarea.html#isValid">isValid</a></li>
3074             
3075                 <li data-name="LuCI.ui.Textarea#registerEvents"><a href="LuCI.ui.Textarea.html#registerEvents">registerEvents</a></li>
3076             
3077                 <li data-name="LuCI.ui.Textarea#render"><a href="LuCI.ui.Textarea.html#render">render</a></li>
3078             
3079                 <li data-name="LuCI.ui.Textarea#setChangeEvents"><a href="LuCI.ui.Textarea.html#setChangeEvents">setChangeEvents</a></li>
3080             
3081                 <li data-name="LuCI.ui.Textarea#setUpdateEvents"><a href="LuCI.ui.Textarea.html#setUpdateEvents">setUpdateEvents</a></li>
3082             
3083                 <li data-name="LuCI.ui.Textarea#setValue"><a href="LuCI.ui.Textarea.html#setValue">setValue</a></li>
3084             
3085                 <li data-name="LuCI.ui.Textarea#triggerValidation"><a href="LuCI.ui.Textarea.html#triggerValidation">triggerValidation</a></li>
3086             
3087             </ul>
3088             <ul class="events itemMembers">
3089             
3090             </ul>
3091         </li>
3092     
3093         <li class="item" data-name="LuCI.ui.Textfield">
3094             <span class="title">
3095                 <a href="LuCI.ui.Textfield.html">LuCI.ui.Textfield</a>
3096                 
3097             </span>
3098             <ul class="members itemMembers">
3099             
3100             </ul>
3101             <ul class="typedefs itemMembers">
3102             
3103             <span class="subtitle">Typedefs</span>
3104             
3105                 <li data-name="LuCI.ui.Textfield.InitOptions"><a href="LuCI.ui.Textfield.html#.InitOptions">InitOptions</a></li>
3106             
3107             </ul>
3108             <ul class="typedefs itemMembers">
3109             
3110             </ul>
3111             <ul class="methods itemMembers">
3112             
3113             <span class="subtitle">Methods</span>
3114             
3115                 <li data-name="LuCI.ui.Textfield#getValue"><a href="LuCI.ui.Textfield.html#getValue">getValue</a></li>
3116             
3117                 <li data-name="LuCI.ui.Textfield#isValid"><a href="LuCI.ui.Textfield.html#isValid">isValid</a></li>
3118             
3119                 <li data-name="LuCI.ui.Textfield#registerEvents"><a href="LuCI.ui.Textfield.html#registerEvents">registerEvents</a></li>
3120             
3121                 <li data-name="LuCI.ui.Textfield#render"><a href="LuCI.ui.Textfield.html#render">render</a></li>
3122             
3123                 <li data-name="LuCI.ui.Textfield#setChangeEvents"><a href="LuCI.ui.Textfield.html#setChangeEvents">setChangeEvents</a></li>
3124             
3125                 <li data-name="LuCI.ui.Textfield#setUpdateEvents"><a href="LuCI.ui.Textfield.html#setUpdateEvents">setUpdateEvents</a></li>
3126             
3127                 <li data-name="LuCI.ui.Textfield#setValue"><a href="LuCI.ui.Textfield.html#setValue">setValue</a></li>
3128             
3129                 <li data-name="LuCI.ui.Textfield#triggerValidation"><a href="LuCI.ui.Textfield.html#triggerValidation">triggerValidation</a></li>
3130             
3131             </ul>
3132             <ul class="events itemMembers">
3133             
3134             </ul>
3135         </li>
3136     
3137         <li class="item" data-name="LuCI.view">
3138             <span class="title">
3139                 <a href="LuCI.view.html">LuCI.view</a>
3140                 
3141             </span>
3142             <ul class="members itemMembers">
3143             
3144             </ul>
3145             <ul class="typedefs itemMembers">
3146             
3147             </ul>
3148             <ul class="typedefs itemMembers">
3149             
3150             </ul>
3151             <ul class="methods itemMembers">
3152             
3153             <span class="subtitle">Methods</span>
3154             
3155                 <li data-name="LuCI.view#addFooter"><a href="LuCI.view.html#addFooter">addFooter</a></li>
3156             
3157                 <li data-name="LuCI.view#handleReset"><a href="LuCI.view.html#handleReset">handleReset</a></li>
3158             
3159                 <li data-name="LuCI.view#handleSave"><a href="LuCI.view.html#handleSave">handleSave</a></li>
3160             
3161                 <li data-name="LuCI.view#handleSaveApply"><a href="LuCI.view.html#handleSaveApply">handleSaveApply</a></li>
3162             
3163                 <li data-name="LuCI.view#load"><a href="LuCI.view.html#load">load</a></li>
3164             
3165                 <li data-name="LuCI.view#render"><a href="LuCI.view.html#render">render</a></li>
3166             
3167             </ul>
3168             <ul class="events itemMembers">
3169             
3170             </ul>
3171         </li>
3172     
3173         <li class="item" data-name="LuCI.xhr">
3174             <span class="title">
3175                 <a href="LuCI.xhr.html">LuCI.xhr</a>
3176                 
3177             </span>
3178             <ul class="members itemMembers">
3179             
3180             </ul>
3181             <ul class="typedefs itemMembers">
3182             
3183             </ul>
3184             <ul class="typedefs itemMembers">
3185             
3186             </ul>
3187             <ul class="methods itemMembers">
3188             
3189             <span class="subtitle">Methods</span>
3190             
3191                 <li data-name="LuCI.xhr#abort"><a href="LuCI.xhr.html#abort">abort</a></li>
3192             
3193                 <li data-name="LuCI.xhr#busy"><a href="LuCI.xhr.html#busy">busy</a></li>
3194             
3195                 <li data-name="LuCI.xhr#cancel"><a href="LuCI.xhr.html#cancel">cancel</a></li>
3196             
3197                 <li data-name="LuCI.xhr#get"><a href="LuCI.xhr.html#get">get</a></li>
3198             
3199                 <li data-name="LuCI.xhr#post"><a href="LuCI.xhr.html#post">post</a></li>
3200             
3201                 <li data-name="LuCI.xhr#send_form"><a href="LuCI.xhr.html#send_form">send_form</a></li>
3202             
3203             </ul>
3204             <ul class="events itemMembers">
3205             
3206             </ul>
3207         </li>
3208     
3209     </ul>
3210 </div>
3211     <div class="main">
3212         <h1 class="page-title" data-filename="network.js.html">Source: network.js</h1>
3213         
3214
3215
3216     
3217     <section>
3218         <article>
3219             <pre id="source-code" class="prettyprint source "><code>'use strict';
3220 'require uci';
3221 'require rpc';
3222 'require validation';
3223 'require baseclass';
3224 'require firewall';
3225
3226 var proto_errors = {
3227         CONNECT_FAILED:                 _('Connection attempt failed'),
3228         INVALID_ADDRESS:                _('IP address is invalid'),
3229         INVALID_GATEWAY:                _('Gateway address is invalid'),
3230         INVALID_LOCAL_ADDRESS:  _('Local IP address is invalid'),
3231         MISSING_ADDRESS:                _('IP address is missing'),
3232         MISSING_PEER_ADDRESS:   _('Peer address is missing'),
3233         NO_DEVICE:                              _('Network device is not present'),
3234         NO_IFACE:                               _('Unable to determine device name'),
3235         NO_IFNAME:                              _('Unable to determine device name'),
3236         NO_WAN_ADDRESS:                 _('Unable to determine external IP address'),
3237         NO_WAN_LINK:                    _('Unable to determine upstream interface'),
3238         PEER_RESOLVE_FAIL:              _('Unable to resolve peer host name'),
3239         PIN_FAILED:                             _('PIN code rejected')
3240 };
3241
3242 var iface_patterns_ignore = [
3243         /^wmaster\d+/,
3244         /^wifi\d+/,
3245         /^hwsim\d+/,
3246         /^imq\d+/,
3247         /^ifb\d+/,
3248         /^mon\.wlan\d+/,
3249         /^sit\d+/,
3250         /^gre\d+/,
3251         /^gretap\d+/,
3252         /^ip6gre\d+/,
3253         /^ip6tnl\d+/,
3254         /^tunl\d+/,
3255         /^lo$/
3256 ];
3257
3258 var iface_patterns_wireless = [
3259         /^wlan\d+/,
3260         /^wl\d+/,
3261         /^ath\d+/,
3262         /^\w+\.network\d+/
3263 ];
3264
3265 var iface_patterns_virtual = [ ];
3266
3267 var callLuciNetworkDevices = rpc.declare({
3268         object: 'luci-rpc',
3269         method: 'getNetworkDevices',
3270         expect: { '': {} }
3271 });
3272
3273 var callLuciWirelessDevices = rpc.declare({
3274         object: 'luci-rpc',
3275         method: 'getWirelessDevices',
3276         expect: { '': {} }
3277 });
3278
3279 var callLuciBoardJSON = rpc.declare({
3280         object: 'luci-rpc',
3281         method: 'getBoardJSON'
3282 });
3283
3284 var callLuciHostHints = rpc.declare({
3285         object: 'luci-rpc',
3286         method: 'getHostHints',
3287         expect: { '': {} }
3288 });
3289
3290 var callIwinfoAssoclist = rpc.declare({
3291         object: 'iwinfo',
3292         method: 'assoclist',
3293         params: [ 'device', 'mac' ],
3294         expect: { results: [] }
3295 });
3296
3297 var callIwinfoScan = rpc.declare({
3298         object: 'iwinfo',
3299         method: 'scan',
3300         params: [ 'device' ],
3301         nobatch: true,
3302         expect: { results: [] }
3303 });
3304
3305 var callNetworkInterfaceDump = rpc.declare({
3306         object: 'network.interface',
3307         method: 'dump',
3308         expect: { 'interface': [] }
3309 });
3310
3311 var callNetworkProtoHandlers = rpc.declare({
3312         object: 'network',
3313         method: 'get_proto_handlers',
3314         expect: { '': {} }
3315 });
3316
3317 var _init = null,
3318     _state = null,
3319     _protocols = {},
3320     _protospecs = {};
3321
3322 function getProtocolHandlers(cache) {
3323         return callNetworkProtoHandlers().then(function(protos) {
3324                 /* Register "none" protocol */
3325                 if (!protos.hasOwnProperty('none'))
3326                         Object.assign(protos, { none: { no_device: false } });
3327
3328                 /* Hack: emulate relayd protocol */
3329                 if (!protos.hasOwnProperty('relay'))
3330                         Object.assign(protos, { relay: { no_device: true } });
3331
3332                 Object.assign(_protospecs, protos);
3333
3334                 return Promise.all(Object.keys(protos).map(function(p) {
3335                         return Promise.resolve(L.require('protocol.%s'.format(p))).catch(function(err) {
3336                                 if (L.isObject(err) &amp;&amp; err.name != 'NetworkError')
3337                                         L.error(err);
3338                         });
3339                 })).then(function() {
3340                         return protos;
3341                 });
3342         }).catch(function() {
3343                 return {};
3344         });
3345 }
3346
3347 function getWifiStateBySid(sid) {
3348         var s = uci.get('wireless', sid);
3349
3350         if (s != null &amp;&amp; s['.type'] == 'wifi-iface') {
3351                 for (var radioname in _state.radios) {
3352                         for (var i = 0; i &lt; _state.radios[radioname].interfaces.length; i++) {
3353                                 var netstate = _state.radios[radioname].interfaces[i];
3354
3355                                 if (typeof(netstate.section) != 'string')
3356                                         continue;
3357
3358                                 var s2 = uci.get('wireless', netstate.section);
3359
3360                                 if (s2 != null &amp;&amp; s['.type'] == s2['.type'] &amp;&amp; s['.name'] == s2['.name']) {
3361                                         if (s2['.anonymous'] == false &amp;&amp; netstate.section.charAt(0) == '@')
3362                                                 return null;
3363
3364                                         return [ radioname, _state.radios[radioname], netstate ];
3365                                 }
3366                         }
3367                 }
3368         }
3369
3370         return null;
3371 }
3372
3373 function getWifiStateByIfname(ifname) {
3374         for (var radioname in _state.radios) {
3375                 for (var i = 0; i &lt; _state.radios[radioname].interfaces.length; i++) {
3376                         var netstate = _state.radios[radioname].interfaces[i];
3377
3378                         if (typeof(netstate.ifname) != 'string')
3379                                 continue;
3380
3381                         if (netstate.ifname == ifname)
3382                                 return [ radioname, _state.radios[radioname], netstate ];
3383                 }
3384         }
3385
3386         return null;
3387 }
3388
3389 function isWifiIfname(ifname) {
3390         for (var i = 0; i &lt; iface_patterns_wireless.length; i++)
3391                 if (iface_patterns_wireless[i].test(ifname))
3392                         return true;
3393
3394         return false;
3395 }
3396
3397 function getWifiSidByNetid(netid) {
3398         var m = /^(\w+)\.network(\d+)$/.exec(netid);
3399         if (m) {
3400                 var sections = uci.sections('wireless', 'wifi-iface');
3401                 for (var i = 0, n = 0; i &lt; sections.length; i++) {
3402                         if (sections[i].device != m[1])
3403                                 continue;
3404
3405                         if (++n == +m[2])
3406                                 return sections[i]['.name'];
3407                 }
3408         }
3409
3410         return null;
3411 }
3412
3413 function getWifiSidByIfname(ifname) {
3414         var sid = getWifiSidByNetid(ifname);
3415
3416         if (sid != null)
3417                 return sid;
3418
3419         var res = getWifiStateByIfname(ifname);
3420
3421         if (res != null &amp;&amp; L.isObject(res[2]) &amp;&amp; typeof(res[2].section) == 'string')
3422                 return res[2].section;
3423
3424         return null;
3425 }
3426
3427 function getWifiNetidBySid(sid) {
3428         var s = uci.get('wireless', sid);
3429         if (s != null &amp;&amp; s['.type'] == 'wifi-iface') {
3430                 var radioname = s.device;
3431                 if (typeof(s.device) == 'string') {
3432                         var i = 0, netid = null, sections = uci.sections('wireless', 'wifi-iface');
3433                         for (var i = 0, n = 0; i &lt; sections.length; i++) {
3434                                 if (sections[i].device != s.device)
3435                                         continue;
3436
3437                                 n++;
3438
3439                                 if (sections[i]['.name'] != s['.name'])
3440                                         continue;
3441
3442                                 return [ '%s.network%d'.format(s.device, n), s.device ];
3443                         }
3444
3445                 }
3446         }
3447
3448         return null;
3449 }
3450
3451 function getWifiNetidByNetname(name) {
3452         var sections = uci.sections('wireless', 'wifi-iface');
3453         for (var i = 0; i &lt; sections.length; i++) {
3454                 if (typeof(sections[i].network) != 'string')
3455                         continue;
3456
3457                 var nets = sections[i].network.split(/\s+/);
3458                 for (var j = 0; j &lt; nets.length; j++) {
3459                         if (nets[j] != name)
3460                                 continue;
3461
3462                         return getWifiNetidBySid(sections[i]['.name']);
3463                 }
3464         }
3465
3466         return null;
3467 }
3468
3469 function isVirtualIfname(ifname) {
3470         for (var i = 0; i &lt; iface_patterns_virtual.length; i++)
3471                 if (iface_patterns_virtual[i].test(ifname))
3472                         return true;
3473
3474         return false;
3475 }
3476
3477 function isIgnoredIfname(ifname) {
3478         for (var i = 0; i &lt; iface_patterns_ignore.length; i++)
3479                 if (iface_patterns_ignore[i].test(ifname))
3480                         return true;
3481
3482         return false;
3483 }
3484
3485 function appendValue(config, section, option, value) {
3486         var values = uci.get(config, section, option),
3487             isArray = Array.isArray(values),
3488             rv = false;
3489
3490         if (isArray == false)
3491                 values = L.toArray(values);
3492
3493         if (values.indexOf(value) == -1) {
3494                 values.push(value);
3495                 rv = true;
3496         }
3497
3498         uci.set(config, section, option, isArray ? values : values.join(' '));
3499
3500         return rv;
3501 }
3502
3503 function removeValue(config, section, option, value) {
3504         var values = uci.get(config, section, option),
3505             isArray = Array.isArray(values),
3506             rv = false;
3507
3508         if (isArray == false)
3509                 values = L.toArray(values);
3510
3511         for (var i = values.length - 1; i >= 0; i--) {
3512                 if (values[i] == value) {
3513                         values.splice(i, 1);
3514                         rv = true;
3515                 }
3516         }
3517
3518         if (values.length > 0)
3519                 uci.set(config, section, option, isArray ? values : values.join(' '));
3520         else
3521                 uci.unset(config, section, option);
3522
3523         return rv;
3524 }
3525
3526 function prefixToMask(bits, v6) {
3527         var w = v6 ? 128 : 32,
3528             m = [];
3529
3530         if (bits > w)
3531                 return null;
3532
3533         for (var i = 0; i &lt; w / 16; i++) {
3534                 var b = Math.min(16, bits);
3535                 m.push((0xffff &lt;&lt; (16 - b)) &amp; 0xffff);
3536                 bits -= b;
3537         }
3538
3539         if (v6)
3540                 return String.prototype.format.apply('%x:%x:%x:%x:%x:%x:%x:%x', m).replace(/:0(?::0)+$/, '::');
3541         else
3542                 return '%d.%d.%d.%d'.format(m[0] >>> 8, m[0] &amp; 0xff, m[1] >>> 8, m[1] &amp; 0xff);
3543 }
3544
3545 function maskToPrefix(mask, v6) {
3546         var m = v6 ? validation.parseIPv6(mask) : validation.parseIPv4(mask);
3547
3548         if (!m)
3549                 return null;
3550
3551         var bits = 0;
3552
3553         for (var i = 0, z = false; i &lt; m.length; i++) {
3554                 z = z || !m[i];
3555
3556                 while (!z &amp;&amp; (m[i] &amp; (v6 ? 0x8000 : 0x80))) {
3557                         m[i] = (m[i] &lt;&lt; 1) &amp; (v6 ? 0xffff : 0xff);
3558                         bits++;
3559                 }
3560
3561                 if (m[i])
3562                         return null;
3563         }
3564
3565         return bits;
3566 }
3567
3568 function initNetworkState(refresh) {
3569         if (_state == null || refresh) {
3570                 _init = _init || Promise.all([
3571                         L.resolveDefault(callNetworkInterfaceDump(), []),
3572                         L.resolveDefault(callLuciBoardJSON(), {}),
3573                         L.resolveDefault(callLuciNetworkDevices(), {}),
3574                         L.resolveDefault(callLuciWirelessDevices(), {}),
3575                         L.resolveDefault(callLuciHostHints(), {}),
3576                         getProtocolHandlers(),
3577                         uci.load(['network', 'wireless', 'luci'])
3578                 ]).then(function(data) {
3579                         var netifd_ifaces = data[0],
3580                             board_json    = data[1],
3581                             luci_devs     = data[2];
3582
3583                         var s = {
3584                                 isTunnel: {}, isBridge: {}, isSwitch: {}, isWifi: {},
3585                                 ifaces: netifd_ifaces, radios: data[3], hosts: data[4],
3586                                 netdevs: {}, bridges: {}, switches: {}, hostapd: {}
3587                         };
3588
3589                         for (var name in luci_devs) {
3590                                 var dev = luci_devs[name];
3591
3592                                 if (isVirtualIfname(name))
3593                                         s.isTunnel[name] = true;
3594
3595                                 if (!s.isTunnel[name] &amp;&amp; isIgnoredIfname(name))
3596                                         continue;
3597
3598                                 s.netdevs[name] = s.netdevs[name] || {
3599                                         idx:      dev.ifindex,
3600                                         name:     name,
3601                                         rawname:  name,
3602                                         flags:    dev.flags,
3603                                         stats:    dev.stats,
3604                                         macaddr:  dev.mac,
3605                                         type:     dev.type,
3606                                         mtu:      dev.mtu,
3607                                         qlen:     dev.qlen,
3608                                         wireless: dev.wireless,
3609                                         ipaddrs:  [],
3610                                         ip6addrs: []
3611                                 };
3612
3613                                 if (Array.isArray(dev.ipaddrs))
3614                                         for (var i = 0; i &lt; dev.ipaddrs.length; i++)
3615                                                 s.netdevs[name].ipaddrs.push(dev.ipaddrs[i].address + '/' + dev.ipaddrs[i].netmask);
3616
3617                                 if (Array.isArray(dev.ip6addrs))
3618                                         for (var i = 0; i &lt; dev.ip6addrs.length; i++)
3619                                                 s.netdevs[name].ip6addrs.push(dev.ip6addrs[i].address + '/' + dev.ip6addrs[i].netmask);
3620                         }
3621
3622                         for (var name in luci_devs) {
3623                                 var dev = luci_devs[name];
3624
3625                                 if (!dev.bridge)
3626                                         continue;
3627
3628                                 var b = {
3629                                         name:    name,
3630                                         id:      dev.id,
3631                                         stp:     dev.stp,
3632                                         ifnames: []
3633                                 };
3634
3635                                 for (var i = 0; dev.ports &amp;&amp; i &lt; dev.ports.length; i++) {
3636                                         var subdev = s.netdevs[dev.ports[i]];
3637
3638                                         if (subdev == null)
3639                                                 continue;
3640
3641                                         b.ifnames.push(subdev);
3642                                         subdev.bridge = b;
3643                                 }
3644
3645                                 s.bridges[name] = b;
3646                                 s.isBridge[name] = true;
3647                         }
3648
3649                         if (L.isObject(board_json.switch)) {
3650                                 for (var switchname in board_json.switch) {
3651                                         var layout = board_json.switch[switchname],
3652                                             netdevs = {},
3653                                             nports = {},
3654                                             ports = [],
3655                                             pnum = null,
3656                                             role = null;
3657
3658                                         if (L.isObject(layout) &amp;&amp; Array.isArray(layout.ports)) {
3659                                                 for (var i = 0, port; (port = layout.ports[i]) != null; i++) {
3660                                                         if (typeof(port) == 'object' &amp;&amp; typeof(port.num) == 'number' &amp;&amp;
3661                                                                 (typeof(port.role) == 'string' || typeof(port.device) == 'string')) {
3662                                                                 var spec = {
3663                                                                         num:   port.num,
3664                                                                         role:  port.role || 'cpu',
3665                                                                         index: (port.index != null) ? port.index : port.num
3666                                                                 };
3667
3668                                                                 if (port.device != null) {
3669                                                                         spec.device = port.device;
3670                                                                         spec.tagged = spec.need_tag;
3671                                                                         netdevs[port.num] = port.device;
3672                                                                 }
3673
3674                                                                 ports.push(spec);
3675
3676                                                                 if (port.role != null)
3677                                                                         nports[port.role] = (nports[port.role] || 0) + 1;
3678                                                         }
3679                                                 }
3680
3681                                                 ports.sort(function(a, b) {
3682                                                         if (a.role != b.role)
3683                                                                 return (a.role &lt; b.role) ? -1 : 1;
3684
3685                                                         return (a.index - b.index);
3686                                                 });
3687
3688                                                 for (var i = 0, port; (port = ports[i]) != null; i++) {
3689                                                         if (port.role != role) {
3690                                                                 role = port.role;
3691                                                                 pnum = 1;
3692                                                         }
3693
3694                                                         if (role == 'cpu')
3695                                                                 port.label = 'CPU (%s)'.format(port.device);
3696                                                         else if (nports[role] > 1)
3697                                                                 port.label = '%s %d'.format(role.toUpperCase(), pnum++);
3698                                                         else
3699                                                                 port.label = role.toUpperCase();
3700
3701                                                         delete port.role;
3702                                                         delete port.index;
3703                                                 }
3704
3705                                                 s.switches[switchname] = {
3706                                                         ports: ports,
3707                                                         netdevs: netdevs
3708                                                 };
3709                                         }
3710                                 }
3711                         }
3712
3713                         if (L.isObject(board_json.dsl) &amp;&amp; L.isObject(board_json.dsl.modem)) {
3714                                 s.hasDSLModem = board_json.dsl.modem;
3715                         }
3716
3717                         _init = null;
3718
3719                         var objects = [];
3720
3721                         if (L.isObject(s.radios))
3722                                 for (var radio in s.radios)
3723                                         if (L.isObject(s.radios[radio]) &amp;&amp; Array.isArray(s.radios[radio].interfaces))
3724                                                 for (var i = 0; i &lt; s.radios[radio].interfaces.length; i++)
3725                                                         if (L.isObject(s.radios[radio].interfaces[i]) &amp;&amp; s.radios[radio].interfaces[i].ifname)
3726                                                                 objects.push('hostapd.%s'.format(s.radios[radio].interfaces[i].ifname));
3727
3728                         return (objects.length ? L.resolveDefault(rpc.list.apply(rpc, objects), {}) : Promise.resolve({})).then(function(res) {
3729                                 for (var k in res) {
3730                                         var m = k.match(/^hostapd\.(.+)$/);
3731                                         if (m)
3732                                                 s.hostapd[m[1]] = res[k];
3733                                 }
3734
3735                                 return (_state = s);
3736                         });
3737                 });
3738         }
3739
3740         return (_state != null ? Promise.resolve(_state) : _init);
3741 }
3742
3743 function ifnameOf(obj) {
3744         if (obj instanceof Protocol)
3745                 return obj.getIfname();
3746         else if (obj instanceof Device)
3747                 return obj.getName();
3748         else if (obj instanceof WifiDevice)
3749                 return obj.getName();
3750         else if (obj instanceof WifiNetwork)
3751                 return obj.getIfname();
3752         else if (typeof(obj) == 'string')
3753                 return obj.replace(/:.+$/, '');
3754
3755         return null;
3756 }
3757
3758 function networkSort(a, b) {
3759         return a.getName() > b.getName();
3760 }
3761
3762 function deviceSort(a, b) {
3763         var typeWeigth = { wifi: 2, alias: 3 },
3764         weightA = typeWeigth[a.getType()] || 1,
3765         weightB = typeWeigth[b.getType()] || 1;
3766
3767     if (weightA != weightB)
3768         return weightA - weightB;
3769
3770         return a.getName() > b.getName();
3771 }
3772
3773 function formatWifiEncryption(enc) {
3774         if (!L.isObject(enc))
3775                 return null;
3776
3777         if (!enc.enabled)
3778                 return 'None';
3779
3780         var ciphers = Array.isArray(enc.ciphers)
3781                 ? enc.ciphers.map(function(c) { return c.toUpperCase() }) : [ 'NONE' ];
3782
3783         if (Array.isArray(enc.wep)) {
3784                 var has_open = false,
3785                     has_shared = false;
3786
3787                 for (var i = 0; i &lt; enc.wep.length; i++)
3788                         if (enc.wep[i] == 'open')
3789                                 has_open = true;
3790                         else if (enc.wep[i] == 'shared')
3791                                 has_shared = true;
3792
3793                 if (has_open &amp;&amp; has_shared)
3794                         return 'WEP Open/Shared (%s)'.format(ciphers.join(', '));
3795                 else if (has_open)
3796                         return 'WEP Open System (%s)'.format(ciphers.join(', '));
3797                 else if (has_shared)
3798                         return 'WEP Shared Auth (%s)'.format(ciphers.join(', '));
3799
3800                 return 'WEP';
3801         }
3802
3803         if (Array.isArray(enc.wpa)) {
3804                 var versions = [],
3805                     suites = Array.isArray(enc.authentication)
3806                         ? enc.authentication.map(function(a) { return a.toUpperCase() }) : [ 'NONE' ];
3807
3808                 for (var i = 0; i &lt; enc.wpa.length; i++)
3809                         switch (enc.wpa[i]) {
3810                         case 1:
3811                                 versions.push('WPA');
3812                                 break;
3813
3814                         default:
3815                                 versions.push('WPA%d'.format(enc.wpa[i]));
3816                                 break;
3817                         }
3818
3819                 if (versions.length > 1)
3820                         return 'mixed %s %s (%s)'.format(versions.join('/'), suites.join(', '), ciphers.join(', '));
3821
3822                 return '%s %s (%s)'.format(versions[0], suites.join(', '), ciphers.join(', '));
3823         }
3824
3825         return 'Unknown';
3826 }
3827
3828 function enumerateNetworks() {
3829         var uciInterfaces = uci.sections('network', 'interface'),
3830             networks = {};
3831
3832         for (var i = 0; i &lt; uciInterfaces.length; i++)
3833                 networks[uciInterfaces[i]['.name']] = this.instantiateNetwork(uciInterfaces[i]['.name']);
3834
3835         for (var i = 0; i &lt; _state.ifaces.length; i++)
3836                 if (networks[_state.ifaces[i].interface] == null)
3837                         networks[_state.ifaces[i].interface] =
3838                                 this.instantiateNetwork(_state.ifaces[i].interface, _state.ifaces[i].proto);
3839
3840         var rv = [];
3841
3842         for (var network in networks)
3843                 if (networks.hasOwnProperty(network))
3844                         rv.push(networks[network]);
3845
3846         rv.sort(networkSort);
3847
3848         return rv;
3849 }
3850
3851
3852 var Hosts, Network, Protocol, Device, WifiDevice, WifiNetwork;
3853
3854 /**
3855  * @class network
3856  * @memberof LuCI
3857  * @hideconstructor
3858  * @classdesc
3859  *
3860  * The `LuCI.network` class combines data from multiple `ubus` apis to
3861  * provide an abstraction of the current network configuration state.
3862  *
3863  * It provides methods to enumerate interfaces and devices, to query
3864  * current configuration details and to manipulate settings.
3865  */
3866 Network = baseclass.extend(/** @lends LuCI.network.prototype */ {
3867         /**
3868          * Converts the given prefix size in bits to a netmask.
3869          *
3870          * @method
3871          *
3872          * @param {number} bits
3873          * The prefix size in bits.
3874          *
3875          * @param {boolean} [v6=false]
3876          * Whether to convert the bits value into an IPv4 netmask (`false`) or
3877          * an IPv6 netmask (`true`).
3878          *
3879          * @returns {null|string}
3880          * Returns a string containing the netmask corresponding to the bit count
3881          * or `null` when the given amount of bits exceeds the maximum possible
3882          * value of `32` for IPv4 or `128` for IPv6.
3883          */
3884         prefixToMask: prefixToMask,
3885
3886         /**
3887          * Converts the given netmask to a prefix size in bits.
3888          *
3889          * @method
3890          *
3891          * @param {string} netmask
3892          * The netmask to convert into a bit count.
3893          *
3894          * @param {boolean} [v6=false]
3895          * Whether to parse the given netmask as IPv4 (`false`) or IPv6 (`true`)
3896          * address.
3897          *
3898          * @returns {null|number}
3899          * Returns the number of prefix bits contained in the netmask or `null`
3900          * if the given netmask value was invalid.
3901          */
3902         maskToPrefix: maskToPrefix,
3903
3904         /**
3905          * An encryption entry describes active wireless encryption settings
3906          * such as the used key management protocols, active ciphers and
3907          * protocol versions.
3908          *
3909          * @typedef {Object&lt;string, boolean|Array&lt;number|string>>} LuCI.network.WifiEncryption
3910          * @memberof LuCI.network
3911          *
3912          * @property {boolean} enabled
3913          * Specifies whether any kind of encryption, such as `WEP` or `WPA` is
3914          * enabled. If set to `false`, then no encryption is active and the
3915          * corresponding network is open.
3916          *
3917          * @property {string[]} [wep]
3918          * When the `wep` property exists, the network uses WEP encryption.
3919          * In this case, the property is set to an array of active WEP modes
3920          * which might be either `open`, `shared` or both.
3921          *
3922          * @property {number[]} [wpa]
3923          * When the `wpa` property exists, the network uses WPA security.
3924          * In this case, the property is set to an array containing the WPA
3925          * protocol versions used, e.g. `[ 1, 2 ]` for WPA/WPA2 mixed mode or
3926          * `[ 3 ]` for WPA3-SAE.
3927          *
3928          * @property {string[]} [authentication]
3929          * The `authentication` property only applies to WPA encryption and
3930          * is defined when the `wpa` property is set as well. It points to
3931          * an array of active authentication suites used by the network, e.g.
3932          * `[ "psk" ]` for a WPA(2)-PSK network or `[ "psk", "sae" ]` for
3933          * mixed WPA2-PSK/WPA3-SAE encryption.
3934          *
3935          * @property {string[]} [ciphers]
3936          * If either WEP or WPA encryption is active, then the `ciphers`
3937          * property will be set to an array describing the active encryption
3938          * ciphers used by the network, e.g. `[ "tkip", "ccmp" ]` for a
3939          * WPA/WPA2-PSK mixed network or `[ "wep-40", "wep-104" ]` for an
3940          * WEP network.
3941          */
3942
3943         /**
3944          * Converts a given {@link LuCI.network.WifiEncryption encryption entry}
3945          * into a human readable string such as `mixed WPA/WPA2 PSK (TKIP, CCMP)`
3946          * or `WPA3 SAE (CCMP)`.
3947          *
3948          * @method
3949          *
3950          * @param {LuCI.network.WifiEncryption} encryption
3951          * The wireless encryption entry to convert.
3952          *
3953          * @returns {null|string}
3954          * Returns the description string for the given encryption entry or
3955          * `null` if the given entry was invalid.
3956          */
3957         formatWifiEncryption: formatWifiEncryption,
3958
3959         /**
3960          * Flushes the local network state cache and fetches updated information
3961          * from the remote `ubus` apis.
3962          *
3963          * @returns {Promise&lt;Object>}
3964          * Returns a promise resolving to the internal network state object.
3965          */
3966         flushCache: function() {
3967                 initNetworkState(true);
3968                 return _init;
3969         },
3970
3971         /**
3972          * Instantiates the given {@link LuCI.network.Protocol Protocol} backend,
3973          * optionally using the given network name.
3974          *
3975          * @param {string} protoname
3976          * The protocol backend to use, e.g. `static` or `dhcp`.
3977          *
3978          * @param {string} [netname=__dummy__]
3979          * The network name to use for the instantiated protocol. This should be
3980          * usually set to one of the interfaces described in /etc/config/network
3981          * but it is allowed to omit it, e.g. to query protocol capabilities
3982          * without the need for an existing interface.
3983          *
3984          * @returns {null|LuCI.network.Protocol}
3985          * Returns the instantiated protocol backend class or `null` if the given
3986          * protocol isn't known.
3987          */
3988         getProtocol: function(protoname, netname) {
3989                 var v = _protocols[protoname];
3990                 if (v != null)
3991                         return new v(netname || '__dummy__');
3992
3993                 return null;
3994         },
3995
3996         /**
3997          * Obtains instances of all known {@link LuCI.network.Protocol Protocol}
3998          * backend classes.
3999          *
4000          * @returns {Array&lt;LuCI.network.Protocol>}
4001          * Returns an array of protocol class instances.
4002          */
4003         getProtocols: function() {
4004                 var rv = [];
4005
4006                 for (var protoname in _protocols)
4007                         rv.push(new _protocols[protoname]('__dummy__'));
4008
4009                 return rv;
4010         },
4011
4012         /**
4013          * Registers a new {@link LuCI.network.Protocol Protocol} subclass
4014          * with the given methods and returns the resulting subclass value.
4015          *
4016          * This functions internally calls
4017          * {@link LuCI.Class.extend Class.extend()} on the `Network.Protocol`
4018          * base class.
4019          *
4020          * @param {string} protoname
4021          * The name of the new protocol to register.
4022          *
4023          * @param {Object&lt;string, *>} methods
4024          * The member methods and values of the new `Protocol` subclass to
4025          * be passed to {@link LuCI.Class.extend Class.extend()}.
4026          *
4027          * @returns {LuCI.network.Protocol}
4028          * Returns the new `Protocol` subclass.
4029          */
4030         registerProtocol: function(protoname, methods) {
4031                 var spec = L.isObject(_protospecs) ? _protospecs[protoname] : null;
4032                 var proto = Protocol.extend(Object.assign({
4033                         getI18n: function() {
4034                                 return protoname;
4035                         },
4036
4037                         isFloating: function() {
4038                                 return false;
4039                         },
4040
4041                         isVirtual: function() {
4042                                 return (L.isObject(spec) &amp;&amp; spec.no_device == true);
4043                         },
4044
4045                         renderFormOptions: function(section) {
4046
4047                         }
4048                 }, methods, {
4049                         __init__: function(name) {
4050                                 this.sid = name;
4051                         },
4052
4053                         getProtocol: function() {
4054                                 return protoname;
4055                         }
4056                 }));
4057
4058                 _protocols[protoname] = proto;
4059
4060                 return proto;
4061         },
4062
4063         /**
4064          * Registers a new regular expression pattern to recognize
4065          * virtual interfaces.
4066          *
4067          * @param {RegExp} pat
4068          * A `RegExp` instance to match a virtual interface name
4069          * such as `6in4-wan` or `tun0`.
4070          */
4071         registerPatternVirtual: function(pat) {
4072                 iface_patterns_virtual.push(pat);
4073         },
4074
4075         /**
4076          * Registers a new human readable translation string for a `Protocol`
4077          * error code.
4078          *
4079          * @param {string} code
4080          * The `ubus` protocol error code to register a translation for, e.g.
4081          * `NO_DEVICE`.
4082          *
4083          * @param {string} message
4084          * The message to use as translation for the given protocol error code.
4085          *
4086          * @returns {boolean}
4087          * Returns `true` if the error code description has been added or `false`
4088          * if either the arguments were invalid or if there already was a
4089          * description for the given code.
4090          */
4091         registerErrorCode: function(code, message) {
4092                 if (typeof(code) == 'string' &amp;&amp;
4093                     typeof(message) == 'string' &amp;&amp;
4094                     !proto_errors.hasOwnProperty(code)) {
4095                         proto_errors[code] = message;
4096                         return true;
4097                 }
4098
4099                 return false;
4100         },
4101
4102         /**
4103          * Adds a new network of the given name and update it with the given
4104          * uci option values.
4105          *
4106          * If a network with the given name already exist but is empty, then
4107          * this function will update its option, otherwise it will do nothing.
4108          *
4109          * @param {string} name
4110          * The name of the network to add. Must be in the format `[a-zA-Z0-9_]+`.
4111          *
4112          * @param {Object&lt;string, string|string[]>} [options]
4113          * An object of uci option values to set on the new network or to
4114          * update in an existing, empty network.
4115          *
4116          * @returns {Promise&lt;null|LuCI.network.Protocol>}
4117          * Returns a promise resolving to the `Protocol` subclass instance
4118          * describing the added network or resolving to `null` if the name
4119          * was invalid or if a non-empty network of the given name already
4120          * existed.
4121          */
4122         addNetwork: function(name, options) {
4123                 return this.getNetwork(name).then(L.bind(function(existingNetwork) {
4124                         if (name != null &amp;&amp; /^[a-zA-Z0-9_]+$/.test(name) &amp;&amp; existingNetwork == null) {
4125                                 var sid = uci.add('network', 'interface', name);
4126
4127                                 if (sid != null) {
4128                                         if (L.isObject(options))
4129                                                 for (var key in options)
4130                                                         if (options.hasOwnProperty(key))
4131                                                                 uci.set('network', sid, key, options[key]);
4132
4133                                         return this.instantiateNetwork(sid);
4134                                 }
4135                         }
4136                         else if (existingNetwork != null &amp;&amp; existingNetwork.isEmpty()) {
4137                                 if (L.isObject(options))
4138                                         for (var key in options)
4139                                                 if (options.hasOwnProperty(key))
4140                                                         existingNetwork.set(key, options[key]);
4141
4142                                 return existingNetwork;
4143                         }
4144                 }, this));
4145         },
4146
4147         /**
4148          * Get a {@link LuCI.network.Protocol Protocol} instance describing
4149          * the network with the given name.
4150          *
4151          * @param {string} name
4152          * The logical interface name of the network get, e.g. `lan` or `wan`.
4153          *
4154          * @returns {Promise&lt;null|LuCI.network.Protocol>}
4155          * Returns a promise resolving to a
4156          * {@link LuCI.network.Protocol Protocol} subclass instance describing
4157          * the network or `null` if the network did not exist.
4158          */
4159         getNetwork: function(name) {
4160                 return initNetworkState().then(L.bind(function() {
4161                         var section = (name != null) ? uci.get('network', name) : null;
4162
4163                         if (section != null &amp;&amp; section['.type'] == 'interface') {
4164                                 return this.instantiateNetwork(name);
4165                         }
4166                         else if (name != null) {
4167                                 for (var i = 0; i &lt; _state.ifaces.length; i++)
4168                                         if (_state.ifaces[i].interface == name)
4169                                                 return this.instantiateNetwork(name, _state.ifaces[i].proto);
4170                         }
4171
4172                         return null;
4173                 }, this));
4174         },
4175
4176         /**
4177          * Gets an array containing all known networks.
4178          *
4179          * @returns {Promise&lt;Array&lt;LuCI.network.Protocol>>}
4180          * Returns a promise resolving to a name-sorted array of
4181          * {@link LuCI.network.Protocol Protocol} subclass instances
4182          * describing all known networks.
4183          */
4184         getNetworks: function() {
4185                 return initNetworkState().then(L.bind(enumerateNetworks, this));
4186         },
4187
4188         /**
4189          * Deletes the given network and its references from the network and
4190          * firewall configuration.
4191          *
4192          * @param {string} name
4193          * The name of the network to delete.
4194          *
4195          * @returns {Promise&lt;boolean>}
4196          * Returns a promise resolving to either `true` if the network and
4197          * references to it were successfully deleted from the configuration or
4198          * `false` if the given network could not be found.
4199          */
4200         deleteNetwork: function(name) {
4201                 var requireFirewall = Promise.resolve(L.require('firewall')).catch(function() {}),
4202                     network = this.instantiateNetwork(name);
4203
4204                 return Promise.all([ requireFirewall, initNetworkState() ]).then(function(res) {
4205                         var uciInterface = uci.get('network', name),
4206                             firewall = res[0];
4207
4208                         if (uciInterface != null &amp;&amp; uciInterface['.type'] == 'interface') {
4209                                 return Promise.resolve(network ? network.deleteConfiguration() : null).then(function() {
4210                                         uci.remove('network', name);
4211
4212                                         uci.sections('luci', 'ifstate', function(s) {
4213                                                 if (s.interface == name)
4214                                                         uci.remove('luci', s['.name']);
4215                                         });
4216
4217                                         uci.sections('network', 'alias', function(s) {
4218                                                 if (s.interface == name)
4219                                                         uci.remove('network', s['.name']);
4220                                         });
4221
4222                                         uci.sections('network', 'route', function(s) {
4223                                                 if (s.interface == name)
4224                                                         uci.remove('network', s['.name']);
4225                                         });
4226
4227                                         uci.sections('network', 'route6', function(s) {
4228                                                 if (s.interface == name)
4229                                                         uci.remove('network', s['.name']);
4230                                         });
4231
4232                                         uci.sections('wireless', 'wifi-iface', function(s) {
4233                                                 var networks = L.toArray(s.network).filter(function(network) { return network != name });
4234
4235                                                 if (networks.length > 0)
4236                                                         uci.set('wireless', s['.name'], 'network', networks.join(' '));
4237                                                 else
4238                                                         uci.unset('wireless', s['.name'], 'network');
4239                                         });
4240
4241                                         if (firewall)
4242                                                 return firewall.deleteNetwork(name).then(function() { return true });
4243
4244                                         return true;
4245                                 }).catch(function() {
4246                                         return false;
4247                                 });
4248                         }
4249
4250                         return false;
4251                 });
4252         },
4253
4254         /**
4255          * Rename the given network and its references to a new name.
4256          *
4257          * @param {string} oldName
4258          * The current name of the network.
4259          *
4260          * @param {string} newName
4261          * The name to rename the network to, must be in the format
4262          * `[a-z-A-Z0-9_]+`.
4263          *
4264          * @returns {Promise&lt;boolean>}
4265          * Returns a promise resolving to either `true` if the network was
4266          * successfully renamed or `false` if the new name was invalid, if
4267          * a network with the new name already exists or if the network to
4268          * rename could not be found.
4269          */
4270         renameNetwork: function(oldName, newName) {
4271                 return initNetworkState().then(function() {
4272                         if (newName == null || !/^[a-zA-Z0-9_]+$/.test(newName) || uci.get('network', newName) != null)
4273                                 return false;
4274
4275                         var oldNetwork = uci.get('network', oldName);
4276
4277                         if (oldNetwork == null || oldNetwork['.type'] != 'interface')
4278                                 return false;
4279
4280                         var sid = uci.add('network', 'interface', newName);
4281
4282                         for (var key in oldNetwork)
4283                                 if (oldNetwork.hasOwnProperty(key) &amp;&amp; key.charAt(0) != '.')
4284                                         uci.set('network', sid, key, oldNetwork[key]);
4285
4286                         uci.sections('luci', 'ifstate', function(s) {
4287                                 if (s.interface == oldName)
4288                                         uci.set('luci', s['.name'], 'interface', newName);
4289                         });
4290
4291                         uci.sections('network', 'alias', function(s) {
4292                                 if (s.interface == oldName)
4293                                         uci.set('network', s['.name'], 'interface', newName);
4294                         });
4295
4296                         uci.sections('network', 'route', function(s) {
4297                                 if (s.interface == oldName)
4298                                         uci.set('network', s['.name'], 'interface', newName);
4299                         });
4300
4301                         uci.sections('network', 'route6', function(s) {
4302                                 if (s.interface == oldName)
4303                                         uci.set('network', s['.name'], 'interface', newName);
4304                         });
4305
4306                         uci.sections('wireless', 'wifi-iface', function(s) {
4307                                 var networks = L.toArray(s.network).map(function(network) { return (network == oldName ? newName : network) });
4308
4309                                 if (networks.length > 0)
4310                                         uci.set('wireless', s['.name'], 'network', networks.join(' '));
4311                         });
4312
4313                         uci.remove('network', oldName);
4314
4315                         return true;
4316                 });
4317         },
4318
4319         /**
4320          * Get a {@link LuCI.network.Device Device} instance describing the
4321          * given network device.
4322          *
4323          * @param {string} name
4324          * The name of the network device to get, e.g. `eth0` or `br-lan`.
4325          *
4326          * @returns {Promise&lt;null|LuCI.network.Device>}
4327          * Returns a promise resolving to the `Device` instance describing
4328          * the network device or `null` if the given device name could not
4329          * be found.
4330          */
4331         getDevice: function(name) {
4332                 return initNetworkState().then(L.bind(function() {
4333                         if (name == null)
4334                                 return null;
4335
4336                         if (_state.netdevs.hasOwnProperty(name) || isWifiIfname(name))
4337                                 return this.instantiateDevice(name);
4338
4339                         var netid = getWifiNetidBySid(name);
4340                         if (netid != null)
4341                                 return this.instantiateDevice(netid[0]);
4342
4343                         return null;
4344                 }, this));
4345         },
4346
4347         /**
4348          * Get a sorted list of all found network devices.
4349          *
4350          * @returns {Promise&lt;Array&lt;LuCI.network.Device>>}
4351          * Returns a promise resolving to a sorted array of `Device` class
4352          * instances describing the network devices found on the system.
4353          */
4354         getDevices: function() {
4355                 return initNetworkState().then(L.bind(function() {
4356                         var devices = {};
4357
4358                         /* find simple devices */
4359                         var uciInterfaces = uci.sections('network', 'interface');
4360                         for (var i = 0; i &lt; uciInterfaces.length; i++) {
4361                                 var ifnames = L.toArray(uciInterfaces[i].ifname);
4362
4363                                 for (var j = 0; j &lt; ifnames.length; j++) {
4364                                         if (ifnames[j].charAt(0) == '@')
4365                                                 continue;
4366
4367                                         if (isIgnoredIfname(ifnames[j]) || isVirtualIfname(ifnames[j]) || isWifiIfname(ifnames[j]))
4368                                                 continue;
4369
4370                                         devices[ifnames[j]] = this.instantiateDevice(ifnames[j]);
4371                                 }
4372                         }
4373
4374                         for (var ifname in _state.netdevs) {
4375                                 if (devices.hasOwnProperty(ifname))
4376                                         continue;
4377
4378                                 if (isIgnoredIfname(ifname) || isWifiIfname(ifname))
4379                                         continue;
4380
4381                                 if (_state.netdevs[ifname].wireless)
4382                                         continue;
4383
4384                                 devices[ifname] = this.instantiateDevice(ifname);
4385                         }
4386
4387                         /* find VLAN devices */
4388                         var uciSwitchVLANs = uci.sections('network', 'switch_vlan');
4389                         for (var i = 0; i &lt; uciSwitchVLANs.length; i++) {
4390                                 if (typeof(uciSwitchVLANs[i].ports) != 'string' ||
4391                                     typeof(uciSwitchVLANs[i].device) != 'string' ||
4392                                     !_state.switches.hasOwnProperty(uciSwitchVLANs[i].device))
4393                                         continue;
4394
4395                                 var ports = uciSwitchVLANs[i].ports.split(/\s+/);
4396                                 for (var j = 0; j &lt; ports.length; j++) {
4397                                         var m = ports[j].match(/^(\d+)([tu]?)$/);
4398                                         if (m == null)
4399                                                 continue;
4400
4401                                         var netdev = _state.switches[uciSwitchVLANs[i].device].netdevs[m[1]];
4402                                         if (netdev == null)
4403                                                 continue;
4404
4405                                         if (!devices.hasOwnProperty(netdev))
4406                                                 devices[netdev] = this.instantiateDevice(netdev);
4407
4408                                         _state.isSwitch[netdev] = true;
4409
4410                                         if (m[2] != 't')
4411                                                 continue;
4412
4413                                         var vid = uciSwitchVLANs[i].vid || uciSwitchVLANs[i].vlan;
4414                                             vid = (vid != null ? +vid : null);
4415
4416                                         if (vid == null || vid &lt; 0 || vid > 4095)
4417                                                 continue;
4418
4419                                         var vlandev = '%s.%d'.format(netdev, vid);
4420
4421                                         if (!devices.hasOwnProperty(vlandev))
4422                                                 devices[vlandev] = this.instantiateDevice(vlandev);
4423
4424                                         _state.isSwitch[vlandev] = true;
4425                                 }
4426                         }
4427
4428                         /* find wireless interfaces */
4429                         var uciWifiIfaces = uci.sections('wireless', 'wifi-iface'),
4430                             networkCount = {};
4431
4432                         for (var i = 0; i &lt; uciWifiIfaces.length; i++) {
4433                                 if (typeof(uciWifiIfaces[i].device) != 'string')
4434                                         continue;
4435
4436                                 networkCount[uciWifiIfaces[i].device] = (networkCount[uciWifiIfaces[i].device] || 0) + 1;
4437
4438                                 var netid = '%s.network%d'.format(uciWifiIfaces[i].device, networkCount[uciWifiIfaces[i].device]);
4439
4440                                 devices[netid] = this.instantiateDevice(netid);
4441                         }
4442
4443                         var rv = [];
4444
4445                         for (var netdev in devices)
4446                                 if (devices.hasOwnProperty(netdev))
4447                                         rv.push(devices[netdev]);
4448
4449                         rv.sort(deviceSort);
4450
4451                         return rv;
4452                 }, this));
4453         },
4454
4455         /**
4456          * Test if a given network device name is in the list of patterns for
4457          * device names to ignore.
4458          *
4459          * Ignored device names are usually Linux network devices which are
4460          * spawned implicitly by kernel modules such as `tunl0` or `hwsim0`
4461          * and which are unsuitable for use in network configuration.
4462          *
4463          * @param {string} name
4464          * The device name to test.
4465          *
4466          * @returns {boolean}
4467          * Returns `true` if the given name is in the ignore pattern list,
4468          * else returns `false`.
4469          */
4470         isIgnoredDevice: function(name) {
4471                 return isIgnoredIfname(name);
4472         },
4473
4474         /**
4475          * Get a {@link LuCI.network.WifiDevice WifiDevice} instance describing
4476          * the given wireless radio.
4477          *
4478          * @param {string} devname
4479          * The configuration name of the wireless radio to lookup, e.g. `radio0`
4480          * for the first mac80211 phy on the system.
4481          *
4482          * @returns {Promise&lt;null|LuCI.network.WifiDevice>}
4483          * Returns a promise resolving to the `WifiDevice` instance describing
4484          * the underlying radio device or `null` if the wireless radio could not
4485          * be found.
4486          */
4487         getWifiDevice: function(devname) {
4488                 return initNetworkState().then(L.bind(function() {
4489                         var existingDevice = uci.get('wireless', devname);
4490
4491                         if (existingDevice == null || existingDevice['.type'] != 'wifi-device')
4492                                 return null;
4493
4494                         return this.instantiateWifiDevice(devname, _state.radios[devname] || {});
4495                 }, this));
4496         },
4497
4498         /**
4499          * Obtain a list of all configured radio devices.
4500          *
4501          * @returns {Promise&lt;Array&lt;LuCI.network.WifiDevice>>}
4502          * Returns a promise resolving to an array of `WifiDevice` instances
4503          * describing the wireless radios configured in the system.
4504          * The order of the array corresponds to the order of the radios in
4505          * the configuration.
4506          */
4507         getWifiDevices: function() {
4508                 return initNetworkState().then(L.bind(function() {
4509                         var uciWifiDevices = uci.sections('wireless', 'wifi-device'),
4510                             rv = [];
4511
4512                         for (var i = 0; i &lt; uciWifiDevices.length; i++) {
4513                                 var devname = uciWifiDevices[i]['.name'];
4514                                 rv.push(this.instantiateWifiDevice(devname, _state.radios[devname] || {}));
4515                         }
4516
4517                         return rv;
4518                 }, this));
4519         },
4520
4521         /**
4522          * Get a {@link LuCI.network.WifiNetwork WifiNetwork} instance describing
4523          * the given wireless network.
4524          *
4525          * @param {string} netname
4526          * The name of the wireless network to lookup. This may be either an uci
4527          * configuration section ID, a network ID in the form `radio#.network#`
4528          * or a Linux network device name like `wlan0` which is resolved to the
4529          * corresponding configuration section through `ubus` runtime information.
4530          *
4531          * @returns {Promise&lt;null|LuCI.network.WifiNetwork>}
4532          * Returns a promise resolving to the `WifiNetwork` instance describing
4533          * the wireless network or `null` if the corresponding network could not
4534          * be found.
4535          */
4536         getWifiNetwork: function(netname) {
4537                 return initNetworkState()
4538                         .then(L.bind(this.lookupWifiNetwork, this, netname));
4539         },
4540
4541         /**
4542          * Get an array of all {@link LuCI.network.WifiNetwork WifiNetwork}
4543          * instances describing the wireless networks present on the system.
4544          *
4545          * @returns {Promise&lt;Array&lt;LuCI.network.WifiNetwork>>}
4546          * Returns a promise resolving to an array of `WifiNetwork` instances
4547          * describing the wireless networks. The array will be empty if no networks
4548          * are found.
4549          */
4550         getWifiNetworks: function() {
4551                 return initNetworkState().then(L.bind(function() {
4552                         var wifiIfaces = uci.sections('wireless', 'wifi-iface'),
4553                             rv = [];
4554
4555                         for (var i = 0; i &lt; wifiIfaces.length; i++)
4556                                 rv.push(this.lookupWifiNetwork(wifiIfaces[i]['.name']));
4557
4558                         rv.sort(function(a, b) {
4559                                 return (a.getID() > b.getID());
4560                         });
4561
4562                         return rv;
4563                 }, this));
4564         },
4565
4566         /**
4567          * Adds a new wireless network to the configuration and sets its options
4568          * to the provided values.
4569          *
4570          * @param {Object&lt;string, string|string[]>} options
4571          * The options to set for the newly added wireless network. This object
4572          * must at least contain a `device` property which is set to the radio
4573          * name the new network belongs to.
4574          *
4575          * @returns {Promise&lt;null|LuCI.network.WifiNetwork>}
4576          * Returns a promise resolving to a `WifiNetwork` instance describing
4577          * the newly added wireless network or `null` if the given options
4578          * were invalid or if the associated radio device could not be found.
4579          */
4580         addWifiNetwork: function(options) {
4581                 return initNetworkState().then(L.bind(function() {
4582                         if (options == null ||
4583                             typeof(options) != 'object' ||
4584                             typeof(options.device) != 'string')
4585                             return null;
4586
4587                         var existingDevice = uci.get('wireless', options.device);
4588                         if (existingDevice == null || existingDevice['.type'] != 'wifi-device')
4589                                 return null;
4590
4591                         /* XXX: need to add a named section (wifinet#) here */
4592                         var sid = uci.add('wireless', 'wifi-iface');
4593                         for (var key in options)
4594                                 if (options.hasOwnProperty(key))
4595                                         uci.set('wireless', sid, key, options[key]);
4596
4597                         var radioname = existingDevice['.name'],
4598                             netid = getWifiNetidBySid(sid) || [];
4599
4600                         return this.instantiateWifiNetwork(sid, radioname, _state.radios[radioname], netid[0], null);
4601                 }, this));
4602         },
4603
4604         /**
4605          * Deletes the given wireless network from the configuration.
4606          *
4607          * @param {string} netname
4608          * The name of the network to remove. This may be either a
4609          * network ID in the form `radio#.network#` or a Linux network device
4610          * name like `wlan0` which is resolved to the corresponding configuration
4611          * section through `ubus` runtime information.
4612          *
4613          * @returns {Promise&lt;boolean>}
4614          * Returns a promise resolving to `true` if the wireless network has been
4615          * successfully deleted from the configuration or `false` if it could not
4616          * be found.
4617          */
4618         deleteWifiNetwork: function(netname) {
4619                 return initNetworkState().then(L.bind(function() {
4620                         var sid = getWifiSidByIfname(netname);
4621
4622                         if (sid == null)
4623                                 return false;
4624
4625                         uci.remove('wireless', sid);
4626                         return true;
4627                 }, this));
4628         },
4629
4630         /* private */
4631         getStatusByRoute: function(addr, mask) {
4632                 return initNetworkState().then(L.bind(function() {
4633                         var rv = [];
4634
4635                         for (var i = 0; i &lt; _state.ifaces.length; i++) {
4636                                 if (!Array.isArray(_state.ifaces[i].route))
4637                                         continue;
4638
4639                                 for (var j = 0; j &lt; _state.ifaces[i].route.length; j++) {
4640                                         if (typeof(_state.ifaces[i].route[j]) != 'object' ||
4641                                             typeof(_state.ifaces[i].route[j].target) != 'string' ||
4642                                             typeof(_state.ifaces[i].route[j].mask) != 'number')
4643                                             continue;
4644
4645                                         if (_state.ifaces[i].route[j].table)
4646                                                 continue;
4647
4648                                         if (_state.ifaces[i].route[j].target != addr ||
4649                                             _state.ifaces[i].route[j].mask != mask)
4650                                             continue;
4651
4652                                         rv.push(_state.ifaces[i]);
4653                                 }
4654                         }
4655
4656                         return rv;
4657                 }, this));
4658         },
4659
4660         /* private */
4661         getStatusByAddress: function(addr) {
4662                 return initNetworkState().then(L.bind(function() {
4663                         var rv = [];
4664
4665                         for (var i = 0; i &lt; _state.ifaces.length; i++) {
4666                                 if (Array.isArray(_state.ifaces[i]['ipv4-address']))
4667                                         for (var j = 0; j &lt; _state.ifaces[i]['ipv4-address'].length; j++)
4668                                                 if (typeof(_state.ifaces[i]['ipv4-address'][j]) == 'object' &amp;&amp;
4669                                                     _state.ifaces[i]['ipv4-address'][j].address == addr)
4670                                                         return _state.ifaces[i];
4671
4672                                 if (Array.isArray(_state.ifaces[i]['ipv6-address']))
4673                                         for (var j = 0; j &lt; _state.ifaces[i]['ipv6-address'].length; j++)
4674                                                 if (typeof(_state.ifaces[i]['ipv6-address'][j]) == 'object' &amp;&amp;
4675                                                     _state.ifaces[i]['ipv6-address'][j].address == addr)
4676                                                         return _state.ifaces[i];
4677
4678                                 if (Array.isArray(_state.ifaces[i]['ipv6-prefix-assignment']))
4679                                         for (var j = 0; j &lt; _state.ifaces[i]['ipv6-prefix-assignment'].length; j++)
4680                                                 if (typeof(_state.ifaces[i]['ipv6-prefix-assignment'][j]) == 'object' &amp;&amp;
4681                                                         typeof(_state.ifaces[i]['ipv6-prefix-assignment'][j]['local-address']) == 'object' &amp;&amp;
4682                                                     _state.ifaces[i]['ipv6-prefix-assignment'][j]['local-address'].address == addr)
4683                                                         return _state.ifaces[i];
4684                         }
4685
4686                         return null;
4687                 }, this));
4688         },
4689
4690         /**
4691          * Get IPv4 wan networks.
4692          *
4693          * This function looks up all networks having a default `0.0.0.0/0` route
4694          * and returns them as array.
4695          *
4696          * @returns {Promise&lt;Array&lt;LuCI.network.Protocol>>}
4697          * Returns a promise resolving to an array of `Protocol` subclass
4698          * instances describing the found default route interfaces.
4699          */
4700         getWANNetworks: function() {
4701                 return this.getStatusByRoute('0.0.0.0', 0).then(L.bind(function(statuses) {
4702                         var rv = [], seen = {};
4703
4704                         for (var i = 0; i &lt; statuses.length; i++) {
4705                                 if (!seen.hasOwnProperty(statuses[i].interface)) {
4706                                         rv.push(this.instantiateNetwork(statuses[i].interface, statuses[i].proto));
4707                                         seen[statuses[i].interface] = true;
4708                                 }
4709                         }
4710
4711                         return rv;
4712                 }, this));
4713         },
4714
4715         /**
4716          * Get IPv6 wan networks.
4717          *
4718          * This function looks up all networks having a default `::/0` route
4719          * and returns them as array.
4720          *
4721          * @returns {Promise&lt;Array&lt;LuCI.network.Protocol>>}
4722          * Returns a promise resolving to an array of `Protocol` subclass
4723          * instances describing the found IPv6 default route interfaces.
4724          */
4725         getWAN6Networks: function() {
4726                 return this.getStatusByRoute('::', 0).then(L.bind(function(statuses) {
4727                         var rv = [], seen = {};
4728
4729                         for (var i = 0; i &lt; statuses.length; i++) {
4730                                 if (!seen.hasOwnProperty(statuses[i].interface)) {
4731                                         rv.push(this.instantiateNetwork(statuses[i].interface, statuses[i].proto));
4732                                         seen[statuses[i].interface] = true;
4733                                 }
4734                         }
4735
4736                         return rv;
4737                 }, this));
4738         },
4739
4740         /**
4741          * Describes an swconfig switch topology by specifying the CPU
4742          * connections and external port labels of a switch.
4743          *
4744          * @typedef {Object&lt;string, Object|Array>} SwitchTopology
4745          * @memberof LuCI.network
4746          *
4747          * @property {Object&lt;number, string>} netdevs
4748          * The `netdevs` property points to an object describing the CPU port
4749          * connections of the switch. The numeric key of the enclosed object is
4750          * the port number, the value contains the Linux network device name the
4751          * port is hardwired to.
4752          *
4753          * @property {Array&lt;Object&lt;string, boolean|number|string>>} ports
4754          * The `ports` property points to an array describing the populated
4755          * ports of the switch in the external label order. Each array item is
4756          * an object containg the following keys:
4757          *  - `num` - the internal switch port number
4758          *  - `label` - the label of the port, e.g. `LAN 1` or `CPU (eth0)`
4759          *  - `device` - the connected Linux network device name (CPU ports only)
4760          *  - `tagged` - a boolean indicating whether the port must be tagged to
4761          *     function (CPU ports only)
4762          */
4763
4764         /**
4765          * Returns the topologies of all swconfig switches found on the system.
4766          *
4767          * @returns {Promise&lt;Object&lt;string, LuCI.network.SwitchTopology>>}
4768          * Returns a promise resolving to an object containing the topologies
4769          * of each switch. The object keys correspond to the name of the switches
4770          * such as `switch0`, the values are
4771          * {@link LuCI.network.SwitchTopology SwitchTopology} objects describing
4772          * the layout.
4773          */
4774         getSwitchTopologies: function() {
4775                 return initNetworkState().then(function() {
4776                         return _state.switches;
4777                 });
4778         },
4779
4780         /* private */
4781         instantiateNetwork: function(name, proto) {
4782                 if (name == null)
4783                         return null;
4784
4785                 proto = (proto == null ? uci.get('network', name, 'proto') : proto);
4786
4787                 var protoClass = _protocols[proto] || Protocol;
4788                 return new protoClass(name);
4789         },
4790
4791         /* private */
4792         instantiateDevice: function(name, network, extend) {
4793                 if (extend != null)
4794                         return new (Device.extend(extend))(name, network);
4795
4796                 return new Device(name, network);
4797         },
4798
4799         /* private */
4800         instantiateWifiDevice: function(radioname, radiostate) {
4801                 return new WifiDevice(radioname, radiostate);
4802         },
4803
4804         /* private */
4805         instantiateWifiNetwork: function(sid, radioname, radiostate, netid, netstate, hostapd) {
4806                 return new WifiNetwork(sid, radioname, radiostate, netid, netstate, hostapd);
4807         },
4808
4809         /* private */
4810         lookupWifiNetwork: function(netname) {
4811                 var sid, res, netid, radioname, radiostate, netstate;
4812
4813                 sid = getWifiSidByNetid(netname);
4814
4815                 if (sid != null) {
4816                         res        = getWifiStateBySid(sid);
4817                         netid      = netname;
4818                         radioname  = res ? res[0] : null;
4819                         radiostate = res ? res[1] : null;
4820                         netstate   = res ? res[2] : null;
4821                 }
4822                 else {
4823                         res = getWifiStateByIfname(netname);
4824
4825                         if (res != null) {
4826                                 radioname  = res[0];
4827                                 radiostate = res[1];
4828                                 netstate   = res[2];
4829                                 sid        = netstate.section;
4830                                 netid      = L.toArray(getWifiNetidBySid(sid))[0];
4831                         }
4832                         else {
4833                                 res = getWifiStateBySid(netname);
4834
4835                                 if (res != null) {
4836                                         radioname  = res[0];
4837                                         radiostate = res[1];
4838                                         netstate   = res[2];
4839                                         sid        = netname;
4840                                         netid      = L.toArray(getWifiNetidBySid(sid))[0];
4841                                 }
4842                                 else {
4843                                         res = getWifiNetidBySid(netname);
4844
4845                                         if (res != null) {
4846                                                 netid     = res[0];
4847                                                 radioname = res[1];
4848                                                 sid       = netname;
4849                                         }
4850                                 }
4851                         }
4852                 }
4853
4854                 return this.instantiateWifiNetwork(sid || netname, radioname,
4855                         radiostate, netid, netstate,
4856                         netstate ? _state.hostapd[netstate.ifname] : null);
4857         },
4858
4859         /**
4860          * Obtains the the network device name of the given object.
4861          *
4862          * @param {LuCI.network.Protocol|LuCI.network.Device|LuCI.network.WifiDevice|LuCI.network.WifiNetwork|string} obj
4863          * The object to get the device name from.
4864          *
4865          * @returns {null|string}
4866          * Returns a string containing the device name or `null` if the given
4867          * object could not be converted to a name.
4868          */
4869         getIfnameOf: function(obj) {
4870                 return ifnameOf(obj);
4871         },
4872
4873         /**
4874          * Queries the internal DSL modem type from board information.
4875          *
4876          * @returns {Promise&lt;null|string>}
4877          * Returns a promise resolving to the type of the internal modem
4878          * (e.g. `vdsl`) or to `null` if no internal modem is present.
4879          */
4880         getDSLModemType: function() {
4881                 return initNetworkState().then(function() {
4882                         return _state.hasDSLModem ? _state.hasDSLModem.type : null;
4883                 });
4884         },
4885
4886         /**
4887          * Queries aggregated information about known hosts.
4888          *
4889          * This function aggregates information from various sources such as
4890          * DHCP lease databases, ARP and IPv6 neighbour entries, wireless
4891          * association list etc. and returns a {@link LuCI.network.Hosts Hosts}
4892          * class instance describing the found hosts.
4893          *
4894          * @returns {Promise&lt;LuCI.network.Hosts>}
4895          * Returns a `Hosts` instance describing host known on the system.
4896          */
4897         getHostHints: function() {
4898                 return initNetworkState().then(function() {
4899                         return new Hosts(_state.hosts);
4900                 });
4901         }
4902 });
4903
4904 /**
4905  * @class
4906  * @memberof LuCI.network
4907  * @hideconstructor
4908  * @classdesc
4909  *
4910  * The `LuCI.network.Hosts` class encapsulates host information aggregated
4911  * from multiple sources and provides convenience functions to access the
4912  * host information by different criteria.
4913  */
4914 Hosts = baseclass.extend(/** @lends LuCI.network.Hosts.prototype */ {
4915         __init__: function(hosts) {
4916                 this.hosts = hosts;
4917         },
4918
4919         /**
4920          * Lookup the hostname associated with the given MAC address.
4921          *
4922          * @param {string} mac
4923          * The MAC address to lookup.
4924          *
4925          * @returns {null|string}
4926          * Returns the hostname associated with the given MAC or `null` if
4927          * no matching host could be found or if no hostname is known for
4928          * the corresponding host.
4929          */
4930         getHostnameByMACAddr: function(mac) {
4931                 return this.hosts[mac] ? this.hosts[mac].name : null;
4932         },
4933
4934         /**
4935          * Lookup the IPv4 address associated with the given MAC address.
4936          *
4937          * @param {string} mac
4938          * The MAC address to lookup.
4939          *
4940          * @returns {null|string}
4941          * Returns the IPv4 address associated with the given MAC or `null` if
4942          * no matching host could be found or if no IPv4 address is known for
4943          * the corresponding host.
4944          */
4945         getIPAddrByMACAddr: function(mac) {
4946                 return this.hosts[mac] ? this.hosts[mac].ipv4 : null;
4947         },
4948
4949         /**
4950          * Lookup the IPv6 address associated with the given MAC address.
4951          *
4952          * @param {string} mac
4953          * The MAC address to lookup.
4954          *
4955          * @returns {null|string}
4956          * Returns the IPv6 address associated with the given MAC or `null` if
4957          * no matching host could be found or if no IPv6 address is known for
4958          * the corresponding host.
4959          */
4960         getIP6AddrByMACAddr: function(mac) {
4961                 return this.hosts[mac] ? this.hosts[mac].ipv6 : null;
4962         },
4963
4964         /**
4965          * Lookup the hostname associated with the given IPv4 address.
4966          *
4967          * @param {string} ipaddr
4968          * The IPv4 address to lookup.
4969          *
4970          * @returns {null|string}
4971          * Returns the hostname associated with the given IPv4 or `null` if
4972          * no matching host could be found or if no hostname is known for
4973          * the corresponding host.
4974          */
4975         getHostnameByIPAddr: function(ipaddr) {
4976                 for (var mac in this.hosts)
4977                         if (this.hosts[mac].ipv4 == ipaddr &amp;&amp; this.hosts[mac].name != null)
4978                                 return this.hosts[mac].name;
4979                 return null;
4980         },
4981
4982         /**
4983          * Lookup the MAC address associated with the given IPv4 address.
4984          *
4985          * @param {string} ipaddr
4986          * The IPv4 address to lookup.
4987          *
4988          * @returns {null|string}
4989          * Returns the MAC address associated with the given IPv4 or `null` if
4990          * no matching host could be found or if no MAC address is known for
4991          * the corresponding host.
4992          */
4993         getMACAddrByIPAddr: function(ipaddr) {
4994                 for (var mac in this.hosts)
4995                         if (this.hosts[mac].ipv4 == ipaddr)
4996                                 return mac;
4997                 return null;
4998         },
4999
5000         /**
5001          * Lookup the hostname associated with the given IPv6 address.
5002          *
5003          * @param {string} ipaddr
5004          * The IPv6 address to lookup.
5005          *
5006          * @returns {null|string}
5007          * Returns the hostname associated with the given IPv6 or `null` if
5008          * no matching host could be found or if no hostname is known for
5009          * the corresponding host.
5010          */
5011         getHostnameByIP6Addr: function(ip6addr) {
5012                 for (var mac in this.hosts)
5013                         if (this.hosts[mac].ipv6 == ip6addr &amp;&amp; this.hosts[mac].name != null)
5014                                 return this.hosts[mac].name;
5015                 return null;
5016         },
5017
5018         /**
5019          * Lookup the MAC address associated with the given IPv6 address.
5020          *
5021          * @param {string} ipaddr
5022          * The IPv6 address to lookup.
5023          *
5024          * @returns {null|string}
5025          * Returns the MAC address associated with the given IPv6 or `null` if
5026          * no matching host could be found or if no MAC address is known for
5027          * the corresponding host.
5028          */
5029         getMACAddrByIP6Addr: function(ip6addr) {
5030                 for (var mac in this.hosts)
5031                         if (this.hosts[mac].ipv6 == ip6addr)
5032                                 return mac;
5033                 return null;
5034         },
5035
5036         /**
5037          * Return an array of (MAC address, name hint) tuples sorted by
5038          * MAC address.
5039          *
5040          * @param {boolean} [preferIp6=false]
5041          * Whether to prefer IPv6 addresses (`true`) or IPv4 addresses (`false`)
5042          * as name hint when no hostname is known for a specific MAC address.
5043          *
5044          * @returns {Array&lt;Array&lt;string>>}
5045          * Returns an array of arrays containing a name hint for each found
5046          * MAC address on the system. The array is sorted ascending by MAC.
5047          *
5048          * Each item of the resulting array is a two element array with the
5049          * MAC being the first element and the name hint being the second
5050          * element. The name hint is either the hostname, an IPv4 or an IPv6
5051          * address related to the MAC address.
5052          *
5053          * If no hostname but both IPv4 and IPv6 addresses are known, the
5054          * `preferIP6` flag specifies whether the IPv6 or the IPv4 address
5055          * is used as hint.
5056          */
5057         getMACHints: function(preferIp6) {
5058                 var rv = [];
5059                 for (var mac in this.hosts) {
5060                         var hint = this.hosts[mac].name ||
5061                                 this.hosts[mac][preferIp6 ? 'ipv6' : 'ipv4'] ||
5062                                 this.hosts[mac][preferIp6 ? 'ipv4' : 'ipv6'];
5063
5064                         rv.push([mac, hint]);
5065                 }
5066                 return rv.sort(function(a, b) { return a[0] > b[0] });
5067         }
5068 });
5069
5070 /**
5071  * @class
5072  * @memberof LuCI.network
5073  * @hideconstructor
5074  * @classdesc
5075  *
5076  * The `Network.Protocol` class serves as base for protocol specific
5077  * subclasses which describe logical UCI networks defined by `config
5078  * interface` sections in `/etc/config/network`.
5079  */
5080 Protocol = baseclass.extend(/** @lends LuCI.network.Protocol.prototype */ {
5081         __init__: function(name) {
5082                 this.sid = name;
5083         },
5084
5085         _get: function(opt) {
5086                 var val = uci.get('network', this.sid, opt);
5087
5088                 if (Array.isArray(val))
5089                         return val.join(' ');
5090
5091                 return val || '';
5092         },
5093
5094         _ubus: function(field) {
5095                 for (var i = 0; i &lt; _state.ifaces.length; i++) {
5096                         if (_state.ifaces[i].interface != this.sid)
5097                                 continue;
5098
5099                         return (field != null ? _state.ifaces[i][field] : _state.ifaces[i]);
5100                 }
5101         },
5102
5103         /**
5104          * Read the given UCI option value of this network.
5105          *
5106          * @param {string} opt
5107          * The UCI option name to read.
5108          *
5109          * @returns {null|string|string[]}
5110          * Returns the UCI option value or `null` if the requested option is
5111          * not found.
5112          */
5113         get: function(opt) {
5114                 return uci.get('network', this.sid, opt);
5115         },
5116
5117         /**
5118          * Set the given UCI option of this network to the given value.
5119          *
5120          * @param {string} opt
5121          * The name of the UCI option to set.
5122          *
5123          * @param {null|string|string[]} val
5124          * The value to set or `null` to remove the given option from the
5125          * configuration.
5126          */
5127         set: function(opt, val) {
5128                 return uci.set('network', this.sid, opt, val);
5129         },
5130
5131         /**
5132          * Get the associared Linux network device of this network.
5133          *
5134          * @returns {null|string}
5135          * Returns the name of the associated network device or `null` if
5136          * it could not be determined.
5137          */
5138         getIfname: function() {
5139                 var ifname;
5140
5141                 if (this.isFloating())
5142                         ifname = this._ubus('l3_device');
5143                 else
5144                         ifname = this._ubus('device') || this._ubus('l3_device');
5145
5146                 if (ifname != null)
5147                         return ifname;
5148
5149                 var res = getWifiNetidByNetname(this.sid);
5150                 return (res != null ? res[0] : null);
5151         },
5152
5153         /**
5154          * Get the name of this network protocol class.
5155          *
5156          * This function will be overwritten by subclasses created by
5157          * {@link LuCI.network#registerProtocol Network.registerProtocol()}.
5158          *
5159          * @abstract
5160          * @returns {string}
5161          * Returns the name of the network protocol implementation, e.g.
5162          * `static` or `dhcp`.
5163          */
5164         getProtocol: function() {
5165                 return null;
5166         },
5167
5168         /**
5169          * Return a human readable description for the protcol, such as
5170          * `Static address` or `DHCP client`.
5171          *
5172          * This function should be overwritten by subclasses.
5173          *
5174          * @abstract
5175          * @returns {string}
5176          * Returns the description string.
5177          */
5178         getI18n: function() {
5179                 switch (this.getProtocol()) {
5180                 case 'none':   return _('Unmanaged');
5181                 case 'static': return _('Static address');
5182                 case 'dhcp':   return _('DHCP client');
5183                 default:       return _('Unknown');
5184                 }
5185         },
5186
5187         /**
5188          * Get the type of the underlying interface.
5189          *
5190          * This function actually is a convenience wrapper around
5191          * `proto.get("type")` and is mainly used by other `LuCI.network` code
5192          * to check whether the interface is declared as bridge in UCI.
5193          *
5194          * @returns {null|string}
5195          * Returns the value of the `type` option of the associated logical
5196          * interface or `null` if no `type` option is set.
5197          */
5198         getType: function() {
5199                 return this._get('type');
5200         },
5201
5202         /**
5203          * Get the name of the associated logical interface.
5204          *
5205          * @returns {string}
5206          * Returns the logical interface name, such as `lan` or `wan`.
5207          */
5208         getName: function() {
5209                 return this.sid;
5210         },
5211
5212         /**
5213          * Get the uptime of the logical interface.
5214          *
5215          * @returns {number}
5216          * Returns the uptime of the associated interface in seconds.
5217          */
5218         getUptime: function() {
5219                 return this._ubus('uptime') || 0;
5220         },
5221
5222         /**
5223          * Get the logical interface expiry time in seconds.
5224          *
5225          * For protocols that have a concept of a lease, such as DHCP or
5226          * DHCPv6, this function returns the remaining time in seconds
5227          * until the lease expires.
5228          *
5229          * @returns {number}
5230          * Returns the amount of seconds until the lease expires or `-1`
5231          * if it isn't applicable to the associated protocol.
5232          */
5233         getExpiry: function() {
5234                 var u = this._ubus('uptime'),
5235                     d = this._ubus('data');
5236
5237                 if (typeof(u) == 'number' &amp;&amp; d != null &amp;&amp;
5238                     typeof(d) == 'object' &amp;&amp; typeof(d.leasetime) == 'number') {
5239                         var r = d.leasetime - (u % d.leasetime);
5240                         return (r > 0 ? r : 0);
5241                 }
5242
5243                 return -1;
5244         },
5245
5246         /**
5247          * Get the metric value of the logical interface.
5248          *
5249          * @returns {number}
5250          * Returns the current metric value used for device and network
5251          * routes spawned by the associated logical interface.
5252          */
5253         getMetric: function() {
5254                 return this._ubus('metric') || 0;
5255         },
5256
5257         /**
5258          * Get the requested firewall zone name of the logical interface.
5259          *
5260          * Some protocol implementations request a specific firewall zone
5261          * to trigger inclusion of their resulting network devices into the
5262          * firewall rule set.
5263          *
5264          * @returns {null|string}
5265          * Returns the requested firewall zone name as published in the
5266          * `ubus` runtime information or `null` if the remote protocol
5267          * handler didn't request a zone.
5268          */
5269         getZoneName: function() {
5270                 var d = this._ubus('data');
5271
5272                 if (L.isObject(d) &amp;&amp; typeof(d.zone) == 'string')
5273                         return d.zone;
5274
5275                 return null;
5276         },
5277
5278         /**
5279          * Query the first (primary) IPv4 address of the logical interface.
5280          *
5281          * @returns {null|string}
5282          * Returns the primary IPv4 address registered by the protocol handler
5283          * or `null` if no IPv4 addresses were set.
5284          */
5285         getIPAddr: function() {
5286                 var addrs = this._ubus('ipv4-address');
5287                 return ((Array.isArray(addrs) &amp;&amp; addrs.length) ? addrs[0].address : null);
5288         },
5289
5290         /**
5291          * Query all IPv4 addresses of the logical interface.
5292          *
5293          * @returns {string[]}
5294          * Returns an array of IPv4 addresses in CIDR notation which have been
5295          * registered by the protocol handler. The order of the resulting array
5296          * follows the order of the addresses in `ubus` runtime information.
5297          */
5298         getIPAddrs: function() {
5299                 var addrs = this._ubus('ipv4-address'),
5300                     rv = [];
5301
5302                 if (Array.isArray(addrs))
5303                         for (var i = 0; i &lt; addrs.length; i++)
5304                                 rv.push('%s/%d'.format(addrs[i].address, addrs[i].mask));
5305
5306                 return rv;
5307         },
5308
5309         /**
5310          * Query the first (primary) IPv4 netmask of the logical interface.
5311          *
5312          * @returns {null|string}
5313          * Returns the netmask of the primary IPv4 address registered by the
5314          * protocol handler or `null` if no IPv4 addresses were set.
5315          */
5316         getNetmask: function() {
5317                 var addrs = this._ubus('ipv4-address');
5318                 if (Array.isArray(addrs) &amp;&amp; addrs.length)
5319                         return prefixToMask(addrs[0].mask, false);
5320         },
5321
5322         /**
5323          * Query the gateway (nexthop) of the default route associated with
5324          * this logical interface.
5325          *
5326          * @returns {string}
5327          * Returns a string containing the IPv4 nexthop address of the associated
5328          * default route or `null` if no default route was found.
5329          */
5330         getGatewayAddr: function() {
5331                 var routes = this._ubus('route');
5332
5333                 if (Array.isArray(routes))
5334                         for (var i = 0; i &lt; routes.length; i++)
5335                                 if (typeof(routes[i]) == 'object' &amp;&amp;
5336                                     routes[i].target == '0.0.0.0' &amp;&amp;
5337                                     routes[i].mask == 0)
5338                                     return routes[i].nexthop;
5339
5340                 return null;
5341         },
5342
5343         /**
5344          * Query the IPv4 DNS servers associated with the logical interface.
5345          *
5346          * @returns {string[]}
5347          * Returns an array of IPv4 DNS servers registered by the remote
5348          * protocol backend.
5349          */
5350         getDNSAddrs: function() {
5351                 var addrs = this._ubus('dns-server'),
5352                     rv = [];
5353
5354                 if (Array.isArray(addrs))
5355                         for (var i = 0; i &lt; addrs.length; i++)
5356                                 if (!/:/.test(addrs[i]))
5357                                         rv.push(addrs[i]);
5358
5359                 return rv;
5360         },
5361
5362         /**
5363          * Query the first (primary) IPv6 address of the logical interface.
5364          *
5365          * @returns {null|string}
5366          * Returns the primary IPv6 address registered by the protocol handler
5367          * in CIDR notation or `null` if no IPv6 addresses were set.
5368          */
5369         getIP6Addr: function() {
5370                 var addrs = this._ubus('ipv6-address');
5371
5372                 if (Array.isArray(addrs) &amp;&amp; L.isObject(addrs[0]))
5373                         return '%s/%d'.format(addrs[0].address, addrs[0].mask);
5374
5375                 addrs = this._ubus('ipv6-prefix-assignment');
5376
5377                 if (Array.isArray(addrs) &amp;&amp; L.isObject(addrs[0]) &amp;&amp; L.isObject(addrs[0]['local-address']))
5378                         return '%s/%d'.format(addrs[0]['local-address'].address, addrs[0]['local-address'].mask);
5379
5380                 return null;
5381         },
5382
5383         /**
5384          * Query all IPv6 addresses of the logical interface.
5385          *
5386          * @returns {string[]}
5387          * Returns an array of IPv6 addresses in CIDR notation which have been
5388          * registered by the protocol handler. The order of the resulting array
5389          * follows the order of the addresses in `ubus` runtime information.
5390          */
5391         getIP6Addrs: function() {
5392                 var addrs = this._ubus('ipv6-address'),
5393                     rv = [];
5394
5395                 if (Array.isArray(addrs))
5396                         for (var i = 0; i &lt; addrs.length; i++)
5397                                 if (L.isObject(addrs[i]))
5398                                         rv.push('%s/%d'.format(addrs[i].address, addrs[i].mask));
5399
5400                 addrs = this._ubus('ipv6-prefix-assignment');
5401
5402                 if (Array.isArray(addrs))
5403                         for (var i = 0; i &lt; addrs.length; i++)
5404                                 if (L.isObject(addrs[i]) &amp;&amp; L.isObject(addrs[i]['local-address']))
5405                                         rv.push('%s/%d'.format(addrs[i]['local-address'].address, addrs[i]['local-address'].mask));
5406
5407                 return rv;
5408         },
5409
5410         /**
5411          * Query the gateway (nexthop) of the IPv6 default route associated with
5412          * this logical interface.
5413          *
5414          * @returns {string}
5415          * Returns a string containing the IPv6 nexthop address of the associated
5416          * default route or `null` if no default route was found.
5417          */
5418         getGateway6Addr: function() {
5419                 var routes = this._ubus('route');
5420
5421                 if (Array.isArray(routes))
5422                         for (var i = 0; i &lt; routes.length; i++)
5423                                 if (typeof(routes[i]) == 'object' &amp;&amp;
5424                                     routes[i].target == '::' &amp;&amp;
5425                                     routes[i].mask == 0)
5426                                     return routes[i].nexthop;
5427
5428                 return null;
5429         },
5430
5431         /**
5432          * Query the IPv6 DNS servers associated with the logical interface.
5433          *
5434          * @returns {string[]}
5435          * Returns an array of IPv6 DNS servers registered by the remote
5436          * protocol backend.
5437          */
5438         getDNS6Addrs: function() {
5439                 var addrs = this._ubus('dns-server'),
5440                     rv = [];
5441
5442                 if (Array.isArray(addrs))
5443                         for (var i = 0; i &lt; addrs.length; i++)
5444                                 if (/:/.test(addrs[i]))
5445                                         rv.push(addrs[i]);
5446
5447                 return rv;
5448         },
5449
5450         /**
5451          * Query the routed IPv6 prefix associated with the logical interface.
5452          *
5453          * @returns {null|string}
5454          * Returns the routed IPv6 prefix registered by the remote protocol
5455          * handler or `null` if no prefix is present.
5456          */
5457         getIP6Prefix: function() {
5458                 var prefixes = this._ubus('ipv6-prefix');
5459
5460                 if (Array.isArray(prefixes) &amp;&amp; L.isObject(prefixes[0]))
5461                         return '%s/%d'.format(prefixes[0].address, prefixes[0].mask);
5462
5463                 return null;
5464         },
5465
5466         /**
5467          * Query interface error messages published in `ubus` runtime state.
5468          *
5469          * Interface errors are emitted by remote protocol handlers if the setup
5470          * of the underlying logical interface failed, e.g. due to bad
5471          * configuration or network connectivity issues.
5472          *
5473          * This function will translate the found error codes to human readable
5474          * messages using the descriptions registered by
5475          * {@link LuCI.network#registerErrorCode Network.registerErrorCode()}
5476          * and fall back to `"Unknown error (%s)"` where `%s` is replaced by the
5477          * error code in case no translation can be found.
5478          *
5479          * @returns {string[]}
5480          * Returns an array of translated interface error messages.
5481          */
5482         getErrors: function() {
5483                 var errors = this._ubus('errors'),
5484                     rv = null;
5485
5486                 if (Array.isArray(errors)) {
5487                         for (var i = 0; i &lt; errors.length; i++) {
5488                                 if (!L.isObject(errors[i]) || typeof(errors[i].code) != 'string')
5489                                         continue;
5490
5491                                 rv = rv || [];
5492                                 rv.push(proto_errors[errors[i].code] || _('Unknown error (%s)').format(errors[i].code));
5493                         }
5494                 }
5495
5496                 return rv;
5497         },
5498
5499         /**
5500          * Checks whether the underlying logical interface is declared as bridge.
5501          *
5502          * @returns {boolean}
5503          * Returns `true` when the interface is declared with `option type bridge`
5504          * and when the associated protocol implementation is not marked virtual
5505          * or `false` when the logical interface is no bridge.
5506          */
5507         isBridge: function() {
5508                 return (!this.isVirtual() &amp;&amp; this.getType() == 'bridge');
5509         },
5510
5511         /**
5512          * Get the name of the opkg package providing the protocol functionality.
5513          *
5514          * This function should be overwritten by protocol specific subclasses.
5515          *
5516          * @abstract
5517          *
5518          * @returns {string}
5519          * Returns the name of the opkg package required for the protocol to
5520          * function, e.g. `odhcp6c` for the `dhcpv6` prototocol.
5521          */
5522         getOpkgPackage: function() {
5523                 return null;
5524         },
5525
5526         /**
5527          * Check function for the protocol handler if a new interface is createable.
5528          *
5529          * This function should be overwritten by protocol specific subclasses.
5530          *
5531          * @abstract
5532          *
5533          * @param {string} ifname
5534          * The name of the interface to be created.
5535          *
5536          * @returns {Promise&lt;void>}
5537          * Returns a promise resolving if new interface is createable, else
5538          * rejects with an error message string.
5539          */
5540         isCreateable: function(ifname) {
5541                 return Promise.resolve(null);
5542         },
5543
5544         /**
5545          * Checks whether the protocol functionality is installed.
5546          *
5547          * This function exists for compatibility with old code, it always
5548          * returns `true`.
5549          *
5550          * @deprecated
5551          * @abstract
5552          *
5553          * @returns {boolean}
5554          * Returns `true` if the protocol support is installed, else `false`.
5555          */
5556         isInstalled: function() {
5557                 return true;
5558         },
5559
5560         /**
5561          * Checks whether this protocol is "virtual".
5562          *
5563          * A "virtual" protocol is a protocol which spawns its own interfaces
5564          * on demand instead of using existing physical interfaces.
5565          *
5566          * Examples for virtual protocols are `6in4` which `gre` spawn tunnel
5567          * network device on startup, examples for non-virtual protcols are
5568          * `dhcp` or `static` which apply IP configuration to existing interfaces.
5569          *
5570          * This function should be overwritten by subclasses.
5571          *
5572          * @returns {boolean}
5573          * Returns a boolean indicating whether the underlying protocol spawns
5574          * dynamic interfaces (`true`) or not (`false`).
5575          */
5576         isVirtual: function() {
5577                 return false;
5578         },
5579
5580         /**
5581          * Checks whether this protocol is "floating".
5582          *
5583          * A "floating" protocol is a protocol which spawns its own interfaces
5584          * on demand, like a virtual one but which relies on an existinf lower
5585          * level interface to initiate the connection.
5586          *
5587          * An example for such a protocol is "pppoe".
5588          *
5589          * This function exists for backwards compatibility with older code
5590          * but should not be used anymore.
5591          *
5592          * @deprecated
5593          * @returns {boolean}
5594          * Returns a boolean indicating whether this protocol is floating (`true`)
5595          * or not (`false`).
5596          */
5597         isFloating: function() {
5598                 return false;
5599         },
5600
5601         /**
5602          * Checks whether this logical interface is dynamic.
5603          *
5604          * A dynamic interface is an interface which has been created at runtime,
5605          * e.g. as sub-interface of another interface, but which is not backed by
5606          * any user configuration. Such dynamic interfaces cannot be edited but
5607          * only brought down or restarted.
5608          *
5609          * @returns {boolean}
5610          * Returns a boolean indicating whether this interface is dynamic (`true`)
5611          * or not (`false`).
5612          */
5613         isDynamic: function() {
5614                 return (this._ubus('dynamic') == true);
5615         },
5616
5617         /**
5618          * Checks whether this interface is an alias interface.
5619          *
5620          * Alias interfaces are interfaces layering on top of another interface
5621          * and are denoted by a special `@interfacename` notation in the
5622          * underlying `ifname` option.
5623          *
5624          * @returns {null|string}
5625          * Returns the name of the parent interface if this logical interface
5626          * is an alias or `null` if it is not an alias interface.
5627          */
5628         isAlias: function() {
5629                 var ifnames = L.toArray(uci.get('network', this.sid, 'ifname')),
5630                     parent = null;
5631
5632                 for (var i = 0; i &lt; ifnames.length; i++)
5633                         if (ifnames[i].charAt(0) == '@')
5634                                 parent = ifnames[i].substr(1);
5635                         else if (parent != null)
5636                                 parent = null;
5637
5638                 return parent;
5639         },
5640
5641         /**
5642          * Checks whether this logical interface is "empty", meaning that ut
5643          * has no network devices attached.
5644          *
5645          * @returns {boolean}
5646          * Returns `true` if this logical interface is empty, else `false`.
5647          */
5648         isEmpty: function() {
5649                 if (this.isFloating())
5650                         return false;
5651
5652                 var empty = true,
5653                     ifname = this._get('ifname');
5654
5655                 if (ifname != null &amp;&amp; ifname.match(/\S+/))
5656                         empty = false;
5657
5658                 if (empty == true &amp;&amp; getWifiNetidBySid(this.sid) != null)
5659                         empty = false;
5660
5661                 return empty;
5662         },
5663
5664         /**
5665          * Checks whether this logical interface is configured and running.
5666          *
5667          * @returns {boolean}
5668          * Returns `true` when the interface is active or `false` when it is not.
5669          */
5670         isUp: function() {
5671                 return (this._ubus('up') == true);
5672         },
5673
5674         /**
5675          * Add the given network device to the logical interface.
5676          *
5677          * @param {LuCI.network.Protocol|LuCI.network.Device|LuCI.network.WifiDevice|LuCI.network.WifiNetwork|string} device
5678          * The object or device name to add to the logical interface. In case the
5679          * given argument is not a string, it is resolved though the
5680          * {@link LuCI.network#getIfnameOf Network.getIfnameOf()} function.
5681          *
5682          * @returns {boolean}
5683          * Returns `true` if the device name has been added or `false` if any
5684          * argument was invalid, if the device was already part of the logical
5685          * interface or if the logical interface is virtual.
5686          */
5687         addDevice: function(ifname) {
5688                 ifname = ifnameOf(ifname);
5689
5690                 if (ifname == null || this.isFloating())
5691                         return false;
5692
5693                 var wif = getWifiSidByIfname(ifname);
5694
5695                 if (wif != null)
5696                         return appendValue('wireless', wif, 'network', this.sid);
5697
5698                 return appendValue('network', this.sid, 'ifname', ifname);
5699         },
5700
5701         /**
5702          * Remove the given network device from the logical interface.
5703          *
5704          * @param {LuCI.network.Protocol|LuCI.network.Device|LuCI.network.WifiDevice|LuCI.network.WifiNetwork|string} device
5705          * The object or device name to remove from the logical interface. In case
5706          * the given argument is not a string, it is resolved though the
5707          * {@link LuCI.network#getIfnameOf Network.getIfnameOf()} function.
5708          *
5709          * @returns {boolean}
5710          * Returns `true` if the device name has been added or `false` if any
5711          * argument was invalid, if the device was already part of the logical
5712          * interface or if the logical interface is virtual.
5713          */
5714         deleteDevice: function(ifname) {
5715                 var rv = false;
5716
5717                 ifname = ifnameOf(ifname);
5718
5719                 if (ifname == null || this.isFloating())
5720                         return false;
5721
5722                 var wif = getWifiSidByIfname(ifname);
5723
5724                 if (wif != null)
5725                         rv = removeValue('wireless', wif, 'network', this.sid);
5726
5727                 if (removeValue('network', this.sid, 'ifname', ifname))
5728                         rv = true;
5729
5730                 return rv;
5731         },
5732
5733         /**
5734          * Returns the Linux network device associated with this logical
5735          * interface.
5736          *
5737          * @returns {LuCI.network.Device}
5738          * Returns a `Network.Device` class instance representing the
5739          * expected Linux network device according to the configuration.
5740          */
5741         getDevice: function() {
5742                 if (this.isVirtual()) {
5743                         var ifname = '%s-%s'.format(this.getProtocol(), this.sid);
5744                         _state.isTunnel[this.getProtocol() + '-' + this.sid] = true;
5745                         return Network.prototype.instantiateDevice(ifname, this);
5746                 }
5747                 else if (this.isBridge()) {
5748                         var ifname = 'br-%s'.format(this.sid);
5749                         _state.isBridge[ifname] = true;
5750                         return new Device(ifname, this);
5751                 }
5752                 else {
5753                         var ifnames = L.toArray(uci.get('network', this.sid, 'ifname'));
5754
5755                         for (var i = 0; i &lt; ifnames.length; i++) {
5756                                 var m = ifnames[i].match(/^([^:/]+)/);
5757                                 return ((m &amp;&amp; m[1]) ? Network.prototype.instantiateDevice(m[1], this) : null);
5758                         }
5759
5760                         ifname = getWifiNetidByNetname(this.sid);
5761
5762                         return (ifname != null ? Network.prototype.instantiateDevice(ifname[0], this) : null);
5763                 }
5764         },
5765
5766         /**
5767          * Returns the layer 2 linux network device currently associated
5768          * with this logical interface.
5769          *
5770          * @returns {LuCI.network.Device}
5771          * Returns a `Network.Device` class instance representing the Linux
5772          * network device currently associated with the logical interface.
5773          */
5774         getL2Device: function() {
5775                 var ifname = this._ubus('device');
5776                 return (ifname != null ? Network.prototype.instantiateDevice(ifname, this) : null);
5777         },
5778
5779         /**
5780          * Returns the layer 3 linux network device currently associated
5781          * with this logical interface.
5782          *
5783          * @returns {LuCI.network.Device}
5784          * Returns a `Network.Device` class instance representing the Linux
5785          * network device currently associated with the logical interface.
5786          */
5787         getL3Device: function() {
5788                 var ifname = this._ubus('l3_device');
5789                 return (ifname != null ? Network.prototype.instantiateDevice(ifname, this) : null);
5790         },
5791
5792         /**
5793          * Returns a list of network sub-devices associated with this logical
5794          * interface.
5795          *
5796          * @returns {null|Array&lt;LuCI.network.Device>}
5797          * Returns an array of of `Network.Device` class instances representing
5798          * the sub-devices attached to this logical interface or `null` if the
5799          * logical interface does not support sub-devices, e.g. because it is
5800          * virtual and not a bridge.
5801          */
5802         getDevices: function() {
5803                 var rv = [];
5804
5805                 if (!this.isBridge() &amp;&amp; !(this.isVirtual() &amp;&amp; !this.isFloating()))
5806                         return null;
5807
5808                 var ifnames = L.toArray(uci.get('network', this.sid, 'ifname'));
5809
5810                 for (var i = 0; i &lt; ifnames.length; i++) {
5811                         if (ifnames[i].charAt(0) == '@')
5812                                 continue;
5813
5814                         var m = ifnames[i].match(/^([^:/]+)/);
5815                         if (m != null)
5816                                 rv.push(Network.prototype.instantiateDevice(m[1], this));
5817                 }
5818
5819                 var uciWifiIfaces = uci.sections('wireless', 'wifi-iface');
5820
5821                 for (var i = 0; i &lt; uciWifiIfaces.length; i++) {
5822                         if (typeof(uciWifiIfaces[i].device) != 'string')
5823                                 continue;
5824
5825                         var networks = L.toArray(uciWifiIfaces[i].network);
5826
5827                         for (var j = 0; j &lt; networks.length; j++) {
5828                                 if (networks[j] != this.sid)
5829                                         continue;
5830
5831                                 var netid = getWifiNetidBySid(uciWifiIfaces[i]['.name']);
5832
5833                                 if (netid != null)
5834                                         rv.push(Network.prototype.instantiateDevice(netid[0], this));
5835                         }
5836                 }
5837
5838                 rv.sort(deviceSort);
5839
5840                 return rv;
5841         },
5842
5843         /**
5844          * Checks whether this logical interface contains the given device
5845          * object.
5846          *
5847          * @param {LuCI.network.Protocol|LuCI.network.Device|LuCI.network.WifiDevice|LuCI.network.WifiNetwork|string} device
5848          * The object or device name to check. In case the given argument is not
5849          * a string, it is resolved though the
5850          * {@link LuCI.network#getIfnameOf Network.getIfnameOf()} function.
5851          *
5852          * @returns {boolean}
5853          * Returns `true` when this logical interface contains the given network
5854          * device or `false` if not.
5855          */
5856         containsDevice: function(ifname) {
5857                 ifname = ifnameOf(ifname);
5858
5859                 if (ifname == null)
5860                         return false;
5861                 else if (this.isVirtual() &amp;&amp; '%s-%s'.format(this.getProtocol(), this.sid) == ifname)
5862                         return true;
5863                 else if (this.isBridge() &amp;&amp; 'br-%s'.format(this.sid) == ifname)
5864                         return true;
5865
5866                 var ifnames = L.toArray(uci.get('network', this.sid, 'ifname'));
5867
5868                 for (var i = 0; i &lt; ifnames.length; i++) {
5869                         var m = ifnames[i].match(/^([^:/]+)/);
5870                         if (m != null &amp;&amp; m[1] == ifname)
5871                                 return true;
5872                 }
5873
5874                 var wif = getWifiSidByIfname(ifname);
5875
5876                 if (wif != null) {
5877                         var networks = L.toArray(uci.get('wireless', wif, 'network'));
5878
5879                         for (var i = 0; i &lt; networks.length; i++)
5880                                 if (networks[i] == this.sid)
5881                                         return true;
5882                 }
5883
5884                 return false;
5885         },
5886
5887         /**
5888          * Cleanup related configuration entries.
5889          *
5890          * This function will be invoked if an interface is about to be removed
5891          * from the configuration and is responsible for performing any required
5892          * cleanup tasks, such as unsetting uci entries in related configurations.
5893          *
5894          * It should be overwritten by protocol specific subclasses.
5895          *
5896          * @abstract
5897          *
5898          * @returns {*|Promise&lt;*>}
5899          * This function may return a promise which is awaited before the rest of
5900          * the configuration is removed. Any non-promise return value and any
5901          * resolved promise value is ignored. If the returned promise is rejected,
5902          * the interface removal will be aborted.
5903          */
5904         deleteConfiguration: function() {}
5905 });
5906
5907 /**
5908  * @class
5909  * @memberof LuCI.network
5910  * @hideconstructor
5911  * @classdesc
5912  *
5913  * A `Network.Device` class instance represents an underlying Linux network
5914  * device and allows querying device details such as packet statistics or MTU.
5915  */
5916 Device = baseclass.extend(/** @lends LuCI.network.Device.prototype */ {
5917         __init__: function(ifname, network) {
5918                 var wif = getWifiSidByIfname(ifname);
5919
5920                 if (wif != null) {
5921                         var res = getWifiStateBySid(wif) || [],
5922                             netid = getWifiNetidBySid(wif) || [];
5923
5924                         this.wif    = new WifiNetwork(wif, res[0], res[1], netid[0], res[2], { ifname: ifname });
5925                         this.ifname = this.wif.getIfname();
5926                 }
5927
5928                 this.ifname  = this.ifname || ifname;
5929                 this.dev     = _state.netdevs[this.ifname];
5930                 this.network = network;
5931         },
5932
5933         _devstate: function(/* ... */) {
5934                 var rv = this.dev;
5935
5936                 for (var i = 0; i &lt; arguments.length; i++)
5937                         if (L.isObject(rv))
5938                                 rv = rv[arguments[i]];
5939                         else
5940                                 return null;
5941
5942                 return rv;
5943         },
5944
5945         /**
5946          * Get the name of the network device.
5947          *
5948          * @returns {string}
5949          * Returns the name of the device, e.g. `eth0` or `wlan0`.
5950          */
5951         getName: function() {
5952                 return (this.wif != null ? this.wif.getIfname() : this.ifname);
5953         },
5954
5955         /**
5956          * Get the MAC address of the device.
5957          *
5958          * @returns {null|string}
5959          * Returns the MAC address of the device or `null` if not applicable,
5960          * e.g. for non-ethernet tunnel devices.
5961          */
5962         getMAC: function() {
5963                 var mac = this._devstate('macaddr');
5964                 return mac ? mac.toUpperCase() : null;
5965         },
5966
5967         /**
5968          * Get the MTU of the device.
5969          *
5970          * @returns {number}
5971          * Returns the MTU of the device.
5972          */
5973         getMTU: function() {
5974                 return this._devstate('mtu');
5975         },
5976
5977         /**
5978          * Get the IPv4 addresses configured on the device.
5979          *
5980          * @returns {string[]}
5981          * Returns an array of IPv4 address strings.
5982          */
5983         getIPAddrs: function() {
5984                 var addrs = this._devstate('ipaddrs');
5985                 return (Array.isArray(addrs) ? addrs : []);
5986         },
5987
5988         /**
5989          * Get the IPv6 addresses configured on the device.
5990          *
5991          * @returns {string[]}
5992          * Returns an array of IPv6 address strings.
5993          */
5994         getIP6Addrs: function() {
5995                 var addrs = this._devstate('ip6addrs');
5996                 return (Array.isArray(addrs) ? addrs : []);
5997         },
5998
5999         /**
6000          * Get the type of the device..
6001          *
6002          * @returns {string}
6003          * Returns a string describing the type of the network device:
6004          *  - `alias` if it is an abstract alias device (`@` notation)
6005          *  - `wifi` if it is a wireless interface (e.g. `wlan0`)
6006          *  - `bridge` if it is a bridge device (e.g. `br-lan`)
6007          *  - `tunnel` if it is a tun or tap device (e.g. `tun0`)
6008          *  - `vlan` if it is a vlan device (e.g. `eth0.1`)
6009          *  - `switch` if it is a switch device (e.g.`eth1` connected to switch0)
6010          *  - `ethernet` for all other device types
6011          */
6012         getType: function() {
6013                 if (this.ifname != null &amp;&amp; this.ifname.charAt(0) == '@')
6014                         return 'alias';
6015                 else if (this.wif != null || isWifiIfname(this.ifname))
6016                         return 'wifi';
6017                 else if (_state.isBridge[this.ifname])
6018                         return 'bridge';
6019                 else if (_state.isTunnel[this.ifname])
6020                         return 'tunnel';
6021                 else if (this.ifname.indexOf('.') > -1)
6022                         return 'vlan';
6023                 else if (_state.isSwitch[this.ifname])
6024                         return 'switch';
6025                 else
6026                         return 'ethernet';
6027         },
6028
6029         /**
6030          * Get a short description string for the device.
6031          *
6032          * @returns {string}
6033          * Returns the device name for non-wifi devices or a string containing
6034          * the operation mode and SSID for wifi devices.
6035          */
6036         getShortName: function() {
6037                 if (this.wif != null)
6038                         return this.wif.getShortName();
6039
6040                 return this.ifname;
6041         },
6042
6043         /**
6044          * Get a long description string for the device.
6045          *
6046          * @returns {string}
6047          * Returns a string containing the type description and device name
6048          * for non-wifi devices or operation mode and ssid for wifi ones.
6049          */
6050         getI18n: function() {
6051                 if (this.wif != null) {
6052                         return '%s: %s "%s"'.format(
6053                                 _('Wireless Network'),
6054                                 this.wif.getActiveMode(),
6055                                 this.wif.getActiveSSID() || this.wif.getActiveBSSID() || this.wif.getID() || '?');
6056                 }
6057
6058                 return '%s: "%s"'.format(this.getTypeI18n(), this.getName());
6059         },
6060
6061         /**
6062          * Get a string describing the device type.
6063          *
6064          * @returns {string}
6065          * Returns a string describing the type, e.g. "Wireless Adapter" or
6066          * "Bridge".
6067          */
6068         getTypeI18n: function() {
6069                 switch (this.getType()) {
6070                 case 'alias':
6071                         return _('Alias Interface');
6072
6073                 case 'wifi':
6074                         return _('Wireless Adapter');
6075
6076                 case 'bridge':
6077                         return _('Bridge');
6078
6079                 case 'switch':
6080                         return _('Ethernet Switch');
6081
6082                 case 'vlan':
6083                         return (_state.isSwitch[this.ifname] ? _('Switch VLAN') : _('Software VLAN'));
6084
6085                 case 'tunnel':
6086                         return _('Tunnel Interface');
6087
6088                 default:
6089                         return _('Ethernet Adapter');
6090                 }
6091         },
6092
6093         /**
6094          * Get the associated bridge ports of the device.
6095          *
6096          * @returns {null|Array&lt;LuCI.network.Device>}
6097          * Returns an array of `Network.Device` instances representing the ports
6098          * (slave interfaces) of the bridge or `null` when this device isn't
6099          * a Linux bridge.
6100          */
6101         getPorts: function() {
6102                 var br = _state.bridges[this.ifname],
6103                     rv = [];
6104
6105                 if (br == null || !Array.isArray(br.ifnames))
6106                         return null;
6107
6108                 for (var i = 0; i &lt; br.ifnames.length; i++)
6109                         rv.push(Network.prototype.instantiateDevice(br.ifnames[i].name));
6110
6111                 rv.sort(deviceSort);
6112
6113                 return rv;
6114         },
6115
6116         /**
6117          * Get the bridge ID
6118          *
6119          * @returns {null|string}
6120          * Returns the ID of this network bridge or `null` if this network
6121          * device is not a Linux bridge.
6122          */
6123         getBridgeID: function() {
6124                 var br = _state.bridges[this.ifname];
6125                 return (br != null ? br.id : null);
6126         },
6127
6128         /**
6129          * Get the bridge STP setting
6130          *
6131          * @returns {boolean}
6132          * Returns `true` when this device is a Linux bridge and has `stp`
6133          * enabled, else `false`.
6134          */
6135         getBridgeSTP: function() {
6136                 var br = _state.bridges[this.ifname];
6137                 return (br != null ? !!br.stp : false);
6138         },
6139
6140         /**
6141          * Checks whether this device is up.
6142          *
6143          * @returns {boolean}
6144          * Returns `true` when the associated device is running pr `false`
6145          * when it is down or absent.
6146          */
6147         isUp: function() {
6148                 var up = this._devstate('flags', 'up');
6149
6150                 if (up == null)
6151                         up = (this.getType() == 'alias');
6152
6153                 return up;
6154         },
6155
6156         /**
6157          * Checks whether this device is a Linux bridge.
6158          *
6159          * @returns {boolean}
6160          * Returns `true` when the network device is present and a Linux bridge,
6161          * else `false`.
6162          */
6163         isBridge: function() {
6164                 return (this.getType() == 'bridge');
6165         },
6166
6167         /**
6168          * Checks whether this device is part of a Linux bridge.
6169          *
6170          * @returns {boolean}
6171          * Returns `true` when this network device is part of a bridge,
6172          * else `false`.
6173          */
6174         isBridgePort: function() {
6175                 return (this._devstate('bridge') != null);
6176         },
6177
6178         /**
6179          * Get the amount of transmitted bytes.
6180          *
6181          * @returns {number}
6182          * Returns the amount of bytes transmitted by the network device.
6183          */
6184         getTXBytes: function() {
6185                 var stat = this._devstate('stats');
6186                 return (stat != null ? stat.tx_bytes || 0 : 0);
6187         },
6188
6189         /**
6190          * Get the amount of received bytes.
6191          *
6192          * @returns {number}
6193          * Returns the amount of bytes received by the network device.
6194          */
6195         getRXBytes: function() {
6196                 var stat = this._devstate('stats');
6197                 return (stat != null ? stat.rx_bytes || 0 : 0);
6198         },
6199
6200         /**
6201          * Get the amount of transmitted packets.
6202          *
6203          * @returns {number}
6204          * Returns the amount of packets transmitted by the network device.
6205          */
6206         getTXPackets: function() {
6207                 var stat = this._devstate('stats');
6208                 return (stat != null ? stat.tx_packets || 0 : 0);
6209         },
6210
6211         /**
6212          * Get the amount of received packets.
6213          *
6214          * @returns {number}
6215          * Returns the amount of packets received by the network device.
6216          */
6217         getRXPackets: function() {
6218                 var stat = this._devstate('stats');
6219                 return (stat != null ? stat.rx_packets || 0 : 0);
6220         },
6221
6222         /**
6223          * Get the primary logical interface this device is assigned to.
6224          *
6225          * @returns {null|LuCI.network.Protocol}
6226          * Returns a `Network.Protocol` instance representing the logical
6227          * interface this device is attached to or `null` if it is not
6228          * assigned to any logical interface.
6229          */
6230         getNetwork: function() {
6231                 return this.getNetworks()[0];
6232         },
6233
6234         /**
6235          * Get the logical interfaces this device is assigned to.
6236          *
6237          * @returns {Array&lt;LuCI.network.Protocol>}
6238          * Returns an array of `Network.Protocol` instances representing the
6239          * logical interfaces this device is assigned to.
6240          */
6241         getNetworks: function() {
6242                 if (this.networks == null) {
6243                         this.networks = [];
6244
6245                         var networks = enumerateNetworks.apply(L.network);
6246
6247                         for (var i = 0; i &lt; networks.length; i++)
6248                                 if (networks[i].containsDevice(this.ifname) || networks[i].getIfname() == this.ifname)
6249                                         this.networks.push(networks[i]);
6250
6251                         this.networks.sort(networkSort);
6252                 }
6253
6254                 return this.networks;
6255         },
6256
6257         /**
6258          * Get the related wireless network this device is related to.
6259          *
6260          * @returns {null|LuCI.network.WifiNetwork}
6261          * Returns a `Network.WifiNetwork` instance representing the wireless
6262          * network corresponding to this network device or `null` if this device
6263          * is not a wireless device.
6264          */
6265         getWifiNetwork: function() {
6266                 return (this.wif != null ? this.wif : null);
6267         }
6268 });
6269
6270 /**
6271  * @class
6272  * @memberof LuCI.network
6273  * @hideconstructor
6274  * @classdesc
6275  *
6276  * A `Network.WifiDevice` class instance represents a wireless radio device
6277  * present on the system and provides wireless capability information as
6278  * well as methods for enumerating related wireless networks.
6279  */
6280 WifiDevice = baseclass.extend(/** @lends LuCI.network.WifiDevice.prototype */ {
6281         __init__: function(name, radiostate) {
6282                 var uciWifiDevice = uci.get('wireless', name);
6283
6284                 if (uciWifiDevice != null &amp;&amp;
6285                     uciWifiDevice['.type'] == 'wifi-device' &amp;&amp;
6286                     uciWifiDevice['.name'] != null) {
6287                         this.sid    = uciWifiDevice['.name'];
6288                 }
6289
6290                 this.sid    = this.sid || name;
6291                 this._ubusdata = {
6292                         radio: name,
6293                         dev:   radiostate
6294                 };
6295         },
6296
6297         /* private */
6298         ubus: function(/* ... */) {
6299                 var v = this._ubusdata;
6300
6301                 for (var i = 0; i &lt; arguments.length; i++)
6302                         if (L.isObject(v))
6303                                 v = v[arguments[i]];
6304                         else
6305                                 return null;
6306
6307                 return v;
6308         },
6309
6310         /**
6311          * Read the given UCI option value of this wireless device.
6312          *
6313          * @param {string} opt
6314          * The UCI option name to read.
6315          *
6316          * @returns {null|string|string[]}
6317          * Returns the UCI option value or `null` if the requested option is
6318          * not found.
6319          */
6320         get: function(opt) {
6321                 return uci.get('wireless', this.sid, opt);
6322         },
6323
6324         /**
6325          * Set the given UCI option of this network to the given value.
6326          *
6327          * @param {string} opt
6328          * The name of the UCI option to set.
6329          *
6330          * @param {null|string|string[]} val
6331          * The value to set or `null` to remove the given option from the
6332          * configuration.
6333          */
6334         set: function(opt, value) {
6335                 return uci.set('wireless', this.sid, opt, value);
6336         },
6337
6338         /**
6339          * Checks whether this wireless radio is disabled.
6340          *
6341          * @returns {boolean}
6342          * Returns `true` when the wireless radio is marked as disabled in `ubus`
6343          * runtime state or when the `disabled` option is set in the corresponding
6344          * UCI configuration.
6345          */
6346         isDisabled: function() {
6347                 return this.ubus('dev', 'disabled') || this.get('disabled') == '1';
6348         },
6349
6350         /**
6351          * Get the configuration name of this wireless radio.
6352          *
6353          * @returns {string}
6354          * Returns the UCI section name (e.g. `radio0`) of the corresponding
6355          * radio configuration which also serves as unique logical identifier
6356          * for the wireless phy.
6357          */
6358         getName: function() {
6359                 return this.sid;
6360         },
6361
6362         /**
6363          * Gets a list of supported hwmodes.
6364          *
6365          * The hwmode values describe the frequency band and wireless standard
6366          * versions supported by the wireless phy.
6367          *
6368          * @returns {string[]}
6369          * Returns an array of valid hwmode values for this radio. Currently
6370          * known mode values are:
6371          *  - `a` - Legacy 802.11a mode, 5 GHz, up to 54 Mbit/s
6372          *  - `b` - Legacy 802.11b mode, 2.4 GHz, up to 11 Mbit/s
6373          *  - `g` - Legacy 802.11g mode, 2.4 GHz, up to 54 Mbit/s
6374          *  - `n` - IEEE 802.11n mode, 2.4 or 5 GHz, up to 600 Mbit/s
6375          *  - `ac` - IEEE 802.11ac mode, 5 GHz, up to 6770 Mbit/s
6376          */
6377         getHWModes: function() {
6378                 var hwmodes = this.ubus('dev', 'iwinfo', 'hwmodes');
6379                 return Array.isArray(hwmodes) ? hwmodes : [ 'b', 'g' ];
6380         },
6381
6382         /**
6383          * Gets a list of supported htmodes.
6384          *
6385          * The htmode values describe the wide-frequency options supported by
6386          * the wireless phy.
6387          *
6388          * @returns {string[]}
6389          * Returns an array of valid htmode values for this radio. Currently
6390          * known mode values are:
6391          *  - `HT20` - applicable to IEEE 802.11n, 20 MHz wide channels
6392          *  - `HT40` - applicable to IEEE 802.11n, 40 MHz wide channels
6393          *  - `VHT20` - applicable to IEEE 802.11ac, 20 MHz wide channels
6394          *  - `VHT40` - applicable to IEEE 802.11ac, 40 MHz wide channels
6395          *  - `VHT80` - applicable to IEEE 802.11ac, 80 MHz wide channels
6396          *  - `VHT160` - applicable to IEEE 802.11ac, 160 MHz wide channels
6397          */
6398         getHTModes: function() {
6399                 var htmodes = this.ubus('dev', 'iwinfo', 'htmodes');
6400                 return (Array.isArray(htmodes) &amp;&amp; htmodes.length) ? htmodes : null;
6401         },
6402
6403         /**
6404          * Get a string describing the wireless radio hardware.
6405          *
6406          * @returns {string}
6407          * Returns the description string.
6408          */
6409         getI18n: function() {
6410                 var hw = this.ubus('dev', 'iwinfo', 'hardware'),
6411                     type = L.isObject(hw) ? hw.name : null;
6412
6413                 if (this.ubus('dev', 'iwinfo', 'type') == 'wl')
6414                         type = 'Broadcom';
6415
6416                 var hwmodes = this.getHWModes(),
6417                     modestr = '';
6418
6419                 hwmodes.sort(function(a, b) {
6420                         return (a.length != b.length ? a.length > b.length : a > b);
6421                 });
6422
6423                 modestr = hwmodes.join('');
6424
6425                 return '%s 802.11%s Wireless Controller (%s)'.format(type || 'Generic', modestr, this.getName());
6426         },
6427
6428         /**
6429          * A wireless scan result object describes a neighbouring wireless
6430          * network found in the vincinity.
6431          *
6432          * @typedef {Object&lt;string, number|string|LuCI.network.WifiEncryption>} WifiScanResult
6433          * @memberof LuCI.network
6434          *
6435          * @property {string} ssid
6436          * The SSID / Mesh ID of the network.
6437          *
6438          * @property {string} bssid
6439          * The BSSID if the network.
6440          *
6441          * @property {string} mode
6442          * The operation mode of the network (`Master`, `Ad-Hoc`, `Mesh Point`).
6443          *
6444          * @property {number} channel
6445          * The wireless channel of the network.
6446          *
6447          * @property {number} signal
6448          * The received signal strength of the network in dBm.
6449          *
6450          * @property {number} quality
6451          * The numeric quality level of the signal, can be used in conjunction
6452          * with `quality_max` to calculate a quality percentage.
6453          *
6454          * @property {number} quality_max
6455          * The maximum possible quality level of the signal, can be used in
6456          * conjunction with `quality` to calculate a quality percentage.
6457          *
6458          * @property {LuCI.network.WifiEncryption} encryption
6459          * The encryption used by the wireless network.
6460          */
6461
6462         /**
6463          * Trigger a wireless scan on this radio device and obtain a list of
6464          * nearby networks.
6465          *
6466          * @returns {Promise&lt;Array&lt;LuCI.network.WifiScanResult>>}
6467          * Returns a promise resolving to an array of scan result objects
6468          * describing the networks found in the vincinity.
6469          */
6470         getScanList: function() {
6471                 return callIwinfoScan(this.sid);
6472         },
6473
6474         /**
6475          * Check whether the wireless radio is marked as up in the `ubus`
6476          * runtime state.
6477          *
6478          * @returns {boolean}
6479          * Returns `true` when the radio device is up, else `false`.
6480          */
6481         isUp: function() {
6482                 if (L.isObject(_state.radios[this.sid]))
6483                         return (_state.radios[this.sid].up == true);
6484
6485                 return false;
6486         },
6487
6488         /**
6489          * Get the wifi network of the given name belonging to this radio device
6490          *
6491          * @param {string} network
6492          * The name of the wireless network to lookup. This may be either an uci
6493          * configuration section ID, a network ID in the form `radio#.network#`
6494          * or a Linux network device name like `wlan0` which is resolved to the
6495          * corresponding configuration section through `ubus` runtime information.
6496          *
6497          * @returns {Promise&lt;LuCI.network.WifiNetwork>}
6498          * Returns a promise resolving to a `Network.WifiNetwork` instance
6499          * representing the wireless network and rejecting with `null` if
6500          * the given network could not be found or is not associated with
6501          * this radio device.
6502          */
6503         getWifiNetwork: function(network) {
6504                 return Network.prototype.getWifiNetwork(network).then(L.bind(function(networkInstance) {
6505                         var uciWifiIface = (networkInstance.sid ? uci.get('wireless', networkInstance.sid) : null);
6506
6507                         if (uciWifiIface == null || uciWifiIface['.type'] != 'wifi-iface' || uciWifiIface.device != this.sid)
6508                                 return Promise.reject();
6509
6510                         return networkInstance;
6511                 }, this));
6512         },
6513
6514         /**
6515          * Get all wireless networks associated with this wireless radio device.
6516          *
6517          * @returns {Promise&lt;Array&lt;LuCI.network.WifiNetwork>>}
6518          * Returns a promise resolving to an array of `Network.WifiNetwork`
6519          * instances respresenting the wireless networks associated with this
6520          * radio device.
6521          */
6522         getWifiNetworks: function() {
6523                 return Network.prototype.getWifiNetworks().then(L.bind(function(networks) {
6524                         var rv = [];
6525
6526                         for (var i = 0; i &lt; networks.length; i++)
6527                                 if (networks[i].getWifiDeviceName() == this.getName())
6528                                         rv.push(networks[i]);
6529
6530                         return rv;
6531                 }, this));
6532         },
6533
6534         /**
6535          * Adds a new wireless network associated with this radio device to the
6536          * configuration and sets its options to the provided values.
6537          *
6538          * @param {Object&lt;string, string|string[]>} [options]
6539          * The options to set for the newly added wireless network.
6540          *
6541          * @returns {Promise&lt;null|LuCI.network.WifiNetwork>}
6542          * Returns a promise resolving to a `WifiNetwork` instance describing
6543          * the newly added wireless network or `null` if the given options
6544          * were invalid.
6545          */
6546         addWifiNetwork: function(options) {
6547                 if (!L.isObject(options))
6548                         options = {};
6549
6550                 options.device = this.sid;
6551
6552                 return Network.prototype.addWifiNetwork(options);
6553         },
6554
6555         /**
6556          * Deletes the wireless network with the given name associated with this
6557          * radio device.
6558          *
6559          * @param {string} network
6560          * The name of the wireless network to lookup. This may be either an uci
6561          * configuration section ID, a network ID in the form `radio#.network#`
6562          * or a Linux network device name like `wlan0` which is resolved to the
6563          * corresponding configuration section through `ubus` runtime information.
6564          *
6565          * @returns {Promise&lt;boolean>}
6566          * Returns a promise resolving to `true` when the wireless network was
6567          * successfully deleted from the configuration or `false` when the given
6568          * network could not be found or if the found network was not associated
6569          * with this wireless radio device.
6570          */
6571         deleteWifiNetwork: function(network) {
6572                 var sid = null;
6573
6574                 if (network instanceof WifiNetwork) {
6575                         sid = network.sid;
6576                 }
6577                 else {
6578                         var uciWifiIface = uci.get('wireless', network);
6579
6580                         if (uciWifiIface == null || uciWifiIface['.type'] != 'wifi-iface')
6581                                 sid = getWifiSidByIfname(network);
6582                 }
6583
6584                 if (sid == null || uci.get('wireless', sid, 'device') != this.sid)
6585                         return Promise.resolve(false);
6586
6587                 uci.delete('wireless', network);
6588
6589                 return Promise.resolve(true);
6590         }
6591 });
6592
6593 /**
6594  * @class
6595  * @memberof LuCI.network
6596  * @hideconstructor
6597  * @classdesc
6598  *
6599  * A `Network.WifiNetwork` instance represents a wireless network (vif)
6600  * configured on top of a radio device and provides functions for querying
6601  * the runtime state of the network. Most radio devices support multiple
6602  * such networks in parallel.
6603  */
6604 WifiNetwork = baseclass.extend(/** @lends LuCI.network.WifiNetwork.prototype */ {
6605         __init__: function(sid, radioname, radiostate, netid, netstate, hostapd) {
6606                 this.sid    = sid;
6607                 this.netid  = netid;
6608                 this._ubusdata = {
6609                         hostapd: hostapd,
6610                         radio:   radioname,
6611                         dev:     radiostate,
6612                         net:     netstate
6613                 };
6614         },
6615
6616         ubus: function(/* ... */) {
6617                 var v = this._ubusdata;
6618
6619                 for (var i = 0; i &lt; arguments.length; i++)
6620                         if (L.isObject(v))
6621                                 v = v[arguments[i]];
6622                         else
6623                                 return null;
6624
6625                 return v;
6626         },
6627
6628         /**
6629          * Read the given UCI option value of this wireless network.
6630          *
6631          * @param {string} opt
6632          * The UCI option name to read.
6633          *
6634          * @returns {null|string|string[]}
6635          * Returns the UCI option value or `null` if the requested option is
6636          * not found.
6637          */
6638         get: function(opt) {
6639                 return uci.get('wireless', this.sid, opt);
6640         },
6641
6642         /**
6643          * Set the given UCI option of this network to the given value.
6644          *
6645          * @param {string} opt
6646          * The name of the UCI option to set.
6647          *
6648          * @param {null|string|string[]} val
6649          * The value to set or `null` to remove the given option from the
6650          * configuration.
6651          */
6652         set: function(opt, value) {
6653                 return uci.set('wireless', this.sid, opt, value);
6654         },
6655
6656         /**
6657          * Checks whether this wireless network is disabled.
6658          *
6659          * @returns {boolean}
6660          * Returns `true` when the wireless radio is marked as disabled in `ubus`
6661          * runtime state or when the `disabled` option is set in the corresponding
6662          * UCI configuration.
6663          */
6664         isDisabled: function() {
6665                 return this.ubus('dev', 'disabled') || this.get('disabled') == '1';
6666         },
6667
6668         /**
6669          * Get the configured operation mode of the wireless network.
6670          *
6671          * @returns {string}
6672          * Returns the configured operation mode. Possible values are:
6673          *  - `ap` - Master (Access Point) mode
6674          *  - `sta` - Station (client) mode
6675          *  - `adhoc` - Ad-Hoc (IBSS) mode
6676          *  - `mesh` - Mesh (IEEE 802.11s) mode
6677          *  - `monitor` - Monitor mode
6678          */
6679         getMode: function() {
6680                 return this.ubus('net', 'config', 'mode') || this.get('mode') || 'ap';
6681         },
6682
6683         /**
6684          * Get the configured SSID of the wireless network.
6685          *
6686          * @returns {null|string}
6687          * Returns the configured SSID value or `null` when this network is
6688          * in mesh mode.
6689          */
6690         getSSID: function() {
6691                 if (this.getMode() == 'mesh')
6692                         return null;
6693
6694                 return this.ubus('net', 'config', 'ssid') || this.get('ssid');
6695         },
6696
6697         /**
6698          * Get the configured Mesh ID of the wireless network.
6699          *
6700          * @returns {null|string}
6701          * Returns the configured mesh ID value or `null` when this network
6702          * is not in mesh mode.
6703          */
6704         getMeshID: function() {
6705                 if (this.getMode() != 'mesh')
6706                         return null;
6707
6708                 return this.ubus('net', 'config', 'mesh_id') || this.get('mesh_id');
6709         },
6710
6711         /**
6712          * Get the configured BSSID of the wireless network.
6713          *
6714          * @returns {null|string}
6715          * Returns the BSSID value or `null` if none has been specified.
6716          */
6717         getBSSID: function() {
6718                 return this.ubus('net', 'config', 'bssid') || this.get('bssid');
6719         },
6720
6721         /**
6722          * Get the names of the logical interfaces this wireless network is
6723          * attached to.
6724          *
6725          * @returns {string[]}
6726          * Returns an array of logical interface names.
6727          */
6728         getNetworkNames: function() {
6729                 return L.toArray(this.ubus('net', 'config', 'network') || this.get('network'));
6730         },
6731
6732         /**
6733          * Get the internal network ID of this wireless network.
6734          *
6735          * The network ID is a LuCI specific identifer in the form
6736          * `radio#.network#` to identify wireless networks by their corresponding
6737          * radio and network index numbers.
6738          *
6739          * @returns {string}
6740          * Returns the LuCI specific network ID.
6741          */
6742         getID: function() {
6743                 return this.netid;
6744         },
6745
6746         /**
6747          * Get the configuration ID of this wireless network.
6748          *
6749          * @returns {string}
6750          * Returns the corresponding UCI section ID of the network.
6751          */
6752         getName: function() {
6753                 return this.sid;
6754         },
6755
6756         /**
6757          * Get the Linux network device name.
6758          *
6759          * @returns {null|string}
6760          * Returns the current Linux network device name as resolved from
6761          * `ubus` runtime information or `null` if this network has no
6762          * associated network device, e.g. when not configured or up.
6763          */
6764         getIfname: function() {
6765                 var ifname = this.ubus('net', 'ifname') || this.ubus('net', 'iwinfo', 'ifname');
6766
6767                 if (ifname == null || ifname.match(/^(wifi|radio)\d/))
6768                         ifname = this.netid;
6769
6770                 return ifname;
6771         },
6772
6773         /**
6774          * Get the name of the corresponding wifi radio device.
6775          *
6776          * @returns {null|string}
6777          * Returns the name of the radio device this network is configured on
6778          * or `null` if it cannot be determined.
6779          */
6780         getWifiDeviceName: function() {
6781                 return this.ubus('radio') || this.get('device');
6782         },
6783
6784         /**
6785          * Get the corresponding wifi radio device.
6786          *
6787          * @returns {null|LuCI.network.WifiDevice}
6788          * Returns a `Network.WifiDevice` instance representing the corresponding
6789          * wifi radio device or `null` if the related radio device could not be
6790          * found.
6791          */
6792         getWifiDevice: function() {
6793                 var radioname = this.getWifiDeviceName();
6794
6795                 if (radioname == null)
6796                         return Promise.reject();
6797
6798                 return Network.prototype.getWifiDevice(radioname);
6799         },
6800
6801         /**
6802          * Check whether the radio network is up.
6803          *
6804          * This function actually queries the up state of the related radio
6805          * device and assumes this network to be up as well when the parent
6806          * radio is up. This is due to the fact that OpenWrt does not control
6807          * virtual interfaces individually but within one common hostapd
6808          * instance.
6809          *
6810          * @returns {boolean}
6811          * Returns `true` when the network is up, else `false`.
6812          */
6813         isUp: function() {
6814                 var device = this.getDevice();
6815
6816                 if (device == null)
6817                         return false;
6818
6819                 return device.isUp();
6820         },
6821
6822         /**
6823          * Query the current operation mode from runtime information.
6824          *
6825          * @returns {string}
6826          * Returns the human readable mode name as reported by `ubus` runtime
6827          * state. Possible returned values are:
6828          *  - `Master`
6829          *  - `Ad-Hoc`
6830          *  - `Client`
6831          *  - `Monitor`
6832          *  - `Master (VLAN)`
6833          *  - `WDS`
6834          *  - `Mesh Point`
6835          *  - `P2P Client`
6836          *  - `P2P Go`
6837          *  - `Unknown`
6838          */
6839         getActiveMode: function() {
6840                 var mode = this.ubus('net', 'iwinfo', 'mode') || this.ubus('net', 'config', 'mode') || this.get('mode') || 'ap';
6841
6842                 switch (mode) {
6843                 case 'ap':      return 'Master';
6844                 case 'sta':     return 'Client';
6845                 case 'adhoc':   return 'Ad-Hoc';
6846                 case 'mesh':    return 'Mesh';
6847                 case 'monitor': return 'Monitor';
6848                 default:        return mode;
6849                 }
6850         },
6851
6852         /**
6853          * Query the current operation mode from runtime information as
6854          * translated string.
6855          *
6856          * @returns {string}
6857          * Returns the translated, human readable mode name as reported by
6858          *`ubus` runtime state.
6859          */
6860         getActiveModeI18n: function() {
6861                 var mode = this.getActiveMode();
6862
6863                 switch (mode) {
6864                 case 'Master':  return _('Master');
6865                 case 'Client':  return _('Client');
6866                 case 'Ad-Hoc':  return _('Ad-Hoc');
6867                 case 'Mash':    return _('Mesh');
6868                 case 'Monitor': return _('Monitor');
6869                 default:        return mode;
6870                 }
6871         },
6872
6873         /**
6874          * Query the current SSID from runtime information.
6875          *
6876          * @returns {string}
6877          * Returns the current SSID or Mesh ID as reported by `ubus` runtime
6878          * information.
6879          */
6880         getActiveSSID: function() {
6881                 return this.ubus('net', 'iwinfo', 'ssid') || this.ubus('net', 'config', 'ssid') || this.get('ssid');
6882         },
6883
6884         /**
6885          * Query the current BSSID from runtime information.
6886          *
6887          * @returns {string}
6888          * Returns the current BSSID or Mesh ID as reported by `ubus` runtime
6889          * information.
6890          */
6891         getActiveBSSID: function() {
6892                 return this.ubus('net', 'iwinfo', 'bssid') || this.ubus('net', 'config', 'bssid') || this.get('bssid');
6893         },
6894
6895         /**
6896          * Query the current encryption settings from runtime information.
6897          *
6898          * @returns {string}
6899          * Returns a string describing the current encryption or `-` if the the
6900          * encryption state could not be found in `ubus` runtime information.
6901          */
6902         getActiveEncryption: function() {
6903                 return formatWifiEncryption(this.ubus('net', 'iwinfo', 'encryption')) || '-';
6904         },
6905
6906         /**
6907          * A wireless peer entry describes the properties of a remote wireless
6908          * peer associated with a local network.
6909          *
6910          * @typedef {Object&lt;string, boolean|number|string|LuCI.network.WifiRateEntry>} WifiPeerEntry
6911          * @memberof LuCI.network
6912          *
6913          * @property {string} mac
6914          * The MAC address (BSSID).
6915          *
6916          * @property {number} signal
6917          * The received signal strength.
6918          *
6919          * @property {number} [signal_avg]
6920          * The average signal strength if supported by the driver.
6921          *
6922          * @property {number} [noise]
6923          * The current noise floor of the radio. May be `0` or absent if not
6924          * supported by the driver.
6925          *
6926          * @property {number} inactive
6927          * The amount of milliseconds the peer has been inactive, e.g. due
6928          * to powersave.
6929          *
6930          * @property {number} connected_time
6931          * The amount of milliseconds the peer is associated to this network.
6932          *
6933          * @property {number} [thr]
6934          * The estimated throughput of the peer, May be `0` or absent if not
6935          * supported by the driver.
6936          *
6937          * @property {boolean} authorized
6938          * Specifies whether the peer is authorized to associate to this network.
6939          *
6940          * @property {boolean} authenticated
6941          * Specifies whether the peer completed authentication to this network.
6942          *
6943          * @property {string} preamble
6944          * The preamble mode used by the peer. May be `long` or `short`.
6945          *
6946          * @property {boolean} wme
6947          * Specifies whether the peer supports WME/WMM capabilities.
6948          *
6949          * @property {boolean} mfp
6950          * Specifies whether management frame protection is active.
6951          *
6952          * @property {boolean} tdls
6953          * Specifies whether TDLS is active.
6954          *
6955          * @property {number} [mesh llid]
6956          * The mesh LLID, may be `0` or absent if not applicable or supported
6957          * by the driver.
6958          *
6959          * @property {number} [mesh plid]
6960          * The mesh PLID, may be `0` or absent if not applicable or supported
6961          * by the driver.
6962          *
6963          * @property {string} [mesh plink]
6964          * The mesh peer link state description, may be an empty string (`''`)
6965          * or absent if not applicable or supported by the driver.
6966          *
6967          * The following states are known:
6968          *  - `LISTEN`
6969          *  - `OPN_SNT`
6970          *  - `OPN_RCVD`
6971          *  - `CNF_RCVD`
6972          *  - `ESTAB`
6973          *  - `HOLDING`
6974          *  - `BLOCKED`
6975          *  - `UNKNOWN`
6976          *
6977          * @property {number} [mesh local PS]
6978          * The local powersafe mode for the peer link, may be an empty
6979          * string (`''`) or absent if not applicable or supported by
6980          * the driver.
6981          *
6982          * The following modes are known:
6983          *  - `ACTIVE` (no power save)
6984          *  - `LIGHT SLEEP`
6985          *  - `DEEP SLEEP`
6986          *  - `UNKNOWN`
6987          *
6988          * @property {number} [mesh peer PS]
6989          * The remote powersafe mode for the peer link, may be an empty
6990          * string (`''`) or absent if not applicable or supported by
6991          * the driver.
6992          *
6993          * The following modes are known:
6994          *  - `ACTIVE` (no power save)
6995          *  - `LIGHT SLEEP`
6996          *  - `DEEP SLEEP`
6997          *  - `UNKNOWN`
6998          *
6999          * @property {number} [mesh non-peer PS]
7000          * The powersafe mode for all non-peer neigbours, may be an empty
7001          * string (`''`) or absent if not applicable or supported by the driver.
7002          *
7003          * The following modes are known:
7004          *  - `ACTIVE` (no power save)
7005          *  - `LIGHT SLEEP`
7006          *  - `DEEP SLEEP`
7007          *  - `UNKNOWN`
7008          *
7009          * @property {LuCI.network.WifiRateEntry} rx
7010          * Describes the receiving wireless rate from the peer.
7011          *
7012          * @property {LuCI.network.WifiRateEntry} tx
7013          * Describes the transmitting wireless rate to the peer.
7014          */
7015
7016         /**
7017          * A wireless rate entry describes the properties of a wireless
7018          * transmission rate to or from a peer.
7019          *
7020          * @typedef {Object&lt;string, boolean|number>} WifiRateEntry
7021          * @memberof LuCI.network
7022          *
7023          * @property {number} [drop_misc]
7024          * The amount of received misc. packages that have been dropped, e.g.
7025          * due to corruption or missing authentication. Only applicable to
7026          * receiving rates.
7027          *
7028          * @property {number} packets
7029          * The amount of packets that have been received or sent.
7030          *
7031          * @property {number} bytes
7032          * The amount of bytes that have been received or sent.
7033          *
7034          * @property {number} [failed]
7035          * The amount of failed tranmission attempts. Only applicable to
7036          * transmit rates.
7037          *
7038          * @property {number} [retries]
7039          * The amount of retried transmissions. Only applicable to transmit
7040          * rates.
7041          *
7042          * @property {boolean} is_ht
7043          * Specifies whether this rate is an HT (IEEE 802.11n) rate.
7044          *
7045          * @property {boolean} is_vht
7046          * Specifies whether this rate is an VHT (IEEE 802.11ac) rate.
7047          *
7048          * @property {number} mhz
7049          * The channel width in MHz used for the transmission.
7050          *
7051          * @property {number} rate
7052          * The bitrate in bit/s of the transmission.
7053          *
7054          * @property {number} [mcs]
7055          * The MCS index of the used transmission rate. Only applicable to
7056          * HT or VHT rates.
7057          *
7058          * @property {number} [40mhz]
7059          * Specifies whether the tranmission rate used 40MHz wide channel.
7060          * Only applicable to HT or VHT rates.
7061          *
7062          * Note: this option exists for backwards compatibility only and its
7063          * use is discouraged. The `mhz` field should be used instead to
7064          * determine the channel width.
7065          *
7066          * @property {boolean} [short_gi]
7067          * Specifies whether a short guard interval is used for the transmission.
7068          * Only applicable to HT or VHT rates.
7069          *
7070          * @property {number} [nss]
7071          * Specifies the number of spatial streams used by the transmission.
7072          * Only applicable to VHT rates.
7073          */
7074
7075         /**
7076          * Fetch the list of associated peers.
7077          *
7078          * @returns {Promise&lt;Array&lt;LuCI.network.WifiPeerEntry>>}
7079          * Returns a promise resolving to an array of wireless peers associated
7080          * with this network.
7081          */
7082         getAssocList: function() {
7083                 return callIwinfoAssoclist(this.getIfname());
7084         },
7085
7086         /**
7087          * Query the current operating frequency of the wireless network.
7088          *
7089          * @returns {null|string}
7090          * Returns the current operating frequency of the network from `ubus`
7091          * runtime information in GHz or `null` if the information is not
7092          * available.
7093          */
7094         getFrequency: function() {
7095                 var freq = this.ubus('net', 'iwinfo', 'frequency');
7096
7097                 if (freq != null &amp;&amp; freq > 0)
7098                         return '%.03f'.format(freq / 1000);
7099
7100                 return null;
7101         },
7102
7103         /**
7104          * Query the current average bitrate of all peers associated to this
7105          * wireless network.
7106          *
7107          * @returns {null|number}
7108          * Returns the average bit rate among all peers associated to the network
7109          * as reported by `ubus` runtime information or `null` if the information
7110          * is not available.
7111          */
7112         getBitRate: function() {
7113                 var rate = this.ubus('net', 'iwinfo', 'bitrate');
7114
7115                 if (rate != null &amp;&amp; rate > 0)
7116                         return (rate / 1000);
7117
7118                 return null;
7119         },
7120
7121         /**
7122          * Query the current wireless channel.
7123          *
7124          * @returns {null|number}
7125          * Returns the wireless channel as reported by `ubus` runtime information
7126          * or `null` if it cannot be determined.
7127          */
7128         getChannel: function() {
7129                 return this.ubus('net', 'iwinfo', 'channel') || this.ubus('dev', 'config', 'channel') || this.get('channel');
7130         },
7131
7132         /**
7133          * Query the current wireless signal.
7134          *
7135          * @returns {null|number}
7136          * Returns the wireless signal in dBm as reported by `ubus` runtime
7137          * information or `null` if it cannot be determined.
7138          */
7139         getSignal: function() {
7140                 return this.ubus('net', 'iwinfo', 'signal') || 0;
7141         },
7142
7143         /**
7144          * Query the current radio noise floor.
7145          *
7146          * @returns {number}
7147          * Returns the radio noise floor in dBm as reported by `ubus` runtime
7148          * information or `0` if it cannot be determined.
7149          */
7150         getNoise: function() {
7151                 return this.ubus('net', 'iwinfo', 'noise') || 0;
7152         },
7153
7154         /**
7155          * Query the current country code.
7156          *
7157          * @returns {string}
7158          * Returns the wireless country code as reported by `ubus` runtime
7159          * information or `00` if it cannot be determined.
7160          */
7161         getCountryCode: function() {
7162                 return this.ubus('net', 'iwinfo', 'country') || this.ubus('dev', 'config', 'country') || '00';
7163         },
7164
7165         /**
7166          * Query the current radio TX power.
7167          *
7168          * @returns {null|number}
7169          * Returns the wireless network transmit power in dBm as reported by
7170          * `ubus` runtime information or `null` if it cannot be determined.
7171          */
7172         getTXPower: function() {
7173                 return this.ubus('net', 'iwinfo', 'txpower');
7174         },
7175
7176         /**
7177          * Query the radio TX power offset.
7178          *
7179          * Some wireless radios have a fixed power offset, e.g. due to the
7180          * use of external amplifiers.
7181          *
7182          * @returns {number}
7183          * Returns the wireless network transmit power offset in dBm as reported
7184          * by `ubus` runtime information or `0` if there is no offset, or if it
7185          * cannot be determined.
7186          */
7187         getTXPowerOffset: function() {
7188                 return this.ubus('net', 'iwinfo', 'txpower_offset') || 0;
7189         },
7190
7191         /**
7192          * Calculate the current signal.
7193          *
7194          * @deprecated
7195          * @returns {number}
7196          * Returns the calculated signal level, which is the difference between
7197          * noise and signal (SNR), divided by 5.
7198          */
7199         getSignalLevel: function(signal, noise) {
7200                 if (this.getActiveBSSID() == '00:00:00:00:00:00')
7201                         return -1;
7202
7203                 signal = signal || this.getSignal();
7204                 noise  = noise  || this.getNoise();
7205
7206                 if (signal &lt; 0 &amp;&amp; noise &lt; 0) {
7207                         var snr = -1 * (noise - signal);
7208                         return Math.floor(snr / 5);
7209                 }
7210
7211                 return 0;
7212         },
7213
7214         /**
7215          * Calculate the current signal quality percentage.
7216          *
7217          * @returns {number}
7218          * Returns the calculated signal quality in percent. The value is
7219          * calculated from the `quality` and `quality_max` indicators reported
7220          * by `ubus` runtime state.
7221          */
7222         getSignalPercent: function() {
7223                 var qc = this.ubus('net', 'iwinfo', 'quality') || 0,
7224                     qm = this.ubus('net', 'iwinfo', 'quality_max') || 0;
7225
7226                 if (qc > 0 &amp;&amp; qm > 0)
7227                         return Math.floor((100 / qm) * qc);
7228
7229                 return 0;
7230         },
7231
7232         /**
7233          * Get a short description string for this wireless network.
7234          *
7235          * @returns {string}
7236          * Returns a string describing this network, consisting of the
7237          * active operation mode, followed by either the SSID, BSSID or
7238          * internal network ID, depending on which information is available.
7239          */
7240         getShortName: function() {
7241                 return '%s "%s"'.format(
7242                         this.getActiveModeI18n(),
7243                         this.getActiveSSID() || this.getActiveBSSID() || this.getID());
7244         },
7245
7246         /**
7247          * Get a description string for this wireless network.
7248          *
7249          * @returns {string}
7250          * Returns a string describing this network, consisting of the
7251          * term `Wireless Network`, followed by the active operation mode,
7252          * the SSID, BSSID or internal network ID and the Linux network device
7253          * name, depending on which information is available.
7254          */
7255         getI18n: function() {
7256                 return '%s: %s "%s" (%s)'.format(
7257                         _('Wireless Network'),
7258                         this.getActiveModeI18n(),
7259                         this.getActiveSSID() || this.getActiveBSSID() || this.getID(),
7260                         this.getIfname());
7261         },
7262
7263         /**
7264          * Get the primary logical interface this wireless network is attached to.
7265          *
7266          * @returns {null|LuCI.network.Protocol}
7267          * Returns a `Network.Protocol` instance representing the logical
7268          * interface or `null` if this network is not attached to any logical
7269          * interface.
7270          */
7271         getNetwork: function() {
7272                 return this.getNetworks()[0];
7273         },
7274
7275         /**
7276          * Get the logical interfaces this wireless network is attached to.
7277          *
7278          * @returns {Array&lt;LuCI.network.Protocol>}
7279          * Returns an array of `Network.Protocol` instances representing the
7280          * logical interfaces this wireless network is attached to.
7281          */
7282         getNetworks: function() {
7283                 var networkNames = this.getNetworkNames(),
7284                     networks = [];
7285
7286                 for (var i = 0; i &lt; networkNames.length; i++) {
7287                         var uciInterface = uci.get('network', networkNames[i]);
7288
7289                         if (uciInterface == null || uciInterface['.type'] != 'interface')
7290                                 continue;
7291
7292                         networks.push(Network.prototype.instantiateNetwork(networkNames[i]));
7293                 }
7294
7295                 networks.sort(networkSort);
7296
7297                 return networks;
7298         },
7299
7300         /**
7301          * Get the associated Linux network device.
7302          *
7303          * @returns {LuCI.network.Device}
7304          * Returns a `Network.Device` instance representing the Linux network
7305          * device associted with this wireless network.
7306          */
7307         getDevice: function() {
7308                 return Network.prototype.instantiateDevice(this.getIfname());
7309         },
7310
7311         /**
7312          * Check whether this wifi network supports deauthenticating clients.
7313          *
7314          * @returns {boolean}
7315          * Returns `true` when this wifi network instance supports forcibly
7316          * deauthenticating clients, otherwise `false`.
7317          */
7318         isClientDisconnectSupported: function() {
7319                 return L.isObject(this.ubus('hostapd', 'del_client'));
7320         },
7321
7322         /**
7323          * Forcibly disconnect the given client from the wireless network.
7324          *
7325          * @param {string} mac
7326          * The MAC address of the client to disconnect.
7327          *
7328          * @param {boolean} [deauth=false]
7329          * Specifies whether to deauthenticate (`true`) or disassociate (`false`)
7330          * the client.
7331          *
7332          * @param {number} [reason=1]
7333          * Specifies the IEEE 802.11 reason code to disassoc/deauth the client
7334          * with. Default is `1` which corresponds to `Unspecified reason`.
7335          *
7336          * @param {number} [ban_time=0]
7337          * Specifies the amount of milliseconds to ban the client from
7338          * reconnecting. By default, no ban time is set which allows the client
7339          * to reassociate / reauthenticate immediately.
7340          *
7341          * @returns {Promise&lt;number>}
7342          * Returns a promise resolving to the underlying ubus call result code
7343          * which is typically `0`, even for not existing MAC addresses.
7344          * The promise might reject with an error in case invalid arguments
7345          * are passed.
7346          */
7347         disconnectClient: function(mac, deauth, reason, ban_time) {
7348                 if (reason == null || reason == 0)
7349                         reason = 1;
7350
7351                 if (ban_time == 0)
7352                         ban_time = null;
7353
7354                 return rpc.declare({
7355                         object: 'hostapd.%s'.format(this.getIfname()),
7356                         method: 'del_client',
7357                         params: [ 'addr', 'deauth', 'reason', 'ban_time' ]
7358                 })(mac, deauth, reason, ban_time);
7359         }
7360 });
7361
7362 return Network;
7363 </code></pre>
7364         </article>
7365     </section>
7366
7367
7368
7369
7370
7371
7372         
7373
7374         <footer>
7375             Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Tue Apr 07 2020 16:33:40 GMT+0200 (Central European Summer Time)
7376         </footer>
7377     </div>
7378 </div>
7379 <script>prettyPrint();</script>
7380 <script src="scripts/jaguar.js"></script>
7381 </body>
7382 </html>