5 <title>Source: network.js</title>
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>
12 <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
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">
20 var config = {"monospaceLinks":true,"cleverLinks":true,"default":{"outputSourceFiles":true}};
27 <div id="wrap" class="clearfix">
29 <div class="navigation">
30 <h3 class="applicationName"><a href="index.html"></a></h3>
33 <input id="search" type="text" class="form-control input-sm" placeholder="Search Documentations">
37 <li class="item" data-name="LuCI">
39 <a href="LuCI.html">LuCI</a>
42 <ul class="members itemMembers">
44 <span class="subtitle">Members</span>
46 <li data-name="LuCI#Class"><a href="LuCI.html#Class">Class</a></li>
48 <li data-name="LuCI#dom"><a href="LuCI.html#dom">dom</a></li>
50 <li data-name="LuCI#env"><a href="LuCI.html#env">env</a></li>
52 <li data-name="LuCI#Poll"><a href="LuCI.html#Poll">Poll</a></li>
54 <li data-name="LuCI#Request"><a href="LuCI.html#Request">Request</a></li>
56 <li data-name="LuCI#view"><a href="LuCI.html#view">view</a></li>
59 <ul class="typedefs itemMembers">
61 <span class="subtitle">Typedefs</span>
63 <li data-name="LuCI.requestCallbackFn"><a href="LuCI.html#.requestCallbackFn">requestCallbackFn</a></li>
66 <ul class="typedefs itemMembers">
69 <ul class="methods itemMembers">
71 <span class="subtitle">Methods</span>
73 <li data-name="LuCI#bind"><a href="LuCI.html#bind">bind</a></li>
75 <li data-name="LuCI#error"><a href="LuCI.html#error">error</a></li>
77 <li data-name="LuCI#get"><a href="LuCI.html#get">get</a></li>
79 <li data-name="LuCI#halt"><a href="LuCI.html#halt">halt</a></li>
81 <li data-name="LuCI#hasSystemFeature"><a href="LuCI.html#hasSystemFeature">hasSystemFeature</a></li>
83 <li data-name="LuCI#isObject"><a href="LuCI.html#isObject">isObject</a></li>
85 <li data-name="LuCI#location"><a href="LuCI.html#location">location</a></li>
87 <li data-name="LuCI#media"><a href="LuCI.html#media">media</a></li>
89 <li data-name="LuCI#path"><a href="LuCI.html#path">path</a></li>
91 <li data-name="LuCI#poll"><a href="LuCI.html#poll">poll</a></li>
93 <li data-name="LuCI#post"><a href="LuCI.html#post">post</a></li>
95 <li data-name="LuCI#raise"><a href="LuCI.html#raise">raise</a></li>
97 <li data-name="LuCI#require"><a href="LuCI.html#require">require</a></li>
99 <li data-name="LuCI#resolveDefault"><a href="LuCI.html#resolveDefault">resolveDefault</a></li>
101 <li data-name="LuCI#resource"><a href="LuCI.html#resource">resource</a></li>
103 <li data-name="LuCI#run"><a href="LuCI.html#run">run</a></li>
105 <li data-name="LuCI#sortedKeys"><a href="LuCI.html#sortedKeys">sortedKeys</a></li>
107 <li data-name="LuCI#stop"><a href="LuCI.html#stop">stop</a></li>
109 <li data-name="LuCI#toArray"><a href="LuCI.html#toArray">toArray</a></li>
111 <li data-name="LuCI#url"><a href="LuCI.html#url">url</a></li>
114 <ul class="events itemMembers">
119 <li class="item" data-name="LuCI.baseclass">
121 <a href="LuCI.baseclass.html">LuCI.baseclass</a>
124 <ul class="members itemMembers">
127 <ul class="typedefs itemMembers">
130 <ul class="typedefs itemMembers">
133 <ul class="methods itemMembers">
135 <span class="subtitle">Methods</span>
137 <li data-name="LuCI.baseclass.extend"><a href="LuCI.baseclass.html#.extend">extend</a></li>
139 <li data-name="LuCI.baseclass.instantiate"><a href="LuCI.baseclass.html#.instantiate">instantiate</a></li>
141 <li data-name="LuCI.baseclass.isSubclass"><a href="LuCI.baseclass.html#.isSubclass">isSubclass</a></li>
143 <li data-name="LuCI.baseclass.singleton"><a href="LuCI.baseclass.html#.singleton">singleton</a></li>
145 <li data-name="LuCI.baseclass#super"><a href="LuCI.baseclass.html#super">super</a></li>
147 <li data-name="LuCI.baseclass#varargs"><a href="LuCI.baseclass.html#varargs">varargs</a></li>
150 <ul class="events itemMembers">
155 <li class="item" data-name="LuCI.dom">
157 <a href="LuCI.dom.html">LuCI.dom</a>
160 <ul class="members itemMembers">
163 <ul class="typedefs itemMembers">
165 <span class="subtitle">Typedefs</span>
167 <li data-name="LuCI.dom~ignoreCallbackFn"><a href="LuCI.dom.html#~ignoreCallbackFn">ignoreCallbackFn</a></li>
170 <ul class="typedefs itemMembers">
173 <ul class="methods itemMembers">
175 <span class="subtitle">Methods</span>
177 <li data-name="LuCI.dom#append"><a href="LuCI.dom.html#append">append</a></li>
179 <li data-name="LuCI.dom#attr"><a href="LuCI.dom.html#attr">attr</a></li>
181 <li data-name="LuCI.dom#bindClassInstance"><a href="LuCI.dom.html#bindClassInstance">bindClassInstance</a></li>
183 <li data-name="LuCI.dom#callClassMethod"><a href="LuCI.dom.html#callClassMethod">callClassMethod</a></li>
185 <li data-name="LuCI.dom#content"><a href="LuCI.dom.html#content">content</a></li>
187 <li data-name="LuCI.dom#create"><a href="LuCI.dom.html#create">create</a></li>
189 <li data-name="LuCI.dom#data"><a href="LuCI.dom.html#data">data</a></li>
191 <li data-name="LuCI.dom#elem"><a href="LuCI.dom.html#elem">elem</a></li>
193 <li data-name="LuCI.dom#findClassInstance"><a href="LuCI.dom.html#findClassInstance">findClassInstance</a></li>
195 <li data-name="LuCI.dom#isEmpty"><a href="LuCI.dom.html#isEmpty">isEmpty</a></li>
197 <li data-name="LuCI.dom#matches"><a href="LuCI.dom.html#matches">matches</a></li>
199 <li data-name="LuCI.dom#parent"><a href="LuCI.dom.html#parent">parent</a></li>
201 <li data-name="LuCI.dom#parse"><a href="LuCI.dom.html#parse">parse</a></li>
204 <ul class="events itemMembers">
209 <li class="item" data-name="LuCI.form">
211 <a href="LuCI.form.html">LuCI.form</a>
214 <ul class="members itemMembers">
217 <ul class="typedefs itemMembers">
220 <ul class="typedefs itemMembers">
223 <ul class="methods itemMembers">
226 <ul class="events itemMembers">
231 <li class="item" data-name="LuCI.form.AbstractElement">
233 <a href="LuCI.form.AbstractElement.html">LuCI.form.AbstractElement</a>
236 <ul class="members itemMembers">
239 <ul class="typedefs itemMembers">
242 <ul class="typedefs itemMembers">
245 <ul class="methods itemMembers">
247 <span class="subtitle">Methods</span>
249 <li data-name="LuCI.form.AbstractElement#append"><a href="LuCI.form.AbstractElement.html#append">append</a></li>
251 <li data-name="LuCI.form.AbstractElement#parse"><a href="LuCI.form.AbstractElement.html#parse">parse</a></li>
253 <li data-name="LuCI.form.AbstractElement#render"><a href="LuCI.form.AbstractElement.html#render">render</a></li>
255 <li data-name="LuCI.form.AbstractElement#stripTags"><a href="LuCI.form.AbstractElement.html#stripTags">stripTags</a></li>
257 <li data-name="LuCI.form.AbstractElement#titleFn"><a href="LuCI.form.AbstractElement.html#titleFn">titleFn</a></li>
260 <ul class="events itemMembers">
265 <li class="item" data-name="LuCI.form.AbstractSection">
267 <a href="LuCI.form.AbstractSection.html">LuCI.form.AbstractSection</a>
270 <ul class="members itemMembers">
272 <span class="subtitle">Members</span>
274 <li data-name="LuCI.form.AbstractSection##parentoption"><a href="LuCI.form.AbstractSection.html#parentoption">parentoption</a></li>
277 <ul class="typedefs itemMembers">
280 <ul class="typedefs itemMembers">
283 <ul class="methods itemMembers">
285 <span class="subtitle">Methods</span>
287 <li data-name="LuCI.form.AbstractSection#append"><a href="LuCI.form.AbstractSection.html#append">append</a></li>
289 <li data-name="LuCI.form.AbstractSection#cfgsections"><a href="LuCI.form.AbstractSection.html#cfgsections">cfgsections</a></li>
291 <li data-name="LuCI.form.AbstractSection#filter"><a href="LuCI.form.AbstractSection.html#filter">filter</a></li>
293 <li data-name="LuCI.form.AbstractSection#load"><a href="LuCI.form.AbstractSection.html#load">load</a></li>
295 <li data-name="LuCI.form.AbstractSection#option"><a href="LuCI.form.AbstractSection.html#option">option</a></li>
297 <li data-name="LuCI.form.AbstractSection#parse"><a href="LuCI.form.AbstractSection.html#parse">parse</a></li>
299 <li data-name="LuCI.form.AbstractSection#render"><a href="LuCI.form.AbstractSection.html#render">render</a></li>
301 <li data-name="LuCI.form.AbstractSection#stripTags"><a href="LuCI.form.AbstractSection.html#stripTags">stripTags</a></li>
303 <li data-name="LuCI.form.AbstractSection#tab"><a href="LuCI.form.AbstractSection.html#tab">tab</a></li>
305 <li data-name="LuCI.form.AbstractSection#taboption"><a href="LuCI.form.AbstractSection.html#taboption">taboption</a></li>
307 <li data-name="LuCI.form.AbstractSection#titleFn"><a href="LuCI.form.AbstractSection.html#titleFn">titleFn</a></li>
310 <ul class="events itemMembers">
315 <li class="item" data-name="LuCI.form.AbstractValue">
317 <a href="LuCI.form.AbstractValue.html">LuCI.form.AbstractValue</a>
320 <ul class="members itemMembers">
322 <span class="subtitle">Members</span>
324 <li data-name="LuCI.form.AbstractValue##datatype"><a href="LuCI.form.AbstractValue.html#datatype">datatype</a></li>
326 <li data-name="LuCI.form.AbstractValue##default"><a href="LuCI.form.AbstractValue.html#default">default</a></li>
328 <li data-name="LuCI.form.AbstractValue##editable"><a href="LuCI.form.AbstractValue.html#editable">editable</a></li>
330 <li data-name="LuCI.form.AbstractValue##modalonly"><a href="LuCI.form.AbstractValue.html#modalonly">modalonly</a></li>
332 <li data-name="LuCI.form.AbstractValue##optional"><a href="LuCI.form.AbstractValue.html#optional">optional</a></li>
334 <li data-name="LuCI.form.AbstractValue##rmempty"><a href="LuCI.form.AbstractValue.html#rmempty">rmempty</a></li>
336 <li data-name="LuCI.form.AbstractValue##uciconfig"><a href="LuCI.form.AbstractValue.html#uciconfig">uciconfig</a></li>
338 <li data-name="LuCI.form.AbstractValue##ucioption"><a href="LuCI.form.AbstractValue.html#ucioption">ucioption</a></li>
340 <li data-name="LuCI.form.AbstractValue##ucisection"><a href="LuCI.form.AbstractValue.html#ucisection">ucisection</a></li>
342 <li data-name="LuCI.form.AbstractValue##validate"><a href="LuCI.form.AbstractValue.html#validate">validate</a></li>
344 <li data-name="LuCI.form.AbstractValue##width"><a href="LuCI.form.AbstractValue.html#width">width</a></li>
347 <ul class="typedefs itemMembers">
350 <ul class="typedefs itemMembers">
353 <ul class="methods itemMembers">
355 <span class="subtitle">Methods</span>
357 <li data-name="LuCI.form.AbstractValue#append"><a href="LuCI.form.AbstractValue.html#append">append</a></li>
359 <li data-name="LuCI.form.AbstractValue#cbid"><a href="LuCI.form.AbstractValue.html#cbid">cbid</a></li>
361 <li data-name="LuCI.form.AbstractValue#cfgvalue"><a href="LuCI.form.AbstractValue.html#cfgvalue">cfgvalue</a></li>
363 <li data-name="LuCI.form.AbstractValue#depends"><a href="LuCI.form.AbstractValue.html#depends">depends</a></li>
365 <li data-name="LuCI.form.AbstractValue#formvalue"><a href="LuCI.form.AbstractValue.html#formvalue">formvalue</a></li>
367 <li data-name="LuCI.form.AbstractValue#getUIElement"><a href="LuCI.form.AbstractValue.html#getUIElement">getUIElement</a></li>
369 <li data-name="LuCI.form.AbstractValue#isActive"><a href="LuCI.form.AbstractValue.html#isActive">isActive</a></li>
371 <li data-name="LuCI.form.AbstractValue#isValid"><a href="LuCI.form.AbstractValue.html#isValid">isValid</a></li>
373 <li data-name="LuCI.form.AbstractValue#load"><a href="LuCI.form.AbstractValue.html#load">load</a></li>
375 <li data-name="LuCI.form.AbstractValue#parse"><a href="LuCI.form.AbstractValue.html#parse">parse</a></li>
377 <li data-name="LuCI.form.AbstractValue#remove"><a href="LuCI.form.AbstractValue.html#remove">remove</a></li>
379 <li data-name="LuCI.form.AbstractValue#render"><a href="LuCI.form.AbstractValue.html#render">render</a></li>
381 <li data-name="LuCI.form.AbstractValue#stripTags"><a href="LuCI.form.AbstractValue.html#stripTags">stripTags</a></li>
383 <li data-name="LuCI.form.AbstractValue#textvalue"><a href="LuCI.form.AbstractValue.html#textvalue">textvalue</a></li>
385 <li data-name="LuCI.form.AbstractValue#titleFn"><a href="LuCI.form.AbstractValue.html#titleFn">titleFn</a></li>
387 <li data-name="LuCI.form.AbstractValue#validate"><a href="LuCI.form.AbstractValue.html#validate">validate</a></li>
389 <li data-name="LuCI.form.AbstractValue#write"><a href="LuCI.form.AbstractValue.html#write">write</a></li>
392 <ul class="events itemMembers">
397 <li class="item" data-name="LuCI.form.ButtonValue">
399 <a href="LuCI.form.ButtonValue.html">LuCI.form.ButtonValue</a>
402 <ul class="members itemMembers">
404 <span class="subtitle">Members</span>
406 <li data-name="LuCI.form.ButtonValue##inputstyle"><a href="LuCI.form.ButtonValue.html#inputstyle">inputstyle</a></li>
408 <li data-name="LuCI.form.ButtonValue##inputtitle"><a href="LuCI.form.ButtonValue.html#inputtitle">inputtitle</a></li>
410 <li data-name="LuCI.form.ButtonValue##onclick"><a href="LuCI.form.ButtonValue.html#onclick">onclick</a></li>
412 <li data-name="LuCI.form.ButtonValue#datatype"><a href="LuCI.form.ButtonValue.html#datatype">datatype</a></li>
414 <li data-name="LuCI.form.ButtonValue#default"><a href="LuCI.form.ButtonValue.html#default">default</a></li>
416 <li data-name="LuCI.form.ButtonValue#editable"><a href="LuCI.form.ButtonValue.html#editable">editable</a></li>
418 <li data-name="LuCI.form.ButtonValue#modalonly"><a href="LuCI.form.ButtonValue.html#modalonly">modalonly</a></li>
420 <li data-name="LuCI.form.ButtonValue#optional"><a href="LuCI.form.ButtonValue.html#optional">optional</a></li>
422 <li data-name="LuCI.form.ButtonValue#password"><a href="LuCI.form.ButtonValue.html#password">password</a></li>
424 <li data-name="LuCI.form.ButtonValue#placeholder"><a href="LuCI.form.ButtonValue.html#placeholder">placeholder</a></li>
426 <li data-name="LuCI.form.ButtonValue#rmempty"><a href="LuCI.form.ButtonValue.html#rmempty">rmempty</a></li>
428 <li data-name="LuCI.form.ButtonValue#uciconfig"><a href="LuCI.form.ButtonValue.html#uciconfig">uciconfig</a></li>
430 <li data-name="LuCI.form.ButtonValue#ucioption"><a href="LuCI.form.ButtonValue.html#ucioption">ucioption</a></li>
432 <li data-name="LuCI.form.ButtonValue#ucisection"><a href="LuCI.form.ButtonValue.html#ucisection">ucisection</a></li>
434 <li data-name="LuCI.form.ButtonValue#validate"><a href="LuCI.form.ButtonValue.html#validate">validate</a></li>
436 <li data-name="LuCI.form.ButtonValue#width"><a href="LuCI.form.ButtonValue.html#width">width</a></li>
439 <ul class="typedefs itemMembers">
442 <ul class="typedefs itemMembers">
445 <ul class="methods itemMembers">
447 <span class="subtitle">Methods</span>
449 <li data-name="LuCI.form.ButtonValue#append"><a href="LuCI.form.ButtonValue.html#append">append</a></li>
451 <li data-name="LuCI.form.ButtonValue#cbid"><a href="LuCI.form.ButtonValue.html#cbid">cbid</a></li>
453 <li data-name="LuCI.form.ButtonValue#cfgvalue"><a href="LuCI.form.ButtonValue.html#cfgvalue">cfgvalue</a></li>
455 <li data-name="LuCI.form.ButtonValue#depends"><a href="LuCI.form.ButtonValue.html#depends">depends</a></li>
457 <li data-name="LuCI.form.ButtonValue#formvalue"><a href="LuCI.form.ButtonValue.html#formvalue">formvalue</a></li>
459 <li data-name="LuCI.form.ButtonValue#getUIElement"><a href="LuCI.form.ButtonValue.html#getUIElement">getUIElement</a></li>
461 <li data-name="LuCI.form.ButtonValue#isActive"><a href="LuCI.form.ButtonValue.html#isActive">isActive</a></li>
463 <li data-name="LuCI.form.ButtonValue#isValid"><a href="LuCI.form.ButtonValue.html#isValid">isValid</a></li>
465 <li data-name="LuCI.form.ButtonValue#load"><a href="LuCI.form.ButtonValue.html#load">load</a></li>
467 <li data-name="LuCI.form.ButtonValue#parse"><a href="LuCI.form.ButtonValue.html#parse">parse</a></li>
469 <li data-name="LuCI.form.ButtonValue#remove"><a href="LuCI.form.ButtonValue.html#remove">remove</a></li>
471 <li data-name="LuCI.form.ButtonValue#stripTags"><a href="LuCI.form.ButtonValue.html#stripTags">stripTags</a></li>
473 <li data-name="LuCI.form.ButtonValue#textvalue"><a href="LuCI.form.ButtonValue.html#textvalue">textvalue</a></li>
475 <li data-name="LuCI.form.ButtonValue#titleFn"><a href="LuCI.form.ButtonValue.html#titleFn">titleFn</a></li>
477 <li data-name="LuCI.form.ButtonValue#value"><a href="LuCI.form.ButtonValue.html#value">value</a></li>
479 <li data-name="LuCI.form.ButtonValue#write"><a href="LuCI.form.ButtonValue.html#write">write</a></li>
482 <ul class="events itemMembers">
487 <li class="item" data-name="LuCI.form.DummyValue">
489 <a href="LuCI.form.DummyValue.html">LuCI.form.DummyValue</a>
492 <ul class="members itemMembers">
494 <span class="subtitle">Members</span>
496 <li data-name="LuCI.form.DummyValue##href"><a href="LuCI.form.DummyValue.html#href">href</a></li>
498 <li data-name="LuCI.form.DummyValue##rawhtml"><a href="LuCI.form.DummyValue.html#rawhtml">rawhtml</a></li>
500 <li data-name="LuCI.form.DummyValue#datatype"><a href="LuCI.form.DummyValue.html#datatype">datatype</a></li>
502 <li data-name="LuCI.form.DummyValue#default"><a href="LuCI.form.DummyValue.html#default">default</a></li>
504 <li data-name="LuCI.form.DummyValue#editable"><a href="LuCI.form.DummyValue.html#editable">editable</a></li>
506 <li data-name="LuCI.form.DummyValue#modalonly"><a href="LuCI.form.DummyValue.html#modalonly">modalonly</a></li>
508 <li data-name="LuCI.form.DummyValue#optional"><a href="LuCI.form.DummyValue.html#optional">optional</a></li>
510 <li data-name="LuCI.form.DummyValue#password"><a href="LuCI.form.DummyValue.html#password">password</a></li>
512 <li data-name="LuCI.form.DummyValue#placeholder"><a href="LuCI.form.DummyValue.html#placeholder">placeholder</a></li>
514 <li data-name="LuCI.form.DummyValue#rmempty"><a href="LuCI.form.DummyValue.html#rmempty">rmempty</a></li>
516 <li data-name="LuCI.form.DummyValue#uciconfig"><a href="LuCI.form.DummyValue.html#uciconfig">uciconfig</a></li>
518 <li data-name="LuCI.form.DummyValue#ucioption"><a href="LuCI.form.DummyValue.html#ucioption">ucioption</a></li>
520 <li data-name="LuCI.form.DummyValue#ucisection"><a href="LuCI.form.DummyValue.html#ucisection">ucisection</a></li>
522 <li data-name="LuCI.form.DummyValue#validate"><a href="LuCI.form.DummyValue.html#validate">validate</a></li>
524 <li data-name="LuCI.form.DummyValue#width"><a href="LuCI.form.DummyValue.html#width">width</a></li>
527 <ul class="typedefs itemMembers">
530 <ul class="typedefs itemMembers">
533 <ul class="methods itemMembers">
535 <span class="subtitle">Methods</span>
537 <li data-name="LuCI.form.DummyValue#append"><a href="LuCI.form.DummyValue.html#append">append</a></li>
539 <li data-name="LuCI.form.DummyValue#cbid"><a href="LuCI.form.DummyValue.html#cbid">cbid</a></li>
541 <li data-name="LuCI.form.DummyValue#cfgvalue"><a href="LuCI.form.DummyValue.html#cfgvalue">cfgvalue</a></li>
543 <li data-name="LuCI.form.DummyValue#depends"><a href="LuCI.form.DummyValue.html#depends">depends</a></li>
545 <li data-name="LuCI.form.DummyValue#formvalue"><a href="LuCI.form.DummyValue.html#formvalue">formvalue</a></li>
547 <li data-name="LuCI.form.DummyValue#getUIElement"><a href="LuCI.form.DummyValue.html#getUIElement">getUIElement</a></li>
549 <li data-name="LuCI.form.DummyValue#isActive"><a href="LuCI.form.DummyValue.html#isActive">isActive</a></li>
551 <li data-name="LuCI.form.DummyValue#isValid"><a href="LuCI.form.DummyValue.html#isValid">isValid</a></li>
553 <li data-name="LuCI.form.DummyValue#load"><a href="LuCI.form.DummyValue.html#load">load</a></li>
555 <li data-name="LuCI.form.DummyValue#parse"><a href="LuCI.form.DummyValue.html#parse">parse</a></li>
557 <li data-name="LuCI.form.DummyValue#remove"><a href="LuCI.form.DummyValue.html#remove">remove</a></li>
559 <li data-name="LuCI.form.DummyValue#stripTags"><a href="LuCI.form.DummyValue.html#stripTags">stripTags</a></li>
561 <li data-name="LuCI.form.DummyValue#textvalue"><a href="LuCI.form.DummyValue.html#textvalue">textvalue</a></li>
563 <li data-name="LuCI.form.DummyValue#titleFn"><a href="LuCI.form.DummyValue.html#titleFn">titleFn</a></li>
565 <li data-name="LuCI.form.DummyValue#value"><a href="LuCI.form.DummyValue.html#value">value</a></li>
567 <li data-name="LuCI.form.DummyValue#write"><a href="LuCI.form.DummyValue.html#write">write</a></li>
570 <ul class="events itemMembers">
575 <li class="item" data-name="LuCI.form.DynamicList">
577 <a href="LuCI.form.DynamicList.html">LuCI.form.DynamicList</a>
580 <ul class="members itemMembers">
582 <span class="subtitle">Members</span>
584 <li data-name="LuCI.form.DynamicList#datatype"><a href="LuCI.form.DynamicList.html#datatype">datatype</a></li>
586 <li data-name="LuCI.form.DynamicList#default"><a href="LuCI.form.DynamicList.html#default">default</a></li>
588 <li data-name="LuCI.form.DynamicList#editable"><a href="LuCI.form.DynamicList.html#editable">editable</a></li>
590 <li data-name="LuCI.form.DynamicList#modalonly"><a href="LuCI.form.DynamicList.html#modalonly">modalonly</a></li>
592 <li data-name="LuCI.form.DynamicList#optional"><a href="LuCI.form.DynamicList.html#optional">optional</a></li>
594 <li data-name="LuCI.form.DynamicList#password"><a href="LuCI.form.DynamicList.html#password">password</a></li>
596 <li data-name="LuCI.form.DynamicList#placeholder"><a href="LuCI.form.DynamicList.html#placeholder">placeholder</a></li>
598 <li data-name="LuCI.form.DynamicList#rmempty"><a href="LuCI.form.DynamicList.html#rmempty">rmempty</a></li>
600 <li data-name="LuCI.form.DynamicList#uciconfig"><a href="LuCI.form.DynamicList.html#uciconfig">uciconfig</a></li>
602 <li data-name="LuCI.form.DynamicList#ucioption"><a href="LuCI.form.DynamicList.html#ucioption">ucioption</a></li>
604 <li data-name="LuCI.form.DynamicList#ucisection"><a href="LuCI.form.DynamicList.html#ucisection">ucisection</a></li>
606 <li data-name="LuCI.form.DynamicList#validate"><a href="LuCI.form.DynamicList.html#validate">validate</a></li>
608 <li data-name="LuCI.form.DynamicList#width"><a href="LuCI.form.DynamicList.html#width">width</a></li>
611 <ul class="typedefs itemMembers">
614 <ul class="typedefs itemMembers">
617 <ul class="methods itemMembers">
619 <span class="subtitle">Methods</span>
621 <li data-name="LuCI.form.DynamicList#append"><a href="LuCI.form.DynamicList.html#append">append</a></li>
623 <li data-name="LuCI.form.DynamicList#cbid"><a href="LuCI.form.DynamicList.html#cbid">cbid</a></li>
625 <li data-name="LuCI.form.DynamicList#cfgvalue"><a href="LuCI.form.DynamicList.html#cfgvalue">cfgvalue</a></li>
627 <li data-name="LuCI.form.DynamicList#depends"><a href="LuCI.form.DynamicList.html#depends">depends</a></li>
629 <li data-name="LuCI.form.DynamicList#formvalue"><a href="LuCI.form.DynamicList.html#formvalue">formvalue</a></li>
631 <li data-name="LuCI.form.DynamicList#getUIElement"><a href="LuCI.form.DynamicList.html#getUIElement">getUIElement</a></li>
633 <li data-name="LuCI.form.DynamicList#isActive"><a href="LuCI.form.DynamicList.html#isActive">isActive</a></li>
635 <li data-name="LuCI.form.DynamicList#isValid"><a href="LuCI.form.DynamicList.html#isValid">isValid</a></li>
637 <li data-name="LuCI.form.DynamicList#load"><a href="LuCI.form.DynamicList.html#load">load</a></li>
639 <li data-name="LuCI.form.DynamicList#parse"><a href="LuCI.form.DynamicList.html#parse">parse</a></li>
641 <li data-name="LuCI.form.DynamicList#remove"><a href="LuCI.form.DynamicList.html#remove">remove</a></li>
643 <li data-name="LuCI.form.DynamicList#stripTags"><a href="LuCI.form.DynamicList.html#stripTags">stripTags</a></li>
645 <li data-name="LuCI.form.DynamicList#textvalue"><a href="LuCI.form.DynamicList.html#textvalue">textvalue</a></li>
647 <li data-name="LuCI.form.DynamicList#titleFn"><a href="LuCI.form.DynamicList.html#titleFn">titleFn</a></li>
649 <li data-name="LuCI.form.DynamicList#value"><a href="LuCI.form.DynamicList.html#value">value</a></li>
651 <li data-name="LuCI.form.DynamicList#write"><a href="LuCI.form.DynamicList.html#write">write</a></li>
654 <ul class="events itemMembers">
659 <li class="item" data-name="LuCI.form.FileUpload">
661 <a href="LuCI.form.FileUpload.html">LuCI.form.FileUpload</a>
664 <ul class="members itemMembers">
666 <span class="subtitle">Members</span>
668 <li data-name="LuCI.form.FileUpload##enable_remove"><a href="LuCI.form.FileUpload.html#enable_remove">enable_remove</a></li>
670 <li data-name="LuCI.form.FileUpload##enable_upload"><a href="LuCI.form.FileUpload.html#enable_upload">enable_upload</a></li>
672 <li data-name="LuCI.form.FileUpload##root_directory"><a href="LuCI.form.FileUpload.html#root_directory">root_directory</a></li>
674 <li data-name="LuCI.form.FileUpload##show_hidden"><a href="LuCI.form.FileUpload.html#show_hidden">show_hidden</a></li>
676 <li data-name="LuCI.form.FileUpload#datatype"><a href="LuCI.form.FileUpload.html#datatype">datatype</a></li>
678 <li data-name="LuCI.form.FileUpload#default"><a href="LuCI.form.FileUpload.html#default">default</a></li>
680 <li data-name="LuCI.form.FileUpload#editable"><a href="LuCI.form.FileUpload.html#editable">editable</a></li>
682 <li data-name="LuCI.form.FileUpload#modalonly"><a href="LuCI.form.FileUpload.html#modalonly">modalonly</a></li>
684 <li data-name="LuCI.form.FileUpload#optional"><a href="LuCI.form.FileUpload.html#optional">optional</a></li>
686 <li data-name="LuCI.form.FileUpload#password"><a href="LuCI.form.FileUpload.html#password">password</a></li>
688 <li data-name="LuCI.form.FileUpload#placeholder"><a href="LuCI.form.FileUpload.html#placeholder">placeholder</a></li>
690 <li data-name="LuCI.form.FileUpload#rmempty"><a href="LuCI.form.FileUpload.html#rmempty">rmempty</a></li>
692 <li data-name="LuCI.form.FileUpload#uciconfig"><a href="LuCI.form.FileUpload.html#uciconfig">uciconfig</a></li>
694 <li data-name="LuCI.form.FileUpload#ucioption"><a href="LuCI.form.FileUpload.html#ucioption">ucioption</a></li>
696 <li data-name="LuCI.form.FileUpload#ucisection"><a href="LuCI.form.FileUpload.html#ucisection">ucisection</a></li>
698 <li data-name="LuCI.form.FileUpload#validate"><a href="LuCI.form.FileUpload.html#validate">validate</a></li>
700 <li data-name="LuCI.form.FileUpload#width"><a href="LuCI.form.FileUpload.html#width">width</a></li>
703 <ul class="typedefs itemMembers">
706 <ul class="typedefs itemMembers">
709 <ul class="methods itemMembers">
711 <span class="subtitle">Methods</span>
713 <li data-name="LuCI.form.FileUpload#append"><a href="LuCI.form.FileUpload.html#append">append</a></li>
715 <li data-name="LuCI.form.FileUpload#cbid"><a href="LuCI.form.FileUpload.html#cbid">cbid</a></li>
717 <li data-name="LuCI.form.FileUpload#cfgvalue"><a href="LuCI.form.FileUpload.html#cfgvalue">cfgvalue</a></li>
719 <li data-name="LuCI.form.FileUpload#depends"><a href="LuCI.form.FileUpload.html#depends">depends</a></li>
721 <li data-name="LuCI.form.FileUpload#formvalue"><a href="LuCI.form.FileUpload.html#formvalue">formvalue</a></li>
723 <li data-name="LuCI.form.FileUpload#getUIElement"><a href="LuCI.form.FileUpload.html#getUIElement">getUIElement</a></li>
725 <li data-name="LuCI.form.FileUpload#isActive"><a href="LuCI.form.FileUpload.html#isActive">isActive</a></li>
727 <li data-name="LuCI.form.FileUpload#isValid"><a href="LuCI.form.FileUpload.html#isValid">isValid</a></li>
729 <li data-name="LuCI.form.FileUpload#load"><a href="LuCI.form.FileUpload.html#load">load</a></li>
731 <li data-name="LuCI.form.FileUpload#parse"><a href="LuCI.form.FileUpload.html#parse">parse</a></li>
733 <li data-name="LuCI.form.FileUpload#remove"><a href="LuCI.form.FileUpload.html#remove">remove</a></li>
735 <li data-name="LuCI.form.FileUpload#stripTags"><a href="LuCI.form.FileUpload.html#stripTags">stripTags</a></li>
737 <li data-name="LuCI.form.FileUpload#textvalue"><a href="LuCI.form.FileUpload.html#textvalue">textvalue</a></li>
739 <li data-name="LuCI.form.FileUpload#titleFn"><a href="LuCI.form.FileUpload.html#titleFn">titleFn</a></li>
741 <li data-name="LuCI.form.FileUpload#value"><a href="LuCI.form.FileUpload.html#value">value</a></li>
743 <li data-name="LuCI.form.FileUpload#write"><a href="LuCI.form.FileUpload.html#write">write</a></li>
746 <ul class="events itemMembers">
751 <li class="item" data-name="LuCI.form.FlagValue">
753 <a href="LuCI.form.FlagValue.html">LuCI.form.FlagValue</a>
756 <ul class="members itemMembers">
758 <span class="subtitle">Members</span>
760 <li data-name="LuCI.form.FlagValue##disabled"><a href="LuCI.form.FlagValue.html#disabled">disabled</a></li>
762 <li data-name="LuCI.form.FlagValue##enabled"><a href="LuCI.form.FlagValue.html#enabled">enabled</a></li>
764 <li data-name="LuCI.form.FlagValue#datatype"><a href="LuCI.form.FlagValue.html#datatype">datatype</a></li>
766 <li data-name="LuCI.form.FlagValue#default"><a href="LuCI.form.FlagValue.html#default">default</a></li>
768 <li data-name="LuCI.form.FlagValue#editable"><a href="LuCI.form.FlagValue.html#editable">editable</a></li>
770 <li data-name="LuCI.form.FlagValue#modalonly"><a href="LuCI.form.FlagValue.html#modalonly">modalonly</a></li>
772 <li data-name="LuCI.form.FlagValue#optional"><a href="LuCI.form.FlagValue.html#optional">optional</a></li>
774 <li data-name="LuCI.form.FlagValue#password"><a href="LuCI.form.FlagValue.html#password">password</a></li>
776 <li data-name="LuCI.form.FlagValue#placeholder"><a href="LuCI.form.FlagValue.html#placeholder">placeholder</a></li>
778 <li data-name="LuCI.form.FlagValue#rmempty"><a href="LuCI.form.FlagValue.html#rmempty">rmempty</a></li>
780 <li data-name="LuCI.form.FlagValue#uciconfig"><a href="LuCI.form.FlagValue.html#uciconfig">uciconfig</a></li>
782 <li data-name="LuCI.form.FlagValue#ucioption"><a href="LuCI.form.FlagValue.html#ucioption">ucioption</a></li>
784 <li data-name="LuCI.form.FlagValue#ucisection"><a href="LuCI.form.FlagValue.html#ucisection">ucisection</a></li>
786 <li data-name="LuCI.form.FlagValue#validate"><a href="LuCI.form.FlagValue.html#validate">validate</a></li>
788 <li data-name="LuCI.form.FlagValue#width"><a href="LuCI.form.FlagValue.html#width">width</a></li>
791 <ul class="typedefs itemMembers">
794 <ul class="typedefs itemMembers">
797 <ul class="methods itemMembers">
799 <span class="subtitle">Methods</span>
801 <li data-name="LuCI.form.FlagValue#append"><a href="LuCI.form.FlagValue.html#append">append</a></li>
803 <li data-name="LuCI.form.FlagValue#cbid"><a href="LuCI.form.FlagValue.html#cbid">cbid</a></li>
805 <li data-name="LuCI.form.FlagValue#cfgvalue"><a href="LuCI.form.FlagValue.html#cfgvalue">cfgvalue</a></li>
807 <li data-name="LuCI.form.FlagValue#depends"><a href="LuCI.form.FlagValue.html#depends">depends</a></li>
809 <li data-name="LuCI.form.FlagValue#formvalue"><a href="LuCI.form.FlagValue.html#formvalue">formvalue</a></li>
811 <li data-name="LuCI.form.FlagValue#getUIElement"><a href="LuCI.form.FlagValue.html#getUIElement">getUIElement</a></li>
813 <li data-name="LuCI.form.FlagValue#isActive"><a href="LuCI.form.FlagValue.html#isActive">isActive</a></li>
815 <li data-name="LuCI.form.FlagValue#isValid"><a href="LuCI.form.FlagValue.html#isValid">isValid</a></li>
817 <li data-name="LuCI.form.FlagValue#load"><a href="LuCI.form.FlagValue.html#load">load</a></li>
819 <li data-name="LuCI.form.FlagValue#parse"><a href="LuCI.form.FlagValue.html#parse">parse</a></li>
821 <li data-name="LuCI.form.FlagValue#remove"><a href="LuCI.form.FlagValue.html#remove">remove</a></li>
823 <li data-name="LuCI.form.FlagValue#stripTags"><a href="LuCI.form.FlagValue.html#stripTags">stripTags</a></li>
825 <li data-name="LuCI.form.FlagValue#textvalue"><a href="LuCI.form.FlagValue.html#textvalue">textvalue</a></li>
827 <li data-name="LuCI.form.FlagValue#titleFn"><a href="LuCI.form.FlagValue.html#titleFn">titleFn</a></li>
829 <li data-name="LuCI.form.FlagValue#value"><a href="LuCI.form.FlagValue.html#value">value</a></li>
831 <li data-name="LuCI.form.FlagValue#write"><a href="LuCI.form.FlagValue.html#write">write</a></li>
834 <ul class="events itemMembers">
839 <li class="item" data-name="LuCI.form.GridSection">
841 <a href="LuCI.form.GridSection.html">LuCI.form.GridSection</a>
844 <ul class="members itemMembers">
846 <span class="subtitle">Members</span>
848 <li data-name="LuCI.form.GridSection#addbtntitle"><a href="LuCI.form.GridSection.html#addbtntitle">addbtntitle</a></li>
850 <li data-name="LuCI.form.GridSection#addremove"><a href="LuCI.form.GridSection.html#addremove">addremove</a></li>
852 <li data-name="LuCI.form.GridSection#anonymous"><a href="LuCI.form.GridSection.html#anonymous">anonymous</a></li>
854 <li data-name="LuCI.form.GridSection#extedit"><a href="LuCI.form.GridSection.html#extedit">extedit</a></li>
856 <li data-name="LuCI.form.GridSection#max_cols"><a href="LuCI.form.GridSection.html#max_cols">max_cols</a></li>
858 <li data-name="LuCI.form.GridSection#modaltitle"><a href="LuCI.form.GridSection.html#modaltitle">modaltitle</a></li>
860 <li data-name="LuCI.form.GridSection#parentoption"><a href="LuCI.form.GridSection.html#parentoption">parentoption</a></li>
862 <li data-name="LuCI.form.GridSection#rowcolors"><a href="LuCI.form.GridSection.html#rowcolors">rowcolors</a></li>
864 <li data-name="LuCI.form.GridSection#sectiontitle"><a href="LuCI.form.GridSection.html#sectiontitle">sectiontitle</a></li>
866 <li data-name="LuCI.form.GridSection#sortable"><a href="LuCI.form.GridSection.html#sortable">sortable</a></li>
868 <li data-name="LuCI.form.GridSection#tabbed"><a href="LuCI.form.GridSection.html#tabbed">tabbed</a></li>
870 <li data-name="LuCI.form.GridSection#uciconfig"><a href="LuCI.form.GridSection.html#uciconfig">uciconfig</a></li>
873 <ul class="typedefs itemMembers">
876 <ul class="typedefs itemMembers">
879 <ul class="methods itemMembers">
881 <span class="subtitle">Methods</span>
883 <li data-name="LuCI.form.GridSection#addModalOptions"><a href="LuCI.form.GridSection.html#addModalOptions">addModalOptions</a></li>
885 <li data-name="LuCI.form.GridSection#append"><a href="LuCI.form.GridSection.html#append">append</a></li>
887 <li data-name="LuCI.form.GridSection#filter"><a href="LuCI.form.GridSection.html#filter">filter</a></li>
889 <li data-name="LuCI.form.GridSection#load"><a href="LuCI.form.GridSection.html#load">load</a></li>
891 <li data-name="LuCI.form.GridSection#option"><a href="LuCI.form.GridSection.html#option">option</a></li>
893 <li data-name="LuCI.form.GridSection#parse"><a href="LuCI.form.GridSection.html#parse">parse</a></li>
895 <li data-name="LuCI.form.GridSection#stripTags"><a href="LuCI.form.GridSection.html#stripTags">stripTags</a></li>
897 <li data-name="LuCI.form.GridSection#tab"><a href="LuCI.form.GridSection.html#tab">tab</a></li>
899 <li data-name="LuCI.form.GridSection#taboption"><a href="LuCI.form.GridSection.html#taboption">taboption</a></li>
901 <li data-name="LuCI.form.GridSection#titleFn"><a href="LuCI.form.GridSection.html#titleFn">titleFn</a></li>
904 <ul class="events itemMembers">
909 <li class="item" data-name="LuCI.form.HiddenValue">
911 <a href="LuCI.form.HiddenValue.html">LuCI.form.HiddenValue</a>
914 <ul class="members itemMembers">
916 <span class="subtitle">Members</span>
918 <li data-name="LuCI.form.HiddenValue#datatype"><a href="LuCI.form.HiddenValue.html#datatype">datatype</a></li>
920 <li data-name="LuCI.form.HiddenValue#default"><a href="LuCI.form.HiddenValue.html#default">default</a></li>
922 <li data-name="LuCI.form.HiddenValue#editable"><a href="LuCI.form.HiddenValue.html#editable">editable</a></li>
924 <li data-name="LuCI.form.HiddenValue#modalonly"><a href="LuCI.form.HiddenValue.html#modalonly">modalonly</a></li>
926 <li data-name="LuCI.form.HiddenValue#optional"><a href="LuCI.form.HiddenValue.html#optional">optional</a></li>
928 <li data-name="LuCI.form.HiddenValue#password"><a href="LuCI.form.HiddenValue.html#password">password</a></li>
930 <li data-name="LuCI.form.HiddenValue#placeholder"><a href="LuCI.form.HiddenValue.html#placeholder">placeholder</a></li>
932 <li data-name="LuCI.form.HiddenValue#rmempty"><a href="LuCI.form.HiddenValue.html#rmempty">rmempty</a></li>
934 <li data-name="LuCI.form.HiddenValue#uciconfig"><a href="LuCI.form.HiddenValue.html#uciconfig">uciconfig</a></li>
936 <li data-name="LuCI.form.HiddenValue#ucioption"><a href="LuCI.form.HiddenValue.html#ucioption">ucioption</a></li>
938 <li data-name="LuCI.form.HiddenValue#ucisection"><a href="LuCI.form.HiddenValue.html#ucisection">ucisection</a></li>
940 <li data-name="LuCI.form.HiddenValue#validate"><a href="LuCI.form.HiddenValue.html#validate">validate</a></li>
942 <li data-name="LuCI.form.HiddenValue#width"><a href="LuCI.form.HiddenValue.html#width">width</a></li>
945 <ul class="typedefs itemMembers">
948 <ul class="typedefs itemMembers">
951 <ul class="methods itemMembers">
953 <span class="subtitle">Methods</span>
955 <li data-name="LuCI.form.HiddenValue#append"><a href="LuCI.form.HiddenValue.html#append">append</a></li>
957 <li data-name="LuCI.form.HiddenValue#cbid"><a href="LuCI.form.HiddenValue.html#cbid">cbid</a></li>
959 <li data-name="LuCI.form.HiddenValue#cfgvalue"><a href="LuCI.form.HiddenValue.html#cfgvalue">cfgvalue</a></li>
961 <li data-name="LuCI.form.HiddenValue#depends"><a href="LuCI.form.HiddenValue.html#depends">depends</a></li>
963 <li data-name="LuCI.form.HiddenValue#formvalue"><a href="LuCI.form.HiddenValue.html#formvalue">formvalue</a></li>
965 <li data-name="LuCI.form.HiddenValue#getUIElement"><a href="LuCI.form.HiddenValue.html#getUIElement">getUIElement</a></li>
967 <li data-name="LuCI.form.HiddenValue#isActive"><a href="LuCI.form.HiddenValue.html#isActive">isActive</a></li>
969 <li data-name="LuCI.form.HiddenValue#isValid"><a href="LuCI.form.HiddenValue.html#isValid">isValid</a></li>
971 <li data-name="LuCI.form.HiddenValue#load"><a href="LuCI.form.HiddenValue.html#load">load</a></li>
973 <li data-name="LuCI.form.HiddenValue#parse"><a href="LuCI.form.HiddenValue.html#parse">parse</a></li>
975 <li data-name="LuCI.form.HiddenValue#remove"><a href="LuCI.form.HiddenValue.html#remove">remove</a></li>
977 <li data-name="LuCI.form.HiddenValue#stripTags"><a href="LuCI.form.HiddenValue.html#stripTags">stripTags</a></li>
979 <li data-name="LuCI.form.HiddenValue#textvalue"><a href="LuCI.form.HiddenValue.html#textvalue">textvalue</a></li>
981 <li data-name="LuCI.form.HiddenValue#titleFn"><a href="LuCI.form.HiddenValue.html#titleFn">titleFn</a></li>
983 <li data-name="LuCI.form.HiddenValue#value"><a href="LuCI.form.HiddenValue.html#value">value</a></li>
985 <li data-name="LuCI.form.HiddenValue#write"><a href="LuCI.form.HiddenValue.html#write">write</a></li>
988 <ul class="events itemMembers">
993 <li class="item" data-name="LuCI.form.JSONMap">
995 <a href="LuCI.form.JSONMap.html">LuCI.form.JSONMap</a>
998 <ul class="members itemMembers">
1001 <ul class="typedefs itemMembers">
1004 <ul class="typedefs itemMembers">
1007 <ul class="methods itemMembers">
1009 <span class="subtitle">Methods</span>
1011 <li data-name="LuCI.form.JSONMap#append"><a href="LuCI.form.JSONMap.html#append">append</a></li>
1013 <li data-name="LuCI.form.JSONMap#chain"><a href="LuCI.form.JSONMap.html#chain">chain</a></li>
1015 <li data-name="LuCI.form.JSONMap#findElement"><a href="LuCI.form.JSONMap.html#findElement">findElement</a></li>
1017 <li data-name="LuCI.form.JSONMap#findElements"><a href="LuCI.form.JSONMap.html#findElements">findElements</a></li>
1019 <li data-name="LuCI.form.JSONMap#load"><a href="LuCI.form.JSONMap.html#load">load</a></li>
1021 <li data-name="LuCI.form.JSONMap#lookupOption"><a href="LuCI.form.JSONMap.html#lookupOption">lookupOption</a></li>
1023 <li data-name="LuCI.form.JSONMap#parse"><a href="LuCI.form.JSONMap.html#parse">parse</a></li>
1025 <li data-name="LuCI.form.JSONMap#render"><a href="LuCI.form.JSONMap.html#render">render</a></li>
1027 <li data-name="LuCI.form.JSONMap#reset"><a href="LuCI.form.JSONMap.html#reset">reset</a></li>
1029 <li data-name="LuCI.form.JSONMap#save"><a href="LuCI.form.JSONMap.html#save">save</a></li>
1031 <li data-name="LuCI.form.JSONMap#section"><a href="LuCI.form.JSONMap.html#section">section</a></li>
1033 <li data-name="LuCI.form.JSONMap#stripTags"><a href="LuCI.form.JSONMap.html#stripTags">stripTags</a></li>
1035 <li data-name="LuCI.form.JSONMap#titleFn"><a href="LuCI.form.JSONMap.html#titleFn">titleFn</a></li>
1038 <ul class="events itemMembers">
1043 <li class="item" data-name="LuCI.form.ListValue">
1044 <span class="title">
1045 <a href="LuCI.form.ListValue.html">LuCI.form.ListValue</a>
1048 <ul class="members itemMembers">
1050 <span class="subtitle">Members</span>
1052 <li data-name="LuCI.form.ListValue##size"><a href="LuCI.form.ListValue.html#size">size</a></li>
1054 <li data-name="LuCI.form.ListValue#datatype"><a href="LuCI.form.ListValue.html#datatype">datatype</a></li>
1056 <li data-name="LuCI.form.ListValue#default"><a href="LuCI.form.ListValue.html#default">default</a></li>
1058 <li data-name="LuCI.form.ListValue#editable"><a href="LuCI.form.ListValue.html#editable">editable</a></li>
1060 <li data-name="LuCI.form.ListValue#modalonly"><a href="LuCI.form.ListValue.html#modalonly">modalonly</a></li>
1062 <li data-name="LuCI.form.ListValue#optional"><a href="LuCI.form.ListValue.html#optional">optional</a></li>
1064 <li data-name="LuCI.form.ListValue#password"><a href="LuCI.form.ListValue.html#password">password</a></li>
1066 <li data-name="LuCI.form.ListValue#placeholder"><a href="LuCI.form.ListValue.html#placeholder">placeholder</a></li>
1068 <li data-name="LuCI.form.ListValue#rmempty"><a href="LuCI.form.ListValue.html#rmempty">rmempty</a></li>
1070 <li data-name="LuCI.form.ListValue#uciconfig"><a href="LuCI.form.ListValue.html#uciconfig">uciconfig</a></li>
1072 <li data-name="LuCI.form.ListValue#ucioption"><a href="LuCI.form.ListValue.html#ucioption">ucioption</a></li>
1074 <li data-name="LuCI.form.ListValue#ucisection"><a href="LuCI.form.ListValue.html#ucisection">ucisection</a></li>
1076 <li data-name="LuCI.form.ListValue#validate"><a href="LuCI.form.ListValue.html#validate">validate</a></li>
1078 <li data-name="LuCI.form.ListValue#width"><a href="LuCI.form.ListValue.html#width">width</a></li>
1081 <ul class="typedefs itemMembers">
1084 <ul class="typedefs itemMembers">
1087 <ul class="methods itemMembers">
1089 <span class="subtitle">Methods</span>
1091 <li data-name="LuCI.form.ListValue#append"><a href="LuCI.form.ListValue.html#append">append</a></li>
1093 <li data-name="LuCI.form.ListValue#cbid"><a href="LuCI.form.ListValue.html#cbid">cbid</a></li>
1095 <li data-name="LuCI.form.ListValue#cfgvalue"><a href="LuCI.form.ListValue.html#cfgvalue">cfgvalue</a></li>
1097 <li data-name="LuCI.form.ListValue#depends"><a href="LuCI.form.ListValue.html#depends">depends</a></li>
1099 <li data-name="LuCI.form.ListValue#formvalue"><a href="LuCI.form.ListValue.html#formvalue">formvalue</a></li>
1101 <li data-name="LuCI.form.ListValue#getUIElement"><a href="LuCI.form.ListValue.html#getUIElement">getUIElement</a></li>
1103 <li data-name="LuCI.form.ListValue#isActive"><a href="LuCI.form.ListValue.html#isActive">isActive</a></li>
1105 <li data-name="LuCI.form.ListValue#isValid"><a href="LuCI.form.ListValue.html#isValid">isValid</a></li>
1107 <li data-name="LuCI.form.ListValue#load"><a href="LuCI.form.ListValue.html#load">load</a></li>
1109 <li data-name="LuCI.form.ListValue#parse"><a href="LuCI.form.ListValue.html#parse">parse</a></li>
1111 <li data-name="LuCI.form.ListValue#remove"><a href="LuCI.form.ListValue.html#remove">remove</a></li>
1113 <li data-name="LuCI.form.ListValue#stripTags"><a href="LuCI.form.ListValue.html#stripTags">stripTags</a></li>
1115 <li data-name="LuCI.form.ListValue#textvalue"><a href="LuCI.form.ListValue.html#textvalue">textvalue</a></li>
1117 <li data-name="LuCI.form.ListValue#titleFn"><a href="LuCI.form.ListValue.html#titleFn">titleFn</a></li>
1119 <li data-name="LuCI.form.ListValue#value"><a href="LuCI.form.ListValue.html#value">value</a></li>
1121 <li data-name="LuCI.form.ListValue#write"><a href="LuCI.form.ListValue.html#write">write</a></li>
1124 <ul class="events itemMembers">
1129 <li class="item" data-name="LuCI.form.Map">
1130 <span class="title">
1131 <a href="LuCI.form.Map.html">LuCI.form.Map</a>
1134 <ul class="members itemMembers">
1137 <ul class="typedefs itemMembers">
1140 <ul class="typedefs itemMembers">
1143 <ul class="methods itemMembers">
1145 <span class="subtitle">Methods</span>
1147 <li data-name="LuCI.form.Map#append"><a href="LuCI.form.Map.html#append">append</a></li>
1149 <li data-name="LuCI.form.Map#chain"><a href="LuCI.form.Map.html#chain">chain</a></li>
1151 <li data-name="LuCI.form.Map#findElement"><a href="LuCI.form.Map.html#findElement">findElement</a></li>
1153 <li data-name="LuCI.form.Map#findElements"><a href="LuCI.form.Map.html#findElements">findElements</a></li>
1155 <li data-name="LuCI.form.Map#load"><a href="LuCI.form.Map.html#load">load</a></li>
1157 <li data-name="LuCI.form.Map#lookupOption"><a href="LuCI.form.Map.html#lookupOption">lookupOption</a></li>
1159 <li data-name="LuCI.form.Map#parse"><a href="LuCI.form.Map.html#parse">parse</a></li>
1161 <li data-name="LuCI.form.Map#render"><a href="LuCI.form.Map.html#render">render</a></li>
1163 <li data-name="LuCI.form.Map#reset"><a href="LuCI.form.Map.html#reset">reset</a></li>
1165 <li data-name="LuCI.form.Map#save"><a href="LuCI.form.Map.html#save">save</a></li>
1167 <li data-name="LuCI.form.Map#section"><a href="LuCI.form.Map.html#section">section</a></li>
1169 <li data-name="LuCI.form.Map#stripTags"><a href="LuCI.form.Map.html#stripTags">stripTags</a></li>
1171 <li data-name="LuCI.form.Map#titleFn"><a href="LuCI.form.Map.html#titleFn">titleFn</a></li>
1174 <ul class="events itemMembers">
1179 <li class="item" data-name="LuCI.form.MultiValue">
1180 <span class="title">
1181 <a href="LuCI.form.MultiValue.html">LuCI.form.MultiValue</a>
1184 <ul class="members itemMembers">
1186 <span class="subtitle">Members</span>
1188 <li data-name="LuCI.form.MultiValue##display_size"><a href="LuCI.form.MultiValue.html#display_size">display_size</a></li>
1190 <li data-name="LuCI.form.MultiValue##dropdown_size"><a href="LuCI.form.MultiValue.html#dropdown_size">dropdown_size</a></li>
1192 <li data-name="LuCI.form.MultiValue#datatype"><a href="LuCI.form.MultiValue.html#datatype">datatype</a></li>
1194 <li data-name="LuCI.form.MultiValue#default"><a href="LuCI.form.MultiValue.html#default">default</a></li>
1196 <li data-name="LuCI.form.MultiValue#editable"><a href="LuCI.form.MultiValue.html#editable">editable</a></li>
1198 <li data-name="LuCI.form.MultiValue#modalonly"><a href="LuCI.form.MultiValue.html#modalonly">modalonly</a></li>
1200 <li data-name="LuCI.form.MultiValue#optional"><a href="LuCI.form.MultiValue.html#optional">optional</a></li>
1202 <li data-name="LuCI.form.MultiValue#password"><a href="LuCI.form.MultiValue.html#password">password</a></li>
1204 <li data-name="LuCI.form.MultiValue#placeholder"><a href="LuCI.form.MultiValue.html#placeholder">placeholder</a></li>
1206 <li data-name="LuCI.form.MultiValue#rmempty"><a href="LuCI.form.MultiValue.html#rmempty">rmempty</a></li>
1208 <li data-name="LuCI.form.MultiValue#uciconfig"><a href="LuCI.form.MultiValue.html#uciconfig">uciconfig</a></li>
1210 <li data-name="LuCI.form.MultiValue#ucioption"><a href="LuCI.form.MultiValue.html#ucioption">ucioption</a></li>
1212 <li data-name="LuCI.form.MultiValue#ucisection"><a href="LuCI.form.MultiValue.html#ucisection">ucisection</a></li>
1214 <li data-name="LuCI.form.MultiValue#validate"><a href="LuCI.form.MultiValue.html#validate">validate</a></li>
1216 <li data-name="LuCI.form.MultiValue#width"><a href="LuCI.form.MultiValue.html#width">width</a></li>
1219 <ul class="typedefs itemMembers">
1222 <ul class="typedefs itemMembers">
1225 <ul class="methods itemMembers">
1227 <span class="subtitle">Methods</span>
1229 <li data-name="LuCI.form.MultiValue#append"><a href="LuCI.form.MultiValue.html#append">append</a></li>
1231 <li data-name="LuCI.form.MultiValue#cbid"><a href="LuCI.form.MultiValue.html#cbid">cbid</a></li>
1233 <li data-name="LuCI.form.MultiValue#cfgvalue"><a href="LuCI.form.MultiValue.html#cfgvalue">cfgvalue</a></li>
1235 <li data-name="LuCI.form.MultiValue#depends"><a href="LuCI.form.MultiValue.html#depends">depends</a></li>
1237 <li data-name="LuCI.form.MultiValue#formvalue"><a href="LuCI.form.MultiValue.html#formvalue">formvalue</a></li>
1239 <li data-name="LuCI.form.MultiValue#getUIElement"><a href="LuCI.form.MultiValue.html#getUIElement">getUIElement</a></li>
1241 <li data-name="LuCI.form.MultiValue#isActive"><a href="LuCI.form.MultiValue.html#isActive">isActive</a></li>
1243 <li data-name="LuCI.form.MultiValue#isValid"><a href="LuCI.form.MultiValue.html#isValid">isValid</a></li>
1245 <li data-name="LuCI.form.MultiValue#load"><a href="LuCI.form.MultiValue.html#load">load</a></li>
1247 <li data-name="LuCI.form.MultiValue#parse"><a href="LuCI.form.MultiValue.html#parse">parse</a></li>
1249 <li data-name="LuCI.form.MultiValue#remove"><a href="LuCI.form.MultiValue.html#remove">remove</a></li>
1251 <li data-name="LuCI.form.MultiValue#stripTags"><a href="LuCI.form.MultiValue.html#stripTags">stripTags</a></li>
1253 <li data-name="LuCI.form.MultiValue#textvalue"><a href="LuCI.form.MultiValue.html#textvalue">textvalue</a></li>
1255 <li data-name="LuCI.form.MultiValue#titleFn"><a href="LuCI.form.MultiValue.html#titleFn">titleFn</a></li>
1257 <li data-name="LuCI.form.MultiValue#value"><a href="LuCI.form.MultiValue.html#value">value</a></li>
1259 <li data-name="LuCI.form.MultiValue#write"><a href="LuCI.form.MultiValue.html#write">write</a></li>
1262 <ul class="events itemMembers">
1267 <li class="item" data-name="LuCI.form.NamedSection">
1268 <span class="title">
1269 <a href="LuCI.form.NamedSection.html">LuCI.form.NamedSection</a>
1272 <ul class="members itemMembers">
1274 <span class="subtitle">Members</span>
1276 <li data-name="LuCI.form.NamedSection##addremove"><a href="LuCI.form.NamedSection.html#addremove">addremove</a></li>
1278 <li data-name="LuCI.form.NamedSection##uciconfig"><a href="LuCI.form.NamedSection.html#uciconfig">uciconfig</a></li>
1280 <li data-name="LuCI.form.NamedSection#parentoption"><a href="LuCI.form.NamedSection.html#parentoption">parentoption</a></li>
1283 <ul class="typedefs itemMembers">
1286 <ul class="typedefs itemMembers">
1289 <ul class="methods itemMembers">
1291 <span class="subtitle">Methods</span>
1293 <li data-name="LuCI.form.NamedSection#append"><a href="LuCI.form.NamedSection.html#append">append</a></li>
1295 <li data-name="LuCI.form.NamedSection#cfgsections"><a href="LuCI.form.NamedSection.html#cfgsections">cfgsections</a></li>
1297 <li data-name="LuCI.form.NamedSection#filter"><a href="LuCI.form.NamedSection.html#filter">filter</a></li>
1299 <li data-name="LuCI.form.NamedSection#load"><a href="LuCI.form.NamedSection.html#load">load</a></li>
1301 <li data-name="LuCI.form.NamedSection#option"><a href="LuCI.form.NamedSection.html#option">option</a></li>
1303 <li data-name="LuCI.form.NamedSection#parse"><a href="LuCI.form.NamedSection.html#parse">parse</a></li>
1305 <li data-name="LuCI.form.NamedSection#render"><a href="LuCI.form.NamedSection.html#render">render</a></li>
1307 <li data-name="LuCI.form.NamedSection#stripTags"><a href="LuCI.form.NamedSection.html#stripTags">stripTags</a></li>
1309 <li data-name="LuCI.form.NamedSection#tab"><a href="LuCI.form.NamedSection.html#tab">tab</a></li>
1311 <li data-name="LuCI.form.NamedSection#taboption"><a href="LuCI.form.NamedSection.html#taboption">taboption</a></li>
1313 <li data-name="LuCI.form.NamedSection#titleFn"><a href="LuCI.form.NamedSection.html#titleFn">titleFn</a></li>
1316 <ul class="events itemMembers">
1321 <li class="item" data-name="LuCI.form.SectionValue">
1322 <span class="title">
1323 <a href="LuCI.form.SectionValue.html">LuCI.form.SectionValue</a>
1326 <ul class="members itemMembers">
1328 <span class="subtitle">Members</span>
1330 <li data-name="LuCI.form.SectionValue##subsection"><a href="LuCI.form.SectionValue.html#subsection">subsection</a></li>
1332 <li data-name="LuCI.form.SectionValue#datatype"><a href="LuCI.form.SectionValue.html#datatype">datatype</a></li>
1334 <li data-name="LuCI.form.SectionValue#default"><a href="LuCI.form.SectionValue.html#default">default</a></li>
1336 <li data-name="LuCI.form.SectionValue#editable"><a href="LuCI.form.SectionValue.html#editable">editable</a></li>
1338 <li data-name="LuCI.form.SectionValue#modalonly"><a href="LuCI.form.SectionValue.html#modalonly">modalonly</a></li>
1340 <li data-name="LuCI.form.SectionValue#optional"><a href="LuCI.form.SectionValue.html#optional">optional</a></li>
1342 <li data-name="LuCI.form.SectionValue#password"><a href="LuCI.form.SectionValue.html#password">password</a></li>
1344 <li data-name="LuCI.form.SectionValue#placeholder"><a href="LuCI.form.SectionValue.html#placeholder">placeholder</a></li>
1346 <li data-name="LuCI.form.SectionValue#rmempty"><a href="LuCI.form.SectionValue.html#rmempty">rmempty</a></li>
1348 <li data-name="LuCI.form.SectionValue#uciconfig"><a href="LuCI.form.SectionValue.html#uciconfig">uciconfig</a></li>
1350 <li data-name="LuCI.form.SectionValue#ucioption"><a href="LuCI.form.SectionValue.html#ucioption">ucioption</a></li>
1352 <li data-name="LuCI.form.SectionValue#ucisection"><a href="LuCI.form.SectionValue.html#ucisection">ucisection</a></li>
1354 <li data-name="LuCI.form.SectionValue#validate"><a href="LuCI.form.SectionValue.html#validate">validate</a></li>
1356 <li data-name="LuCI.form.SectionValue#width"><a href="LuCI.form.SectionValue.html#width">width</a></li>
1359 <ul class="typedefs itemMembers">
1362 <ul class="typedefs itemMembers">
1365 <ul class="methods itemMembers">
1367 <span class="subtitle">Methods</span>
1369 <li data-name="LuCI.form.SectionValue#append"><a href="LuCI.form.SectionValue.html#append">append</a></li>
1371 <li data-name="LuCI.form.SectionValue#cbid"><a href="LuCI.form.SectionValue.html#cbid">cbid</a></li>
1373 <li data-name="LuCI.form.SectionValue#cfgvalue"><a href="LuCI.form.SectionValue.html#cfgvalue">cfgvalue</a></li>
1375 <li data-name="LuCI.form.SectionValue#depends"><a href="LuCI.form.SectionValue.html#depends">depends</a></li>
1377 <li data-name="LuCI.form.SectionValue#formvalue"><a href="LuCI.form.SectionValue.html#formvalue">formvalue</a></li>
1379 <li data-name="LuCI.form.SectionValue#getUIElement"><a href="LuCI.form.SectionValue.html#getUIElement">getUIElement</a></li>
1381 <li data-name="LuCI.form.SectionValue#isActive"><a href="LuCI.form.SectionValue.html#isActive">isActive</a></li>
1383 <li data-name="LuCI.form.SectionValue#isValid"><a href="LuCI.form.SectionValue.html#isValid">isValid</a></li>
1385 <li data-name="LuCI.form.SectionValue#load"><a href="LuCI.form.SectionValue.html#load">load</a></li>
1387 <li data-name="LuCI.form.SectionValue#parse"><a href="LuCI.form.SectionValue.html#parse">parse</a></li>
1389 <li data-name="LuCI.form.SectionValue#remove"><a href="LuCI.form.SectionValue.html#remove">remove</a></li>
1391 <li data-name="LuCI.form.SectionValue#stripTags"><a href="LuCI.form.SectionValue.html#stripTags">stripTags</a></li>
1393 <li data-name="LuCI.form.SectionValue#textvalue"><a href="LuCI.form.SectionValue.html#textvalue">textvalue</a></li>
1395 <li data-name="LuCI.form.SectionValue#titleFn"><a href="LuCI.form.SectionValue.html#titleFn">titleFn</a></li>
1397 <li data-name="LuCI.form.SectionValue#value"><a href="LuCI.form.SectionValue.html#value">value</a></li>
1399 <li data-name="LuCI.form.SectionValue#write"><a href="LuCI.form.SectionValue.html#write">write</a></li>
1402 <ul class="events itemMembers">
1407 <li class="item" data-name="LuCI.form.TableSection">
1408 <span class="title">
1409 <a href="LuCI.form.TableSection.html">LuCI.form.TableSection</a>
1412 <ul class="members itemMembers">
1414 <span class="subtitle">Members</span>
1416 <li data-name="LuCI.form.TableSection##addbtntitle"><a href="LuCI.form.TableSection.html#addbtntitle">addbtntitle</a></li>
1418 <li data-name="LuCI.form.TableSection##addremove"><a href="LuCI.form.TableSection.html#addremove">addremove</a></li>
1420 <li data-name="LuCI.form.TableSection##anonymous"><a href="LuCI.form.TableSection.html#anonymous">anonymous</a></li>
1422 <li data-name="LuCI.form.TableSection##extedit"><a href="LuCI.form.TableSection.html#extedit">extedit</a></li>
1424 <li data-name="LuCI.form.TableSection##max_cols"><a href="LuCI.form.TableSection.html#max_cols">max_cols</a></li>
1426 <li data-name="LuCI.form.TableSection##modaltitle"><a href="LuCI.form.TableSection.html#modaltitle">modaltitle</a></li>
1428 <li data-name="LuCI.form.TableSection##rowcolors"><a href="LuCI.form.TableSection.html#rowcolors">rowcolors</a></li>
1430 <li data-name="LuCI.form.TableSection##sectiontitle"><a href="LuCI.form.TableSection.html#sectiontitle">sectiontitle</a></li>
1432 <li data-name="LuCI.form.TableSection##sortable"><a href="LuCI.form.TableSection.html#sortable">sortable</a></li>
1434 <li data-name="LuCI.form.TableSection##uciconfig"><a href="LuCI.form.TableSection.html#uciconfig">uciconfig</a></li>
1436 <li data-name="LuCI.form.TableSection#addbtntitle"><a href="LuCI.form.TableSection.html#addbtntitle">addbtntitle</a></li>
1438 <li data-name="LuCI.form.TableSection#addremove"><a href="LuCI.form.TableSection.html#addremove">addremove</a></li>
1440 <li data-name="LuCI.form.TableSection#anonymous"><a href="LuCI.form.TableSection.html#anonymous">anonymous</a></li>
1442 <li data-name="LuCI.form.TableSection#parentoption"><a href="LuCI.form.TableSection.html#parentoption">parentoption</a></li>
1444 <li data-name="LuCI.form.TableSection#tabbed"><a href="LuCI.form.TableSection.html#tabbed">tabbed</a></li>
1446 <li data-name="LuCI.form.TableSection#uciconfig"><a href="LuCI.form.TableSection.html#uciconfig">uciconfig</a></li>
1449 <ul class="typedefs itemMembers">
1452 <ul class="typedefs itemMembers">
1455 <ul class="methods itemMembers">
1457 <span class="subtitle">Methods</span>
1459 <li data-name="LuCI.form.TableSection#addModalOptions"><a href="LuCI.form.TableSection.html#addModalOptions">addModalOptions</a></li>
1461 <li data-name="LuCI.form.TableSection#append"><a href="LuCI.form.TableSection.html#append">append</a></li>
1463 <li data-name="LuCI.form.TableSection#filter"><a href="LuCI.form.TableSection.html#filter">filter</a></li>
1465 <li data-name="LuCI.form.TableSection#load"><a href="LuCI.form.TableSection.html#load">load</a></li>
1467 <li data-name="LuCI.form.TableSection#option"><a href="LuCI.form.TableSection.html#option">option</a></li>
1469 <li data-name="LuCI.form.TableSection#parse"><a href="LuCI.form.TableSection.html#parse">parse</a></li>
1471 <li data-name="LuCI.form.TableSection#stripTags"><a href="LuCI.form.TableSection.html#stripTags">stripTags</a></li>
1473 <li data-name="LuCI.form.TableSection#tab"><a href="LuCI.form.TableSection.html#tab">tab</a></li>
1475 <li data-name="LuCI.form.TableSection#taboption"><a href="LuCI.form.TableSection.html#taboption">taboption</a></li>
1477 <li data-name="LuCI.form.TableSection#titleFn"><a href="LuCI.form.TableSection.html#titleFn">titleFn</a></li>
1480 <ul class="events itemMembers">
1485 <li class="item" data-name="LuCI.form.TextValue">
1486 <span class="title">
1487 <a href="LuCI.form.TextValue.html">LuCI.form.TextValue</a>
1490 <ul class="members itemMembers">
1492 <span class="subtitle">Members</span>
1494 <li data-name="LuCI.form.TextValue##cols"><a href="LuCI.form.TextValue.html#cols">cols</a></li>
1496 <li data-name="LuCI.form.TextValue##monospace"><a href="LuCI.form.TextValue.html#monospace">monospace</a></li>
1498 <li data-name="LuCI.form.TextValue##rows"><a href="LuCI.form.TextValue.html#rows">rows</a></li>
1500 <li data-name="LuCI.form.TextValue##wrap"><a href="LuCI.form.TextValue.html#wrap">wrap</a></li>
1502 <li data-name="LuCI.form.TextValue#datatype"><a href="LuCI.form.TextValue.html#datatype">datatype</a></li>
1504 <li data-name="LuCI.form.TextValue#default"><a href="LuCI.form.TextValue.html#default">default</a></li>
1506 <li data-name="LuCI.form.TextValue#editable"><a href="LuCI.form.TextValue.html#editable">editable</a></li>
1508 <li data-name="LuCI.form.TextValue#modalonly"><a href="LuCI.form.TextValue.html#modalonly">modalonly</a></li>
1510 <li data-name="LuCI.form.TextValue#optional"><a href="LuCI.form.TextValue.html#optional">optional</a></li>
1512 <li data-name="LuCI.form.TextValue#password"><a href="LuCI.form.TextValue.html#password">password</a></li>
1514 <li data-name="LuCI.form.TextValue#placeholder"><a href="LuCI.form.TextValue.html#placeholder">placeholder</a></li>
1516 <li data-name="LuCI.form.TextValue#rmempty"><a href="LuCI.form.TextValue.html#rmempty">rmempty</a></li>
1518 <li data-name="LuCI.form.TextValue#uciconfig"><a href="LuCI.form.TextValue.html#uciconfig">uciconfig</a></li>
1520 <li data-name="LuCI.form.TextValue#ucioption"><a href="LuCI.form.TextValue.html#ucioption">ucioption</a></li>
1522 <li data-name="LuCI.form.TextValue#ucisection"><a href="LuCI.form.TextValue.html#ucisection">ucisection</a></li>
1524 <li data-name="LuCI.form.TextValue#validate"><a href="LuCI.form.TextValue.html#validate">validate</a></li>
1526 <li data-name="LuCI.form.TextValue#width"><a href="LuCI.form.TextValue.html#width">width</a></li>
1529 <ul class="typedefs itemMembers">
1532 <ul class="typedefs itemMembers">
1535 <ul class="methods itemMembers">
1537 <span class="subtitle">Methods</span>
1539 <li data-name="LuCI.form.TextValue#append"><a href="LuCI.form.TextValue.html#append">append</a></li>
1541 <li data-name="LuCI.form.TextValue#cbid"><a href="LuCI.form.TextValue.html#cbid">cbid</a></li>
1543 <li data-name="LuCI.form.TextValue#cfgvalue"><a href="LuCI.form.TextValue.html#cfgvalue">cfgvalue</a></li>
1545 <li data-name="LuCI.form.TextValue#depends"><a href="LuCI.form.TextValue.html#depends">depends</a></li>
1547 <li data-name="LuCI.form.TextValue#formvalue"><a href="LuCI.form.TextValue.html#formvalue">formvalue</a></li>
1549 <li data-name="LuCI.form.TextValue#getUIElement"><a href="LuCI.form.TextValue.html#getUIElement">getUIElement</a></li>
1551 <li data-name="LuCI.form.TextValue#isActive"><a href="LuCI.form.TextValue.html#isActive">isActive</a></li>
1553 <li data-name="LuCI.form.TextValue#isValid"><a href="LuCI.form.TextValue.html#isValid">isValid</a></li>
1555 <li data-name="LuCI.form.TextValue#load"><a href="LuCI.form.TextValue.html#load">load</a></li>
1557 <li data-name="LuCI.form.TextValue#parse"><a href="LuCI.form.TextValue.html#parse">parse</a></li>
1559 <li data-name="LuCI.form.TextValue#remove"><a href="LuCI.form.TextValue.html#remove">remove</a></li>
1561 <li data-name="LuCI.form.TextValue#stripTags"><a href="LuCI.form.TextValue.html#stripTags">stripTags</a></li>
1563 <li data-name="LuCI.form.TextValue#textvalue"><a href="LuCI.form.TextValue.html#textvalue">textvalue</a></li>
1565 <li data-name="LuCI.form.TextValue#titleFn"><a href="LuCI.form.TextValue.html#titleFn">titleFn</a></li>
1567 <li data-name="LuCI.form.TextValue#write"><a href="LuCI.form.TextValue.html#write">write</a></li>
1570 <ul class="events itemMembers">
1575 <li class="item" data-name="LuCI.form.TypedSection">
1576 <span class="title">
1577 <a href="LuCI.form.TypedSection.html">LuCI.form.TypedSection</a>
1580 <ul class="members itemMembers">
1582 <span class="subtitle">Members</span>
1584 <li data-name="LuCI.form.TypedSection##addbtntitle"><a href="LuCI.form.TypedSection.html#addbtntitle">addbtntitle</a></li>
1586 <li data-name="LuCI.form.TypedSection##addremove"><a href="LuCI.form.TypedSection.html#addremove">addremove</a></li>
1588 <li data-name="LuCI.form.TypedSection##anonymous"><a href="LuCI.form.TypedSection.html#anonymous">anonymous</a></li>
1590 <li data-name="LuCI.form.TypedSection##tabbed"><a href="LuCI.form.TypedSection.html#tabbed">tabbed</a></li>
1592 <li data-name="LuCI.form.TypedSection##uciconfig"><a href="LuCI.form.TypedSection.html#uciconfig">uciconfig</a></li>
1594 <li data-name="LuCI.form.TypedSection#parentoption"><a href="LuCI.form.TypedSection.html#parentoption">parentoption</a></li>
1597 <ul class="typedefs itemMembers">
1600 <ul class="typedefs itemMembers">
1603 <ul class="methods itemMembers">
1605 <span class="subtitle">Methods</span>
1607 <li data-name="LuCI.form.TypedSection#append"><a href="LuCI.form.TypedSection.html#append">append</a></li>
1609 <li data-name="LuCI.form.TypedSection#cfgsections"><a href="LuCI.form.TypedSection.html#cfgsections">cfgsections</a></li>
1611 <li data-name="LuCI.form.TypedSection#filter"><a href="LuCI.form.TypedSection.html#filter">filter</a></li>
1613 <li data-name="LuCI.form.TypedSection#load"><a href="LuCI.form.TypedSection.html#load">load</a></li>
1615 <li data-name="LuCI.form.TypedSection#option"><a href="LuCI.form.TypedSection.html#option">option</a></li>
1617 <li data-name="LuCI.form.TypedSection#parse"><a href="LuCI.form.TypedSection.html#parse">parse</a></li>
1619 <li data-name="LuCI.form.TypedSection#render"><a href="LuCI.form.TypedSection.html#render">render</a></li>
1621 <li data-name="LuCI.form.TypedSection#stripTags"><a href="LuCI.form.TypedSection.html#stripTags">stripTags</a></li>
1623 <li data-name="LuCI.form.TypedSection#tab"><a href="LuCI.form.TypedSection.html#tab">tab</a></li>
1625 <li data-name="LuCI.form.TypedSection#taboption"><a href="LuCI.form.TypedSection.html#taboption">taboption</a></li>
1627 <li data-name="LuCI.form.TypedSection#titleFn"><a href="LuCI.form.TypedSection.html#titleFn">titleFn</a></li>
1630 <ul class="events itemMembers">
1635 <li class="item" data-name="LuCI.form.Value">
1636 <span class="title">
1637 <a href="LuCI.form.Value.html">LuCI.form.Value</a>
1640 <ul class="members itemMembers">
1642 <span class="subtitle">Members</span>
1644 <li data-name="LuCI.form.Value##password"><a href="LuCI.form.Value.html#password">password</a></li>
1646 <li data-name="LuCI.form.Value##placeholder"><a href="LuCI.form.Value.html#placeholder">placeholder</a></li>
1648 <li data-name="LuCI.form.Value#datatype"><a href="LuCI.form.Value.html#datatype">datatype</a></li>
1650 <li data-name="LuCI.form.Value#default"><a href="LuCI.form.Value.html#default">default</a></li>
1652 <li data-name="LuCI.form.Value#editable"><a href="LuCI.form.Value.html#editable">editable</a></li>
1654 <li data-name="LuCI.form.Value#modalonly"><a href="LuCI.form.Value.html#modalonly">modalonly</a></li>
1656 <li data-name="LuCI.form.Value#optional"><a href="LuCI.form.Value.html#optional">optional</a></li>
1658 <li data-name="LuCI.form.Value#rmempty"><a href="LuCI.form.Value.html#rmempty">rmempty</a></li>
1660 <li data-name="LuCI.form.Value#uciconfig"><a href="LuCI.form.Value.html#uciconfig">uciconfig</a></li>
1662 <li data-name="LuCI.form.Value#ucioption"><a href="LuCI.form.Value.html#ucioption">ucioption</a></li>
1664 <li data-name="LuCI.form.Value#ucisection"><a href="LuCI.form.Value.html#ucisection">ucisection</a></li>
1666 <li data-name="LuCI.form.Value#validate"><a href="LuCI.form.Value.html#validate">validate</a></li>
1668 <li data-name="LuCI.form.Value#width"><a href="LuCI.form.Value.html#width">width</a></li>
1671 <ul class="typedefs itemMembers">
1674 <ul class="typedefs itemMembers">
1677 <ul class="methods itemMembers">
1679 <span class="subtitle">Methods</span>
1681 <li data-name="LuCI.form.Value#append"><a href="LuCI.form.Value.html#append">append</a></li>
1683 <li data-name="LuCI.form.Value#cbid"><a href="LuCI.form.Value.html#cbid">cbid</a></li>
1685 <li data-name="LuCI.form.Value#cfgvalue"><a href="LuCI.form.Value.html#cfgvalue">cfgvalue</a></li>
1687 <li data-name="LuCI.form.Value#depends"><a href="LuCI.form.Value.html#depends">depends</a></li>
1689 <li data-name="LuCI.form.Value#formvalue"><a href="LuCI.form.Value.html#formvalue">formvalue</a></li>
1691 <li data-name="LuCI.form.Value#getUIElement"><a href="LuCI.form.Value.html#getUIElement">getUIElement</a></li>
1693 <li data-name="LuCI.form.Value#isActive"><a href="LuCI.form.Value.html#isActive">isActive</a></li>
1695 <li data-name="LuCI.form.Value#isValid"><a href="LuCI.form.Value.html#isValid">isValid</a></li>
1697 <li data-name="LuCI.form.Value#load"><a href="LuCI.form.Value.html#load">load</a></li>
1699 <li data-name="LuCI.form.Value#parse"><a href="LuCI.form.Value.html#parse">parse</a></li>
1701 <li data-name="LuCI.form.Value#remove"><a href="LuCI.form.Value.html#remove">remove</a></li>
1703 <li data-name="LuCI.form.Value#render"><a href="LuCI.form.Value.html#render">render</a></li>
1705 <li data-name="LuCI.form.Value#stripTags"><a href="LuCI.form.Value.html#stripTags">stripTags</a></li>
1707 <li data-name="LuCI.form.Value#textvalue"><a href="LuCI.form.Value.html#textvalue">textvalue</a></li>
1709 <li data-name="LuCI.form.Value#titleFn"><a href="LuCI.form.Value.html#titleFn">titleFn</a></li>
1711 <li data-name="LuCI.form.Value#value"><a href="LuCI.form.Value.html#value">value</a></li>
1713 <li data-name="LuCI.form.Value#write"><a href="LuCI.form.Value.html#write">write</a></li>
1716 <ul class="events itemMembers">
1721 <li class="item" data-name="LuCI.fs">
1722 <span class="title">
1723 <a href="LuCI.fs.html">LuCI.fs</a>
1726 <ul class="members itemMembers">
1729 <ul class="typedefs itemMembers">
1731 <span class="subtitle">Typedefs</span>
1733 <li data-name="LuCI.fs.FileExecResult"><a href="LuCI.fs.html#.FileExecResult">FileExecResult</a></li>
1735 <li data-name="LuCI.fs.FileStatEntry"><a href="LuCI.fs.html#.FileStatEntry">FileStatEntry</a></li>
1738 <ul class="typedefs itemMembers">
1741 <ul class="methods itemMembers">
1743 <span class="subtitle">Methods</span>
1745 <li data-name="LuCI.fs#exec"><a href="LuCI.fs.html#exec">exec</a></li>
1747 <li data-name="LuCI.fs#exec_direct"><a href="LuCI.fs.html#exec_direct">exec_direct</a></li>
1749 <li data-name="LuCI.fs#lines"><a href="LuCI.fs.html#lines">lines</a></li>
1751 <li data-name="LuCI.fs#list"><a href="LuCI.fs.html#list">list</a></li>
1753 <li data-name="LuCI.fs#read"><a href="LuCI.fs.html#read">read</a></li>
1755 <li data-name="LuCI.fs#read_direct"><a href="LuCI.fs.html#read_direct">read_direct</a></li>
1757 <li data-name="LuCI.fs#remove"><a href="LuCI.fs.html#remove">remove</a></li>
1759 <li data-name="LuCI.fs#stat"><a href="LuCI.fs.html#stat">stat</a></li>
1761 <li data-name="LuCI.fs#trimmed"><a href="LuCI.fs.html#trimmed">trimmed</a></li>
1763 <li data-name="LuCI.fs#write"><a href="LuCI.fs.html#write">write</a></li>
1766 <ul class="events itemMembers">
1771 <li class="item" data-name="LuCI.headers">
1772 <span class="title">
1773 <a href="LuCI.headers.html">LuCI.headers</a>
1776 <ul class="members itemMembers">
1779 <ul class="typedefs itemMembers">
1782 <ul class="typedefs itemMembers">
1785 <ul class="methods itemMembers">
1787 <span class="subtitle">Methods</span>
1789 <li data-name="LuCI.headers#get"><a href="LuCI.headers.html#get">get</a></li>
1791 <li data-name="LuCI.headers#has"><a href="LuCI.headers.html#has">has</a></li>
1794 <ul class="events itemMembers">
1799 <li class="item" data-name="LuCI.network">
1800 <span class="title">
1801 <a href="LuCI.network.html">LuCI.network</a>
1804 <ul class="members itemMembers">
1807 <ul class="typedefs itemMembers">
1809 <span class="subtitle">Typedefs</span>
1811 <li data-name="LuCI.network.SwitchTopology"><a href="LuCI.network.html#.SwitchTopology">SwitchTopology</a></li>
1813 <li data-name="LuCI.network.WifiEncryption"><a href="LuCI.network.html#.WifiEncryption">WifiEncryption</a></li>
1815 <li data-name="LuCI.network.WifiPeerEntry"><a href="LuCI.network.html#.WifiPeerEntry">WifiPeerEntry</a></li>
1817 <li data-name="LuCI.network.WifiRateEntry"><a href="LuCI.network.html#.WifiRateEntry">WifiRateEntry</a></li>
1819 <li data-name="LuCI.network.WifiScanResult"><a href="LuCI.network.html#.WifiScanResult">WifiScanResult</a></li>
1822 <ul class="typedefs itemMembers">
1825 <ul class="methods itemMembers">
1827 <span class="subtitle">Methods</span>
1829 <li data-name="LuCI.network#addNetwork"><a href="LuCI.network.html#addNetwork">addNetwork</a></li>
1831 <li data-name="LuCI.network#addWifiNetwork"><a href="LuCI.network.html#addWifiNetwork">addWifiNetwork</a></li>
1833 <li data-name="LuCI.network#deleteNetwork"><a href="LuCI.network.html#deleteNetwork">deleteNetwork</a></li>
1835 <li data-name="LuCI.network#deleteWifiNetwork"><a href="LuCI.network.html#deleteWifiNetwork">deleteWifiNetwork</a></li>
1837 <li data-name="LuCI.network#flushCache"><a href="LuCI.network.html#flushCache">flushCache</a></li>
1839 <li data-name="LuCI.network#formatWifiEncryption"><a href="LuCI.network.html#formatWifiEncryption">formatWifiEncryption</a></li>
1841 <li data-name="LuCI.network#getDevice"><a href="LuCI.network.html#getDevice">getDevice</a></li>
1843 <li data-name="LuCI.network#getDevices"><a href="LuCI.network.html#getDevices">getDevices</a></li>
1845 <li data-name="LuCI.network#getDSLModemType"><a href="LuCI.network.html#getDSLModemType">getDSLModemType</a></li>
1847 <li data-name="LuCI.network#getHostHints"><a href="LuCI.network.html#getHostHints">getHostHints</a></li>
1849 <li data-name="LuCI.network#getIfnameOf"><a href="LuCI.network.html#getIfnameOf">getIfnameOf</a></li>
1851 <li data-name="LuCI.network#getNetwork"><a href="LuCI.network.html#getNetwork">getNetwork</a></li>
1853 <li data-name="LuCI.network#getNetworks"><a href="LuCI.network.html#getNetworks">getNetworks</a></li>
1855 <li data-name="LuCI.network#getProtocol"><a href="LuCI.network.html#getProtocol">getProtocol</a></li>
1857 <li data-name="LuCI.network#getProtocols"><a href="LuCI.network.html#getProtocols">getProtocols</a></li>
1859 <li data-name="LuCI.network#getSwitchTopologies"><a href="LuCI.network.html#getSwitchTopologies">getSwitchTopologies</a></li>
1861 <li data-name="LuCI.network#getWAN6Networks"><a href="LuCI.network.html#getWAN6Networks">getWAN6Networks</a></li>
1863 <li data-name="LuCI.network#getWANNetworks"><a href="LuCI.network.html#getWANNetworks">getWANNetworks</a></li>
1865 <li data-name="LuCI.network#getWifiDevice"><a href="LuCI.network.html#getWifiDevice">getWifiDevice</a></li>
1867 <li data-name="LuCI.network#getWifiDevices"><a href="LuCI.network.html#getWifiDevices">getWifiDevices</a></li>
1869 <li data-name="LuCI.network#getWifiNetwork"><a href="LuCI.network.html#getWifiNetwork">getWifiNetwork</a></li>
1871 <li data-name="LuCI.network#getWifiNetworks"><a href="LuCI.network.html#getWifiNetworks">getWifiNetworks</a></li>
1873 <li data-name="LuCI.network#isIgnoredDevice"><a href="LuCI.network.html#isIgnoredDevice">isIgnoredDevice</a></li>
1875 <li data-name="LuCI.network#maskToPrefix"><a href="LuCI.network.html#maskToPrefix">maskToPrefix</a></li>
1877 <li data-name="LuCI.network#prefixToMask"><a href="LuCI.network.html#prefixToMask">prefixToMask</a></li>
1879 <li data-name="LuCI.network#registerErrorCode"><a href="LuCI.network.html#registerErrorCode">registerErrorCode</a></li>
1881 <li data-name="LuCI.network#registerPatternVirtual"><a href="LuCI.network.html#registerPatternVirtual">registerPatternVirtual</a></li>
1883 <li data-name="LuCI.network#registerProtocol"><a href="LuCI.network.html#registerProtocol">registerProtocol</a></li>
1885 <li data-name="LuCI.network#renameNetwork"><a href="LuCI.network.html#renameNetwork">renameNetwork</a></li>
1888 <ul class="events itemMembers">
1893 <li class="item" data-name="LuCI.network.Device">
1894 <span class="title">
1895 <a href="LuCI.network.Device.html">LuCI.network.Device</a>
1898 <ul class="members itemMembers">
1901 <ul class="typedefs itemMembers">
1904 <ul class="typedefs itemMembers">
1907 <ul class="methods itemMembers">
1909 <span class="subtitle">Methods</span>
1911 <li data-name="LuCI.network.Device#getBridgeID"><a href="LuCI.network.Device.html#getBridgeID">getBridgeID</a></li>
1913 <li data-name="LuCI.network.Device#getBridgeSTP"><a href="LuCI.network.Device.html#getBridgeSTP">getBridgeSTP</a></li>
1915 <li data-name="LuCI.network.Device#getI18n"><a href="LuCI.network.Device.html#getI18n">getI18n</a></li>
1917 <li data-name="LuCI.network.Device#getIP6Addrs"><a href="LuCI.network.Device.html#getIP6Addrs">getIP6Addrs</a></li>
1919 <li data-name="LuCI.network.Device#getIPAddrs"><a href="LuCI.network.Device.html#getIPAddrs">getIPAddrs</a></li>
1921 <li data-name="LuCI.network.Device#getMAC"><a href="LuCI.network.Device.html#getMAC">getMAC</a></li>
1923 <li data-name="LuCI.network.Device#getMTU"><a href="LuCI.network.Device.html#getMTU">getMTU</a></li>
1925 <li data-name="LuCI.network.Device#getName"><a href="LuCI.network.Device.html#getName">getName</a></li>
1927 <li data-name="LuCI.network.Device#getNetwork"><a href="LuCI.network.Device.html#getNetwork">getNetwork</a></li>
1929 <li data-name="LuCI.network.Device#getNetworks"><a href="LuCI.network.Device.html#getNetworks">getNetworks</a></li>
1931 <li data-name="LuCI.network.Device#getPorts"><a href="LuCI.network.Device.html#getPorts">getPorts</a></li>
1933 <li data-name="LuCI.network.Device#getRXBytes"><a href="LuCI.network.Device.html#getRXBytes">getRXBytes</a></li>
1935 <li data-name="LuCI.network.Device#getRXPackets"><a href="LuCI.network.Device.html#getRXPackets">getRXPackets</a></li>
1937 <li data-name="LuCI.network.Device#getShortName"><a href="LuCI.network.Device.html#getShortName">getShortName</a></li>
1939 <li data-name="LuCI.network.Device#getTXBytes"><a href="LuCI.network.Device.html#getTXBytes">getTXBytes</a></li>
1941 <li data-name="LuCI.network.Device#getTXPackets"><a href="LuCI.network.Device.html#getTXPackets">getTXPackets</a></li>
1943 <li data-name="LuCI.network.Device#getType"><a href="LuCI.network.Device.html#getType">getType</a></li>
1945 <li data-name="LuCI.network.Device#getTypeI18n"><a href="LuCI.network.Device.html#getTypeI18n">getTypeI18n</a></li>
1947 <li data-name="LuCI.network.Device#getWifiNetwork"><a href="LuCI.network.Device.html#getWifiNetwork">getWifiNetwork</a></li>
1949 <li data-name="LuCI.network.Device#isBridge"><a href="LuCI.network.Device.html#isBridge">isBridge</a></li>
1951 <li data-name="LuCI.network.Device#isBridgePort"><a href="LuCI.network.Device.html#isBridgePort">isBridgePort</a></li>
1953 <li data-name="LuCI.network.Device#isUp"><a href="LuCI.network.Device.html#isUp">isUp</a></li>
1956 <ul class="events itemMembers">
1961 <li class="item" data-name="LuCI.network.Hosts">
1962 <span class="title">
1963 <a href="LuCI.network.Hosts.html">LuCI.network.Hosts</a>
1966 <ul class="members itemMembers">
1969 <ul class="typedefs itemMembers">
1972 <ul class="typedefs itemMembers">
1975 <ul class="methods itemMembers">
1977 <span class="subtitle">Methods</span>
1979 <li data-name="LuCI.network.Hosts#getHostnameByIP6Addr"><a href="LuCI.network.Hosts.html#getHostnameByIP6Addr">getHostnameByIP6Addr</a></li>
1981 <li data-name="LuCI.network.Hosts#getHostnameByIPAddr"><a href="LuCI.network.Hosts.html#getHostnameByIPAddr">getHostnameByIPAddr</a></li>
1983 <li data-name="LuCI.network.Hosts#getHostnameByMACAddr"><a href="LuCI.network.Hosts.html#getHostnameByMACAddr">getHostnameByMACAddr</a></li>
1985 <li data-name="LuCI.network.Hosts#getIP6AddrByMACAddr"><a href="LuCI.network.Hosts.html#getIP6AddrByMACAddr">getIP6AddrByMACAddr</a></li>
1987 <li data-name="LuCI.network.Hosts#getIPAddrByMACAddr"><a href="LuCI.network.Hosts.html#getIPAddrByMACAddr">getIPAddrByMACAddr</a></li>
1989 <li data-name="LuCI.network.Hosts#getMACAddrByIP6Addr"><a href="LuCI.network.Hosts.html#getMACAddrByIP6Addr">getMACAddrByIP6Addr</a></li>
1991 <li data-name="LuCI.network.Hosts#getMACAddrByIPAddr"><a href="LuCI.network.Hosts.html#getMACAddrByIPAddr">getMACAddrByIPAddr</a></li>
1993 <li data-name="LuCI.network.Hosts#getMACHints"><a href="LuCI.network.Hosts.html#getMACHints">getMACHints</a></li>
1996 <ul class="events itemMembers">
2001 <li class="item" data-name="LuCI.network.Protocol">
2002 <span class="title">
2003 <a href="LuCI.network.Protocol.html">LuCI.network.Protocol</a>
2006 <ul class="members itemMembers">
2009 <ul class="typedefs itemMembers">
2012 <ul class="typedefs itemMembers">
2015 <ul class="methods itemMembers">
2017 <span class="subtitle">Methods</span>
2019 <li data-name="LuCI.network.Protocol#addDevice"><a href="LuCI.network.Protocol.html#addDevice">addDevice</a></li>
2021 <li data-name="LuCI.network.Protocol#containsDevice"><a href="LuCI.network.Protocol.html#containsDevice">containsDevice</a></li>
2023 <li data-name="LuCI.network.Protocol#deleteConfiguration"><a href="LuCI.network.Protocol.html#deleteConfiguration">deleteConfiguration</a></li>
2025 <li data-name="LuCI.network.Protocol#deleteDevice"><a href="LuCI.network.Protocol.html#deleteDevice">deleteDevice</a></li>
2027 <li data-name="LuCI.network.Protocol#get"><a href="LuCI.network.Protocol.html#get">get</a></li>
2029 <li data-name="LuCI.network.Protocol#getDevice"><a href="LuCI.network.Protocol.html#getDevice">getDevice</a></li>
2031 <li data-name="LuCI.network.Protocol#getDevices"><a href="LuCI.network.Protocol.html#getDevices">getDevices</a></li>
2033 <li data-name="LuCI.network.Protocol#getDNS6Addrs"><a href="LuCI.network.Protocol.html#getDNS6Addrs">getDNS6Addrs</a></li>
2035 <li data-name="LuCI.network.Protocol#getDNSAddrs"><a href="LuCI.network.Protocol.html#getDNSAddrs">getDNSAddrs</a></li>
2037 <li data-name="LuCI.network.Protocol#getErrors"><a href="LuCI.network.Protocol.html#getErrors">getErrors</a></li>
2039 <li data-name="LuCI.network.Protocol#getExpiry"><a href="LuCI.network.Protocol.html#getExpiry">getExpiry</a></li>
2041 <li data-name="LuCI.network.Protocol#getGateway6Addr"><a href="LuCI.network.Protocol.html#getGateway6Addr">getGateway6Addr</a></li>
2043 <li data-name="LuCI.network.Protocol#getGatewayAddr"><a href="LuCI.network.Protocol.html#getGatewayAddr">getGatewayAddr</a></li>
2045 <li data-name="LuCI.network.Protocol#getI18n"><a href="LuCI.network.Protocol.html#getI18n">getI18n</a></li>
2047 <li data-name="LuCI.network.Protocol#getIfname"><a href="LuCI.network.Protocol.html#getIfname">getIfname</a></li>
2049 <li data-name="LuCI.network.Protocol#getIP6Addr"><a href="LuCI.network.Protocol.html#getIP6Addr">getIP6Addr</a></li>
2051 <li data-name="LuCI.network.Protocol#getIP6Addrs"><a href="LuCI.network.Protocol.html#getIP6Addrs">getIP6Addrs</a></li>
2053 <li data-name="LuCI.network.Protocol#getIP6Prefix"><a href="LuCI.network.Protocol.html#getIP6Prefix">getIP6Prefix</a></li>
2055 <li data-name="LuCI.network.Protocol#getIPAddr"><a href="LuCI.network.Protocol.html#getIPAddr">getIPAddr</a></li>
2057 <li data-name="LuCI.network.Protocol#getIPAddrs"><a href="LuCI.network.Protocol.html#getIPAddrs">getIPAddrs</a></li>
2059 <li data-name="LuCI.network.Protocol#getL2Device"><a href="LuCI.network.Protocol.html#getL2Device">getL2Device</a></li>
2061 <li data-name="LuCI.network.Protocol#getL3Device"><a href="LuCI.network.Protocol.html#getL3Device">getL3Device</a></li>
2063 <li data-name="LuCI.network.Protocol#getMetric"><a href="LuCI.network.Protocol.html#getMetric">getMetric</a></li>
2065 <li data-name="LuCI.network.Protocol#getName"><a href="LuCI.network.Protocol.html#getName">getName</a></li>
2067 <li data-name="LuCI.network.Protocol#getNetmask"><a href="LuCI.network.Protocol.html#getNetmask">getNetmask</a></li>
2069 <li data-name="LuCI.network.Protocol#getOpkgPackage"><a href="LuCI.network.Protocol.html#getOpkgPackage">getOpkgPackage</a></li>
2071 <li data-name="LuCI.network.Protocol#getProtocol"><a href="LuCI.network.Protocol.html#getProtocol">getProtocol</a></li>
2073 <li data-name="LuCI.network.Protocol#getType"><a href="LuCI.network.Protocol.html#getType">getType</a></li>
2075 <li data-name="LuCI.network.Protocol#getUptime"><a href="LuCI.network.Protocol.html#getUptime">getUptime</a></li>
2077 <li data-name="LuCI.network.Protocol#getZoneName"><a href="LuCI.network.Protocol.html#getZoneName">getZoneName</a></li>
2079 <li data-name="LuCI.network.Protocol#isAlias"><a href="LuCI.network.Protocol.html#isAlias">isAlias</a></li>
2081 <li data-name="LuCI.network.Protocol#isBridge"><a href="LuCI.network.Protocol.html#isBridge">isBridge</a></li>
2083 <li data-name="LuCI.network.Protocol#isCreateable"><a href="LuCI.network.Protocol.html#isCreateable">isCreateable</a></li>
2085 <li data-name="LuCI.network.Protocol#isDynamic"><a href="LuCI.network.Protocol.html#isDynamic">isDynamic</a></li>
2087 <li data-name="LuCI.network.Protocol#isEmpty"><a href="LuCI.network.Protocol.html#isEmpty">isEmpty</a></li>
2089 <li data-name="LuCI.network.Protocol#isFloating"><a href="LuCI.network.Protocol.html#isFloating">isFloating</a></li>
2091 <li data-name="LuCI.network.Protocol#isInstalled"><a href="LuCI.network.Protocol.html#isInstalled">isInstalled</a></li>
2093 <li data-name="LuCI.network.Protocol#isUp"><a href="LuCI.network.Protocol.html#isUp">isUp</a></li>
2095 <li data-name="LuCI.network.Protocol#isVirtual"><a href="LuCI.network.Protocol.html#isVirtual">isVirtual</a></li>
2097 <li data-name="LuCI.network.Protocol#set"><a href="LuCI.network.Protocol.html#set">set</a></li>
2100 <ul class="events itemMembers">
2105 <li class="item" data-name="LuCI.network.WifiDevice">
2106 <span class="title">
2107 <a href="LuCI.network.WifiDevice.html">LuCI.network.WifiDevice</a>
2110 <ul class="members itemMembers">
2113 <ul class="typedefs itemMembers">
2116 <ul class="typedefs itemMembers">
2119 <ul class="methods itemMembers">
2121 <span class="subtitle">Methods</span>
2123 <li data-name="LuCI.network.WifiDevice#addWifiNetwork"><a href="LuCI.network.WifiDevice.html#addWifiNetwork">addWifiNetwork</a></li>
2125 <li data-name="LuCI.network.WifiDevice#deleteWifiNetwork"><a href="LuCI.network.WifiDevice.html#deleteWifiNetwork">deleteWifiNetwork</a></li>
2127 <li data-name="LuCI.network.WifiDevice#get"><a href="LuCI.network.WifiDevice.html#get">get</a></li>
2129 <li data-name="LuCI.network.WifiDevice#getHTModes"><a href="LuCI.network.WifiDevice.html#getHTModes">getHTModes</a></li>
2131 <li data-name="LuCI.network.WifiDevice#getHWModes"><a href="LuCI.network.WifiDevice.html#getHWModes">getHWModes</a></li>
2133 <li data-name="LuCI.network.WifiDevice#getI18n"><a href="LuCI.network.WifiDevice.html#getI18n">getI18n</a></li>
2135 <li data-name="LuCI.network.WifiDevice#getName"><a href="LuCI.network.WifiDevice.html#getName">getName</a></li>
2137 <li data-name="LuCI.network.WifiDevice#getScanList"><a href="LuCI.network.WifiDevice.html#getScanList">getScanList</a></li>
2139 <li data-name="LuCI.network.WifiDevice#getWifiNetwork"><a href="LuCI.network.WifiDevice.html#getWifiNetwork">getWifiNetwork</a></li>
2141 <li data-name="LuCI.network.WifiDevice#getWifiNetworks"><a href="LuCI.network.WifiDevice.html#getWifiNetworks">getWifiNetworks</a></li>
2143 <li data-name="LuCI.network.WifiDevice#isDisabled"><a href="LuCI.network.WifiDevice.html#isDisabled">isDisabled</a></li>
2145 <li data-name="LuCI.network.WifiDevice#isUp"><a href="LuCI.network.WifiDevice.html#isUp">isUp</a></li>
2147 <li data-name="LuCI.network.WifiDevice#set"><a href="LuCI.network.WifiDevice.html#set">set</a></li>
2150 <ul class="events itemMembers">
2155 <li class="item" data-name="LuCI.network.WifiNetwork">
2156 <span class="title">
2157 <a href="LuCI.network.WifiNetwork.html">LuCI.network.WifiNetwork</a>
2160 <ul class="members itemMembers">
2163 <ul class="typedefs itemMembers">
2166 <ul class="typedefs itemMembers">
2169 <ul class="methods itemMembers">
2171 <span class="subtitle">Methods</span>
2173 <li data-name="LuCI.network.WifiNetwork#disconnectClient"><a href="LuCI.network.WifiNetwork.html#disconnectClient">disconnectClient</a></li>
2175 <li data-name="LuCI.network.WifiNetwork#get"><a href="LuCI.network.WifiNetwork.html#get">get</a></li>
2177 <li data-name="LuCI.network.WifiNetwork#getActiveBSSID"><a href="LuCI.network.WifiNetwork.html#getActiveBSSID">getActiveBSSID</a></li>
2179 <li data-name="LuCI.network.WifiNetwork#getActiveEncryption"><a href="LuCI.network.WifiNetwork.html#getActiveEncryption">getActiveEncryption</a></li>
2181 <li data-name="LuCI.network.WifiNetwork#getActiveMode"><a href="LuCI.network.WifiNetwork.html#getActiveMode">getActiveMode</a></li>
2183 <li data-name="LuCI.network.WifiNetwork#getActiveModeI18n"><a href="LuCI.network.WifiNetwork.html#getActiveModeI18n">getActiveModeI18n</a></li>
2185 <li data-name="LuCI.network.WifiNetwork#getActiveSSID"><a href="LuCI.network.WifiNetwork.html#getActiveSSID">getActiveSSID</a></li>
2187 <li data-name="LuCI.network.WifiNetwork#getAssocList"><a href="LuCI.network.WifiNetwork.html#getAssocList">getAssocList</a></li>
2189 <li data-name="LuCI.network.WifiNetwork#getBitRate"><a href="LuCI.network.WifiNetwork.html#getBitRate">getBitRate</a></li>
2191 <li data-name="LuCI.network.WifiNetwork#getBSSID"><a href="LuCI.network.WifiNetwork.html#getBSSID">getBSSID</a></li>
2193 <li data-name="LuCI.network.WifiNetwork#getChannel"><a href="LuCI.network.WifiNetwork.html#getChannel">getChannel</a></li>
2195 <li data-name="LuCI.network.WifiNetwork#getCountryCode"><a href="LuCI.network.WifiNetwork.html#getCountryCode">getCountryCode</a></li>
2197 <li data-name="LuCI.network.WifiNetwork#getDevice"><a href="LuCI.network.WifiNetwork.html#getDevice">getDevice</a></li>
2199 <li data-name="LuCI.network.WifiNetwork#getFrequency"><a href="LuCI.network.WifiNetwork.html#getFrequency">getFrequency</a></li>
2201 <li data-name="LuCI.network.WifiNetwork#getI18n"><a href="LuCI.network.WifiNetwork.html#getI18n">getI18n</a></li>
2203 <li data-name="LuCI.network.WifiNetwork#getID"><a href="LuCI.network.WifiNetwork.html#getID">getID</a></li>
2205 <li data-name="LuCI.network.WifiNetwork#getIfname"><a href="LuCI.network.WifiNetwork.html#getIfname">getIfname</a></li>
2207 <li data-name="LuCI.network.WifiNetwork#getMeshID"><a href="LuCI.network.WifiNetwork.html#getMeshID">getMeshID</a></li>
2209 <li data-name="LuCI.network.WifiNetwork#getMode"><a href="LuCI.network.WifiNetwork.html#getMode">getMode</a></li>
2211 <li data-name="LuCI.network.WifiNetwork#getName"><a href="LuCI.network.WifiNetwork.html#getName">getName</a></li>
2213 <li data-name="LuCI.network.WifiNetwork#getNetwork"><a href="LuCI.network.WifiNetwork.html#getNetwork">getNetwork</a></li>
2215 <li data-name="LuCI.network.WifiNetwork#getNetworkNames"><a href="LuCI.network.WifiNetwork.html#getNetworkNames">getNetworkNames</a></li>
2217 <li data-name="LuCI.network.WifiNetwork#getNetworks"><a href="LuCI.network.WifiNetwork.html#getNetworks">getNetworks</a></li>
2219 <li data-name="LuCI.network.WifiNetwork#getNoise"><a href="LuCI.network.WifiNetwork.html#getNoise">getNoise</a></li>
2221 <li data-name="LuCI.network.WifiNetwork#getShortName"><a href="LuCI.network.WifiNetwork.html#getShortName">getShortName</a></li>
2223 <li data-name="LuCI.network.WifiNetwork#getSignal"><a href="LuCI.network.WifiNetwork.html#getSignal">getSignal</a></li>
2225 <li data-name="LuCI.network.WifiNetwork#getSignalLevel"><a href="LuCI.network.WifiNetwork.html#getSignalLevel">getSignalLevel</a></li>
2227 <li data-name="LuCI.network.WifiNetwork#getSignalPercent"><a href="LuCI.network.WifiNetwork.html#getSignalPercent">getSignalPercent</a></li>
2229 <li data-name="LuCI.network.WifiNetwork#getSSID"><a href="LuCI.network.WifiNetwork.html#getSSID">getSSID</a></li>
2231 <li data-name="LuCI.network.WifiNetwork#getTXPower"><a href="LuCI.network.WifiNetwork.html#getTXPower">getTXPower</a></li>
2233 <li data-name="LuCI.network.WifiNetwork#getTXPowerOffset"><a href="LuCI.network.WifiNetwork.html#getTXPowerOffset">getTXPowerOffset</a></li>
2235 <li data-name="LuCI.network.WifiNetwork#getWifiDevice"><a href="LuCI.network.WifiNetwork.html#getWifiDevice">getWifiDevice</a></li>
2237 <li data-name="LuCI.network.WifiNetwork#getWifiDeviceName"><a href="LuCI.network.WifiNetwork.html#getWifiDeviceName">getWifiDeviceName</a></li>
2239 <li data-name="LuCI.network.WifiNetwork#isClientDisconnectSupported"><a href="LuCI.network.WifiNetwork.html#isClientDisconnectSupported">isClientDisconnectSupported</a></li>
2241 <li data-name="LuCI.network.WifiNetwork#isDisabled"><a href="LuCI.network.WifiNetwork.html#isDisabled">isDisabled</a></li>
2243 <li data-name="LuCI.network.WifiNetwork#isUp"><a href="LuCI.network.WifiNetwork.html#isUp">isUp</a></li>
2245 <li data-name="LuCI.network.WifiNetwork#set"><a href="LuCI.network.WifiNetwork.html#set">set</a></li>
2248 <ul class="events itemMembers">
2253 <li class="item" data-name="LuCI.poll">
2254 <span class="title">
2255 <a href="LuCI.poll.html">LuCI.poll</a>
2258 <ul class="members itemMembers">
2261 <ul class="typedefs itemMembers">
2264 <ul class="typedefs itemMembers">
2267 <ul class="methods itemMembers">
2269 <span class="subtitle">Methods</span>
2271 <li data-name="LuCI.poll#active"><a href="LuCI.poll.html#active">active</a></li>
2273 <li data-name="LuCI.poll#add"><a href="LuCI.poll.html#add">add</a></li>
2275 <li data-name="LuCI.poll#remove"><a href="LuCI.poll.html#remove">remove</a></li>
2277 <li data-name="LuCI.poll#start"><a href="LuCI.poll.html#start">start</a></li>
2279 <li data-name="LuCI.poll#stop"><a href="LuCI.poll.html#stop">stop</a></li>
2282 <ul class="events itemMembers">
2287 <li class="item" data-name="LuCI.request">
2288 <span class="title">
2289 <a href="LuCI.request.html">LuCI.request</a>
2292 <ul class="members itemMembers">
2295 <ul class="typedefs itemMembers">
2297 <span class="subtitle">Typedefs</span>
2299 <li data-name="LuCI.request.interceptorFn"><a href="LuCI.request.html#.interceptorFn">interceptorFn</a></li>
2301 <li data-name="LuCI.request.RequestOptions"><a href="LuCI.request.html#.RequestOptions">RequestOptions</a></li>
2304 <ul class="typedefs itemMembers">
2307 <ul class="methods itemMembers">
2309 <span class="subtitle">Methods</span>
2311 <li data-name="LuCI.request#addInterceptor"><a href="LuCI.request.html#addInterceptor">addInterceptor</a></li>
2313 <li data-name="LuCI.request#expandURL"><a href="LuCI.request.html#expandURL">expandURL</a></li>
2315 <li data-name="LuCI.request#get"><a href="LuCI.request.html#get">get</a></li>
2317 <li data-name="LuCI.request#post"><a href="LuCI.request.html#post">post</a></li>
2319 <li data-name="LuCI.request#removeInterceptor"><a href="LuCI.request.html#removeInterceptor">removeInterceptor</a></li>
2321 <li data-name="LuCI.request#request"><a href="LuCI.request.html#request">request</a></li>
2324 <ul class="events itemMembers">
2329 <li class="item" data-name="LuCI.request.poll">
2330 <span class="title">
2331 <a href="LuCI.request.poll.html">LuCI.request.poll</a>
2334 <ul class="members itemMembers">
2337 <ul class="typedefs itemMembers">
2339 <span class="subtitle">Typedefs</span>
2341 <li data-name="LuCI.request.poll~callbackFn"><a href="LuCI.request.poll.html#~callbackFn">callbackFn</a></li>
2344 <ul class="typedefs itemMembers">
2347 <ul class="methods itemMembers">
2349 <span class="subtitle">Methods</span>
2351 <li data-name="LuCI.request.poll#active"><a href="LuCI.request.poll.html#active">active</a></li>
2353 <li data-name="LuCI.request.poll#add"><a href="LuCI.request.poll.html#add">add</a></li>
2355 <li data-name="LuCI.request.poll#remove"><a href="LuCI.request.poll.html#remove">remove</a></li>
2357 <li data-name="LuCI.request.poll#start"><a href="LuCI.request.poll.html#start">start</a></li>
2359 <li data-name="LuCI.request.poll#stop"><a href="LuCI.request.poll.html#stop">stop</a></li>
2362 <ul class="events itemMembers">
2367 <li class="item" data-name="LuCI.response">
2368 <span class="title">
2369 <a href="LuCI.response.html">LuCI.response</a>
2372 <ul class="members itemMembers">
2374 <span class="subtitle">Members</span>
2376 <li data-name="LuCI.response#duration"><a href="LuCI.response.html#duration">duration</a></li>
2378 <li data-name="LuCI.response#headers"><a href="LuCI.response.html#headers">headers</a></li>
2380 <li data-name="LuCI.response#ok"><a href="LuCI.response.html#ok">ok</a></li>
2382 <li data-name="LuCI.response#status"><a href="LuCI.response.html#status">status</a></li>
2384 <li data-name="LuCI.response#statusText"><a href="LuCI.response.html#statusText">statusText</a></li>
2386 <li data-name="LuCI.response#url"><a href="LuCI.response.html#url">url</a></li>
2389 <ul class="typedefs itemMembers">
2392 <ul class="typedefs itemMembers">
2395 <ul class="methods itemMembers">
2397 <span class="subtitle">Methods</span>
2399 <li data-name="LuCI.response#blob"><a href="LuCI.response.html#blob">blob</a></li>
2401 <li data-name="LuCI.response#clone"><a href="LuCI.response.html#clone">clone</a></li>
2403 <li data-name="LuCI.response#json"><a href="LuCI.response.html#json">json</a></li>
2405 <li data-name="LuCI.response#text"><a href="LuCI.response.html#text">text</a></li>
2408 <ul class="events itemMembers">
2413 <li class="item" data-name="LuCI.rpc">
2414 <span class="title">
2415 <a href="LuCI.rpc.html">LuCI.rpc</a>
2418 <ul class="members itemMembers">
2421 <ul class="typedefs itemMembers">
2423 <span class="subtitle">Typedefs</span>
2425 <li data-name="LuCI.rpc.DeclareOptions"><a href="LuCI.rpc.html#.DeclareOptions">DeclareOptions</a></li>
2427 <li data-name="LuCI.rpc~filterFn"><a href="LuCI.rpc.html#~filterFn">filterFn</a></li>
2429 <li data-name="LuCI.rpc~interceptorFn"><a href="LuCI.rpc.html#~interceptorFn">interceptorFn</a></li>
2431 <li data-name="LuCI.rpc~invokeFn"><a href="LuCI.rpc.html#~invokeFn">invokeFn</a></li>
2434 <ul class="typedefs itemMembers">
2437 <ul class="methods itemMembers">
2439 <span class="subtitle">Methods</span>
2441 <li data-name="LuCI.rpc#addInterceptor"><a href="LuCI.rpc.html#addInterceptor">addInterceptor</a></li>
2443 <li data-name="LuCI.rpc#declare"><a href="LuCI.rpc.html#declare">declare</a></li>
2445 <li data-name="LuCI.rpc#getBaseURL"><a href="LuCI.rpc.html#getBaseURL">getBaseURL</a></li>
2447 <li data-name="LuCI.rpc#getSessionID"><a href="LuCI.rpc.html#getSessionID">getSessionID</a></li>
2449 <li data-name="LuCI.rpc#getStatusText"><a href="LuCI.rpc.html#getStatusText">getStatusText</a></li>
2451 <li data-name="LuCI.rpc#list"><a href="LuCI.rpc.html#list">list</a></li>
2453 <li data-name="LuCI.rpc#removeInterceptor"><a href="LuCI.rpc.html#removeInterceptor">removeInterceptor</a></li>
2455 <li data-name="LuCI.rpc#setBaseURL"><a href="LuCI.rpc.html#setBaseURL">setBaseURL</a></li>
2457 <li data-name="LuCI.rpc#setSessionID"><a href="LuCI.rpc.html#setSessionID">setSessionID</a></li>
2460 <ul class="events itemMembers">
2465 <li class="item" data-name="LuCI.uci">
2466 <span class="title">
2467 <a href="LuCI.uci.html">LuCI.uci</a>
2470 <ul class="members itemMembers">
2473 <ul class="typedefs itemMembers">
2475 <span class="subtitle">Typedefs</span>
2477 <li data-name="LuCI.uci.ChangeRecord"><a href="LuCI.uci.html#.ChangeRecord">ChangeRecord</a></li>
2479 <li data-name="LuCI.uci.SectionObject"><a href="LuCI.uci.html#.SectionObject">SectionObject</a></li>
2481 <li data-name="LuCI.uci~sectionsFn"><a href="LuCI.uci.html#~sectionsFn">sectionsFn</a></li>
2484 <ul class="typedefs itemMembers">
2487 <ul class="methods itemMembers">
2489 <span class="subtitle">Methods</span>
2491 <li data-name="LuCI.uci#add"><a href="LuCI.uci.html#add">add</a></li>
2493 <li data-name="LuCI.uci#apply"><a href="LuCI.uci.html#apply">apply</a></li>
2495 <li data-name="LuCI.uci#changes"><a href="LuCI.uci.html#changes">changes</a></li>
2497 <li data-name="LuCI.uci#createSID"><a href="LuCI.uci.html#createSID">createSID</a></li>
2499 <li data-name="LuCI.uci#get"><a href="LuCI.uci.html#get">get</a></li>
2501 <li data-name="LuCI.uci#get_first"><a href="LuCI.uci.html#get_first">get_first</a></li>
2503 <li data-name="LuCI.uci#load"><a href="LuCI.uci.html#load">load</a></li>
2505 <li data-name="LuCI.uci#move"><a href="LuCI.uci.html#move">move</a></li>
2507 <li data-name="LuCI.uci#remove"><a href="LuCI.uci.html#remove">remove</a></li>
2509 <li data-name="LuCI.uci#resolveSID"><a href="LuCI.uci.html#resolveSID">resolveSID</a></li>
2511 <li data-name="LuCI.uci#save"><a href="LuCI.uci.html#save">save</a></li>
2513 <li data-name="LuCI.uci#sections"><a href="LuCI.uci.html#sections">sections</a></li>
2515 <li data-name="LuCI.uci#set"><a href="LuCI.uci.html#set">set</a></li>
2517 <li data-name="LuCI.uci#set_first"><a href="LuCI.uci.html#set_first">set_first</a></li>
2519 <li data-name="LuCI.uci#unload"><a href="LuCI.uci.html#unload">unload</a></li>
2521 <li data-name="LuCI.uci#unset"><a href="LuCI.uci.html#unset">unset</a></li>
2523 <li data-name="LuCI.uci#unset_first"><a href="LuCI.uci.html#unset_first">unset_first</a></li>
2526 <ul class="events itemMembers">
2531 <li class="item" data-name="LuCI.ui">
2532 <span class="title">
2533 <a href="LuCI.ui.html">LuCI.ui</a>
2536 <ul class="members itemMembers">
2539 <ul class="typedefs itemMembers">
2541 <span class="subtitle">Typedefs</span>
2543 <li data-name="LuCI.ui.FileUploadReply"><a href="LuCI.ui.html#.FileUploadReply">FileUploadReply</a></li>
2546 <ul class="typedefs itemMembers">
2549 <ul class="methods itemMembers">
2551 <span class="subtitle">Methods</span>
2553 <li data-name="LuCI.ui#addNotification"><a href="LuCI.ui.html#addNotification">addNotification</a></li>
2555 <li data-name="LuCI.ui#addValidator"><a href="LuCI.ui.html#addValidator">addValidator</a></li>
2557 <li data-name="LuCI.ui#awaitReconnect"><a href="LuCI.ui.html#awaitReconnect">awaitReconnect</a></li>
2559 <li data-name="LuCI.ui#createHandlerFn"><a href="LuCI.ui.html#createHandlerFn">createHandlerFn</a></li>
2561 <li data-name="LuCI.ui#hideIndicator"><a href="LuCI.ui.html#hideIndicator">hideIndicator</a></li>
2563 <li data-name="LuCI.ui#hideModal"><a href="LuCI.ui.html#hideModal">hideModal</a></li>
2565 <li data-name="LuCI.ui#instantiateView"><a href="LuCI.ui.html#instantiateView">instantiateView</a></li>
2567 <li data-name="LuCI.ui#itemlist"><a href="LuCI.ui.html#itemlist">itemlist</a></li>
2569 <li data-name="LuCI.ui#pingDevice"><a href="LuCI.ui.html#pingDevice">pingDevice</a></li>
2571 <li data-name="LuCI.ui#showIndicator"><a href="LuCI.ui.html#showIndicator">showIndicator</a></li>
2573 <li data-name="LuCI.ui#showModal"><a href="LuCI.ui.html#showModal">showModal</a></li>
2575 <li data-name="LuCI.ui#uploadFile"><a href="LuCI.ui.html#uploadFile">uploadFile</a></li>
2578 <ul class="events itemMembers">
2583 <li class="item" data-name="LuCI.ui.AbstractElement">
2584 <span class="title">
2585 <a href="LuCI.ui.AbstractElement.html">LuCI.ui.AbstractElement</a>
2588 <ul class="members itemMembers">
2591 <ul class="typedefs itemMembers">
2593 <span class="subtitle">Typedefs</span>
2595 <li data-name="LuCI.ui.AbstractElement.InitOptions"><a href="LuCI.ui.AbstractElement.html#.InitOptions">InitOptions</a></li>
2598 <ul class="typedefs itemMembers">
2601 <ul class="methods itemMembers">
2603 <span class="subtitle">Methods</span>
2605 <li data-name="LuCI.ui.AbstractElement#getValue"><a href="LuCI.ui.AbstractElement.html#getValue">getValue</a></li>
2607 <li data-name="LuCI.ui.AbstractElement#isValid"><a href="LuCI.ui.AbstractElement.html#isValid">isValid</a></li>
2609 <li data-name="LuCI.ui.AbstractElement#registerEvents"><a href="LuCI.ui.AbstractElement.html#registerEvents">registerEvents</a></li>
2611 <li data-name="LuCI.ui.AbstractElement#render"><a href="LuCI.ui.AbstractElement.html#render">render</a></li>
2613 <li data-name="LuCI.ui.AbstractElement#setChangeEvents"><a href="LuCI.ui.AbstractElement.html#setChangeEvents">setChangeEvents</a></li>
2615 <li data-name="LuCI.ui.AbstractElement#setUpdateEvents"><a href="LuCI.ui.AbstractElement.html#setUpdateEvents">setUpdateEvents</a></li>
2617 <li data-name="LuCI.ui.AbstractElement#setValue"><a href="LuCI.ui.AbstractElement.html#setValue">setValue</a></li>
2619 <li data-name="LuCI.ui.AbstractElement#triggerValidation"><a href="LuCI.ui.AbstractElement.html#triggerValidation">triggerValidation</a></li>
2622 <ul class="events itemMembers">
2627 <li class="item" data-name="LuCI.ui.changes">
2628 <span class="title">
2629 <a href="LuCI.ui.changes.html">LuCI.ui.changes</a>
2632 <ul class="members itemMembers">
2635 <ul class="typedefs itemMembers">
2638 <ul class="typedefs itemMembers">
2641 <ul class="methods itemMembers">
2643 <span class="subtitle">Methods</span>
2645 <li data-name="LuCI.ui.changes#apply"><a href="LuCI.ui.changes.html#apply">apply</a></li>
2647 <li data-name="LuCI.ui.changes#displayChanges"><a href="LuCI.ui.changes.html#displayChanges">displayChanges</a></li>
2649 <li data-name="LuCI.ui.changes#renderChangeIndicator"><a href="LuCI.ui.changes.html#renderChangeIndicator">renderChangeIndicator</a></li>
2651 <li data-name="LuCI.ui.changes#revert"><a href="LuCI.ui.changes.html#revert">revert</a></li>
2653 <li data-name="LuCI.ui.changes#setIndicator"><a href="LuCI.ui.changes.html#setIndicator">setIndicator</a></li>
2656 <ul class="events itemMembers">
2661 <li class="item" data-name="LuCI.ui.Checkbox">
2662 <span class="title">
2663 <a href="LuCI.ui.Checkbox.html">LuCI.ui.Checkbox</a>
2666 <ul class="members itemMembers">
2669 <ul class="typedefs itemMembers">
2671 <span class="subtitle">Typedefs</span>
2673 <li data-name="LuCI.ui.Checkbox.InitOptions"><a href="LuCI.ui.Checkbox.html#.InitOptions">InitOptions</a></li>
2676 <ul class="typedefs itemMembers">
2679 <ul class="methods itemMembers">
2681 <span class="subtitle">Methods</span>
2683 <li data-name="LuCI.ui.Checkbox#getValue"><a href="LuCI.ui.Checkbox.html#getValue">getValue</a></li>
2685 <li data-name="LuCI.ui.Checkbox#isChecked"><a href="LuCI.ui.Checkbox.html#isChecked">isChecked</a></li>
2687 <li data-name="LuCI.ui.Checkbox#isValid"><a href="LuCI.ui.Checkbox.html#isValid">isValid</a></li>
2689 <li data-name="LuCI.ui.Checkbox#registerEvents"><a href="LuCI.ui.Checkbox.html#registerEvents">registerEvents</a></li>
2691 <li data-name="LuCI.ui.Checkbox#render"><a href="LuCI.ui.Checkbox.html#render">render</a></li>
2693 <li data-name="LuCI.ui.Checkbox#setChangeEvents"><a href="LuCI.ui.Checkbox.html#setChangeEvents">setChangeEvents</a></li>
2695 <li data-name="LuCI.ui.Checkbox#setUpdateEvents"><a href="LuCI.ui.Checkbox.html#setUpdateEvents">setUpdateEvents</a></li>
2697 <li data-name="LuCI.ui.Checkbox#setValue"><a href="LuCI.ui.Checkbox.html#setValue">setValue</a></li>
2699 <li data-name="LuCI.ui.Checkbox#triggerValidation"><a href="LuCI.ui.Checkbox.html#triggerValidation">triggerValidation</a></li>
2702 <ul class="events itemMembers">
2707 <li class="item" data-name="LuCI.ui.Combobox">
2708 <span class="title">
2709 <a href="LuCI.ui.Combobox.html">LuCI.ui.Combobox</a>
2712 <ul class="members itemMembers">
2715 <ul class="typedefs itemMembers">
2717 <span class="subtitle">Typedefs</span>
2719 <li data-name="LuCI.ui.Combobox.InitOptions"><a href="LuCI.ui.Combobox.html#.InitOptions">InitOptions</a></li>
2722 <ul class="typedefs itemMembers">
2725 <ul class="methods itemMembers">
2727 <span class="subtitle">Methods</span>
2729 <li data-name="LuCI.ui.Combobox#addChoices"><a href="LuCI.ui.Combobox.html#addChoices">addChoices</a></li>
2731 <li data-name="LuCI.ui.Combobox#clearChoices"><a href="LuCI.ui.Combobox.html#clearChoices">clearChoices</a></li>
2733 <li data-name="LuCI.ui.Combobox#closeAllDropdowns"><a href="LuCI.ui.Combobox.html#closeAllDropdowns">closeAllDropdowns</a></li>
2735 <li data-name="LuCI.ui.Combobox#isValid"><a href="LuCI.ui.Combobox.html#isValid">isValid</a></li>
2737 <li data-name="LuCI.ui.Combobox#registerEvents"><a href="LuCI.ui.Combobox.html#registerEvents">registerEvents</a></li>
2739 <li data-name="LuCI.ui.Combobox#setChangeEvents"><a href="LuCI.ui.Combobox.html#setChangeEvents">setChangeEvents</a></li>
2741 <li data-name="LuCI.ui.Combobox#setUpdateEvents"><a href="LuCI.ui.Combobox.html#setUpdateEvents">setUpdateEvents</a></li>
2743 <li data-name="LuCI.ui.Combobox#triggerValidation"><a href="LuCI.ui.Combobox.html#triggerValidation">triggerValidation</a></li>
2746 <ul class="events itemMembers">
2751 <li class="item" data-name="LuCI.ui.ComboButton">
2752 <span class="title">
2753 <a href="LuCI.ui.ComboButton.html">LuCI.ui.ComboButton</a>
2756 <ul class="members itemMembers">
2759 <ul class="typedefs itemMembers">
2761 <span class="subtitle">Typedefs</span>
2763 <li data-name="LuCI.ui.ComboButton.InitOptions"><a href="LuCI.ui.ComboButton.html#.InitOptions">InitOptions</a></li>
2766 <ul class="typedefs itemMembers">
2769 <ul class="methods itemMembers">
2771 <span class="subtitle">Methods</span>
2773 <li data-name="LuCI.ui.ComboButton#addChoices"><a href="LuCI.ui.ComboButton.html#addChoices">addChoices</a></li>
2775 <li data-name="LuCI.ui.ComboButton#clearChoices"><a href="LuCI.ui.ComboButton.html#clearChoices">clearChoices</a></li>
2777 <li data-name="LuCI.ui.ComboButton#closeAllDropdowns"><a href="LuCI.ui.ComboButton.html#closeAllDropdowns">closeAllDropdowns</a></li>
2779 <li data-name="LuCI.ui.ComboButton#isValid"><a href="LuCI.ui.ComboButton.html#isValid">isValid</a></li>
2781 <li data-name="LuCI.ui.ComboButton#registerEvents"><a href="LuCI.ui.ComboButton.html#registerEvents">registerEvents</a></li>
2783 <li data-name="LuCI.ui.ComboButton#setChangeEvents"><a href="LuCI.ui.ComboButton.html#setChangeEvents">setChangeEvents</a></li>
2785 <li data-name="LuCI.ui.ComboButton#setUpdateEvents"><a href="LuCI.ui.ComboButton.html#setUpdateEvents">setUpdateEvents</a></li>
2787 <li data-name="LuCI.ui.ComboButton#triggerValidation"><a href="LuCI.ui.ComboButton.html#triggerValidation">triggerValidation</a></li>
2790 <ul class="events itemMembers">
2795 <li class="item" data-name="LuCI.ui.Dropdown">
2796 <span class="title">
2797 <a href="LuCI.ui.Dropdown.html">LuCI.ui.Dropdown</a>
2800 <ul class="members itemMembers">
2803 <ul class="typedefs itemMembers">
2805 <span class="subtitle">Typedefs</span>
2807 <li data-name="LuCI.ui.Dropdown.InitOptions"><a href="LuCI.ui.Dropdown.html#.InitOptions">InitOptions</a></li>
2810 <ul class="typedefs itemMembers">
2813 <ul class="methods itemMembers">
2815 <span class="subtitle">Methods</span>
2817 <li data-name="LuCI.ui.Dropdown#addChoices"><a href="LuCI.ui.Dropdown.html#addChoices">addChoices</a></li>
2819 <li data-name="LuCI.ui.Dropdown#clearChoices"><a href="LuCI.ui.Dropdown.html#clearChoices">clearChoices</a></li>
2821 <li data-name="LuCI.ui.Dropdown#closeAllDropdowns"><a href="LuCI.ui.Dropdown.html#closeAllDropdowns">closeAllDropdowns</a></li>
2823 <li data-name="LuCI.ui.Dropdown#getValue"><a href="LuCI.ui.Dropdown.html#getValue">getValue</a></li>
2825 <li data-name="LuCI.ui.Dropdown#isValid"><a href="LuCI.ui.Dropdown.html#isValid">isValid</a></li>
2827 <li data-name="LuCI.ui.Dropdown#registerEvents"><a href="LuCI.ui.Dropdown.html#registerEvents">registerEvents</a></li>
2829 <li data-name="LuCI.ui.Dropdown#render"><a href="LuCI.ui.Dropdown.html#render">render</a></li>
2831 <li data-name="LuCI.ui.Dropdown#setChangeEvents"><a href="LuCI.ui.Dropdown.html#setChangeEvents">setChangeEvents</a></li>
2833 <li data-name="LuCI.ui.Dropdown#setUpdateEvents"><a href="LuCI.ui.Dropdown.html#setUpdateEvents">setUpdateEvents</a></li>
2835 <li data-name="LuCI.ui.Dropdown#setValue"><a href="LuCI.ui.Dropdown.html#setValue">setValue</a></li>
2837 <li data-name="LuCI.ui.Dropdown#triggerValidation"><a href="LuCI.ui.Dropdown.html#triggerValidation">triggerValidation</a></li>
2840 <ul class="events itemMembers">
2845 <li class="item" data-name="LuCI.ui.DynamicList">
2846 <span class="title">
2847 <a href="LuCI.ui.DynamicList.html">LuCI.ui.DynamicList</a>
2850 <ul class="members itemMembers">
2853 <ul class="typedefs itemMembers">
2855 <span class="subtitle">Typedefs</span>
2857 <li data-name="LuCI.ui.DynamicList.InitOptions"><a href="LuCI.ui.DynamicList.html#.InitOptions">InitOptions</a></li>
2860 <ul class="typedefs itemMembers">
2863 <ul class="methods itemMembers">
2865 <span class="subtitle">Methods</span>
2867 <li data-name="LuCI.ui.DynamicList#addChoices"><a href="LuCI.ui.DynamicList.html#addChoices">addChoices</a></li>
2869 <li data-name="LuCI.ui.DynamicList#clearChoices"><a href="LuCI.ui.DynamicList.html#clearChoices">clearChoices</a></li>
2871 <li data-name="LuCI.ui.DynamicList#getValue"><a href="LuCI.ui.DynamicList.html#getValue">getValue</a></li>
2873 <li data-name="LuCI.ui.DynamicList#isValid"><a href="LuCI.ui.DynamicList.html#isValid">isValid</a></li>
2875 <li data-name="LuCI.ui.DynamicList#registerEvents"><a href="LuCI.ui.DynamicList.html#registerEvents">registerEvents</a></li>
2877 <li data-name="LuCI.ui.DynamicList#render"><a href="LuCI.ui.DynamicList.html#render">render</a></li>
2879 <li data-name="LuCI.ui.DynamicList#setChangeEvents"><a href="LuCI.ui.DynamicList.html#setChangeEvents">setChangeEvents</a></li>
2881 <li data-name="LuCI.ui.DynamicList#setUpdateEvents"><a href="LuCI.ui.DynamicList.html#setUpdateEvents">setUpdateEvents</a></li>
2883 <li data-name="LuCI.ui.DynamicList#setValue"><a href="LuCI.ui.DynamicList.html#setValue">setValue</a></li>
2885 <li data-name="LuCI.ui.DynamicList#triggerValidation"><a href="LuCI.ui.DynamicList.html#triggerValidation">triggerValidation</a></li>
2888 <ul class="events itemMembers">
2893 <li class="item" data-name="LuCI.ui.FileUpload">
2894 <span class="title">
2895 <a href="LuCI.ui.FileUpload.html">LuCI.ui.FileUpload</a>
2898 <ul class="members itemMembers">
2901 <ul class="typedefs itemMembers">
2903 <span class="subtitle">Typedefs</span>
2905 <li data-name="LuCI.ui.FileUpload.InitOptions"><a href="LuCI.ui.FileUpload.html#.InitOptions">InitOptions</a></li>
2908 <ul class="typedefs itemMembers">
2911 <ul class="methods itemMembers">
2913 <span class="subtitle">Methods</span>
2915 <li data-name="LuCI.ui.FileUpload#getValue"><a href="LuCI.ui.FileUpload.html#getValue">getValue</a></li>
2917 <li data-name="LuCI.ui.FileUpload#isValid"><a href="LuCI.ui.FileUpload.html#isValid">isValid</a></li>
2919 <li data-name="LuCI.ui.FileUpload#registerEvents"><a href="LuCI.ui.FileUpload.html#registerEvents">registerEvents</a></li>
2921 <li data-name="LuCI.ui.FileUpload#render"><a href="LuCI.ui.FileUpload.html#render">render</a></li>
2923 <li data-name="LuCI.ui.FileUpload#setChangeEvents"><a href="LuCI.ui.FileUpload.html#setChangeEvents">setChangeEvents</a></li>
2925 <li data-name="LuCI.ui.FileUpload#setUpdateEvents"><a href="LuCI.ui.FileUpload.html#setUpdateEvents">setUpdateEvents</a></li>
2927 <li data-name="LuCI.ui.FileUpload#setValue"><a href="LuCI.ui.FileUpload.html#setValue">setValue</a></li>
2929 <li data-name="LuCI.ui.FileUpload#triggerValidation"><a href="LuCI.ui.FileUpload.html#triggerValidation">triggerValidation</a></li>
2932 <ul class="events itemMembers">
2937 <li class="item" data-name="LuCI.ui.Hiddenfield">
2938 <span class="title">
2939 <a href="LuCI.ui.Hiddenfield.html">LuCI.ui.Hiddenfield</a>
2942 <ul class="members itemMembers">
2945 <ul class="typedefs itemMembers">
2948 <ul class="typedefs itemMembers">
2951 <ul class="methods itemMembers">
2953 <span class="subtitle">Methods</span>
2955 <li data-name="LuCI.ui.Hiddenfield#getValue"><a href="LuCI.ui.Hiddenfield.html#getValue">getValue</a></li>
2957 <li data-name="LuCI.ui.Hiddenfield#isValid"><a href="LuCI.ui.Hiddenfield.html#isValid">isValid</a></li>
2959 <li data-name="LuCI.ui.Hiddenfield#registerEvents"><a href="LuCI.ui.Hiddenfield.html#registerEvents">registerEvents</a></li>
2961 <li data-name="LuCI.ui.Hiddenfield#render"><a href="LuCI.ui.Hiddenfield.html#render">render</a></li>
2963 <li data-name="LuCI.ui.Hiddenfield#setChangeEvents"><a href="LuCI.ui.Hiddenfield.html#setChangeEvents">setChangeEvents</a></li>
2965 <li data-name="LuCI.ui.Hiddenfield#setUpdateEvents"><a href="LuCI.ui.Hiddenfield.html#setUpdateEvents">setUpdateEvents</a></li>
2967 <li data-name="LuCI.ui.Hiddenfield#setValue"><a href="LuCI.ui.Hiddenfield.html#setValue">setValue</a></li>
2969 <li data-name="LuCI.ui.Hiddenfield#triggerValidation"><a href="LuCI.ui.Hiddenfield.html#triggerValidation">triggerValidation</a></li>
2972 <ul class="events itemMembers">
2977 <li class="item" data-name="LuCI.ui.Select">
2978 <span class="title">
2979 <a href="LuCI.ui.Select.html">LuCI.ui.Select</a>
2982 <ul class="members itemMembers">
2985 <ul class="typedefs itemMembers">
2987 <span class="subtitle">Typedefs</span>
2989 <li data-name="LuCI.ui.Select.InitOptions"><a href="LuCI.ui.Select.html#.InitOptions">InitOptions</a></li>
2992 <ul class="typedefs itemMembers">
2995 <ul class="methods itemMembers">
2997 <span class="subtitle">Methods</span>
2999 <li data-name="LuCI.ui.Select#getValue"><a href="LuCI.ui.Select.html#getValue">getValue</a></li>
3001 <li data-name="LuCI.ui.Select#isValid"><a href="LuCI.ui.Select.html#isValid">isValid</a></li>
3003 <li data-name="LuCI.ui.Select#registerEvents"><a href="LuCI.ui.Select.html#registerEvents">registerEvents</a></li>
3005 <li data-name="LuCI.ui.Select#render"><a href="LuCI.ui.Select.html#render">render</a></li>
3007 <li data-name="LuCI.ui.Select#setChangeEvents"><a href="LuCI.ui.Select.html#setChangeEvents">setChangeEvents</a></li>
3009 <li data-name="LuCI.ui.Select#setUpdateEvents"><a href="LuCI.ui.Select.html#setUpdateEvents">setUpdateEvents</a></li>
3011 <li data-name="LuCI.ui.Select#setValue"><a href="LuCI.ui.Select.html#setValue">setValue</a></li>
3013 <li data-name="LuCI.ui.Select#triggerValidation"><a href="LuCI.ui.Select.html#triggerValidation">triggerValidation</a></li>
3016 <ul class="events itemMembers">
3021 <li class="item" data-name="LuCI.ui.tabs">
3022 <span class="title">
3023 <a href="LuCI.ui.tabs.html">LuCI.ui.tabs</a>
3026 <ul class="members itemMembers">
3029 <ul class="typedefs itemMembers">
3032 <ul class="typedefs itemMembers">
3035 <ul class="methods itemMembers">
3037 <span class="subtitle">Methods</span>
3039 <li data-name="LuCI.ui.tabs#initTabGroup"><a href="LuCI.ui.tabs.html#initTabGroup">initTabGroup</a></li>
3041 <li data-name="LuCI.ui.tabs#isEmptyPane"><a href="LuCI.ui.tabs.html#isEmptyPane">isEmptyPane</a></li>
3044 <ul class="events itemMembers">
3049 <li class="item" data-name="LuCI.ui.Textarea">
3050 <span class="title">
3051 <a href="LuCI.ui.Textarea.html">LuCI.ui.Textarea</a>
3054 <ul class="members itemMembers">
3057 <ul class="typedefs itemMembers">
3059 <span class="subtitle">Typedefs</span>
3061 <li data-name="LuCI.ui.Textarea.InitOptions"><a href="LuCI.ui.Textarea.html#.InitOptions">InitOptions</a></li>
3064 <ul class="typedefs itemMembers">
3067 <ul class="methods itemMembers">
3069 <span class="subtitle">Methods</span>
3071 <li data-name="LuCI.ui.Textarea#getValue"><a href="LuCI.ui.Textarea.html#getValue">getValue</a></li>
3073 <li data-name="LuCI.ui.Textarea#isValid"><a href="LuCI.ui.Textarea.html#isValid">isValid</a></li>
3075 <li data-name="LuCI.ui.Textarea#registerEvents"><a href="LuCI.ui.Textarea.html#registerEvents">registerEvents</a></li>
3077 <li data-name="LuCI.ui.Textarea#render"><a href="LuCI.ui.Textarea.html#render">render</a></li>
3079 <li data-name="LuCI.ui.Textarea#setChangeEvents"><a href="LuCI.ui.Textarea.html#setChangeEvents">setChangeEvents</a></li>
3081 <li data-name="LuCI.ui.Textarea#setUpdateEvents"><a href="LuCI.ui.Textarea.html#setUpdateEvents">setUpdateEvents</a></li>
3083 <li data-name="LuCI.ui.Textarea#setValue"><a href="LuCI.ui.Textarea.html#setValue">setValue</a></li>
3085 <li data-name="LuCI.ui.Textarea#triggerValidation"><a href="LuCI.ui.Textarea.html#triggerValidation">triggerValidation</a></li>
3088 <ul class="events itemMembers">
3093 <li class="item" data-name="LuCI.ui.Textfield">
3094 <span class="title">
3095 <a href="LuCI.ui.Textfield.html">LuCI.ui.Textfield</a>
3098 <ul class="members itemMembers">
3101 <ul class="typedefs itemMembers">
3103 <span class="subtitle">Typedefs</span>
3105 <li data-name="LuCI.ui.Textfield.InitOptions"><a href="LuCI.ui.Textfield.html#.InitOptions">InitOptions</a></li>
3108 <ul class="typedefs itemMembers">
3111 <ul class="methods itemMembers">
3113 <span class="subtitle">Methods</span>
3115 <li data-name="LuCI.ui.Textfield#getValue"><a href="LuCI.ui.Textfield.html#getValue">getValue</a></li>
3117 <li data-name="LuCI.ui.Textfield#isValid"><a href="LuCI.ui.Textfield.html#isValid">isValid</a></li>
3119 <li data-name="LuCI.ui.Textfield#registerEvents"><a href="LuCI.ui.Textfield.html#registerEvents">registerEvents</a></li>
3121 <li data-name="LuCI.ui.Textfield#render"><a href="LuCI.ui.Textfield.html#render">render</a></li>
3123 <li data-name="LuCI.ui.Textfield#setChangeEvents"><a href="LuCI.ui.Textfield.html#setChangeEvents">setChangeEvents</a></li>
3125 <li data-name="LuCI.ui.Textfield#setUpdateEvents"><a href="LuCI.ui.Textfield.html#setUpdateEvents">setUpdateEvents</a></li>
3127 <li data-name="LuCI.ui.Textfield#setValue"><a href="LuCI.ui.Textfield.html#setValue">setValue</a></li>
3129 <li data-name="LuCI.ui.Textfield#triggerValidation"><a href="LuCI.ui.Textfield.html#triggerValidation">triggerValidation</a></li>
3132 <ul class="events itemMembers">
3137 <li class="item" data-name="LuCI.view">
3138 <span class="title">
3139 <a href="LuCI.view.html">LuCI.view</a>
3142 <ul class="members itemMembers">
3145 <ul class="typedefs itemMembers">
3148 <ul class="typedefs itemMembers">
3151 <ul class="methods itemMembers">
3153 <span class="subtitle">Methods</span>
3155 <li data-name="LuCI.view#addFooter"><a href="LuCI.view.html#addFooter">addFooter</a></li>
3157 <li data-name="LuCI.view#handleReset"><a href="LuCI.view.html#handleReset">handleReset</a></li>
3159 <li data-name="LuCI.view#handleSave"><a href="LuCI.view.html#handleSave">handleSave</a></li>
3161 <li data-name="LuCI.view#handleSaveApply"><a href="LuCI.view.html#handleSaveApply">handleSaveApply</a></li>
3163 <li data-name="LuCI.view#load"><a href="LuCI.view.html#load">load</a></li>
3165 <li data-name="LuCI.view#render"><a href="LuCI.view.html#render">render</a></li>
3168 <ul class="events itemMembers">
3173 <li class="item" data-name="LuCI.xhr">
3174 <span class="title">
3175 <a href="LuCI.xhr.html">LuCI.xhr</a>
3178 <ul class="members itemMembers">
3181 <ul class="typedefs itemMembers">
3184 <ul class="typedefs itemMembers">
3187 <ul class="methods itemMembers">
3189 <span class="subtitle">Methods</span>
3191 <li data-name="LuCI.xhr#abort"><a href="LuCI.xhr.html#abort">abort</a></li>
3193 <li data-name="LuCI.xhr#busy"><a href="LuCI.xhr.html#busy">busy</a></li>
3195 <li data-name="LuCI.xhr#cancel"><a href="LuCI.xhr.html#cancel">cancel</a></li>
3197 <li data-name="LuCI.xhr#get"><a href="LuCI.xhr.html#get">get</a></li>
3199 <li data-name="LuCI.xhr#post"><a href="LuCI.xhr.html#post">post</a></li>
3201 <li data-name="LuCI.xhr#send_form"><a href="LuCI.xhr.html#send_form">send_form</a></li>
3204 <ul class="events itemMembers">
3212 <h1 class="page-title" data-filename="network.js.html">Source: network.js</h1>
3219 <pre id="source-code" class="prettyprint source "><code>'use strict';
3222 'require validation';
3223 'require baseclass';
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')
3242 var iface_patterns_ignore = [
3258 var iface_patterns_wireless = [
3265 var iface_patterns_virtual = [ ];
3267 var callLuciNetworkDevices = rpc.declare({
3269 method: 'getNetworkDevices',
3273 var callLuciWirelessDevices = rpc.declare({
3275 method: 'getWirelessDevices',
3279 var callLuciBoardJSON = rpc.declare({
3281 method: 'getBoardJSON'
3284 var callLuciHostHints = rpc.declare({
3286 method: 'getHostHints',
3290 var callIwinfoAssoclist = rpc.declare({
3292 method: 'assoclist',
3293 params: [ 'device', 'mac' ],
3294 expect: { results: [] }
3297 var callIwinfoScan = rpc.declare({
3300 params: [ 'device' ],
3302 expect: { results: [] }
3305 var callNetworkInterfaceDump = rpc.declare({
3306 object: 'network.interface',
3308 expect: { 'interface': [] }
3311 var callNetworkProtoHandlers = rpc.declare({
3313 method: 'get_proto_handlers',
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 } });
3328 /* Hack: emulate relayd protocol */
3329 if (!protos.hasOwnProperty('relay'))
3330 Object.assign(protos, { relay: { no_device: true } });
3332 Object.assign(_protospecs, protos);
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) && err.name != 'NetworkError')
3339 })).then(function() {
3342 }).catch(function() {
3347 function getWifiStateBySid(sid) {
3348 var s = uci.get('wireless', sid);
3350 if (s != null && s['.type'] == 'wifi-iface') {
3351 for (var radioname in _state.radios) {
3352 for (var i = 0; i < _state.radios[radioname].interfaces.length; i++) {
3353 var netstate = _state.radios[radioname].interfaces[i];
3355 if (typeof(netstate.section) != 'string')
3358 var s2 = uci.get('wireless', netstate.section);
3360 if (s2 != null && s['.type'] == s2['.type'] && s['.name'] == s2['.name']) {
3361 if (s2['.anonymous'] == false && netstate.section.charAt(0) == '@')
3364 return [ radioname, _state.radios[radioname], netstate ];
3373 function getWifiStateByIfname(ifname) {
3374 for (var radioname in _state.radios) {
3375 for (var i = 0; i < _state.radios[radioname].interfaces.length; i++) {
3376 var netstate = _state.radios[radioname].interfaces[i];
3378 if (typeof(netstate.ifname) != 'string')
3381 if (netstate.ifname == ifname)
3382 return [ radioname, _state.radios[radioname], netstate ];
3389 function isWifiIfname(ifname) {
3390 for (var i = 0; i < iface_patterns_wireless.length; i++)
3391 if (iface_patterns_wireless[i].test(ifname))
3397 function getWifiSidByNetid(netid) {
3398 var m = /^(\w+)\.network(\d+)$/.exec(netid);
3400 var sections = uci.sections('wireless', 'wifi-iface');
3401 for (var i = 0, n = 0; i < sections.length; i++) {
3402 if (sections[i].device != m[1])
3406 return sections[i]['.name'];
3413 function getWifiSidByIfname(ifname) {
3414 var sid = getWifiSidByNetid(ifname);
3419 var res = getWifiStateByIfname(ifname);
3421 if (res != null && L.isObject(res[2]) && typeof(res[2].section) == 'string')
3422 return res[2].section;
3427 function getWifiNetidBySid(sid) {
3428 var s = uci.get('wireless', sid);
3429 if (s != null && 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 < sections.length; i++) {
3434 if (sections[i].device != s.device)
3439 if (sections[i]['.name'] != s['.name'])
3442 return [ '%s.network%d'.format(s.device, n), s.device ];
3451 function getWifiNetidByNetname(name) {
3452 var sections = uci.sections('wireless', 'wifi-iface');
3453 for (var i = 0; i < sections.length; i++) {
3454 if (typeof(sections[i].network) != 'string')
3457 var nets = sections[i].network.split(/\s+/);
3458 for (var j = 0; j < nets.length; j++) {
3459 if (nets[j] != name)
3462 return getWifiNetidBySid(sections[i]['.name']);
3469 function isVirtualIfname(ifname) {
3470 for (var i = 0; i < iface_patterns_virtual.length; i++)
3471 if (iface_patterns_virtual[i].test(ifname))
3477 function isIgnoredIfname(ifname) {
3478 for (var i = 0; i < iface_patterns_ignore.length; i++)
3479 if (iface_patterns_ignore[i].test(ifname))
3485 function appendValue(config, section, option, value) {
3486 var values = uci.get(config, section, option),
3487 isArray = Array.isArray(values),
3490 if (isArray == false)
3491 values = L.toArray(values);
3493 if (values.indexOf(value) == -1) {
3498 uci.set(config, section, option, isArray ? values : values.join(' '));
3503 function removeValue(config, section, option, value) {
3504 var values = uci.get(config, section, option),
3505 isArray = Array.isArray(values),
3508 if (isArray == false)
3509 values = L.toArray(values);
3511 for (var i = values.length - 1; i >= 0; i--) {
3512 if (values[i] == value) {
3513 values.splice(i, 1);
3518 if (values.length > 0)
3519 uci.set(config, section, option, isArray ? values : values.join(' '));
3521 uci.unset(config, section, option);
3526 function prefixToMask(bits, v6) {
3527 var w = v6 ? 128 : 32,
3533 for (var i = 0; i < w / 16; i++) {
3534 var b = Math.min(16, bits);
3535 m.push((0xffff << (16 - b)) & 0xffff);
3540 return String.prototype.format.apply('%x:%x:%x:%x:%x:%x:%x:%x', m).replace(/:0(?::0)+$/, '::');
3542 return '%d.%d.%d.%d'.format(m[0] >>> 8, m[0] & 0xff, m[1] >>> 8, m[1] & 0xff);
3545 function maskToPrefix(mask, v6) {
3546 var m = v6 ? validation.parseIPv6(mask) : validation.parseIPv4(mask);
3553 for (var i = 0, z = false; i < m.length; i++) {
3556 while (!z && (m[i] & (v6 ? 0x8000 : 0x80))) {
3557 m[i] = (m[i] << 1) & (v6 ? 0xffff : 0xff);
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];
3584 isTunnel: {}, isBridge: {}, isSwitch: {}, isWifi: {},
3585 ifaces: netifd_ifaces, radios: data[3], hosts: data[4],
3586 netdevs: {}, bridges: {}, switches: {}, hostapd: {}
3589 for (var name in luci_devs) {
3590 var dev = luci_devs[name];
3592 if (isVirtualIfname(name))
3593 s.isTunnel[name] = true;
3595 if (!s.isTunnel[name] && isIgnoredIfname(name))
3598 s.netdevs[name] = s.netdevs[name] || {
3608 wireless: dev.wireless,
3613 if (Array.isArray(dev.ipaddrs))
3614 for (var i = 0; i < dev.ipaddrs.length; i++)
3615 s.netdevs[name].ipaddrs.push(dev.ipaddrs[i].address + '/' + dev.ipaddrs[i].netmask);
3617 if (Array.isArray(dev.ip6addrs))
3618 for (var i = 0; i < dev.ip6addrs.length; i++)
3619 s.netdevs[name].ip6addrs.push(dev.ip6addrs[i].address + '/' + dev.ip6addrs[i].netmask);
3622 for (var name in luci_devs) {
3623 var dev = luci_devs[name];
3635 for (var i = 0; dev.ports && i < dev.ports.length; i++) {
3636 var subdev = s.netdevs[dev.ports[i]];
3641 b.ifnames.push(subdev);
3645 s.bridges[name] = b;
3646 s.isBridge[name] = true;
3649 if (L.isObject(board_json.switch)) {
3650 for (var switchname in board_json.switch) {
3651 var layout = board_json.switch[switchname],
3658 if (L.isObject(layout) && Array.isArray(layout.ports)) {
3659 for (var i = 0, port; (port = layout.ports[i]) != null; i++) {
3660 if (typeof(port) == 'object' && typeof(port.num) == 'number' &&
3661 (typeof(port.role) == 'string' || typeof(port.device) == 'string')) {
3664 role: port.role || 'cpu',
3665 index: (port.index != null) ? port.index : port.num
3668 if (port.device != null) {
3669 spec.device = port.device;
3670 spec.tagged = spec.need_tag;
3671 netdevs[port.num] = port.device;
3676 if (port.role != null)
3677 nports[port.role] = (nports[port.role] || 0) + 1;
3681 ports.sort(function(a, b) {
3682 if (a.role != b.role)
3683 return (a.role < b.role) ? -1 : 1;
3685 return (a.index - b.index);
3688 for (var i = 0, port; (port = ports[i]) != null; i++) {
3689 if (port.role != role) {
3695 port.label = 'CPU (%s)'.format(port.device);
3696 else if (nports[role] > 1)
3697 port.label = '%s %d'.format(role.toUpperCase(), pnum++);
3699 port.label = role.toUpperCase();
3705 s.switches[switchname] = {
3713 if (L.isObject(board_json.dsl) && L.isObject(board_json.dsl.modem)) {
3714 s.hasDSLModem = board_json.dsl.modem;
3721 if (L.isObject(s.radios))
3722 for (var radio in s.radios)
3723 if (L.isObject(s.radios[radio]) && Array.isArray(s.radios[radio].interfaces))
3724 for (var i = 0; i < s.radios[radio].interfaces.length; i++)
3725 if (L.isObject(s.radios[radio].interfaces[i]) && s.radios[radio].interfaces[i].ifname)
3726 objects.push('hostapd.%s'.format(s.radios[radio].interfaces[i].ifname));
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\.(.+)$/);
3732 s.hostapd[m[1]] = res[k];
3735 return (_state = s);
3740 return (_state != null ? Promise.resolve(_state) : _init);
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(/:.+$/, '');
3758 function networkSort(a, b) {
3759 return a.getName() > b.getName();
3762 function deviceSort(a, b) {
3763 var typeWeigth = { wifi: 2, alias: 3 },
3764 weightA = typeWeigth[a.getType()] || 1,
3765 weightB = typeWeigth[b.getType()] || 1;
3767 if (weightA != weightB)
3768 return weightA - weightB;
3770 return a.getName() > b.getName();
3773 function formatWifiEncryption(enc) {
3774 if (!L.isObject(enc))
3780 var ciphers = Array.isArray(enc.ciphers)
3781 ? enc.ciphers.map(function(c) { return c.toUpperCase() }) : [ 'NONE' ];
3783 if (Array.isArray(enc.wep)) {
3784 var has_open = false,
3787 for (var i = 0; i < enc.wep.length; i++)
3788 if (enc.wep[i] == 'open')
3790 else if (enc.wep[i] == 'shared')
3793 if (has_open && has_shared)
3794 return 'WEP Open/Shared (%s)'.format(ciphers.join(', '));
3796 return 'WEP Open System (%s)'.format(ciphers.join(', '));
3797 else if (has_shared)
3798 return 'WEP Shared Auth (%s)'.format(ciphers.join(', '));
3803 if (Array.isArray(enc.wpa)) {
3805 suites = Array.isArray(enc.authentication)
3806 ? enc.authentication.map(function(a) { return a.toUpperCase() }) : [ 'NONE' ];
3808 for (var i = 0; i < enc.wpa.length; i++)
3809 switch (enc.wpa[i]) {
3811 versions.push('WPA');
3815 versions.push('WPA%d'.format(enc.wpa[i]));
3819 if (versions.length > 1)
3820 return 'mixed %s %s (%s)'.format(versions.join('/'), suites.join(', '), ciphers.join(', '));
3822 return '%s %s (%s)'.format(versions[0], suites.join(', '), ciphers.join(', '));
3828 function enumerateNetworks() {
3829 var uciInterfaces = uci.sections('network', 'interface'),
3832 for (var i = 0; i < uciInterfaces.length; i++)
3833 networks[uciInterfaces[i]['.name']] = this.instantiateNetwork(uciInterfaces[i]['.name']);
3835 for (var i = 0; i < _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);
3842 for (var network in networks)
3843 if (networks.hasOwnProperty(network))
3844 rv.push(networks[network]);
3846 rv.sort(networkSort);
3852 var Hosts, Network, Protocol, Device, WifiDevice, WifiNetwork;
3860 * The `LuCI.network` class combines data from multiple `ubus` apis to
3861 * provide an abstraction of the current network configuration state.
3863 * It provides methods to enumerate interfaces and devices, to query
3864 * current configuration details and to manipulate settings.
3866 Network = baseclass.extend(/** @lends LuCI.network.prototype */ {
3868 * Converts the given prefix size in bits to a netmask.
3872 * @param {number} bits
3873 * The prefix size in bits.
3875 * @param {boolean} [v6=false]
3876 * Whether to convert the bits value into an IPv4 netmask (`false`) or
3877 * an IPv6 netmask (`true`).
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.
3884 prefixToMask: prefixToMask,
3887 * Converts the given netmask to a prefix size in bits.
3891 * @param {string} netmask
3892 * The netmask to convert into a bit count.
3894 * @param {boolean} [v6=false]
3895 * Whether to parse the given netmask as IPv4 (`false`) or IPv6 (`true`)
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.
3902 maskToPrefix: maskToPrefix,
3905 * An encryption entry describes active wireless encryption settings
3906 * such as the used key management protocols, active ciphers and
3907 * protocol versions.
3909 * @typedef {Object<string, boolean|Array<number|string>>} LuCI.network.WifiEncryption
3910 * @memberof LuCI.network
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.
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.
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.
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.
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
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)`.
3950 * @param {LuCI.network.WifiEncryption} encryption
3951 * The wireless encryption entry to convert.
3953 * @returns {null|string}
3954 * Returns the description string for the given encryption entry or
3955 * `null` if the given entry was invalid.
3957 formatWifiEncryption: formatWifiEncryption,
3960 * Flushes the local network state cache and fetches updated information
3961 * from the remote `ubus` apis.
3963 * @returns {Promise<Object>}
3964 * Returns a promise resolving to the internal network state object.
3966 flushCache: function() {
3967 initNetworkState(true);
3972 * Instantiates the given {@link LuCI.network.Protocol Protocol} backend,
3973 * optionally using the given network name.
3975 * @param {string} protoname
3976 * The protocol backend to use, e.g. `static` or `dhcp`.
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.
3984 * @returns {null|LuCI.network.Protocol}
3985 * Returns the instantiated protocol backend class or `null` if the given
3986 * protocol isn't known.
3988 getProtocol: function(protoname, netname) {
3989 var v = _protocols[protoname];
3991 return new v(netname || '__dummy__');
3997 * Obtains instances of all known {@link LuCI.network.Protocol Protocol}
4000 * @returns {Array<LuCI.network.Protocol>}
4001 * Returns an array of protocol class instances.
4003 getProtocols: function() {
4006 for (var protoname in _protocols)
4007 rv.push(new _protocols[protoname]('__dummy__'));
4013 * Registers a new {@link LuCI.network.Protocol Protocol} subclass
4014 * with the given methods and returns the resulting subclass value.
4016 * This functions internally calls
4017 * {@link LuCI.Class.extend Class.extend()} on the `Network.Protocol`
4020 * @param {string} protoname
4021 * The name of the new protocol to register.
4023 * @param {Object<string, *>} methods
4024 * The member methods and values of the new `Protocol` subclass to
4025 * be passed to {@link LuCI.Class.extend Class.extend()}.
4027 * @returns {LuCI.network.Protocol}
4028 * Returns the new `Protocol` subclass.
4030 registerProtocol: function(protoname, methods) {
4031 var spec = L.isObject(_protospecs) ? _protospecs[protoname] : null;
4032 var proto = Protocol.extend(Object.assign({
4033 getI18n: function() {
4037 isFloating: function() {
4041 isVirtual: function() {
4042 return (L.isObject(spec) && spec.no_device == true);
4045 renderFormOptions: function(section) {
4049 __init__: function(name) {
4053 getProtocol: function() {
4058 _protocols[protoname] = proto;
4064 * Registers a new regular expression pattern to recognize
4065 * virtual interfaces.
4067 * @param {RegExp} pat
4068 * A `RegExp` instance to match a virtual interface name
4069 * such as `6in4-wan` or `tun0`.
4071 registerPatternVirtual: function(pat) {
4072 iface_patterns_virtual.push(pat);
4076 * Registers a new human readable translation string for a `Protocol`
4079 * @param {string} code
4080 * The `ubus` protocol error code to register a translation for, e.g.
4083 * @param {string} message
4084 * The message to use as translation for the given protocol error code.
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.
4091 registerErrorCode: function(code, message) {
4092 if (typeof(code) == 'string' &&
4093 typeof(message) == 'string' &&
4094 !proto_errors.hasOwnProperty(code)) {
4095 proto_errors[code] = message;
4103 * Adds a new network of the given name and update it with the given
4104 * uci option values.
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.
4109 * @param {string} name
4110 * The name of the network to add. Must be in the format `[a-zA-Z0-9_]+`.
4112 * @param {Object<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.
4116 * @returns {Promise<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
4122 addNetwork: function(name, options) {
4123 return this.getNetwork(name).then(L.bind(function(existingNetwork) {
4124 if (name != null && /^[a-zA-Z0-9_]+$/.test(name) && existingNetwork == null) {
4125 var sid = uci.add('network', 'interface', name);
4128 if (L.isObject(options))
4129 for (var key in options)
4130 if (options.hasOwnProperty(key))
4131 uci.set('network', sid, key, options[key]);
4133 return this.instantiateNetwork(sid);
4136 else if (existingNetwork != null && existingNetwork.isEmpty()) {
4137 if (L.isObject(options))
4138 for (var key in options)
4139 if (options.hasOwnProperty(key))
4140 existingNetwork.set(key, options[key]);
4142 return existingNetwork;
4148 * Get a {@link LuCI.network.Protocol Protocol} instance describing
4149 * the network with the given name.
4151 * @param {string} name
4152 * The logical interface name of the network get, e.g. `lan` or `wan`.
4154 * @returns {Promise<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.
4159 getNetwork: function(name) {
4160 return initNetworkState().then(L.bind(function() {
4161 var section = (name != null) ? uci.get('network', name) : null;
4163 if (section != null && section['.type'] == 'interface') {
4164 return this.instantiateNetwork(name);
4166 else if (name != null) {
4167 for (var i = 0; i < _state.ifaces.length; i++)
4168 if (_state.ifaces[i].interface == name)
4169 return this.instantiateNetwork(name, _state.ifaces[i].proto);
4177 * Gets an array containing all known networks.
4179 * @returns {Promise<Array<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.
4184 getNetworks: function() {
4185 return initNetworkState().then(L.bind(enumerateNetworks, this));
4189 * Deletes the given network and its references from the network and
4190 * firewall configuration.
4192 * @param {string} name
4193 * The name of the network to delete.
4195 * @returns {Promise<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.
4200 deleteNetwork: function(name) {
4201 var requireFirewall = Promise.resolve(L.require('firewall')).catch(function() {}),
4202 network = this.instantiateNetwork(name);
4204 return Promise.all([ requireFirewall, initNetworkState() ]).then(function(res) {
4205 var uciInterface = uci.get('network', name),
4208 if (uciInterface != null && uciInterface['.type'] == 'interface') {
4209 return Promise.resolve(network ? network.deleteConfiguration() : null).then(function() {
4210 uci.remove('network', name);
4212 uci.sections('luci', 'ifstate', function(s) {
4213 if (s.interface == name)
4214 uci.remove('luci', s['.name']);
4217 uci.sections('network', 'alias', function(s) {
4218 if (s.interface == name)
4219 uci.remove('network', s['.name']);
4222 uci.sections('network', 'route', function(s) {
4223 if (s.interface == name)
4224 uci.remove('network', s['.name']);
4227 uci.sections('network', 'route6', function(s) {
4228 if (s.interface == name)
4229 uci.remove('network', s['.name']);
4232 uci.sections('wireless', 'wifi-iface', function(s) {
4233 var networks = L.toArray(s.network).filter(function(network) { return network != name });
4235 if (networks.length > 0)
4236 uci.set('wireless', s['.name'], 'network', networks.join(' '));
4238 uci.unset('wireless', s['.name'], 'network');
4242 return firewall.deleteNetwork(name).then(function() { return true });
4245 }).catch(function() {
4255 * Rename the given network and its references to a new name.
4257 * @param {string} oldName
4258 * The current name of the network.
4260 * @param {string} newName
4261 * The name to rename the network to, must be in the format
4264 * @returns {Promise<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.
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)
4275 var oldNetwork = uci.get('network', oldName);
4277 if (oldNetwork == null || oldNetwork['.type'] != 'interface')
4280 var sid = uci.add('network', 'interface', newName);
4282 for (var key in oldNetwork)
4283 if (oldNetwork.hasOwnProperty(key) && key.charAt(0) != '.')
4284 uci.set('network', sid, key, oldNetwork[key]);
4286 uci.sections('luci', 'ifstate', function(s) {
4287 if (s.interface == oldName)
4288 uci.set('luci', s['.name'], 'interface', newName);
4291 uci.sections('network', 'alias', function(s) {
4292 if (s.interface == oldName)
4293 uci.set('network', s['.name'], 'interface', newName);
4296 uci.sections('network', 'route', function(s) {
4297 if (s.interface == oldName)
4298 uci.set('network', s['.name'], 'interface', newName);
4301 uci.sections('network', 'route6', function(s) {
4302 if (s.interface == oldName)
4303 uci.set('network', s['.name'], 'interface', newName);
4306 uci.sections('wireless', 'wifi-iface', function(s) {
4307 var networks = L.toArray(s.network).map(function(network) { return (network == oldName ? newName : network) });
4309 if (networks.length > 0)
4310 uci.set('wireless', s['.name'], 'network', networks.join(' '));
4313 uci.remove('network', oldName);
4320 * Get a {@link LuCI.network.Device Device} instance describing the
4321 * given network device.
4323 * @param {string} name
4324 * The name of the network device to get, e.g. `eth0` or `br-lan`.
4326 * @returns {Promise<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
4331 getDevice: function(name) {
4332 return initNetworkState().then(L.bind(function() {
4336 if (_state.netdevs.hasOwnProperty(name) || isWifiIfname(name))
4337 return this.instantiateDevice(name);
4339 var netid = getWifiNetidBySid(name);
4341 return this.instantiateDevice(netid[0]);
4348 * Get a sorted list of all found network devices.
4350 * @returns {Promise<Array<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.
4354 getDevices: function() {
4355 return initNetworkState().then(L.bind(function() {
4358 /* find simple devices */
4359 var uciInterfaces = uci.sections('network', 'interface');
4360 for (var i = 0; i < uciInterfaces.length; i++) {
4361 var ifnames = L.toArray(uciInterfaces[i].ifname);
4363 for (var j = 0; j < ifnames.length; j++) {
4364 if (ifnames[j].charAt(0) == '@')
4367 if (isIgnoredIfname(ifnames[j]) || isVirtualIfname(ifnames[j]) || isWifiIfname(ifnames[j]))
4370 devices[ifnames[j]] = this.instantiateDevice(ifnames[j]);
4374 for (var ifname in _state.netdevs) {
4375 if (devices.hasOwnProperty(ifname))
4378 if (isIgnoredIfname(ifname) || isWifiIfname(ifname))
4381 if (_state.netdevs[ifname].wireless)
4384 devices[ifname] = this.instantiateDevice(ifname);
4387 /* find VLAN devices */
4388 var uciSwitchVLANs = uci.sections('network', 'switch_vlan');
4389 for (var i = 0; i < uciSwitchVLANs.length; i++) {
4390 if (typeof(uciSwitchVLANs[i].ports) != 'string' ||
4391 typeof(uciSwitchVLANs[i].device) != 'string' ||
4392 !_state.switches.hasOwnProperty(uciSwitchVLANs[i].device))
4395 var ports = uciSwitchVLANs[i].ports.split(/\s+/);
4396 for (var j = 0; j < ports.length; j++) {
4397 var m = ports[j].match(/^(\d+)([tu]?)$/);
4401 var netdev = _state.switches[uciSwitchVLANs[i].device].netdevs[m[1]];
4405 if (!devices.hasOwnProperty(netdev))
4406 devices[netdev] = this.instantiateDevice(netdev);
4408 _state.isSwitch[netdev] = true;
4413 var vid = uciSwitchVLANs[i].vid || uciSwitchVLANs[i].vlan;
4414 vid = (vid != null ? +vid : null);
4416 if (vid == null || vid < 0 || vid > 4095)
4419 var vlandev = '%s.%d'.format(netdev, vid);
4421 if (!devices.hasOwnProperty(vlandev))
4422 devices[vlandev] = this.instantiateDevice(vlandev);
4424 _state.isSwitch[vlandev] = true;
4428 /* find wireless interfaces */
4429 var uciWifiIfaces = uci.sections('wireless', 'wifi-iface'),
4432 for (var i = 0; i < uciWifiIfaces.length; i++) {
4433 if (typeof(uciWifiIfaces[i].device) != 'string')
4436 networkCount[uciWifiIfaces[i].device] = (networkCount[uciWifiIfaces[i].device] || 0) + 1;
4438 var netid = '%s.network%d'.format(uciWifiIfaces[i].device, networkCount[uciWifiIfaces[i].device]);
4440 devices[netid] = this.instantiateDevice(netid);
4445 for (var netdev in devices)
4446 if (devices.hasOwnProperty(netdev))
4447 rv.push(devices[netdev]);
4449 rv.sort(deviceSort);
4456 * Test if a given network device name is in the list of patterns for
4457 * device names to ignore.
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.
4463 * @param {string} name
4464 * The device name to test.
4466 * @returns {boolean}
4467 * Returns `true` if the given name is in the ignore pattern list,
4468 * else returns `false`.
4470 isIgnoredDevice: function(name) {
4471 return isIgnoredIfname(name);
4475 * Get a {@link LuCI.network.WifiDevice WifiDevice} instance describing
4476 * the given wireless radio.
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.
4482 * @returns {Promise<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
4487 getWifiDevice: function(devname) {
4488 return initNetworkState().then(L.bind(function() {
4489 var existingDevice = uci.get('wireless', devname);
4491 if (existingDevice == null || existingDevice['.type'] != 'wifi-device')
4494 return this.instantiateWifiDevice(devname, _state.radios[devname] || {});
4499 * Obtain a list of all configured radio devices.
4501 * @returns {Promise<Array<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.
4507 getWifiDevices: function() {
4508 return initNetworkState().then(L.bind(function() {
4509 var uciWifiDevices = uci.sections('wireless', 'wifi-device'),
4512 for (var i = 0; i < uciWifiDevices.length; i++) {
4513 var devname = uciWifiDevices[i]['.name'];
4514 rv.push(this.instantiateWifiDevice(devname, _state.radios[devname] || {}));
4522 * Get a {@link LuCI.network.WifiNetwork WifiNetwork} instance describing
4523 * the given wireless network.
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.
4531 * @returns {Promise<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
4536 getWifiNetwork: function(netname) {
4537 return initNetworkState()
4538 .then(L.bind(this.lookupWifiNetwork, this, netname));
4542 * Get an array of all {@link LuCI.network.WifiNetwork WifiNetwork}
4543 * instances describing the wireless networks present on the system.
4545 * @returns {Promise<Array<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
4550 getWifiNetworks: function() {
4551 return initNetworkState().then(L.bind(function() {
4552 var wifiIfaces = uci.sections('wireless', 'wifi-iface'),
4555 for (var i = 0; i < wifiIfaces.length; i++)
4556 rv.push(this.lookupWifiNetwork(wifiIfaces[i]['.name']));
4558 rv.sort(function(a, b) {
4559 return (a.getID() > b.getID());
4567 * Adds a new wireless network to the configuration and sets its options
4568 * to the provided values.
4570 * @param {Object<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.
4575 * @returns {Promise<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.
4580 addWifiNetwork: function(options) {
4581 return initNetworkState().then(L.bind(function() {
4582 if (options == null ||
4583 typeof(options) != 'object' ||
4584 typeof(options.device) != 'string')
4587 var existingDevice = uci.get('wireless', options.device);
4588 if (existingDevice == null || existingDevice['.type'] != 'wifi-device')
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]);
4597 var radioname = existingDevice['.name'],
4598 netid = getWifiNetidBySid(sid) || [];
4600 return this.instantiateWifiNetwork(sid, radioname, _state.radios[radioname], netid[0], null);
4605 * Deletes the given wireless network from the configuration.
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.
4613 * @returns {Promise<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
4618 deleteWifiNetwork: function(netname) {
4619 return initNetworkState().then(L.bind(function() {
4620 var sid = getWifiSidByIfname(netname);
4625 uci.remove('wireless', sid);
4631 getStatusByRoute: function(addr, mask) {
4632 return initNetworkState().then(L.bind(function() {
4635 for (var i = 0; i < _state.ifaces.length; i++) {
4636 if (!Array.isArray(_state.ifaces[i].route))
4639 for (var j = 0; j < _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')
4645 if (_state.ifaces[i].route[j].table)
4648 if (_state.ifaces[i].route[j].target != addr ||
4649 _state.ifaces[i].route[j].mask != mask)
4652 rv.push(_state.ifaces[i]);
4661 getStatusByAddress: function(addr) {
4662 return initNetworkState().then(L.bind(function() {
4665 for (var i = 0; i < _state.ifaces.length; i++) {
4666 if (Array.isArray(_state.ifaces[i]['ipv4-address']))
4667 for (var j = 0; j < _state.ifaces[i]['ipv4-address'].length; j++)
4668 if (typeof(_state.ifaces[i]['ipv4-address'][j]) == 'object' &&
4669 _state.ifaces[i]['ipv4-address'][j].address == addr)
4670 return _state.ifaces[i];
4672 if (Array.isArray(_state.ifaces[i]['ipv6-address']))
4673 for (var j = 0; j < _state.ifaces[i]['ipv6-address'].length; j++)
4674 if (typeof(_state.ifaces[i]['ipv6-address'][j]) == 'object' &&
4675 _state.ifaces[i]['ipv6-address'][j].address == addr)
4676 return _state.ifaces[i];
4678 if (Array.isArray(_state.ifaces[i]['ipv6-prefix-assignment']))
4679 for (var j = 0; j < _state.ifaces[i]['ipv6-prefix-assignment'].length; j++)
4680 if (typeof(_state.ifaces[i]['ipv6-prefix-assignment'][j]) == 'object' &&
4681 typeof(_state.ifaces[i]['ipv6-prefix-assignment'][j]['local-address']) == 'object' &&
4682 _state.ifaces[i]['ipv6-prefix-assignment'][j]['local-address'].address == addr)
4683 return _state.ifaces[i];
4691 * Get IPv4 wan networks.
4693 * This function looks up all networks having a default `0.0.0.0/0` route
4694 * and returns them as array.
4696 * @returns {Promise<Array<LuCI.network.Protocol>>}
4697 * Returns a promise resolving to an array of `Protocol` subclass
4698 * instances describing the found default route interfaces.
4700 getWANNetworks: function() {
4701 return this.getStatusByRoute('0.0.0.0', 0).then(L.bind(function(statuses) {
4702 var rv = [], seen = {};
4704 for (var i = 0; i < 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;
4716 * Get IPv6 wan networks.
4718 * This function looks up all networks having a default `::/0` route
4719 * and returns them as array.
4721 * @returns {Promise<Array<LuCI.network.Protocol>>}
4722 * Returns a promise resolving to an array of `Protocol` subclass
4723 * instances describing the found IPv6 default route interfaces.
4725 getWAN6Networks: function() {
4726 return this.getStatusByRoute('::', 0).then(L.bind(function(statuses) {
4727 var rv = [], seen = {};
4729 for (var i = 0; i < 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;
4741 * Describes an swconfig switch topology by specifying the CPU
4742 * connections and external port labels of a switch.
4744 * @typedef {Object<string, Object|Array>} SwitchTopology
4745 * @memberof LuCI.network
4747 * @property {Object<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.
4753 * @property {Array<Object<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)
4765 * Returns the topologies of all swconfig switches found on the system.
4767 * @returns {Promise<Object<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
4774 getSwitchTopologies: function() {
4775 return initNetworkState().then(function() {
4776 return _state.switches;
4781 instantiateNetwork: function(name, proto) {
4785 proto = (proto == null ? uci.get('network', name, 'proto') : proto);
4787 var protoClass = _protocols[proto] || Protocol;
4788 return new protoClass(name);
4792 instantiateDevice: function(name, network, extend) {
4794 return new (Device.extend(extend))(name, network);
4796 return new Device(name, network);
4800 instantiateWifiDevice: function(radioname, radiostate) {
4801 return new WifiDevice(radioname, radiostate);
4805 instantiateWifiNetwork: function(sid, radioname, radiostate, netid, netstate, hostapd) {
4806 return new WifiNetwork(sid, radioname, radiostate, netid, netstate, hostapd);
4810 lookupWifiNetwork: function(netname) {
4811 var sid, res, netid, radioname, radiostate, netstate;
4813 sid = getWifiSidByNetid(netname);
4816 res = getWifiStateBySid(sid);
4818 radioname = res ? res[0] : null;
4819 radiostate = res ? res[1] : null;
4820 netstate = res ? res[2] : null;
4823 res = getWifiStateByIfname(netname);
4827 radiostate = res[1];
4829 sid = netstate.section;
4830 netid = L.toArray(getWifiNetidBySid(sid))[0];
4833 res = getWifiStateBySid(netname);
4837 radiostate = res[1];
4840 netid = L.toArray(getWifiNetidBySid(sid))[0];
4843 res = getWifiNetidBySid(netname);
4854 return this.instantiateWifiNetwork(sid || netname, radioname,
4855 radiostate, netid, netstate,
4856 netstate ? _state.hostapd[netstate.ifname] : null);
4860 * Obtains the the network device name of the given object.
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.
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.
4869 getIfnameOf: function(obj) {
4870 return ifnameOf(obj);
4874 * Queries the internal DSL modem type from board information.
4876 * @returns {Promise<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.
4880 getDSLModemType: function() {
4881 return initNetworkState().then(function() {
4882 return _state.hasDSLModem ? _state.hasDSLModem.type : null;
4887 * Queries aggregated information about known hosts.
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.
4894 * @returns {Promise<LuCI.network.Hosts>}
4895 * Returns a `Hosts` instance describing host known on the system.
4897 getHostHints: function() {
4898 return initNetworkState().then(function() {
4899 return new Hosts(_state.hosts);
4906 * @memberof LuCI.network
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.
4914 Hosts = baseclass.extend(/** @lends LuCI.network.Hosts.prototype */ {
4915 __init__: function(hosts) {
4920 * Lookup the hostname associated with the given MAC address.
4922 * @param {string} mac
4923 * The MAC address to lookup.
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.
4930 getHostnameByMACAddr: function(mac) {
4931 return this.hosts[mac] ? this.hosts[mac].name : null;
4935 * Lookup the IPv4 address associated with the given MAC address.
4937 * @param {string} mac
4938 * The MAC address to lookup.
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.
4945 getIPAddrByMACAddr: function(mac) {
4946 return this.hosts[mac] ? this.hosts[mac].ipv4 : null;
4950 * Lookup the IPv6 address associated with the given MAC address.
4952 * @param {string} mac
4953 * The MAC address to lookup.
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.
4960 getIP6AddrByMACAddr: function(mac) {
4961 return this.hosts[mac] ? this.hosts[mac].ipv6 : null;
4965 * Lookup the hostname associated with the given IPv4 address.
4967 * @param {string} ipaddr
4968 * The IPv4 address to lookup.
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.
4975 getHostnameByIPAddr: function(ipaddr) {
4976 for (var mac in this.hosts)
4977 if (this.hosts[mac].ipv4 == ipaddr && this.hosts[mac].name != null)
4978 return this.hosts[mac].name;
4983 * Lookup the MAC address associated with the given IPv4 address.
4985 * @param {string} ipaddr
4986 * The IPv4 address to lookup.
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.
4993 getMACAddrByIPAddr: function(ipaddr) {
4994 for (var mac in this.hosts)
4995 if (this.hosts[mac].ipv4 == ipaddr)
5001 * Lookup the hostname associated with the given IPv6 address.
5003 * @param {string} ipaddr
5004 * The IPv6 address to lookup.
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.
5011 getHostnameByIP6Addr: function(ip6addr) {
5012 for (var mac in this.hosts)
5013 if (this.hosts[mac].ipv6 == ip6addr && this.hosts[mac].name != null)
5014 return this.hosts[mac].name;
5019 * Lookup the MAC address associated with the given IPv6 address.
5021 * @param {string} ipaddr
5022 * The IPv6 address to lookup.
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.
5029 getMACAddrByIP6Addr: function(ip6addr) {
5030 for (var mac in this.hosts)
5031 if (this.hosts[mac].ipv6 == ip6addr)
5037 * Return an array of (MAC address, name hint) tuples sorted by
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.
5044 * @returns {Array<Array<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.
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.
5053 * If no hostname but both IPv4 and IPv6 addresses are known, the
5054 * `preferIP6` flag specifies whether the IPv6 or the IPv4 address
5057 getMACHints: function(preferIp6) {
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'];
5064 rv.push([mac, hint]);
5066 return rv.sort(function(a, b) { return a[0] > b[0] });
5072 * @memberof LuCI.network
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`.
5080 Protocol = baseclass.extend(/** @lends LuCI.network.Protocol.prototype */ {
5081 __init__: function(name) {
5085 _get: function(opt) {
5086 var val = uci.get('network', this.sid, opt);
5088 if (Array.isArray(val))
5089 return val.join(' ');
5094 _ubus: function(field) {
5095 for (var i = 0; i < _state.ifaces.length; i++) {
5096 if (_state.ifaces[i].interface != this.sid)
5099 return (field != null ? _state.ifaces[i][field] : _state.ifaces[i]);
5104 * Read the given UCI option value of this network.
5106 * @param {string} opt
5107 * The UCI option name to read.
5109 * @returns {null|string|string[]}
5110 * Returns the UCI option value or `null` if the requested option is
5113 get: function(opt) {
5114 return uci.get('network', this.sid, opt);
5118 * Set the given UCI option of this network to the given value.
5120 * @param {string} opt
5121 * The name of the UCI option to set.
5123 * @param {null|string|string[]} val
5124 * The value to set or `null` to remove the given option from the
5127 set: function(opt, val) {
5128 return uci.set('network', this.sid, opt, val);
5132 * Get the associared Linux network device of this network.
5134 * @returns {null|string}
5135 * Returns the name of the associated network device or `null` if
5136 * it could not be determined.
5138 getIfname: function() {
5141 if (this.isFloating())
5142 ifname = this._ubus('l3_device');
5144 ifname = this._ubus('device') || this._ubus('l3_device');
5149 var res = getWifiNetidByNetname(this.sid);
5150 return (res != null ? res[0] : null);
5154 * Get the name of this network protocol class.
5156 * This function will be overwritten by subclasses created by
5157 * {@link LuCI.network#registerProtocol Network.registerProtocol()}.
5161 * Returns the name of the network protocol implementation, e.g.
5162 * `static` or `dhcp`.
5164 getProtocol: function() {
5169 * Return a human readable description for the protcol, such as
5170 * `Static address` or `DHCP client`.
5172 * This function should be overwritten by subclasses.
5176 * Returns the description string.
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');
5188 * Get the type of the underlying interface.
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.
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.
5198 getType: function() {
5199 return this._get('type');
5203 * Get the name of the associated logical interface.
5206 * Returns the logical interface name, such as `lan` or `wan`.
5208 getName: function() {
5213 * Get the uptime of the logical interface.
5216 * Returns the uptime of the associated interface in seconds.
5218 getUptime: function() {
5219 return this._ubus('uptime') || 0;
5223 * Get the logical interface expiry time in seconds.
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.
5230 * Returns the amount of seconds until the lease expires or `-1`
5231 * if it isn't applicable to the associated protocol.
5233 getExpiry: function() {
5234 var u = this._ubus('uptime'),
5235 d = this._ubus('data');
5237 if (typeof(u) == 'number' && d != null &&
5238 typeof(d) == 'object' && typeof(d.leasetime) == 'number') {
5239 var r = d.leasetime - (u % d.leasetime);
5240 return (r > 0 ? r : 0);
5247 * Get the metric value of the logical interface.
5250 * Returns the current metric value used for device and network
5251 * routes spawned by the associated logical interface.
5253 getMetric: function() {
5254 return this._ubus('metric') || 0;
5258 * Get the requested firewall zone name of the logical interface.
5260 * Some protocol implementations request a specific firewall zone
5261 * to trigger inclusion of their resulting network devices into the
5262 * firewall rule set.
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.
5269 getZoneName: function() {
5270 var d = this._ubus('data');
5272 if (L.isObject(d) && typeof(d.zone) == 'string')
5279 * Query the first (primary) IPv4 address of the logical interface.
5281 * @returns {null|string}
5282 * Returns the primary IPv4 address registered by the protocol handler
5283 * or `null` if no IPv4 addresses were set.
5285 getIPAddr: function() {
5286 var addrs = this._ubus('ipv4-address');
5287 return ((Array.isArray(addrs) && addrs.length) ? addrs[0].address : null);
5291 * Query all IPv4 addresses of the logical interface.
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.
5298 getIPAddrs: function() {
5299 var addrs = this._ubus('ipv4-address'),
5302 if (Array.isArray(addrs))
5303 for (var i = 0; i < addrs.length; i++)
5304 rv.push('%s/%d'.format(addrs[i].address, addrs[i].mask));
5310 * Query the first (primary) IPv4 netmask of the logical interface.
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.
5316 getNetmask: function() {
5317 var addrs = this._ubus('ipv4-address');
5318 if (Array.isArray(addrs) && addrs.length)
5319 return prefixToMask(addrs[0].mask, false);
5323 * Query the gateway (nexthop) of the default route associated with
5324 * this logical interface.
5327 * Returns a string containing the IPv4 nexthop address of the associated
5328 * default route or `null` if no default route was found.
5330 getGatewayAddr: function() {
5331 var routes = this._ubus('route');
5333 if (Array.isArray(routes))
5334 for (var i = 0; i < routes.length; i++)
5335 if (typeof(routes[i]) == 'object' &&
5336 routes[i].target == '0.0.0.0' &&
5337 routes[i].mask == 0)
5338 return routes[i].nexthop;
5344 * Query the IPv4 DNS servers associated with the logical interface.
5346 * @returns {string[]}
5347 * Returns an array of IPv4 DNS servers registered by the remote
5350 getDNSAddrs: function() {
5351 var addrs = this._ubus('dns-server'),
5354 if (Array.isArray(addrs))
5355 for (var i = 0; i < addrs.length; i++)
5356 if (!/:/.test(addrs[i]))
5363 * Query the first (primary) IPv6 address of the logical interface.
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.
5369 getIP6Addr: function() {
5370 var addrs = this._ubus('ipv6-address');
5372 if (Array.isArray(addrs) && L.isObject(addrs[0]))
5373 return '%s/%d'.format(addrs[0].address, addrs[0].mask);
5375 addrs = this._ubus('ipv6-prefix-assignment');
5377 if (Array.isArray(addrs) && L.isObject(addrs[0]) && L.isObject(addrs[0]['local-address']))
5378 return '%s/%d'.format(addrs[0]['local-address'].address, addrs[0]['local-address'].mask);
5384 * Query all IPv6 addresses of the logical interface.
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.
5391 getIP6Addrs: function() {
5392 var addrs = this._ubus('ipv6-address'),
5395 if (Array.isArray(addrs))
5396 for (var i = 0; i < addrs.length; i++)
5397 if (L.isObject(addrs[i]))
5398 rv.push('%s/%d'.format(addrs[i].address, addrs[i].mask));
5400 addrs = this._ubus('ipv6-prefix-assignment');
5402 if (Array.isArray(addrs))
5403 for (var i = 0; i < addrs.length; i++)
5404 if (L.isObject(addrs[i]) && L.isObject(addrs[i]['local-address']))
5405 rv.push('%s/%d'.format(addrs[i]['local-address'].address, addrs[i]['local-address'].mask));
5411 * Query the gateway (nexthop) of the IPv6 default route associated with
5412 * this logical interface.
5415 * Returns a string containing the IPv6 nexthop address of the associated
5416 * default route or `null` if no default route was found.
5418 getGateway6Addr: function() {
5419 var routes = this._ubus('route');
5421 if (Array.isArray(routes))
5422 for (var i = 0; i < routes.length; i++)
5423 if (typeof(routes[i]) == 'object' &&
5424 routes[i].target == '::' &&
5425 routes[i].mask == 0)
5426 return routes[i].nexthop;
5432 * Query the IPv6 DNS servers associated with the logical interface.
5434 * @returns {string[]}
5435 * Returns an array of IPv6 DNS servers registered by the remote
5438 getDNS6Addrs: function() {
5439 var addrs = this._ubus('dns-server'),
5442 if (Array.isArray(addrs))
5443 for (var i = 0; i < addrs.length; i++)
5444 if (/:/.test(addrs[i]))
5451 * Query the routed IPv6 prefix associated with the logical interface.
5453 * @returns {null|string}
5454 * Returns the routed IPv6 prefix registered by the remote protocol
5455 * handler or `null` if no prefix is present.
5457 getIP6Prefix: function() {
5458 var prefixes = this._ubus('ipv6-prefix');
5460 if (Array.isArray(prefixes) && L.isObject(prefixes[0]))
5461 return '%s/%d'.format(prefixes[0].address, prefixes[0].mask);
5467 * Query interface error messages published in `ubus` runtime state.
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.
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.
5479 * @returns {string[]}
5480 * Returns an array of translated interface error messages.
5482 getErrors: function() {
5483 var errors = this._ubus('errors'),
5486 if (Array.isArray(errors)) {
5487 for (var i = 0; i < errors.length; i++) {
5488 if (!L.isObject(errors[i]) || typeof(errors[i].code) != 'string')
5492 rv.push(proto_errors[errors[i].code] || _('Unknown error (%s)').format(errors[i].code));
5500 * Checks whether the underlying logical interface is declared as bridge.
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.
5507 isBridge: function() {
5508 return (!this.isVirtual() && this.getType() == 'bridge');
5512 * Get the name of the opkg package providing the protocol functionality.
5514 * This function should be overwritten by protocol specific subclasses.
5519 * Returns the name of the opkg package required for the protocol to
5520 * function, e.g. `odhcp6c` for the `dhcpv6` prototocol.
5522 getOpkgPackage: function() {
5527 * Check function for the protocol handler if a new interface is createable.
5529 * This function should be overwritten by protocol specific subclasses.
5533 * @param {string} ifname
5534 * The name of the interface to be created.
5536 * @returns {Promise<void>}
5537 * Returns a promise resolving if new interface is createable, else
5538 * rejects with an error message string.
5540 isCreateable: function(ifname) {
5541 return Promise.resolve(null);
5545 * Checks whether the protocol functionality is installed.
5547 * This function exists for compatibility with old code, it always
5553 * @returns {boolean}
5554 * Returns `true` if the protocol support is installed, else `false`.
5556 isInstalled: function() {
5561 * Checks whether this protocol is "virtual".
5563 * A "virtual" protocol is a protocol which spawns its own interfaces
5564 * on demand instead of using existing physical interfaces.
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.
5570 * This function should be overwritten by subclasses.
5572 * @returns {boolean}
5573 * Returns a boolean indicating whether the underlying protocol spawns
5574 * dynamic interfaces (`true`) or not (`false`).
5576 isVirtual: function() {
5581 * Checks whether this protocol is "floating".
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.
5587 * An example for such a protocol is "pppoe".
5589 * This function exists for backwards compatibility with older code
5590 * but should not be used anymore.
5593 * @returns {boolean}
5594 * Returns a boolean indicating whether this protocol is floating (`true`)
5597 isFloating: function() {
5602 * Checks whether this logical interface is dynamic.
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.
5609 * @returns {boolean}
5610 * Returns a boolean indicating whether this interface is dynamic (`true`)
5613 isDynamic: function() {
5614 return (this._ubus('dynamic') == true);
5618 * Checks whether this interface is an alias interface.
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.
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.
5628 isAlias: function() {
5629 var ifnames = L.toArray(uci.get('network', this.sid, 'ifname')),
5632 for (var i = 0; i < ifnames.length; i++)
5633 if (ifnames[i].charAt(0) == '@')
5634 parent = ifnames[i].substr(1);
5635 else if (parent != null)
5642 * Checks whether this logical interface is "empty", meaning that ut
5643 * has no network devices attached.
5645 * @returns {boolean}
5646 * Returns `true` if this logical interface is empty, else `false`.
5648 isEmpty: function() {
5649 if (this.isFloating())
5653 ifname = this._get('ifname');
5655 if (ifname != null && ifname.match(/\S+/))
5658 if (empty == true && getWifiNetidBySid(this.sid) != null)
5665 * Checks whether this logical interface is configured and running.
5667 * @returns {boolean}
5668 * Returns `true` when the interface is active or `false` when it is not.
5671 return (this._ubus('up') == true);
5675 * Add the given network device to the logical interface.
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.
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.
5687 addDevice: function(ifname) {
5688 ifname = ifnameOf(ifname);
5690 if (ifname == null || this.isFloating())
5693 var wif = getWifiSidByIfname(ifname);
5696 return appendValue('wireless', wif, 'network', this.sid);
5698 return appendValue('network', this.sid, 'ifname', ifname);
5702 * Remove the given network device from the logical interface.
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.
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.
5714 deleteDevice: function(ifname) {
5717 ifname = ifnameOf(ifname);
5719 if (ifname == null || this.isFloating())
5722 var wif = getWifiSidByIfname(ifname);
5725 rv = removeValue('wireless', wif, 'network', this.sid);
5727 if (removeValue('network', this.sid, 'ifname', ifname))
5734 * Returns the Linux network device associated with this logical
5737 * @returns {LuCI.network.Device}
5738 * Returns a `Network.Device` class instance representing the
5739 * expected Linux network device according to the configuration.
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);
5747 else if (this.isBridge()) {
5748 var ifname = 'br-%s'.format(this.sid);
5749 _state.isBridge[ifname] = true;
5750 return new Device(ifname, this);
5753 var ifnames = L.toArray(uci.get('network', this.sid, 'ifname'));
5755 for (var i = 0; i < ifnames.length; i++) {
5756 var m = ifnames[i].match(/^([^:/]+)/);
5757 return ((m && m[1]) ? Network.prototype.instantiateDevice(m[1], this) : null);
5760 ifname = getWifiNetidByNetname(this.sid);
5762 return (ifname != null ? Network.prototype.instantiateDevice(ifname[0], this) : null);
5767 * Returns the layer 2 linux network device currently associated
5768 * with this logical interface.
5770 * @returns {LuCI.network.Device}
5771 * Returns a `Network.Device` class instance representing the Linux
5772 * network device currently associated with the logical interface.
5774 getL2Device: function() {
5775 var ifname = this._ubus('device');
5776 return (ifname != null ? Network.prototype.instantiateDevice(ifname, this) : null);
5780 * Returns the layer 3 linux network device currently associated
5781 * with this logical interface.
5783 * @returns {LuCI.network.Device}
5784 * Returns a `Network.Device` class instance representing the Linux
5785 * network device currently associated with the logical interface.
5787 getL3Device: function() {
5788 var ifname = this._ubus('l3_device');
5789 return (ifname != null ? Network.prototype.instantiateDevice(ifname, this) : null);
5793 * Returns a list of network sub-devices associated with this logical
5796 * @returns {null|Array<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.
5802 getDevices: function() {
5805 if (!this.isBridge() && !(this.isVirtual() && !this.isFloating()))
5808 var ifnames = L.toArray(uci.get('network', this.sid, 'ifname'));
5810 for (var i = 0; i < ifnames.length; i++) {
5811 if (ifnames[i].charAt(0) == '@')
5814 var m = ifnames[i].match(/^([^:/]+)/);
5816 rv.push(Network.prototype.instantiateDevice(m[1], this));
5819 var uciWifiIfaces = uci.sections('wireless', 'wifi-iface');
5821 for (var i = 0; i < uciWifiIfaces.length; i++) {
5822 if (typeof(uciWifiIfaces[i].device) != 'string')
5825 var networks = L.toArray(uciWifiIfaces[i].network);
5827 for (var j = 0; j < networks.length; j++) {
5828 if (networks[j] != this.sid)
5831 var netid = getWifiNetidBySid(uciWifiIfaces[i]['.name']);
5834 rv.push(Network.prototype.instantiateDevice(netid[0], this));
5838 rv.sort(deviceSort);
5844 * Checks whether this logical interface contains the given device
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.
5852 * @returns {boolean}
5853 * Returns `true` when this logical interface contains the given network
5854 * device or `false` if not.
5856 containsDevice: function(ifname) {
5857 ifname = ifnameOf(ifname);
5861 else if (this.isVirtual() && '%s-%s'.format(this.getProtocol(), this.sid) == ifname)
5863 else if (this.isBridge() && 'br-%s'.format(this.sid) == ifname)
5866 var ifnames = L.toArray(uci.get('network', this.sid, 'ifname'));
5868 for (var i = 0; i < ifnames.length; i++) {
5869 var m = ifnames[i].match(/^([^:/]+)/);
5870 if (m != null && m[1] == ifname)
5874 var wif = getWifiSidByIfname(ifname);
5877 var networks = L.toArray(uci.get('wireless', wif, 'network'));
5879 for (var i = 0; i < networks.length; i++)
5880 if (networks[i] == this.sid)
5888 * Cleanup related configuration entries.
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.
5894 * It should be overwritten by protocol specific subclasses.
5898 * @returns {*|Promise<*>}
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.
5904 deleteConfiguration: function() {}
5909 * @memberof LuCI.network
5913 * A `Network.Device` class instance represents an underlying Linux network
5914 * device and allows querying device details such as packet statistics or MTU.
5916 Device = baseclass.extend(/** @lends LuCI.network.Device.prototype */ {
5917 __init__: function(ifname, network) {
5918 var wif = getWifiSidByIfname(ifname);
5921 var res = getWifiStateBySid(wif) || [],
5922 netid = getWifiNetidBySid(wif) || [];
5924 this.wif = new WifiNetwork(wif, res[0], res[1], netid[0], res[2], { ifname: ifname });
5925 this.ifname = this.wif.getIfname();
5928 this.ifname = this.ifname || ifname;
5929 this.dev = _state.netdevs[this.ifname];
5930 this.network = network;
5933 _devstate: function(/* ... */) {
5936 for (var i = 0; i < arguments.length; i++)
5938 rv = rv[arguments[i]];
5946 * Get the name of the network device.
5949 * Returns the name of the device, e.g. `eth0` or `wlan0`.
5951 getName: function() {
5952 return (this.wif != null ? this.wif.getIfname() : this.ifname);
5956 * Get the MAC address of the device.
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.
5962 getMAC: function() {
5963 var mac = this._devstate('macaddr');
5964 return mac ? mac.toUpperCase() : null;
5968 * Get the MTU of the device.
5971 * Returns the MTU of the device.
5973 getMTU: function() {
5974 return this._devstate('mtu');
5978 * Get the IPv4 addresses configured on the device.
5980 * @returns {string[]}
5981 * Returns an array of IPv4 address strings.
5983 getIPAddrs: function() {
5984 var addrs = this._devstate('ipaddrs');
5985 return (Array.isArray(addrs) ? addrs : []);
5989 * Get the IPv6 addresses configured on the device.
5991 * @returns {string[]}
5992 * Returns an array of IPv6 address strings.
5994 getIP6Addrs: function() {
5995 var addrs = this._devstate('ip6addrs');
5996 return (Array.isArray(addrs) ? addrs : []);
6000 * Get the type of the device..
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
6012 getType: function() {
6013 if (this.ifname != null && this.ifname.charAt(0) == '@')
6015 else if (this.wif != null || isWifiIfname(this.ifname))
6017 else if (_state.isBridge[this.ifname])
6019 else if (_state.isTunnel[this.ifname])
6021 else if (this.ifname.indexOf('.') > -1)
6023 else if (_state.isSwitch[this.ifname])
6030 * Get a short description string for the device.
6033 * Returns the device name for non-wifi devices or a string containing
6034 * the operation mode and SSID for wifi devices.
6036 getShortName: function() {
6037 if (this.wif != null)
6038 return this.wif.getShortName();
6044 * Get a long description string for the device.
6047 * Returns a string containing the type description and device name
6048 * for non-wifi devices or operation mode and ssid for wifi ones.
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() || '?');
6058 return '%s: "%s"'.format(this.getTypeI18n(), this.getName());
6062 * Get a string describing the device type.
6065 * Returns a string describing the type, e.g. "Wireless Adapter" or
6068 getTypeI18n: function() {
6069 switch (this.getType()) {
6071 return _('Alias Interface');
6074 return _('Wireless Adapter');
6080 return _('Ethernet Switch');
6083 return (_state.isSwitch[this.ifname] ? _('Switch VLAN') : _('Software VLAN'));
6086 return _('Tunnel Interface');
6089 return _('Ethernet Adapter');
6094 * Get the associated bridge ports of the device.
6096 * @returns {null|Array<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
6101 getPorts: function() {
6102 var br = _state.bridges[this.ifname],
6105 if (br == null || !Array.isArray(br.ifnames))
6108 for (var i = 0; i < br.ifnames.length; i++)
6109 rv.push(Network.prototype.instantiateDevice(br.ifnames[i].name));
6111 rv.sort(deviceSort);
6119 * @returns {null|string}
6120 * Returns the ID of this network bridge or `null` if this network
6121 * device is not a Linux bridge.
6123 getBridgeID: function() {
6124 var br = _state.bridges[this.ifname];
6125 return (br != null ? br.id : null);
6129 * Get the bridge STP setting
6131 * @returns {boolean}
6132 * Returns `true` when this device is a Linux bridge and has `stp`
6133 * enabled, else `false`.
6135 getBridgeSTP: function() {
6136 var br = _state.bridges[this.ifname];
6137 return (br != null ? !!br.stp : false);
6141 * Checks whether this device is up.
6143 * @returns {boolean}
6144 * Returns `true` when the associated device is running pr `false`
6145 * when it is down or absent.
6148 var up = this._devstate('flags', 'up');
6151 up = (this.getType() == 'alias');
6157 * Checks whether this device is a Linux bridge.
6159 * @returns {boolean}
6160 * Returns `true` when the network device is present and a Linux bridge,
6163 isBridge: function() {
6164 return (this.getType() == 'bridge');
6168 * Checks whether this device is part of a Linux bridge.
6170 * @returns {boolean}
6171 * Returns `true` when this network device is part of a bridge,
6174 isBridgePort: function() {
6175 return (this._devstate('bridge') != null);
6179 * Get the amount of transmitted bytes.
6182 * Returns the amount of bytes transmitted by the network device.
6184 getTXBytes: function() {
6185 var stat = this._devstate('stats');
6186 return (stat != null ? stat.tx_bytes || 0 : 0);
6190 * Get the amount of received bytes.
6193 * Returns the amount of bytes received by the network device.
6195 getRXBytes: function() {
6196 var stat = this._devstate('stats');
6197 return (stat != null ? stat.rx_bytes || 0 : 0);
6201 * Get the amount of transmitted packets.
6204 * Returns the amount of packets transmitted by the network device.
6206 getTXPackets: function() {
6207 var stat = this._devstate('stats');
6208 return (stat != null ? stat.tx_packets || 0 : 0);
6212 * Get the amount of received packets.
6215 * Returns the amount of packets received by the network device.
6217 getRXPackets: function() {
6218 var stat = this._devstate('stats');
6219 return (stat != null ? stat.rx_packets || 0 : 0);
6223 * Get the primary logical interface this device is assigned to.
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.
6230 getNetwork: function() {
6231 return this.getNetworks()[0];
6235 * Get the logical interfaces this device is assigned to.
6237 * @returns {Array<LuCI.network.Protocol>}
6238 * Returns an array of `Network.Protocol` instances representing the
6239 * logical interfaces this device is assigned to.
6241 getNetworks: function() {
6242 if (this.networks == null) {
6245 var networks = enumerateNetworks.apply(L.network);
6247 for (var i = 0; i < networks.length; i++)
6248 if (networks[i].containsDevice(this.ifname) || networks[i].getIfname() == this.ifname)
6249 this.networks.push(networks[i]);
6251 this.networks.sort(networkSort);
6254 return this.networks;
6258 * Get the related wireless network this device is related to.
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.
6265 getWifiNetwork: function() {
6266 return (this.wif != null ? this.wif : null);
6272 * @memberof LuCI.network
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.
6280 WifiDevice = baseclass.extend(/** @lends LuCI.network.WifiDevice.prototype */ {
6281 __init__: function(name, radiostate) {
6282 var uciWifiDevice = uci.get('wireless', name);
6284 if (uciWifiDevice != null &&
6285 uciWifiDevice['.type'] == 'wifi-device' &&
6286 uciWifiDevice['.name'] != null) {
6287 this.sid = uciWifiDevice['.name'];
6290 this.sid = this.sid || name;
6298 ubus: function(/* ... */) {
6299 var v = this._ubusdata;
6301 for (var i = 0; i < arguments.length; i++)
6303 v = v[arguments[i]];
6311 * Read the given UCI option value of this wireless device.
6313 * @param {string} opt
6314 * The UCI option name to read.
6316 * @returns {null|string|string[]}
6317 * Returns the UCI option value or `null` if the requested option is
6320 get: function(opt) {
6321 return uci.get('wireless', this.sid, opt);
6325 * Set the given UCI option of this network to the given value.
6327 * @param {string} opt
6328 * The name of the UCI option to set.
6330 * @param {null|string|string[]} val
6331 * The value to set or `null` to remove the given option from the
6334 set: function(opt, value) {
6335 return uci.set('wireless', this.sid, opt, value);
6339 * Checks whether this wireless radio is disabled.
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.
6346 isDisabled: function() {
6347 return this.ubus('dev', 'disabled') || this.get('disabled') == '1';
6351 * Get the configuration name of this wireless radio.
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.
6358 getName: function() {
6363 * Gets a list of supported hwmodes.
6365 * The hwmode values describe the frequency band and wireless standard
6366 * versions supported by the wireless phy.
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
6377 getHWModes: function() {
6378 var hwmodes = this.ubus('dev', 'iwinfo', 'hwmodes');
6379 return Array.isArray(hwmodes) ? hwmodes : [ 'b', 'g' ];
6383 * Gets a list of supported htmodes.
6385 * The htmode values describe the wide-frequency options supported by
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
6398 getHTModes: function() {
6399 var htmodes = this.ubus('dev', 'iwinfo', 'htmodes');
6400 return (Array.isArray(htmodes) && htmodes.length) ? htmodes : null;
6404 * Get a string describing the wireless radio hardware.
6407 * Returns the description string.
6409 getI18n: function() {
6410 var hw = this.ubus('dev', 'iwinfo', 'hardware'),
6411 type = L.isObject(hw) ? hw.name : null;
6413 if (this.ubus('dev', 'iwinfo', 'type') == 'wl')
6416 var hwmodes = this.getHWModes(),
6419 hwmodes.sort(function(a, b) {
6420 return (a.length != b.length ? a.length > b.length : a > b);
6423 modestr = hwmodes.join('');
6425 return '%s 802.11%s Wireless Controller (%s)'.format(type || 'Generic', modestr, this.getName());
6429 * A wireless scan result object describes a neighbouring wireless
6430 * network found in the vincinity.
6432 * @typedef {Object<string, number|string|LuCI.network.WifiEncryption>} WifiScanResult
6433 * @memberof LuCI.network
6435 * @property {string} ssid
6436 * The SSID / Mesh ID of the network.
6438 * @property {string} bssid
6439 * The BSSID if the network.
6441 * @property {string} mode
6442 * The operation mode of the network (`Master`, `Ad-Hoc`, `Mesh Point`).
6444 * @property {number} channel
6445 * The wireless channel of the network.
6447 * @property {number} signal
6448 * The received signal strength of the network in dBm.
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.
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.
6458 * @property {LuCI.network.WifiEncryption} encryption
6459 * The encryption used by the wireless network.
6463 * Trigger a wireless scan on this radio device and obtain a list of
6466 * @returns {Promise<Array<LuCI.network.WifiScanResult>>}
6467 * Returns a promise resolving to an array of scan result objects
6468 * describing the networks found in the vincinity.
6470 getScanList: function() {
6471 return callIwinfoScan(this.sid);
6475 * Check whether the wireless radio is marked as up in the `ubus`
6478 * @returns {boolean}
6479 * Returns `true` when the radio device is up, else `false`.
6482 if (L.isObject(_state.radios[this.sid]))
6483 return (_state.radios[this.sid].up == true);
6489 * Get the wifi network of the given name belonging to this radio device
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.
6497 * @returns {Promise<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.
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);
6507 if (uciWifiIface == null || uciWifiIface['.type'] != 'wifi-iface' || uciWifiIface.device != this.sid)
6508 return Promise.reject();
6510 return networkInstance;
6515 * Get all wireless networks associated with this wireless radio device.
6517 * @returns {Promise<Array<LuCI.network.WifiNetwork>>}
6518 * Returns a promise resolving to an array of `Network.WifiNetwork`
6519 * instances respresenting the wireless networks associated with this
6522 getWifiNetworks: function() {
6523 return Network.prototype.getWifiNetworks().then(L.bind(function(networks) {
6526 for (var i = 0; i < networks.length; i++)
6527 if (networks[i].getWifiDeviceName() == this.getName())
6528 rv.push(networks[i]);
6535 * Adds a new wireless network associated with this radio device to the
6536 * configuration and sets its options to the provided values.
6538 * @param {Object<string, string|string[]>} [options]
6539 * The options to set for the newly added wireless network.
6541 * @returns {Promise<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
6546 addWifiNetwork: function(options) {
6547 if (!L.isObject(options))
6550 options.device = this.sid;
6552 return Network.prototype.addWifiNetwork(options);
6556 * Deletes the wireless network with the given name associated with this
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.
6565 * @returns {Promise<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.
6571 deleteWifiNetwork: function(network) {
6574 if (network instanceof WifiNetwork) {
6578 var uciWifiIface = uci.get('wireless', network);
6580 if (uciWifiIface == null || uciWifiIface['.type'] != 'wifi-iface')
6581 sid = getWifiSidByIfname(network);
6584 if (sid == null || uci.get('wireless', sid, 'device') != this.sid)
6585 return Promise.resolve(false);
6587 uci.delete('wireless', network);
6589 return Promise.resolve(true);
6595 * @memberof LuCI.network
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.
6604 WifiNetwork = baseclass.extend(/** @lends LuCI.network.WifiNetwork.prototype */ {
6605 __init__: function(sid, radioname, radiostate, netid, netstate, hostapd) {
6616 ubus: function(/* ... */) {
6617 var v = this._ubusdata;
6619 for (var i = 0; i < arguments.length; i++)
6621 v = v[arguments[i]];
6629 * Read the given UCI option value of this wireless network.
6631 * @param {string} opt
6632 * The UCI option name to read.
6634 * @returns {null|string|string[]}
6635 * Returns the UCI option value or `null` if the requested option is
6638 get: function(opt) {
6639 return uci.get('wireless', this.sid, opt);
6643 * Set the given UCI option of this network to the given value.
6645 * @param {string} opt
6646 * The name of the UCI option to set.
6648 * @param {null|string|string[]} val
6649 * The value to set or `null` to remove the given option from the
6652 set: function(opt, value) {
6653 return uci.set('wireless', this.sid, opt, value);
6657 * Checks whether this wireless network is disabled.
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.
6664 isDisabled: function() {
6665 return this.ubus('dev', 'disabled') || this.get('disabled') == '1';
6669 * Get the configured operation mode of the wireless network.
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
6679 getMode: function() {
6680 return this.ubus('net', 'config', 'mode') || this.get('mode') || 'ap';
6684 * Get the configured SSID of the wireless network.
6686 * @returns {null|string}
6687 * Returns the configured SSID value or `null` when this network is
6690 getSSID: function() {
6691 if (this.getMode() == 'mesh')
6694 return this.ubus('net', 'config', 'ssid') || this.get('ssid');
6698 * Get the configured Mesh ID of the wireless network.
6700 * @returns {null|string}
6701 * Returns the configured mesh ID value or `null` when this network
6702 * is not in mesh mode.
6704 getMeshID: function() {
6705 if (this.getMode() != 'mesh')
6708 return this.ubus('net', 'config', 'mesh_id') || this.get('mesh_id');
6712 * Get the configured BSSID of the wireless network.
6714 * @returns {null|string}
6715 * Returns the BSSID value or `null` if none has been specified.
6717 getBSSID: function() {
6718 return this.ubus('net', 'config', 'bssid') || this.get('bssid');
6722 * Get the names of the logical interfaces this wireless network is
6725 * @returns {string[]}
6726 * Returns an array of logical interface names.
6728 getNetworkNames: function() {
6729 return L.toArray(this.ubus('net', 'config', 'network') || this.get('network'));
6733 * Get the internal network ID of this wireless network.
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.
6740 * Returns the LuCI specific network ID.
6747 * Get the configuration ID of this wireless network.
6750 * Returns the corresponding UCI section ID of the network.
6752 getName: function() {
6757 * Get the Linux network device name.
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.
6764 getIfname: function() {
6765 var ifname = this.ubus('net', 'ifname') || this.ubus('net', 'iwinfo', 'ifname');
6767 if (ifname == null || ifname.match(/^(wifi|radio)\d/))
6768 ifname = this.netid;
6774 * Get the name of the corresponding wifi radio device.
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.
6780 getWifiDeviceName: function() {
6781 return this.ubus('radio') || this.get('device');
6785 * Get the corresponding wifi radio device.
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
6792 getWifiDevice: function() {
6793 var radioname = this.getWifiDeviceName();
6795 if (radioname == null)
6796 return Promise.reject();
6798 return Network.prototype.getWifiDevice(radioname);
6802 * Check whether the radio network is up.
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
6810 * @returns {boolean}
6811 * Returns `true` when the network is up, else `false`.
6814 var device = this.getDevice();
6819 return device.isUp();
6823 * Query the current operation mode from runtime information.
6826 * Returns the human readable mode name as reported by `ubus` runtime
6827 * state. Possible returned values are:
6839 getActiveMode: function() {
6840 var mode = this.ubus('net', 'iwinfo', 'mode') || this.ubus('net', 'config', 'mode') || this.get('mode') || 'ap';
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;
6853 * Query the current operation mode from runtime information as
6854 * translated string.
6857 * Returns the translated, human readable mode name as reported by
6858 *`ubus` runtime state.
6860 getActiveModeI18n: function() {
6861 var mode = this.getActiveMode();
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;
6874 * Query the current SSID from runtime information.
6877 * Returns the current SSID or Mesh ID as reported by `ubus` runtime
6880 getActiveSSID: function() {
6881 return this.ubus('net', 'iwinfo', 'ssid') || this.ubus('net', 'config', 'ssid') || this.get('ssid');
6885 * Query the current BSSID from runtime information.
6888 * Returns the current BSSID or Mesh ID as reported by `ubus` runtime
6891 getActiveBSSID: function() {
6892 return this.ubus('net', 'iwinfo', 'bssid') || this.ubus('net', 'config', 'bssid') || this.get('bssid');
6896 * Query the current encryption settings from runtime information.
6899 * Returns a string describing the current encryption or `-` if the the
6900 * encryption state could not be found in `ubus` runtime information.
6902 getActiveEncryption: function() {
6903 return formatWifiEncryption(this.ubus('net', 'iwinfo', 'encryption')) || '-';
6907 * A wireless peer entry describes the properties of a remote wireless
6908 * peer associated with a local network.
6910 * @typedef {Object<string, boolean|number|string|LuCI.network.WifiRateEntry>} WifiPeerEntry
6911 * @memberof LuCI.network
6913 * @property {string} mac
6914 * The MAC address (BSSID).
6916 * @property {number} signal
6917 * The received signal strength.
6919 * @property {number} [signal_avg]
6920 * The average signal strength if supported by the driver.
6922 * @property {number} [noise]
6923 * The current noise floor of the radio. May be `0` or absent if not
6924 * supported by the driver.
6926 * @property {number} inactive
6927 * The amount of milliseconds the peer has been inactive, e.g. due
6930 * @property {number} connected_time
6931 * The amount of milliseconds the peer is associated to this network.
6933 * @property {number} [thr]
6934 * The estimated throughput of the peer, May be `0` or absent if not
6935 * supported by the driver.
6937 * @property {boolean} authorized
6938 * Specifies whether the peer is authorized to associate to this network.
6940 * @property {boolean} authenticated
6941 * Specifies whether the peer completed authentication to this network.
6943 * @property {string} preamble
6944 * The preamble mode used by the peer. May be `long` or `short`.
6946 * @property {boolean} wme
6947 * Specifies whether the peer supports WME/WMM capabilities.
6949 * @property {boolean} mfp
6950 * Specifies whether management frame protection is active.
6952 * @property {boolean} tdls
6953 * Specifies whether TDLS is active.
6955 * @property {number} [mesh llid]
6956 * The mesh LLID, may be `0` or absent if not applicable or supported
6959 * @property {number} [mesh plid]
6960 * The mesh PLID, may be `0` or absent if not applicable or supported
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.
6967 * The following states are known:
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
6982 * The following modes are known:
6983 * - `ACTIVE` (no power save)
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
6993 * The following modes are known:
6994 * - `ACTIVE` (no power save)
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.
7003 * The following modes are known:
7004 * - `ACTIVE` (no power save)
7009 * @property {LuCI.network.WifiRateEntry} rx
7010 * Describes the receiving wireless rate from the peer.
7012 * @property {LuCI.network.WifiRateEntry} tx
7013 * Describes the transmitting wireless rate to the peer.
7017 * A wireless rate entry describes the properties of a wireless
7018 * transmission rate to or from a peer.
7020 * @typedef {Object<string, boolean|number>} WifiRateEntry
7021 * @memberof LuCI.network
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
7028 * @property {number} packets
7029 * The amount of packets that have been received or sent.
7031 * @property {number} bytes
7032 * The amount of bytes that have been received or sent.
7034 * @property {number} [failed]
7035 * The amount of failed tranmission attempts. Only applicable to
7038 * @property {number} [retries]
7039 * The amount of retried transmissions. Only applicable to transmit
7042 * @property {boolean} is_ht
7043 * Specifies whether this rate is an HT (IEEE 802.11n) rate.
7045 * @property {boolean} is_vht
7046 * Specifies whether this rate is an VHT (IEEE 802.11ac) rate.
7048 * @property {number} mhz
7049 * The channel width in MHz used for the transmission.
7051 * @property {number} rate
7052 * The bitrate in bit/s of the transmission.
7054 * @property {number} [mcs]
7055 * The MCS index of the used transmission rate. Only applicable to
7058 * @property {number} [40mhz]
7059 * Specifies whether the tranmission rate used 40MHz wide channel.
7060 * Only applicable to HT or VHT rates.
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.
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.
7070 * @property {number} [nss]
7071 * Specifies the number of spatial streams used by the transmission.
7072 * Only applicable to VHT rates.
7076 * Fetch the list of associated peers.
7078 * @returns {Promise<Array<LuCI.network.WifiPeerEntry>>}
7079 * Returns a promise resolving to an array of wireless peers associated
7080 * with this network.
7082 getAssocList: function() {
7083 return callIwinfoAssoclist(this.getIfname());
7087 * Query the current operating frequency of the wireless network.
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
7094 getFrequency: function() {
7095 var freq = this.ubus('net', 'iwinfo', 'frequency');
7097 if (freq != null && freq > 0)
7098 return '%.03f'.format(freq / 1000);
7104 * Query the current average bitrate of all peers associated to this
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
7112 getBitRate: function() {
7113 var rate = this.ubus('net', 'iwinfo', 'bitrate');
7115 if (rate != null && rate > 0)
7116 return (rate / 1000);
7122 * Query the current wireless channel.
7124 * @returns {null|number}
7125 * Returns the wireless channel as reported by `ubus` runtime information
7126 * or `null` if it cannot be determined.
7128 getChannel: function() {
7129 return this.ubus('net', 'iwinfo', 'channel') || this.ubus('dev', 'config', 'channel') || this.get('channel');
7133 * Query the current wireless signal.
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.
7139 getSignal: function() {
7140 return this.ubus('net', 'iwinfo', 'signal') || 0;
7144 * Query the current radio noise floor.
7147 * Returns the radio noise floor in dBm as reported by `ubus` runtime
7148 * information or `0` if it cannot be determined.
7150 getNoise: function() {
7151 return this.ubus('net', 'iwinfo', 'noise') || 0;
7155 * Query the current country code.
7158 * Returns the wireless country code as reported by `ubus` runtime
7159 * information or `00` if it cannot be determined.
7161 getCountryCode: function() {
7162 return this.ubus('net', 'iwinfo', 'country') || this.ubus('dev', 'config', 'country') || '00';
7166 * Query the current radio TX power.
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.
7172 getTXPower: function() {
7173 return this.ubus('net', 'iwinfo', 'txpower');
7177 * Query the radio TX power offset.
7179 * Some wireless radios have a fixed power offset, e.g. due to the
7180 * use of external amplifiers.
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.
7187 getTXPowerOffset: function() {
7188 return this.ubus('net', 'iwinfo', 'txpower_offset') || 0;
7192 * Calculate the current signal.
7196 * Returns the calculated signal level, which is the difference between
7197 * noise and signal (SNR), divided by 5.
7199 getSignalLevel: function(signal, noise) {
7200 if (this.getActiveBSSID() == '00:00:00:00:00:00')
7203 signal = signal || this.getSignal();
7204 noise = noise || this.getNoise();
7206 if (signal < 0 && noise < 0) {
7207 var snr = -1 * (noise - signal);
7208 return Math.floor(snr / 5);
7215 * Calculate the current signal quality percentage.
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.
7222 getSignalPercent: function() {
7223 var qc = this.ubus('net', 'iwinfo', 'quality') || 0,
7224 qm = this.ubus('net', 'iwinfo', 'quality_max') || 0;
7226 if (qc > 0 && qm > 0)
7227 return Math.floor((100 / qm) * qc);
7233 * Get a short description string for this wireless network.
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.
7240 getShortName: function() {
7241 return '%s "%s"'.format(
7242 this.getActiveModeI18n(),
7243 this.getActiveSSID() || this.getActiveBSSID() || this.getID());
7247 * Get a description string for this wireless network.
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.
7255 getI18n: function() {
7256 return '%s: %s "%s" (%s)'.format(
7257 _('Wireless Network'),
7258 this.getActiveModeI18n(),
7259 this.getActiveSSID() || this.getActiveBSSID() || this.getID(),
7264 * Get the primary logical interface this wireless network is attached to.
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
7271 getNetwork: function() {
7272 return this.getNetworks()[0];
7276 * Get the logical interfaces this wireless network is attached to.
7278 * @returns {Array<LuCI.network.Protocol>}
7279 * Returns an array of `Network.Protocol` instances representing the
7280 * logical interfaces this wireless network is attached to.
7282 getNetworks: function() {
7283 var networkNames = this.getNetworkNames(),
7286 for (var i = 0; i < networkNames.length; i++) {
7287 var uciInterface = uci.get('network', networkNames[i]);
7289 if (uciInterface == null || uciInterface['.type'] != 'interface')
7292 networks.push(Network.prototype.instantiateNetwork(networkNames[i]));
7295 networks.sort(networkSort);
7301 * Get the associated Linux network device.
7303 * @returns {LuCI.network.Device}
7304 * Returns a `Network.Device` instance representing the Linux network
7305 * device associted with this wireless network.
7307 getDevice: function() {
7308 return Network.prototype.instantiateDevice(this.getIfname());
7312 * Check whether this wifi network supports deauthenticating clients.
7314 * @returns {boolean}
7315 * Returns `true` when this wifi network instance supports forcibly
7316 * deauthenticating clients, otherwise `false`.
7318 isClientDisconnectSupported: function() {
7319 return L.isObject(this.ubus('hostapd', 'del_client'));
7323 * Forcibly disconnect the given client from the wireless network.
7325 * @param {string} mac
7326 * The MAC address of the client to disconnect.
7328 * @param {boolean} [deauth=false]
7329 * Specifies whether to deauthenticate (`true`) or disassociate (`false`)
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`.
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.
7341 * @returns {Promise<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
7347 disconnectClient: function(mac, deauth, reason, ban_time) {
7348 if (reason == null || reason == 0)
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);
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)
7379 <script>prettyPrint();</script>
7380 <script src="scripts/jaguar.js"></script>