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#naturalCompare"><a href=
"LuCI.html#naturalCompare">naturalCompare
</a></li>
54 <li data-name=
"LuCI#Poll"><a href=
"LuCI.html#Poll">Poll
</a></li>
56 <li data-name=
"LuCI#Request"><a href=
"LuCI.html#Request">Request
</a></li>
58 <li data-name=
"LuCI#view"><a href=
"LuCI.html#view">view
</a></li>
61 <ul class=
"typedefs itemMembers">
63 <span class=
"subtitle">Typedefs
</span>
65 <li data-name=
"LuCI.requestCallbackFn"><a href=
"LuCI.html#.requestCallbackFn">requestCallbackFn
</a></li>
68 <ul class=
"typedefs itemMembers">
71 <ul class=
"methods itemMembers">
73 <span class=
"subtitle">Methods
</span>
75 <li data-name=
"LuCI#bind"><a href=
"LuCI.html#bind">bind
</a></li>
77 <li data-name=
"LuCI#error"><a href=
"LuCI.html#error">error
</a></li>
79 <li data-name=
"LuCI#fspath"><a href=
"LuCI.html#fspath">fspath
</a></li>
81 <li data-name=
"LuCI#get"><a href=
"LuCI.html#get">get
</a></li>
83 <li data-name=
"LuCI#halt"><a href=
"LuCI.html#halt">halt
</a></li>
85 <li data-name=
"LuCI#hasSystemFeature"><a href=
"LuCI.html#hasSystemFeature">hasSystemFeature
</a></li>
87 <li data-name=
"LuCI#hasViewPermission"><a href=
"LuCI.html#hasViewPermission">hasViewPermission
</a></li>
89 <li data-name=
"LuCI#isObject"><a href=
"LuCI.html#isObject">isObject
</a></li>
91 <li data-name=
"LuCI#location"><a href=
"LuCI.html#location">location
</a></li>
93 <li data-name=
"LuCI#media"><a href=
"LuCI.html#media">media
</a></li>
95 <li data-name=
"LuCI#path"><a href=
"LuCI.html#path">path
</a></li>
97 <li data-name=
"LuCI#poll"><a href=
"LuCI.html#poll">poll
</a></li>
99 <li data-name=
"LuCI#post"><a href=
"LuCI.html#post">post
</a></li>
101 <li data-name=
"LuCI#raise"><a href=
"LuCI.html#raise">raise
</a></li>
103 <li data-name=
"LuCI#require"><a href=
"LuCI.html#require">require
</a></li>
105 <li data-name=
"LuCI#resolveDefault"><a href=
"LuCI.html#resolveDefault">resolveDefault
</a></li>
107 <li data-name=
"LuCI#resource"><a href=
"LuCI.html#resource">resource
</a></li>
109 <li data-name=
"LuCI#run"><a href=
"LuCI.html#run">run
</a></li>
111 <li data-name=
"LuCI#sortedArray"><a href=
"LuCI.html#sortedArray">sortedArray
</a></li>
113 <li data-name=
"LuCI#sortedKeys"><a href=
"LuCI.html#sortedKeys">sortedKeys
</a></li>
115 <li data-name=
"LuCI#stop"><a href=
"LuCI.html#stop">stop
</a></li>
117 <li data-name=
"LuCI#toArray"><a href=
"LuCI.html#toArray">toArray
</a></li>
119 <li data-name=
"LuCI#url"><a href=
"LuCI.html#url">url
</a></li>
122 <ul class=
"events itemMembers">
127 <li class=
"item" data-name=
"LuCI.baseclass">
129 <a href=
"LuCI.baseclass.html">LuCI.baseclass
</a>
132 <ul class=
"members itemMembers">
135 <ul class=
"typedefs itemMembers">
138 <ul class=
"typedefs itemMembers">
141 <ul class=
"methods itemMembers">
143 <span class=
"subtitle">Methods
</span>
145 <li data-name=
"LuCI.baseclass.extend"><a href=
"LuCI.baseclass.html#.extend">extend
</a></li>
147 <li data-name=
"LuCI.baseclass.instantiate"><a href=
"LuCI.baseclass.html#.instantiate">instantiate
</a></li>
149 <li data-name=
"LuCI.baseclass.isSubclass"><a href=
"LuCI.baseclass.html#.isSubclass">isSubclass
</a></li>
151 <li data-name=
"LuCI.baseclass.singleton"><a href=
"LuCI.baseclass.html#.singleton">singleton
</a></li>
153 <li data-name=
"LuCI.baseclass#super"><a href=
"LuCI.baseclass.html#super">super
</a></li>
155 <li data-name=
"LuCI.baseclass#varargs"><a href=
"LuCI.baseclass.html#varargs">varargs
</a></li>
158 <ul class=
"events itemMembers">
163 <li class=
"item" data-name=
"LuCI.dom">
165 <a href=
"LuCI.dom.html">LuCI.dom
</a>
168 <ul class=
"members itemMembers">
171 <ul class=
"typedefs itemMembers">
173 <span class=
"subtitle">Typedefs
</span>
175 <li data-name=
"LuCI.dom~ignoreCallbackFn"><a href=
"LuCI.dom.html#~ignoreCallbackFn">ignoreCallbackFn
</a></li>
178 <ul class=
"typedefs itemMembers">
181 <ul class=
"methods itemMembers">
183 <span class=
"subtitle">Methods
</span>
185 <li data-name=
"LuCI.dom#append"><a href=
"LuCI.dom.html#append">append
</a></li>
187 <li data-name=
"LuCI.dom#attr"><a href=
"LuCI.dom.html#attr">attr
</a></li>
189 <li data-name=
"LuCI.dom#bindClassInstance"><a href=
"LuCI.dom.html#bindClassInstance">bindClassInstance
</a></li>
191 <li data-name=
"LuCI.dom#callClassMethod"><a href=
"LuCI.dom.html#callClassMethod">callClassMethod
</a></li>
193 <li data-name=
"LuCI.dom#content"><a href=
"LuCI.dom.html#content">content
</a></li>
195 <li data-name=
"LuCI.dom#create"><a href=
"LuCI.dom.html#create">create
</a></li>
197 <li data-name=
"LuCI.dom#data"><a href=
"LuCI.dom.html#data">data
</a></li>
199 <li data-name=
"LuCI.dom#elem"><a href=
"LuCI.dom.html#elem">elem
</a></li>
201 <li data-name=
"LuCI.dom#findClassInstance"><a href=
"LuCI.dom.html#findClassInstance">findClassInstance
</a></li>
203 <li data-name=
"LuCI.dom#isEmpty"><a href=
"LuCI.dom.html#isEmpty">isEmpty
</a></li>
205 <li data-name=
"LuCI.dom#matches"><a href=
"LuCI.dom.html#matches">matches
</a></li>
207 <li data-name=
"LuCI.dom#parent"><a href=
"LuCI.dom.html#parent">parent
</a></li>
209 <li data-name=
"LuCI.dom#parse"><a href=
"LuCI.dom.html#parse">parse
</a></li>
212 <ul class=
"events itemMembers">
217 <li class=
"item" data-name=
"LuCI.form">
219 <a href=
"LuCI.form.html">LuCI.form
</a>
222 <ul class=
"members itemMembers">
225 <ul class=
"typedefs itemMembers">
228 <ul class=
"typedefs itemMembers">
231 <ul class=
"methods itemMembers">
234 <ul class=
"events itemMembers">
239 <li class=
"item" data-name=
"LuCI.form.AbstractElement">
241 <a href=
"LuCI.form.AbstractElement.html">LuCI.form.AbstractElement
</a>
244 <ul class=
"members itemMembers">
247 <ul class=
"typedefs itemMembers">
250 <ul class=
"typedefs itemMembers">
253 <ul class=
"methods itemMembers">
255 <span class=
"subtitle">Methods
</span>
257 <li data-name=
"LuCI.form.AbstractElement#append"><a href=
"LuCI.form.AbstractElement.html#append">append
</a></li>
259 <li data-name=
"LuCI.form.AbstractElement#parse"><a href=
"LuCI.form.AbstractElement.html#parse">parse
</a></li>
261 <li data-name=
"LuCI.form.AbstractElement#render"><a href=
"LuCI.form.AbstractElement.html#render">render
</a></li>
263 <li data-name=
"LuCI.form.AbstractElement#stripTags"><a href=
"LuCI.form.AbstractElement.html#stripTags">stripTags
</a></li>
265 <li data-name=
"LuCI.form.AbstractElement#titleFn"><a href=
"LuCI.form.AbstractElement.html#titleFn">titleFn
</a></li>
268 <ul class=
"events itemMembers">
273 <li class=
"item" data-name=
"LuCI.form.AbstractSection">
275 <a href=
"LuCI.form.AbstractSection.html">LuCI.form.AbstractSection
</a>
278 <ul class=
"members itemMembers">
280 <span class=
"subtitle">Members
</span>
282 <li data-name=
"LuCI.form.AbstractSection##parentoption"><a href=
"LuCI.form.AbstractSection.html#parentoption">parentoption
</a></li>
285 <ul class=
"typedefs itemMembers">
288 <ul class=
"typedefs itemMembers">
291 <ul class=
"methods itemMembers">
293 <span class=
"subtitle">Methods
</span>
295 <li data-name=
"LuCI.form.AbstractSection#append"><a href=
"LuCI.form.AbstractSection.html#append">append
</a></li>
297 <li data-name=
"LuCI.form.AbstractSection#cfgsections"><a href=
"LuCI.form.AbstractSection.html#cfgsections">cfgsections
</a></li>
299 <li data-name=
"LuCI.form.AbstractSection#cfgvalue"><a href=
"LuCI.form.AbstractSection.html#cfgvalue">cfgvalue
</a></li>
301 <li data-name=
"LuCI.form.AbstractSection#filter"><a href=
"LuCI.form.AbstractSection.html#filter">filter
</a></li>
303 <li data-name=
"LuCI.form.AbstractSection#formvalue"><a href=
"LuCI.form.AbstractSection.html#formvalue">formvalue
</a></li>
305 <li data-name=
"LuCI.form.AbstractSection#getOption"><a href=
"LuCI.form.AbstractSection.html#getOption">getOption
</a></li>
307 <li data-name=
"LuCI.form.AbstractSection#getUIElement"><a href=
"LuCI.form.AbstractSection.html#getUIElement">getUIElement
</a></li>
309 <li data-name=
"LuCI.form.AbstractSection#load"><a href=
"LuCI.form.AbstractSection.html#load">load
</a></li>
311 <li data-name=
"LuCI.form.AbstractSection#option"><a href=
"LuCI.form.AbstractSection.html#option">option
</a></li>
313 <li data-name=
"LuCI.form.AbstractSection#parse"><a href=
"LuCI.form.AbstractSection.html#parse">parse
</a></li>
315 <li data-name=
"LuCI.form.AbstractSection#render"><a href=
"LuCI.form.AbstractSection.html#render">render
</a></li>
317 <li data-name=
"LuCI.form.AbstractSection#stripTags"><a href=
"LuCI.form.AbstractSection.html#stripTags">stripTags
</a></li>
319 <li data-name=
"LuCI.form.AbstractSection#tab"><a href=
"LuCI.form.AbstractSection.html#tab">tab
</a></li>
321 <li data-name=
"LuCI.form.AbstractSection#taboption"><a href=
"LuCI.form.AbstractSection.html#taboption">taboption
</a></li>
323 <li data-name=
"LuCI.form.AbstractSection#titleFn"><a href=
"LuCI.form.AbstractSection.html#titleFn">titleFn
</a></li>
326 <ul class=
"events itemMembers">
331 <li class=
"item" data-name=
"LuCI.form.AbstractValue">
333 <a href=
"LuCI.form.AbstractValue.html">LuCI.form.AbstractValue
</a>
336 <ul class=
"members itemMembers">
338 <span class=
"subtitle">Members
</span>
340 <li data-name=
"LuCI.form.AbstractValue##datatype"><a href=
"LuCI.form.AbstractValue.html#datatype">datatype
</a></li>
342 <li data-name=
"LuCI.form.AbstractValue##default"><a href=
"LuCI.form.AbstractValue.html#default">default
</a></li>
344 <li data-name=
"LuCI.form.AbstractValue##editable"><a href=
"LuCI.form.AbstractValue.html#editable">editable
</a></li>
346 <li data-name=
"LuCI.form.AbstractValue##modalonly"><a href=
"LuCI.form.AbstractValue.html#modalonly">modalonly
</a></li>
348 <li data-name=
"LuCI.form.AbstractValue##onchange"><a href=
"LuCI.form.AbstractValue.html#onchange">onchange
</a></li>
350 <li data-name=
"LuCI.form.AbstractValue##optional"><a href=
"LuCI.form.AbstractValue.html#optional">optional
</a></li>
352 <li data-name=
"LuCI.form.AbstractValue##readonly"><a href=
"LuCI.form.AbstractValue.html#readonly">readonly
</a></li>
354 <li data-name=
"LuCI.form.AbstractValue##retain"><a href=
"LuCI.form.AbstractValue.html#retain">retain
</a></li>
356 <li data-name=
"LuCI.form.AbstractValue##rmempty"><a href=
"LuCI.form.AbstractValue.html#rmempty">rmempty
</a></li>
358 <li data-name=
"LuCI.form.AbstractValue##uciconfig"><a href=
"LuCI.form.AbstractValue.html#uciconfig">uciconfig
</a></li>
360 <li data-name=
"LuCI.form.AbstractValue##ucioption"><a href=
"LuCI.form.AbstractValue.html#ucioption">ucioption
</a></li>
362 <li data-name=
"LuCI.form.AbstractValue##ucisection"><a href=
"LuCI.form.AbstractValue.html#ucisection">ucisection
</a></li>
364 <li data-name=
"LuCI.form.AbstractValue##validate"><a href=
"LuCI.form.AbstractValue.html#validate">validate
</a></li>
366 <li data-name=
"LuCI.form.AbstractValue##width"><a href=
"LuCI.form.AbstractValue.html#width">width
</a></li>
369 <ul class=
"typedefs itemMembers">
372 <ul class=
"typedefs itemMembers">
375 <ul class=
"methods itemMembers">
377 <span class=
"subtitle">Methods
</span>
379 <li data-name=
"LuCI.form.AbstractValue#append"><a href=
"LuCI.form.AbstractValue.html#append">append
</a></li>
381 <li data-name=
"LuCI.form.AbstractValue#cbid"><a href=
"LuCI.form.AbstractValue.html#cbid">cbid
</a></li>
383 <li data-name=
"LuCI.form.AbstractValue#cfgvalue"><a href=
"LuCI.form.AbstractValue.html#cfgvalue">cfgvalue
</a></li>
385 <li data-name=
"LuCI.form.AbstractValue#depends"><a href=
"LuCI.form.AbstractValue.html#depends">depends
</a></li>
387 <li data-name=
"LuCI.form.AbstractValue#formvalue"><a href=
"LuCI.form.AbstractValue.html#formvalue">formvalue
</a></li>
389 <li data-name=
"LuCI.form.AbstractValue#getUIElement"><a href=
"LuCI.form.AbstractValue.html#getUIElement">getUIElement
</a></li>
391 <li data-name=
"LuCI.form.AbstractValue#getValidationError"><a href=
"LuCI.form.AbstractValue.html#getValidationError">getValidationError
</a></li>
393 <li data-name=
"LuCI.form.AbstractValue#isActive"><a href=
"LuCI.form.AbstractValue.html#isActive">isActive
</a></li>
395 <li data-name=
"LuCI.form.AbstractValue#isValid"><a href=
"LuCI.form.AbstractValue.html#isValid">isValid
</a></li>
397 <li data-name=
"LuCI.form.AbstractValue#load"><a href=
"LuCI.form.AbstractValue.html#load">load
</a></li>
399 <li data-name=
"LuCI.form.AbstractValue#parse"><a href=
"LuCI.form.AbstractValue.html#parse">parse
</a></li>
401 <li data-name=
"LuCI.form.AbstractValue#remove"><a href=
"LuCI.form.AbstractValue.html#remove">remove
</a></li>
403 <li data-name=
"LuCI.form.AbstractValue#render"><a href=
"LuCI.form.AbstractValue.html#render">render
</a></li>
405 <li data-name=
"LuCI.form.AbstractValue#stripTags"><a href=
"LuCI.form.AbstractValue.html#stripTags">stripTags
</a></li>
407 <li data-name=
"LuCI.form.AbstractValue#textvalue"><a href=
"LuCI.form.AbstractValue.html#textvalue">textvalue
</a></li>
409 <li data-name=
"LuCI.form.AbstractValue#titleFn"><a href=
"LuCI.form.AbstractValue.html#titleFn">titleFn
</a></li>
411 <li data-name=
"LuCI.form.AbstractValue#validate"><a href=
"LuCI.form.AbstractValue.html#validate">validate
</a></li>
413 <li data-name=
"LuCI.form.AbstractValue#write"><a href=
"LuCI.form.AbstractValue.html#write">write
</a></li>
416 <ul class=
"events itemMembers">
421 <li class=
"item" data-name=
"LuCI.form.ButtonValue">
423 <a href=
"LuCI.form.ButtonValue.html">LuCI.form.ButtonValue
</a>
426 <ul class=
"members itemMembers">
428 <span class=
"subtitle">Members
</span>
430 <li data-name=
"LuCI.form.ButtonValue##inputstyle"><a href=
"LuCI.form.ButtonValue.html#inputstyle">inputstyle
</a></li>
432 <li data-name=
"LuCI.form.ButtonValue##inputtitle"><a href=
"LuCI.form.ButtonValue.html#inputtitle">inputtitle
</a></li>
434 <li data-name=
"LuCI.form.ButtonValue##onclick"><a href=
"LuCI.form.ButtonValue.html#onclick">onclick
</a></li>
436 <li data-name=
"LuCI.form.ButtonValue#datatype"><a href=
"LuCI.form.ButtonValue.html#datatype">datatype
</a></li>
438 <li data-name=
"LuCI.form.ButtonValue#default"><a href=
"LuCI.form.ButtonValue.html#default">default
</a></li>
440 <li data-name=
"LuCI.form.ButtonValue#editable"><a href=
"LuCI.form.ButtonValue.html#editable">editable
</a></li>
442 <li data-name=
"LuCI.form.ButtonValue#modalonly"><a href=
"LuCI.form.ButtonValue.html#modalonly">modalonly
</a></li>
444 <li data-name=
"LuCI.form.ButtonValue#onchange"><a href=
"LuCI.form.ButtonValue.html#onchange">onchange
</a></li>
446 <li data-name=
"LuCI.form.ButtonValue#optional"><a href=
"LuCI.form.ButtonValue.html#optional">optional
</a></li>
448 <li data-name=
"LuCI.form.ButtonValue#password"><a href=
"LuCI.form.ButtonValue.html#password">password
</a></li>
450 <li data-name=
"LuCI.form.ButtonValue#placeholder"><a href=
"LuCI.form.ButtonValue.html#placeholder">placeholder
</a></li>
452 <li data-name=
"LuCI.form.ButtonValue#readonly"><a href=
"LuCI.form.ButtonValue.html#readonly">readonly
</a></li>
454 <li data-name=
"LuCI.form.ButtonValue#retain"><a href=
"LuCI.form.ButtonValue.html#retain">retain
</a></li>
456 <li data-name=
"LuCI.form.ButtonValue#rmempty"><a href=
"LuCI.form.ButtonValue.html#rmempty">rmempty
</a></li>
458 <li data-name=
"LuCI.form.ButtonValue#uciconfig"><a href=
"LuCI.form.ButtonValue.html#uciconfig">uciconfig
</a></li>
460 <li data-name=
"LuCI.form.ButtonValue#ucioption"><a href=
"LuCI.form.ButtonValue.html#ucioption">ucioption
</a></li>
462 <li data-name=
"LuCI.form.ButtonValue#ucisection"><a href=
"LuCI.form.ButtonValue.html#ucisection">ucisection
</a></li>
464 <li data-name=
"LuCI.form.ButtonValue#validate"><a href=
"LuCI.form.ButtonValue.html#validate">validate
</a></li>
466 <li data-name=
"LuCI.form.ButtonValue#width"><a href=
"LuCI.form.ButtonValue.html#width">width
</a></li>
469 <ul class=
"typedefs itemMembers">
472 <ul class=
"typedefs itemMembers">
475 <ul class=
"methods itemMembers">
477 <span class=
"subtitle">Methods
</span>
479 <li data-name=
"LuCI.form.ButtonValue#append"><a href=
"LuCI.form.ButtonValue.html#append">append
</a></li>
481 <li data-name=
"LuCI.form.ButtonValue#cbid"><a href=
"LuCI.form.ButtonValue.html#cbid">cbid
</a></li>
483 <li data-name=
"LuCI.form.ButtonValue#cfgvalue"><a href=
"LuCI.form.ButtonValue.html#cfgvalue">cfgvalue
</a></li>
485 <li data-name=
"LuCI.form.ButtonValue#depends"><a href=
"LuCI.form.ButtonValue.html#depends">depends
</a></li>
487 <li data-name=
"LuCI.form.ButtonValue#formvalue"><a href=
"LuCI.form.ButtonValue.html#formvalue">formvalue
</a></li>
489 <li data-name=
"LuCI.form.ButtonValue#getUIElement"><a href=
"LuCI.form.ButtonValue.html#getUIElement">getUIElement
</a></li>
491 <li data-name=
"LuCI.form.ButtonValue#getValidationError"><a href=
"LuCI.form.ButtonValue.html#getValidationError">getValidationError
</a></li>
493 <li data-name=
"LuCI.form.ButtonValue#isActive"><a href=
"LuCI.form.ButtonValue.html#isActive">isActive
</a></li>
495 <li data-name=
"LuCI.form.ButtonValue#isValid"><a href=
"LuCI.form.ButtonValue.html#isValid">isValid
</a></li>
497 <li data-name=
"LuCI.form.ButtonValue#load"><a href=
"LuCI.form.ButtonValue.html#load">load
</a></li>
499 <li data-name=
"LuCI.form.ButtonValue#parse"><a href=
"LuCI.form.ButtonValue.html#parse">parse
</a></li>
501 <li data-name=
"LuCI.form.ButtonValue#remove"><a href=
"LuCI.form.ButtonValue.html#remove">remove
</a></li>
503 <li data-name=
"LuCI.form.ButtonValue#stripTags"><a href=
"LuCI.form.ButtonValue.html#stripTags">stripTags
</a></li>
505 <li data-name=
"LuCI.form.ButtonValue#textvalue"><a href=
"LuCI.form.ButtonValue.html#textvalue">textvalue
</a></li>
507 <li data-name=
"LuCI.form.ButtonValue#titleFn"><a href=
"LuCI.form.ButtonValue.html#titleFn">titleFn
</a></li>
509 <li data-name=
"LuCI.form.ButtonValue#value"><a href=
"LuCI.form.ButtonValue.html#value">value
</a></li>
511 <li data-name=
"LuCI.form.ButtonValue#write"><a href=
"LuCI.form.ButtonValue.html#write">write
</a></li>
514 <ul class=
"events itemMembers">
519 <li class=
"item" data-name=
"LuCI.form.DummyValue">
521 <a href=
"LuCI.form.DummyValue.html">LuCI.form.DummyValue
</a>
524 <ul class=
"members itemMembers">
526 <span class=
"subtitle">Members
</span>
528 <li data-name=
"LuCI.form.DummyValue##hidden"><a href=
"LuCI.form.DummyValue.html#hidden">hidden
</a></li>
530 <li data-name=
"LuCI.form.DummyValue##href"><a href=
"LuCI.form.DummyValue.html#href">href
</a></li>
532 <li data-name=
"LuCI.form.DummyValue##rawhtml"><a href=
"LuCI.form.DummyValue.html#rawhtml">rawhtml
</a></li>
534 <li data-name=
"LuCI.form.DummyValue#datatype"><a href=
"LuCI.form.DummyValue.html#datatype">datatype
</a></li>
536 <li data-name=
"LuCI.form.DummyValue#default"><a href=
"LuCI.form.DummyValue.html#default">default
</a></li>
538 <li data-name=
"LuCI.form.DummyValue#editable"><a href=
"LuCI.form.DummyValue.html#editable">editable
</a></li>
540 <li data-name=
"LuCI.form.DummyValue#modalonly"><a href=
"LuCI.form.DummyValue.html#modalonly">modalonly
</a></li>
542 <li data-name=
"LuCI.form.DummyValue#onchange"><a href=
"LuCI.form.DummyValue.html#onchange">onchange
</a></li>
544 <li data-name=
"LuCI.form.DummyValue#optional"><a href=
"LuCI.form.DummyValue.html#optional">optional
</a></li>
546 <li data-name=
"LuCI.form.DummyValue#password"><a href=
"LuCI.form.DummyValue.html#password">password
</a></li>
548 <li data-name=
"LuCI.form.DummyValue#placeholder"><a href=
"LuCI.form.DummyValue.html#placeholder">placeholder
</a></li>
550 <li data-name=
"LuCI.form.DummyValue#readonly"><a href=
"LuCI.form.DummyValue.html#readonly">readonly
</a></li>
552 <li data-name=
"LuCI.form.DummyValue#retain"><a href=
"LuCI.form.DummyValue.html#retain">retain
</a></li>
554 <li data-name=
"LuCI.form.DummyValue#rmempty"><a href=
"LuCI.form.DummyValue.html#rmempty">rmempty
</a></li>
556 <li data-name=
"LuCI.form.DummyValue#uciconfig"><a href=
"LuCI.form.DummyValue.html#uciconfig">uciconfig
</a></li>
558 <li data-name=
"LuCI.form.DummyValue#ucioption"><a href=
"LuCI.form.DummyValue.html#ucioption">ucioption
</a></li>
560 <li data-name=
"LuCI.form.DummyValue#ucisection"><a href=
"LuCI.form.DummyValue.html#ucisection">ucisection
</a></li>
562 <li data-name=
"LuCI.form.DummyValue#validate"><a href=
"LuCI.form.DummyValue.html#validate">validate
</a></li>
564 <li data-name=
"LuCI.form.DummyValue#width"><a href=
"LuCI.form.DummyValue.html#width">width
</a></li>
567 <ul class=
"typedefs itemMembers">
570 <ul class=
"typedefs itemMembers">
573 <ul class=
"methods itemMembers">
575 <span class=
"subtitle">Methods
</span>
577 <li data-name=
"LuCI.form.DummyValue#append"><a href=
"LuCI.form.DummyValue.html#append">append
</a></li>
579 <li data-name=
"LuCI.form.DummyValue#cbid"><a href=
"LuCI.form.DummyValue.html#cbid">cbid
</a></li>
581 <li data-name=
"LuCI.form.DummyValue#cfgvalue"><a href=
"LuCI.form.DummyValue.html#cfgvalue">cfgvalue
</a></li>
583 <li data-name=
"LuCI.form.DummyValue#depends"><a href=
"LuCI.form.DummyValue.html#depends">depends
</a></li>
585 <li data-name=
"LuCI.form.DummyValue#formvalue"><a href=
"LuCI.form.DummyValue.html#formvalue">formvalue
</a></li>
587 <li data-name=
"LuCI.form.DummyValue#getUIElement"><a href=
"LuCI.form.DummyValue.html#getUIElement">getUIElement
</a></li>
589 <li data-name=
"LuCI.form.DummyValue#getValidationError"><a href=
"LuCI.form.DummyValue.html#getValidationError">getValidationError
</a></li>
591 <li data-name=
"LuCI.form.DummyValue#isActive"><a href=
"LuCI.form.DummyValue.html#isActive">isActive
</a></li>
593 <li data-name=
"LuCI.form.DummyValue#isValid"><a href=
"LuCI.form.DummyValue.html#isValid">isValid
</a></li>
595 <li data-name=
"LuCI.form.DummyValue#load"><a href=
"LuCI.form.DummyValue.html#load">load
</a></li>
597 <li data-name=
"LuCI.form.DummyValue#parse"><a href=
"LuCI.form.DummyValue.html#parse">parse
</a></li>
599 <li data-name=
"LuCI.form.DummyValue#remove"><a href=
"LuCI.form.DummyValue.html#remove">remove
</a></li>
601 <li data-name=
"LuCI.form.DummyValue#stripTags"><a href=
"LuCI.form.DummyValue.html#stripTags">stripTags
</a></li>
603 <li data-name=
"LuCI.form.DummyValue#textvalue"><a href=
"LuCI.form.DummyValue.html#textvalue">textvalue
</a></li>
605 <li data-name=
"LuCI.form.DummyValue#titleFn"><a href=
"LuCI.form.DummyValue.html#titleFn">titleFn
</a></li>
607 <li data-name=
"LuCI.form.DummyValue#value"><a href=
"LuCI.form.DummyValue.html#value">value
</a></li>
609 <li data-name=
"LuCI.form.DummyValue#write"><a href=
"LuCI.form.DummyValue.html#write">write
</a></li>
612 <ul class=
"events itemMembers">
617 <li class=
"item" data-name=
"LuCI.form.DynamicList">
619 <a href=
"LuCI.form.DynamicList.html">LuCI.form.DynamicList
</a>
622 <ul class=
"members itemMembers">
624 <span class=
"subtitle">Members
</span>
626 <li data-name=
"LuCI.form.DynamicList#datatype"><a href=
"LuCI.form.DynamicList.html#datatype">datatype
</a></li>
628 <li data-name=
"LuCI.form.DynamicList#default"><a href=
"LuCI.form.DynamicList.html#default">default
</a></li>
630 <li data-name=
"LuCI.form.DynamicList#editable"><a href=
"LuCI.form.DynamicList.html#editable">editable
</a></li>
632 <li data-name=
"LuCI.form.DynamicList#modalonly"><a href=
"LuCI.form.DynamicList.html#modalonly">modalonly
</a></li>
634 <li data-name=
"LuCI.form.DynamicList#onchange"><a href=
"LuCI.form.DynamicList.html#onchange">onchange
</a></li>
636 <li data-name=
"LuCI.form.DynamicList#optional"><a href=
"LuCI.form.DynamicList.html#optional">optional
</a></li>
638 <li data-name=
"LuCI.form.DynamicList#password"><a href=
"LuCI.form.DynamicList.html#password">password
</a></li>
640 <li data-name=
"LuCI.form.DynamicList#placeholder"><a href=
"LuCI.form.DynamicList.html#placeholder">placeholder
</a></li>
642 <li data-name=
"LuCI.form.DynamicList#readonly"><a href=
"LuCI.form.DynamicList.html#readonly">readonly
</a></li>
644 <li data-name=
"LuCI.form.DynamicList#retain"><a href=
"LuCI.form.DynamicList.html#retain">retain
</a></li>
646 <li data-name=
"LuCI.form.DynamicList#rmempty"><a href=
"LuCI.form.DynamicList.html#rmempty">rmempty
</a></li>
648 <li data-name=
"LuCI.form.DynamicList#uciconfig"><a href=
"LuCI.form.DynamicList.html#uciconfig">uciconfig
</a></li>
650 <li data-name=
"LuCI.form.DynamicList#ucioption"><a href=
"LuCI.form.DynamicList.html#ucioption">ucioption
</a></li>
652 <li data-name=
"LuCI.form.DynamicList#ucisection"><a href=
"LuCI.form.DynamicList.html#ucisection">ucisection
</a></li>
654 <li data-name=
"LuCI.form.DynamicList#validate"><a href=
"LuCI.form.DynamicList.html#validate">validate
</a></li>
656 <li data-name=
"LuCI.form.DynamicList#width"><a href=
"LuCI.form.DynamicList.html#width">width
</a></li>
659 <ul class=
"typedefs itemMembers">
662 <ul class=
"typedefs itemMembers">
665 <ul class=
"methods itemMembers">
667 <span class=
"subtitle">Methods
</span>
669 <li data-name=
"LuCI.form.DynamicList#append"><a href=
"LuCI.form.DynamicList.html#append">append
</a></li>
671 <li data-name=
"LuCI.form.DynamicList#cbid"><a href=
"LuCI.form.DynamicList.html#cbid">cbid
</a></li>
673 <li data-name=
"LuCI.form.DynamicList#cfgvalue"><a href=
"LuCI.form.DynamicList.html#cfgvalue">cfgvalue
</a></li>
675 <li data-name=
"LuCI.form.DynamicList#depends"><a href=
"LuCI.form.DynamicList.html#depends">depends
</a></li>
677 <li data-name=
"LuCI.form.DynamicList#formvalue"><a href=
"LuCI.form.DynamicList.html#formvalue">formvalue
</a></li>
679 <li data-name=
"LuCI.form.DynamicList#getUIElement"><a href=
"LuCI.form.DynamicList.html#getUIElement">getUIElement
</a></li>
681 <li data-name=
"LuCI.form.DynamicList#getValidationError"><a href=
"LuCI.form.DynamicList.html#getValidationError">getValidationError
</a></li>
683 <li data-name=
"LuCI.form.DynamicList#isActive"><a href=
"LuCI.form.DynamicList.html#isActive">isActive
</a></li>
685 <li data-name=
"LuCI.form.DynamicList#isValid"><a href=
"LuCI.form.DynamicList.html#isValid">isValid
</a></li>
687 <li data-name=
"LuCI.form.DynamicList#load"><a href=
"LuCI.form.DynamicList.html#load">load
</a></li>
689 <li data-name=
"LuCI.form.DynamicList#parse"><a href=
"LuCI.form.DynamicList.html#parse">parse
</a></li>
691 <li data-name=
"LuCI.form.DynamicList#remove"><a href=
"LuCI.form.DynamicList.html#remove">remove
</a></li>
693 <li data-name=
"LuCI.form.DynamicList#stripTags"><a href=
"LuCI.form.DynamicList.html#stripTags">stripTags
</a></li>
695 <li data-name=
"LuCI.form.DynamicList#textvalue"><a href=
"LuCI.form.DynamicList.html#textvalue">textvalue
</a></li>
697 <li data-name=
"LuCI.form.DynamicList#titleFn"><a href=
"LuCI.form.DynamicList.html#titleFn">titleFn
</a></li>
699 <li data-name=
"LuCI.form.DynamicList#value"><a href=
"LuCI.form.DynamicList.html#value">value
</a></li>
701 <li data-name=
"LuCI.form.DynamicList#write"><a href=
"LuCI.form.DynamicList.html#write">write
</a></li>
704 <ul class=
"events itemMembers">
709 <li class=
"item" data-name=
"LuCI.form.FileUpload">
711 <a href=
"LuCI.form.FileUpload.html">LuCI.form.FileUpload
</a>
714 <ul class=
"members itemMembers">
716 <span class=
"subtitle">Members
</span>
718 <li data-name=
"LuCI.form.FileUpload##enable_remove"><a href=
"LuCI.form.FileUpload.html#enable_remove">enable_remove
</a></li>
720 <li data-name=
"LuCI.form.FileUpload##enable_upload"><a href=
"LuCI.form.FileUpload.html#enable_upload">enable_upload
</a></li>
722 <li data-name=
"LuCI.form.FileUpload##root_directory"><a href=
"LuCI.form.FileUpload.html#root_directory">root_directory
</a></li>
724 <li data-name=
"LuCI.form.FileUpload##show_hidden"><a href=
"LuCI.form.FileUpload.html#show_hidden">show_hidden
</a></li>
726 <li data-name=
"LuCI.form.FileUpload#datatype"><a href=
"LuCI.form.FileUpload.html#datatype">datatype
</a></li>
728 <li data-name=
"LuCI.form.FileUpload#default"><a href=
"LuCI.form.FileUpload.html#default">default
</a></li>
730 <li data-name=
"LuCI.form.FileUpload#editable"><a href=
"LuCI.form.FileUpload.html#editable">editable
</a></li>
732 <li data-name=
"LuCI.form.FileUpload#modalonly"><a href=
"LuCI.form.FileUpload.html#modalonly">modalonly
</a></li>
734 <li data-name=
"LuCI.form.FileUpload#onchange"><a href=
"LuCI.form.FileUpload.html#onchange">onchange
</a></li>
736 <li data-name=
"LuCI.form.FileUpload#optional"><a href=
"LuCI.form.FileUpload.html#optional">optional
</a></li>
738 <li data-name=
"LuCI.form.FileUpload#password"><a href=
"LuCI.form.FileUpload.html#password">password
</a></li>
740 <li data-name=
"LuCI.form.FileUpload#placeholder"><a href=
"LuCI.form.FileUpload.html#placeholder">placeholder
</a></li>
742 <li data-name=
"LuCI.form.FileUpload#readonly"><a href=
"LuCI.form.FileUpload.html#readonly">readonly
</a></li>
744 <li data-name=
"LuCI.form.FileUpload#retain"><a href=
"LuCI.form.FileUpload.html#retain">retain
</a></li>
746 <li data-name=
"LuCI.form.FileUpload#rmempty"><a href=
"LuCI.form.FileUpload.html#rmempty">rmempty
</a></li>
748 <li data-name=
"LuCI.form.FileUpload#uciconfig"><a href=
"LuCI.form.FileUpload.html#uciconfig">uciconfig
</a></li>
750 <li data-name=
"LuCI.form.FileUpload#ucioption"><a href=
"LuCI.form.FileUpload.html#ucioption">ucioption
</a></li>
752 <li data-name=
"LuCI.form.FileUpload#ucisection"><a href=
"LuCI.form.FileUpload.html#ucisection">ucisection
</a></li>
754 <li data-name=
"LuCI.form.FileUpload#validate"><a href=
"LuCI.form.FileUpload.html#validate">validate
</a></li>
756 <li data-name=
"LuCI.form.FileUpload#width"><a href=
"LuCI.form.FileUpload.html#width">width
</a></li>
759 <ul class=
"typedefs itemMembers">
762 <ul class=
"typedefs itemMembers">
765 <ul class=
"methods itemMembers">
767 <span class=
"subtitle">Methods
</span>
769 <li data-name=
"LuCI.form.FileUpload#append"><a href=
"LuCI.form.FileUpload.html#append">append
</a></li>
771 <li data-name=
"LuCI.form.FileUpload#cbid"><a href=
"LuCI.form.FileUpload.html#cbid">cbid
</a></li>
773 <li data-name=
"LuCI.form.FileUpload#cfgvalue"><a href=
"LuCI.form.FileUpload.html#cfgvalue">cfgvalue
</a></li>
775 <li data-name=
"LuCI.form.FileUpload#depends"><a href=
"LuCI.form.FileUpload.html#depends">depends
</a></li>
777 <li data-name=
"LuCI.form.FileUpload#formvalue"><a href=
"LuCI.form.FileUpload.html#formvalue">formvalue
</a></li>
779 <li data-name=
"LuCI.form.FileUpload#getUIElement"><a href=
"LuCI.form.FileUpload.html#getUIElement">getUIElement
</a></li>
781 <li data-name=
"LuCI.form.FileUpload#getValidationError"><a href=
"LuCI.form.FileUpload.html#getValidationError">getValidationError
</a></li>
783 <li data-name=
"LuCI.form.FileUpload#isActive"><a href=
"LuCI.form.FileUpload.html#isActive">isActive
</a></li>
785 <li data-name=
"LuCI.form.FileUpload#isValid"><a href=
"LuCI.form.FileUpload.html#isValid">isValid
</a></li>
787 <li data-name=
"LuCI.form.FileUpload#load"><a href=
"LuCI.form.FileUpload.html#load">load
</a></li>
789 <li data-name=
"LuCI.form.FileUpload#parse"><a href=
"LuCI.form.FileUpload.html#parse">parse
</a></li>
791 <li data-name=
"LuCI.form.FileUpload#remove"><a href=
"LuCI.form.FileUpload.html#remove">remove
</a></li>
793 <li data-name=
"LuCI.form.FileUpload#stripTags"><a href=
"LuCI.form.FileUpload.html#stripTags">stripTags
</a></li>
795 <li data-name=
"LuCI.form.FileUpload#textvalue"><a href=
"LuCI.form.FileUpload.html#textvalue">textvalue
</a></li>
797 <li data-name=
"LuCI.form.FileUpload#titleFn"><a href=
"LuCI.form.FileUpload.html#titleFn">titleFn
</a></li>
799 <li data-name=
"LuCI.form.FileUpload#value"><a href=
"LuCI.form.FileUpload.html#value">value
</a></li>
801 <li data-name=
"LuCI.form.FileUpload#write"><a href=
"LuCI.form.FileUpload.html#write">write
</a></li>
804 <ul class=
"events itemMembers">
809 <li class=
"item" data-name=
"LuCI.form.FlagValue">
811 <a href=
"LuCI.form.FlagValue.html">LuCI.form.FlagValue
</a>
814 <ul class=
"members itemMembers">
816 <span class=
"subtitle">Members
</span>
818 <li data-name=
"LuCI.form.FlagValue##disabled"><a href=
"LuCI.form.FlagValue.html#disabled">disabled
</a></li>
820 <li data-name=
"LuCI.form.FlagValue##enabled"><a href=
"LuCI.form.FlagValue.html#enabled">enabled
</a></li>
822 <li data-name=
"LuCI.form.FlagValue#datatype"><a href=
"LuCI.form.FlagValue.html#datatype">datatype
</a></li>
824 <li data-name=
"LuCI.form.FlagValue#default"><a href=
"LuCI.form.FlagValue.html#default">default
</a></li>
826 <li data-name=
"LuCI.form.FlagValue#editable"><a href=
"LuCI.form.FlagValue.html#editable">editable
</a></li>
828 <li data-name=
"LuCI.form.FlagValue#modalonly"><a href=
"LuCI.form.FlagValue.html#modalonly">modalonly
</a></li>
830 <li data-name=
"LuCI.form.FlagValue#onchange"><a href=
"LuCI.form.FlagValue.html#onchange">onchange
</a></li>
832 <li data-name=
"LuCI.form.FlagValue#optional"><a href=
"LuCI.form.FlagValue.html#optional">optional
</a></li>
834 <li data-name=
"LuCI.form.FlagValue#password"><a href=
"LuCI.form.FlagValue.html#password">password
</a></li>
836 <li data-name=
"LuCI.form.FlagValue#placeholder"><a href=
"LuCI.form.FlagValue.html#placeholder">placeholder
</a></li>
838 <li data-name=
"LuCI.form.FlagValue#readonly"><a href=
"LuCI.form.FlagValue.html#readonly">readonly
</a></li>
840 <li data-name=
"LuCI.form.FlagValue#retain"><a href=
"LuCI.form.FlagValue.html#retain">retain
</a></li>
842 <li data-name=
"LuCI.form.FlagValue#rmempty"><a href=
"LuCI.form.FlagValue.html#rmempty">rmempty
</a></li>
844 <li data-name=
"LuCI.form.FlagValue#uciconfig"><a href=
"LuCI.form.FlagValue.html#uciconfig">uciconfig
</a></li>
846 <li data-name=
"LuCI.form.FlagValue#ucioption"><a href=
"LuCI.form.FlagValue.html#ucioption">ucioption
</a></li>
848 <li data-name=
"LuCI.form.FlagValue#ucisection"><a href=
"LuCI.form.FlagValue.html#ucisection">ucisection
</a></li>
850 <li data-name=
"LuCI.form.FlagValue#validate"><a href=
"LuCI.form.FlagValue.html#validate">validate
</a></li>
852 <li data-name=
"LuCI.form.FlagValue#width"><a href=
"LuCI.form.FlagValue.html#width">width
</a></li>
855 <ul class=
"typedefs itemMembers">
858 <ul class=
"typedefs itemMembers">
861 <ul class=
"methods itemMembers">
863 <span class=
"subtitle">Methods
</span>
865 <li data-name=
"LuCI.form.FlagValue#append"><a href=
"LuCI.form.FlagValue.html#append">append
</a></li>
867 <li data-name=
"LuCI.form.FlagValue#cbid"><a href=
"LuCI.form.FlagValue.html#cbid">cbid
</a></li>
869 <li data-name=
"LuCI.form.FlagValue#cfgvalue"><a href=
"LuCI.form.FlagValue.html#cfgvalue">cfgvalue
</a></li>
871 <li data-name=
"LuCI.form.FlagValue#depends"><a href=
"LuCI.form.FlagValue.html#depends">depends
</a></li>
873 <li data-name=
"LuCI.form.FlagValue#formvalue"><a href=
"LuCI.form.FlagValue.html#formvalue">formvalue
</a></li>
875 <li data-name=
"LuCI.form.FlagValue#getUIElement"><a href=
"LuCI.form.FlagValue.html#getUIElement">getUIElement
</a></li>
877 <li data-name=
"LuCI.form.FlagValue#getValidationError"><a href=
"LuCI.form.FlagValue.html#getValidationError">getValidationError
</a></li>
879 <li data-name=
"LuCI.form.FlagValue#isActive"><a href=
"LuCI.form.FlagValue.html#isActive">isActive
</a></li>
881 <li data-name=
"LuCI.form.FlagValue#isValid"><a href=
"LuCI.form.FlagValue.html#isValid">isValid
</a></li>
883 <li data-name=
"LuCI.form.FlagValue#load"><a href=
"LuCI.form.FlagValue.html#load">load
</a></li>
885 <li data-name=
"LuCI.form.FlagValue#parse"><a href=
"LuCI.form.FlagValue.html#parse">parse
</a></li>
887 <li data-name=
"LuCI.form.FlagValue#remove"><a href=
"LuCI.form.FlagValue.html#remove">remove
</a></li>
889 <li data-name=
"LuCI.form.FlagValue#stripTags"><a href=
"LuCI.form.FlagValue.html#stripTags">stripTags
</a></li>
891 <li data-name=
"LuCI.form.FlagValue#textvalue"><a href=
"LuCI.form.FlagValue.html#textvalue">textvalue
</a></li>
893 <li data-name=
"LuCI.form.FlagValue#titleFn"><a href=
"LuCI.form.FlagValue.html#titleFn">titleFn
</a></li>
895 <li data-name=
"LuCI.form.FlagValue#value"><a href=
"LuCI.form.FlagValue.html#value">value
</a></li>
897 <li data-name=
"LuCI.form.FlagValue#write"><a href=
"LuCI.form.FlagValue.html#write">write
</a></li>
900 <ul class=
"events itemMembers">
905 <li class=
"item" data-name=
"LuCI.form.GridSection">
907 <a href=
"LuCI.form.GridSection.html">LuCI.form.GridSection
</a>
910 <ul class=
"members itemMembers">
912 <span class=
"subtitle">Members
</span>
914 <li data-name=
"LuCI.form.GridSection#addbtntitle"><a href=
"LuCI.form.GridSection.html#addbtntitle">addbtntitle
</a></li>
916 <li data-name=
"LuCI.form.GridSection#addremove"><a href=
"LuCI.form.GridSection.html#addremove">addremove
</a></li>
918 <li data-name=
"LuCI.form.GridSection#anonymous"><a href=
"LuCI.form.GridSection.html#anonymous">anonymous
</a></li>
920 <li data-name=
"LuCI.form.GridSection#extedit"><a href=
"LuCI.form.GridSection.html#extedit">extedit
</a></li>
922 <li data-name=
"LuCI.form.GridSection#max_cols"><a href=
"LuCI.form.GridSection.html#max_cols">max_cols
</a></li>
924 <li data-name=
"LuCI.form.GridSection#modaltitle"><a href=
"LuCI.form.GridSection.html#modaltitle">modaltitle
</a></li>
926 <li data-name=
"LuCI.form.GridSection#nodescriptions"><a href=
"LuCI.form.GridSection.html#nodescriptions">nodescriptions
</a></li>
928 <li data-name=
"LuCI.form.GridSection#parentoption"><a href=
"LuCI.form.GridSection.html#parentoption">parentoption
</a></li>
930 <li data-name=
"LuCI.form.GridSection#rowcolors"><a href=
"LuCI.form.GridSection.html#rowcolors">rowcolors
</a></li>
932 <li data-name=
"LuCI.form.GridSection#sectiontitle"><a href=
"LuCI.form.GridSection.html#sectiontitle">sectiontitle
</a></li>
934 <li data-name=
"LuCI.form.GridSection#sortable"><a href=
"LuCI.form.GridSection.html#sortable">sortable
</a></li>
936 <li data-name=
"LuCI.form.GridSection#tabbed"><a href=
"LuCI.form.GridSection.html#tabbed">tabbed
</a></li>
938 <li data-name=
"LuCI.form.GridSection#tooltip"><a href=
"LuCI.form.GridSection.html#tooltip">tooltip
</a></li>
940 <li data-name=
"LuCI.form.GridSection#tooltipicon"><a href=
"LuCI.form.GridSection.html#tooltipicon">tooltipicon
</a></li>
942 <li data-name=
"LuCI.form.GridSection#uciconfig"><a href=
"LuCI.form.GridSection.html#uciconfig">uciconfig
</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.GridSection#addModalOptions"><a href=
"LuCI.form.GridSection.html#addModalOptions">addModalOptions
</a></li>
957 <li data-name=
"LuCI.form.GridSection#append"><a href=
"LuCI.form.GridSection.html#append">append
</a></li>
959 <li data-name=
"LuCI.form.GridSection#cfgvalue"><a href=
"LuCI.form.GridSection.html#cfgvalue">cfgvalue
</a></li>
961 <li data-name=
"LuCI.form.GridSection#filter"><a href=
"LuCI.form.GridSection.html#filter">filter
</a></li>
963 <li data-name=
"LuCI.form.GridSection#formvalue"><a href=
"LuCI.form.GridSection.html#formvalue">formvalue
</a></li>
965 <li data-name=
"LuCI.form.GridSection#getOption"><a href=
"LuCI.form.GridSection.html#getOption">getOption
</a></li>
967 <li data-name=
"LuCI.form.GridSection#getUIElement"><a href=
"LuCI.form.GridSection.html#getUIElement">getUIElement
</a></li>
969 <li data-name=
"LuCI.form.GridSection#load"><a href=
"LuCI.form.GridSection.html#load">load
</a></li>
971 <li data-name=
"LuCI.form.GridSection#option"><a href=
"LuCI.form.GridSection.html#option">option
</a></li>
973 <li data-name=
"LuCI.form.GridSection#parse"><a href=
"LuCI.form.GridSection.html#parse">parse
</a></li>
975 <li data-name=
"LuCI.form.GridSection#stripTags"><a href=
"LuCI.form.GridSection.html#stripTags">stripTags
</a></li>
977 <li data-name=
"LuCI.form.GridSection#tab"><a href=
"LuCI.form.GridSection.html#tab">tab
</a></li>
979 <li data-name=
"LuCI.form.GridSection#taboption"><a href=
"LuCI.form.GridSection.html#taboption">taboption
</a></li>
981 <li data-name=
"LuCI.form.GridSection#titleFn"><a href=
"LuCI.form.GridSection.html#titleFn">titleFn
</a></li>
984 <ul class=
"events itemMembers">
989 <li class=
"item" data-name=
"LuCI.form.HiddenValue">
991 <a href=
"LuCI.form.HiddenValue.html">LuCI.form.HiddenValue
</a>
994 <ul class=
"members itemMembers">
996 <span class=
"subtitle">Members
</span>
998 <li data-name=
"LuCI.form.HiddenValue#datatype"><a href=
"LuCI.form.HiddenValue.html#datatype">datatype
</a></li>
1000 <li data-name=
"LuCI.form.HiddenValue#default"><a href=
"LuCI.form.HiddenValue.html#default">default
</a></li>
1002 <li data-name=
"LuCI.form.HiddenValue#editable"><a href=
"LuCI.form.HiddenValue.html#editable">editable
</a></li>
1004 <li data-name=
"LuCI.form.HiddenValue#modalonly"><a href=
"LuCI.form.HiddenValue.html#modalonly">modalonly
</a></li>
1006 <li data-name=
"LuCI.form.HiddenValue#onchange"><a href=
"LuCI.form.HiddenValue.html#onchange">onchange
</a></li>
1008 <li data-name=
"LuCI.form.HiddenValue#optional"><a href=
"LuCI.form.HiddenValue.html#optional">optional
</a></li>
1010 <li data-name=
"LuCI.form.HiddenValue#password"><a href=
"LuCI.form.HiddenValue.html#password">password
</a></li>
1012 <li data-name=
"LuCI.form.HiddenValue#placeholder"><a href=
"LuCI.form.HiddenValue.html#placeholder">placeholder
</a></li>
1014 <li data-name=
"LuCI.form.HiddenValue#readonly"><a href=
"LuCI.form.HiddenValue.html#readonly">readonly
</a></li>
1016 <li data-name=
"LuCI.form.HiddenValue#retain"><a href=
"LuCI.form.HiddenValue.html#retain">retain
</a></li>
1018 <li data-name=
"LuCI.form.HiddenValue#rmempty"><a href=
"LuCI.form.HiddenValue.html#rmempty">rmempty
</a></li>
1020 <li data-name=
"LuCI.form.HiddenValue#uciconfig"><a href=
"LuCI.form.HiddenValue.html#uciconfig">uciconfig
</a></li>
1022 <li data-name=
"LuCI.form.HiddenValue#ucioption"><a href=
"LuCI.form.HiddenValue.html#ucioption">ucioption
</a></li>
1024 <li data-name=
"LuCI.form.HiddenValue#ucisection"><a href=
"LuCI.form.HiddenValue.html#ucisection">ucisection
</a></li>
1026 <li data-name=
"LuCI.form.HiddenValue#validate"><a href=
"LuCI.form.HiddenValue.html#validate">validate
</a></li>
1028 <li data-name=
"LuCI.form.HiddenValue#width"><a href=
"LuCI.form.HiddenValue.html#width">width
</a></li>
1031 <ul class=
"typedefs itemMembers">
1034 <ul class=
"typedefs itemMembers">
1037 <ul class=
"methods itemMembers">
1039 <span class=
"subtitle">Methods
</span>
1041 <li data-name=
"LuCI.form.HiddenValue#append"><a href=
"LuCI.form.HiddenValue.html#append">append
</a></li>
1043 <li data-name=
"LuCI.form.HiddenValue#cbid"><a href=
"LuCI.form.HiddenValue.html#cbid">cbid
</a></li>
1045 <li data-name=
"LuCI.form.HiddenValue#cfgvalue"><a href=
"LuCI.form.HiddenValue.html#cfgvalue">cfgvalue
</a></li>
1047 <li data-name=
"LuCI.form.HiddenValue#depends"><a href=
"LuCI.form.HiddenValue.html#depends">depends
</a></li>
1049 <li data-name=
"LuCI.form.HiddenValue#formvalue"><a href=
"LuCI.form.HiddenValue.html#formvalue">formvalue
</a></li>
1051 <li data-name=
"LuCI.form.HiddenValue#getUIElement"><a href=
"LuCI.form.HiddenValue.html#getUIElement">getUIElement
</a></li>
1053 <li data-name=
"LuCI.form.HiddenValue#getValidationError"><a href=
"LuCI.form.HiddenValue.html#getValidationError">getValidationError
</a></li>
1055 <li data-name=
"LuCI.form.HiddenValue#isActive"><a href=
"LuCI.form.HiddenValue.html#isActive">isActive
</a></li>
1057 <li data-name=
"LuCI.form.HiddenValue#isValid"><a href=
"LuCI.form.HiddenValue.html#isValid">isValid
</a></li>
1059 <li data-name=
"LuCI.form.HiddenValue#load"><a href=
"LuCI.form.HiddenValue.html#load">load
</a></li>
1061 <li data-name=
"LuCI.form.HiddenValue#parse"><a href=
"LuCI.form.HiddenValue.html#parse">parse
</a></li>
1063 <li data-name=
"LuCI.form.HiddenValue#remove"><a href=
"LuCI.form.HiddenValue.html#remove">remove
</a></li>
1065 <li data-name=
"LuCI.form.HiddenValue#stripTags"><a href=
"LuCI.form.HiddenValue.html#stripTags">stripTags
</a></li>
1067 <li data-name=
"LuCI.form.HiddenValue#textvalue"><a href=
"LuCI.form.HiddenValue.html#textvalue">textvalue
</a></li>
1069 <li data-name=
"LuCI.form.HiddenValue#titleFn"><a href=
"LuCI.form.HiddenValue.html#titleFn">titleFn
</a></li>
1071 <li data-name=
"LuCI.form.HiddenValue#value"><a href=
"LuCI.form.HiddenValue.html#value">value
</a></li>
1073 <li data-name=
"LuCI.form.HiddenValue#write"><a href=
"LuCI.form.HiddenValue.html#write">write
</a></li>
1076 <ul class=
"events itemMembers">
1081 <li class=
"item" data-name=
"LuCI.form.JSONMap">
1082 <span class=
"title">
1083 <a href=
"LuCI.form.JSONMap.html">LuCI.form.JSONMap
</a>
1086 <ul class=
"members itemMembers">
1088 <span class=
"subtitle">Members
</span>
1090 <li data-name=
"LuCI.form.JSONMap#readonly"><a href=
"LuCI.form.JSONMap.html#readonly">readonly
</a></li>
1093 <ul class=
"typedefs itemMembers">
1096 <ul class=
"typedefs itemMembers">
1099 <ul class=
"methods itemMembers">
1101 <span class=
"subtitle">Methods
</span>
1103 <li data-name=
"LuCI.form.JSONMap#append"><a href=
"LuCI.form.JSONMap.html#append">append
</a></li>
1105 <li data-name=
"LuCI.form.JSONMap#chain"><a href=
"LuCI.form.JSONMap.html#chain">chain
</a></li>
1107 <li data-name=
"LuCI.form.JSONMap#findElement"><a href=
"LuCI.form.JSONMap.html#findElement">findElement
</a></li>
1109 <li data-name=
"LuCI.form.JSONMap#findElements"><a href=
"LuCI.form.JSONMap.html#findElements">findElements
</a></li>
1111 <li data-name=
"LuCI.form.JSONMap#load"><a href=
"LuCI.form.JSONMap.html#load">load
</a></li>
1113 <li data-name=
"LuCI.form.JSONMap#lookupOption"><a href=
"LuCI.form.JSONMap.html#lookupOption">lookupOption
</a></li>
1115 <li data-name=
"LuCI.form.JSONMap#parse"><a href=
"LuCI.form.JSONMap.html#parse">parse
</a></li>
1117 <li data-name=
"LuCI.form.JSONMap#render"><a href=
"LuCI.form.JSONMap.html#render">render
</a></li>
1119 <li data-name=
"LuCI.form.JSONMap#reset"><a href=
"LuCI.form.JSONMap.html#reset">reset
</a></li>
1121 <li data-name=
"LuCI.form.JSONMap#save"><a href=
"LuCI.form.JSONMap.html#save">save
</a></li>
1123 <li data-name=
"LuCI.form.JSONMap#section"><a href=
"LuCI.form.JSONMap.html#section">section
</a></li>
1125 <li data-name=
"LuCI.form.JSONMap#stripTags"><a href=
"LuCI.form.JSONMap.html#stripTags">stripTags
</a></li>
1127 <li data-name=
"LuCI.form.JSONMap#titleFn"><a href=
"LuCI.form.JSONMap.html#titleFn">titleFn
</a></li>
1130 <ul class=
"events itemMembers">
1135 <li class=
"item" data-name=
"LuCI.form.ListValue">
1136 <span class=
"title">
1137 <a href=
"LuCI.form.ListValue.html">LuCI.form.ListValue
</a>
1140 <ul class=
"members itemMembers">
1142 <span class=
"subtitle">Members
</span>
1144 <li data-name=
"LuCI.form.ListValue##orientation"><a href=
"LuCI.form.ListValue.html#orientation">orientation
</a></li>
1146 <li data-name=
"LuCI.form.ListValue##size"><a href=
"LuCI.form.ListValue.html#size">size
</a></li>
1148 <li data-name=
"LuCI.form.ListValue##widget"><a href=
"LuCI.form.ListValue.html#widget">widget
</a></li>
1150 <li data-name=
"LuCI.form.ListValue#datatype"><a href=
"LuCI.form.ListValue.html#datatype">datatype
</a></li>
1152 <li data-name=
"LuCI.form.ListValue#default"><a href=
"LuCI.form.ListValue.html#default">default
</a></li>
1154 <li data-name=
"LuCI.form.ListValue#editable"><a href=
"LuCI.form.ListValue.html#editable">editable
</a></li>
1156 <li data-name=
"LuCI.form.ListValue#modalonly"><a href=
"LuCI.form.ListValue.html#modalonly">modalonly
</a></li>
1158 <li data-name=
"LuCI.form.ListValue#onchange"><a href=
"LuCI.form.ListValue.html#onchange">onchange
</a></li>
1160 <li data-name=
"LuCI.form.ListValue#optional"><a href=
"LuCI.form.ListValue.html#optional">optional
</a></li>
1162 <li data-name=
"LuCI.form.ListValue#password"><a href=
"LuCI.form.ListValue.html#password">password
</a></li>
1164 <li data-name=
"LuCI.form.ListValue#placeholder"><a href=
"LuCI.form.ListValue.html#placeholder">placeholder
</a></li>
1166 <li data-name=
"LuCI.form.ListValue#readonly"><a href=
"LuCI.form.ListValue.html#readonly">readonly
</a></li>
1168 <li data-name=
"LuCI.form.ListValue#retain"><a href=
"LuCI.form.ListValue.html#retain">retain
</a></li>
1170 <li data-name=
"LuCI.form.ListValue#rmempty"><a href=
"LuCI.form.ListValue.html#rmempty">rmempty
</a></li>
1172 <li data-name=
"LuCI.form.ListValue#uciconfig"><a href=
"LuCI.form.ListValue.html#uciconfig">uciconfig
</a></li>
1174 <li data-name=
"LuCI.form.ListValue#ucioption"><a href=
"LuCI.form.ListValue.html#ucioption">ucioption
</a></li>
1176 <li data-name=
"LuCI.form.ListValue#ucisection"><a href=
"LuCI.form.ListValue.html#ucisection">ucisection
</a></li>
1178 <li data-name=
"LuCI.form.ListValue#validate"><a href=
"LuCI.form.ListValue.html#validate">validate
</a></li>
1180 <li data-name=
"LuCI.form.ListValue#width"><a href=
"LuCI.form.ListValue.html#width">width
</a></li>
1183 <ul class=
"typedefs itemMembers">
1186 <ul class=
"typedefs itemMembers">
1189 <ul class=
"methods itemMembers">
1191 <span class=
"subtitle">Methods
</span>
1193 <li data-name=
"LuCI.form.ListValue#append"><a href=
"LuCI.form.ListValue.html#append">append
</a></li>
1195 <li data-name=
"LuCI.form.ListValue#cbid"><a href=
"LuCI.form.ListValue.html#cbid">cbid
</a></li>
1197 <li data-name=
"LuCI.form.ListValue#cfgvalue"><a href=
"LuCI.form.ListValue.html#cfgvalue">cfgvalue
</a></li>
1199 <li data-name=
"LuCI.form.ListValue#depends"><a href=
"LuCI.form.ListValue.html#depends">depends
</a></li>
1201 <li data-name=
"LuCI.form.ListValue#formvalue"><a href=
"LuCI.form.ListValue.html#formvalue">formvalue
</a></li>
1203 <li data-name=
"LuCI.form.ListValue#getUIElement"><a href=
"LuCI.form.ListValue.html#getUIElement">getUIElement
</a></li>
1205 <li data-name=
"LuCI.form.ListValue#getValidationError"><a href=
"LuCI.form.ListValue.html#getValidationError">getValidationError
</a></li>
1207 <li data-name=
"LuCI.form.ListValue#isActive"><a href=
"LuCI.form.ListValue.html#isActive">isActive
</a></li>
1209 <li data-name=
"LuCI.form.ListValue#isValid"><a href=
"LuCI.form.ListValue.html#isValid">isValid
</a></li>
1211 <li data-name=
"LuCI.form.ListValue#load"><a href=
"LuCI.form.ListValue.html#load">load
</a></li>
1213 <li data-name=
"LuCI.form.ListValue#parse"><a href=
"LuCI.form.ListValue.html#parse">parse
</a></li>
1215 <li data-name=
"LuCI.form.ListValue#remove"><a href=
"LuCI.form.ListValue.html#remove">remove
</a></li>
1217 <li data-name=
"LuCI.form.ListValue#stripTags"><a href=
"LuCI.form.ListValue.html#stripTags">stripTags
</a></li>
1219 <li data-name=
"LuCI.form.ListValue#textvalue"><a href=
"LuCI.form.ListValue.html#textvalue">textvalue
</a></li>
1221 <li data-name=
"LuCI.form.ListValue#titleFn"><a href=
"LuCI.form.ListValue.html#titleFn">titleFn
</a></li>
1223 <li data-name=
"LuCI.form.ListValue#value"><a href=
"LuCI.form.ListValue.html#value">value
</a></li>
1225 <li data-name=
"LuCI.form.ListValue#write"><a href=
"LuCI.form.ListValue.html#write">write
</a></li>
1228 <ul class=
"events itemMembers">
1233 <li class=
"item" data-name=
"LuCI.form.Map">
1234 <span class=
"title">
1235 <a href=
"LuCI.form.Map.html">LuCI.form.Map
</a>
1238 <ul class=
"members itemMembers">
1240 <span class=
"subtitle">Members
</span>
1242 <li data-name=
"LuCI.form.Map##readonly"><a href=
"LuCI.form.Map.html#readonly">readonly
</a></li>
1245 <ul class=
"typedefs itemMembers">
1248 <ul class=
"typedefs itemMembers">
1251 <ul class=
"methods itemMembers">
1253 <span class=
"subtitle">Methods
</span>
1255 <li data-name=
"LuCI.form.Map#append"><a href=
"LuCI.form.Map.html#append">append
</a></li>
1257 <li data-name=
"LuCI.form.Map#chain"><a href=
"LuCI.form.Map.html#chain">chain
</a></li>
1259 <li data-name=
"LuCI.form.Map#findElement"><a href=
"LuCI.form.Map.html#findElement">findElement
</a></li>
1261 <li data-name=
"LuCI.form.Map#findElements"><a href=
"LuCI.form.Map.html#findElements">findElements
</a></li>
1263 <li data-name=
"LuCI.form.Map#load"><a href=
"LuCI.form.Map.html#load">load
</a></li>
1265 <li data-name=
"LuCI.form.Map#lookupOption"><a href=
"LuCI.form.Map.html#lookupOption">lookupOption
</a></li>
1267 <li data-name=
"LuCI.form.Map#parse"><a href=
"LuCI.form.Map.html#parse">parse
</a></li>
1269 <li data-name=
"LuCI.form.Map#render"><a href=
"LuCI.form.Map.html#render">render
</a></li>
1271 <li data-name=
"LuCI.form.Map#reset"><a href=
"LuCI.form.Map.html#reset">reset
</a></li>
1273 <li data-name=
"LuCI.form.Map#save"><a href=
"LuCI.form.Map.html#save">save
</a></li>
1275 <li data-name=
"LuCI.form.Map#section"><a href=
"LuCI.form.Map.html#section">section
</a></li>
1277 <li data-name=
"LuCI.form.Map#stripTags"><a href=
"LuCI.form.Map.html#stripTags">stripTags
</a></li>
1279 <li data-name=
"LuCI.form.Map#titleFn"><a href=
"LuCI.form.Map.html#titleFn">titleFn
</a></li>
1282 <ul class=
"events itemMembers">
1287 <li class=
"item" data-name=
"LuCI.form.MultiValue">
1288 <span class=
"title">
1289 <a href=
"LuCI.form.MultiValue.html">LuCI.form.MultiValue
</a>
1292 <ul class=
"members itemMembers">
1294 <span class=
"subtitle">Members
</span>
1296 <li data-name=
"LuCI.form.MultiValue##display_size"><a href=
"LuCI.form.MultiValue.html#display_size">display_size
</a></li>
1298 <li data-name=
"LuCI.form.MultiValue##dropdown_size"><a href=
"LuCI.form.MultiValue.html#dropdown_size">dropdown_size
</a></li>
1300 <li data-name=
"LuCI.form.MultiValue#datatype"><a href=
"LuCI.form.MultiValue.html#datatype">datatype
</a></li>
1302 <li data-name=
"LuCI.form.MultiValue#default"><a href=
"LuCI.form.MultiValue.html#default">default
</a></li>
1304 <li data-name=
"LuCI.form.MultiValue#editable"><a href=
"LuCI.form.MultiValue.html#editable">editable
</a></li>
1306 <li data-name=
"LuCI.form.MultiValue#modalonly"><a href=
"LuCI.form.MultiValue.html#modalonly">modalonly
</a></li>
1308 <li data-name=
"LuCI.form.MultiValue#onchange"><a href=
"LuCI.form.MultiValue.html#onchange">onchange
</a></li>
1310 <li data-name=
"LuCI.form.MultiValue#optional"><a href=
"LuCI.form.MultiValue.html#optional">optional
</a></li>
1312 <li data-name=
"LuCI.form.MultiValue#password"><a href=
"LuCI.form.MultiValue.html#password">password
</a></li>
1314 <li data-name=
"LuCI.form.MultiValue#placeholder"><a href=
"LuCI.form.MultiValue.html#placeholder">placeholder
</a></li>
1316 <li data-name=
"LuCI.form.MultiValue#readonly"><a href=
"LuCI.form.MultiValue.html#readonly">readonly
</a></li>
1318 <li data-name=
"LuCI.form.MultiValue#retain"><a href=
"LuCI.form.MultiValue.html#retain">retain
</a></li>
1320 <li data-name=
"LuCI.form.MultiValue#rmempty"><a href=
"LuCI.form.MultiValue.html#rmempty">rmempty
</a></li>
1322 <li data-name=
"LuCI.form.MultiValue#uciconfig"><a href=
"LuCI.form.MultiValue.html#uciconfig">uciconfig
</a></li>
1324 <li data-name=
"LuCI.form.MultiValue#ucioption"><a href=
"LuCI.form.MultiValue.html#ucioption">ucioption
</a></li>
1326 <li data-name=
"LuCI.form.MultiValue#ucisection"><a href=
"LuCI.form.MultiValue.html#ucisection">ucisection
</a></li>
1328 <li data-name=
"LuCI.form.MultiValue#validate"><a href=
"LuCI.form.MultiValue.html#validate">validate
</a></li>
1330 <li data-name=
"LuCI.form.MultiValue#width"><a href=
"LuCI.form.MultiValue.html#width">width
</a></li>
1333 <ul class=
"typedefs itemMembers">
1336 <ul class=
"typedefs itemMembers">
1339 <ul class=
"methods itemMembers">
1341 <span class=
"subtitle">Methods
</span>
1343 <li data-name=
"LuCI.form.MultiValue#append"><a href=
"LuCI.form.MultiValue.html#append">append
</a></li>
1345 <li data-name=
"LuCI.form.MultiValue#cbid"><a href=
"LuCI.form.MultiValue.html#cbid">cbid
</a></li>
1347 <li data-name=
"LuCI.form.MultiValue#cfgvalue"><a href=
"LuCI.form.MultiValue.html#cfgvalue">cfgvalue
</a></li>
1349 <li data-name=
"LuCI.form.MultiValue#depends"><a href=
"LuCI.form.MultiValue.html#depends">depends
</a></li>
1351 <li data-name=
"LuCI.form.MultiValue#formvalue"><a href=
"LuCI.form.MultiValue.html#formvalue">formvalue
</a></li>
1353 <li data-name=
"LuCI.form.MultiValue#getUIElement"><a href=
"LuCI.form.MultiValue.html#getUIElement">getUIElement
</a></li>
1355 <li data-name=
"LuCI.form.MultiValue#getValidationError"><a href=
"LuCI.form.MultiValue.html#getValidationError">getValidationError
</a></li>
1357 <li data-name=
"LuCI.form.MultiValue#isActive"><a href=
"LuCI.form.MultiValue.html#isActive">isActive
</a></li>
1359 <li data-name=
"LuCI.form.MultiValue#isValid"><a href=
"LuCI.form.MultiValue.html#isValid">isValid
</a></li>
1361 <li data-name=
"LuCI.form.MultiValue#load"><a href=
"LuCI.form.MultiValue.html#load">load
</a></li>
1363 <li data-name=
"LuCI.form.MultiValue#parse"><a href=
"LuCI.form.MultiValue.html#parse">parse
</a></li>
1365 <li data-name=
"LuCI.form.MultiValue#remove"><a href=
"LuCI.form.MultiValue.html#remove">remove
</a></li>
1367 <li data-name=
"LuCI.form.MultiValue#stripTags"><a href=
"LuCI.form.MultiValue.html#stripTags">stripTags
</a></li>
1369 <li data-name=
"LuCI.form.MultiValue#textvalue"><a href=
"LuCI.form.MultiValue.html#textvalue">textvalue
</a></li>
1371 <li data-name=
"LuCI.form.MultiValue#titleFn"><a href=
"LuCI.form.MultiValue.html#titleFn">titleFn
</a></li>
1373 <li data-name=
"LuCI.form.MultiValue#value"><a href=
"LuCI.form.MultiValue.html#value">value
</a></li>
1375 <li data-name=
"LuCI.form.MultiValue#write"><a href=
"LuCI.form.MultiValue.html#write">write
</a></li>
1378 <ul class=
"events itemMembers">
1383 <li class=
"item" data-name=
"LuCI.form.NamedSection">
1384 <span class=
"title">
1385 <a href=
"LuCI.form.NamedSection.html">LuCI.form.NamedSection
</a>
1388 <ul class=
"members itemMembers">
1390 <span class=
"subtitle">Members
</span>
1392 <li data-name=
"LuCI.form.NamedSection##addremove"><a href=
"LuCI.form.NamedSection.html#addremove">addremove
</a></li>
1394 <li data-name=
"LuCI.form.NamedSection##uciconfig"><a href=
"LuCI.form.NamedSection.html#uciconfig">uciconfig
</a></li>
1396 <li data-name=
"LuCI.form.NamedSection#parentoption"><a href=
"LuCI.form.NamedSection.html#parentoption">parentoption
</a></li>
1399 <ul class=
"typedefs itemMembers">
1402 <ul class=
"typedefs itemMembers">
1405 <ul class=
"methods itemMembers">
1407 <span class=
"subtitle">Methods
</span>
1409 <li data-name=
"LuCI.form.NamedSection#append"><a href=
"LuCI.form.NamedSection.html#append">append
</a></li>
1411 <li data-name=
"LuCI.form.NamedSection#cfgsections"><a href=
"LuCI.form.NamedSection.html#cfgsections">cfgsections
</a></li>
1413 <li data-name=
"LuCI.form.NamedSection#cfgvalue"><a href=
"LuCI.form.NamedSection.html#cfgvalue">cfgvalue
</a></li>
1415 <li data-name=
"LuCI.form.NamedSection#filter"><a href=
"LuCI.form.NamedSection.html#filter">filter
</a></li>
1417 <li data-name=
"LuCI.form.NamedSection#formvalue"><a href=
"LuCI.form.NamedSection.html#formvalue">formvalue
</a></li>
1419 <li data-name=
"LuCI.form.NamedSection#getOption"><a href=
"LuCI.form.NamedSection.html#getOption">getOption
</a></li>
1421 <li data-name=
"LuCI.form.NamedSection#getUIElement"><a href=
"LuCI.form.NamedSection.html#getUIElement">getUIElement
</a></li>
1423 <li data-name=
"LuCI.form.NamedSection#load"><a href=
"LuCI.form.NamedSection.html#load">load
</a></li>
1425 <li data-name=
"LuCI.form.NamedSection#option"><a href=
"LuCI.form.NamedSection.html#option">option
</a></li>
1427 <li data-name=
"LuCI.form.NamedSection#parse"><a href=
"LuCI.form.NamedSection.html#parse">parse
</a></li>
1429 <li data-name=
"LuCI.form.NamedSection#render"><a href=
"LuCI.form.NamedSection.html#render">render
</a></li>
1431 <li data-name=
"LuCI.form.NamedSection#stripTags"><a href=
"LuCI.form.NamedSection.html#stripTags">stripTags
</a></li>
1433 <li data-name=
"LuCI.form.NamedSection#tab"><a href=
"LuCI.form.NamedSection.html#tab">tab
</a></li>
1435 <li data-name=
"LuCI.form.NamedSection#taboption"><a href=
"LuCI.form.NamedSection.html#taboption">taboption
</a></li>
1437 <li data-name=
"LuCI.form.NamedSection#titleFn"><a href=
"LuCI.form.NamedSection.html#titleFn">titleFn
</a></li>
1440 <ul class=
"events itemMembers">
1445 <li class=
"item" data-name=
"LuCI.form.SectionValue">
1446 <span class=
"title">
1447 <a href=
"LuCI.form.SectionValue.html">LuCI.form.SectionValue
</a>
1450 <ul class=
"members itemMembers">
1452 <span class=
"subtitle">Members
</span>
1454 <li data-name=
"LuCI.form.SectionValue##subsection"><a href=
"LuCI.form.SectionValue.html#subsection">subsection
</a></li>
1456 <li data-name=
"LuCI.form.SectionValue#datatype"><a href=
"LuCI.form.SectionValue.html#datatype">datatype
</a></li>
1458 <li data-name=
"LuCI.form.SectionValue#default"><a href=
"LuCI.form.SectionValue.html#default">default
</a></li>
1460 <li data-name=
"LuCI.form.SectionValue#editable"><a href=
"LuCI.form.SectionValue.html#editable">editable
</a></li>
1462 <li data-name=
"LuCI.form.SectionValue#modalonly"><a href=
"LuCI.form.SectionValue.html#modalonly">modalonly
</a></li>
1464 <li data-name=
"LuCI.form.SectionValue#onchange"><a href=
"LuCI.form.SectionValue.html#onchange">onchange
</a></li>
1466 <li data-name=
"LuCI.form.SectionValue#optional"><a href=
"LuCI.form.SectionValue.html#optional">optional
</a></li>
1468 <li data-name=
"LuCI.form.SectionValue#password"><a href=
"LuCI.form.SectionValue.html#password">password
</a></li>
1470 <li data-name=
"LuCI.form.SectionValue#placeholder"><a href=
"LuCI.form.SectionValue.html#placeholder">placeholder
</a></li>
1472 <li data-name=
"LuCI.form.SectionValue#readonly"><a href=
"LuCI.form.SectionValue.html#readonly">readonly
</a></li>
1474 <li data-name=
"LuCI.form.SectionValue#retain"><a href=
"LuCI.form.SectionValue.html#retain">retain
</a></li>
1476 <li data-name=
"LuCI.form.SectionValue#rmempty"><a href=
"LuCI.form.SectionValue.html#rmempty">rmempty
</a></li>
1478 <li data-name=
"LuCI.form.SectionValue#uciconfig"><a href=
"LuCI.form.SectionValue.html#uciconfig">uciconfig
</a></li>
1480 <li data-name=
"LuCI.form.SectionValue#ucioption"><a href=
"LuCI.form.SectionValue.html#ucioption">ucioption
</a></li>
1482 <li data-name=
"LuCI.form.SectionValue#ucisection"><a href=
"LuCI.form.SectionValue.html#ucisection">ucisection
</a></li>
1484 <li data-name=
"LuCI.form.SectionValue#validate"><a href=
"LuCI.form.SectionValue.html#validate">validate
</a></li>
1486 <li data-name=
"LuCI.form.SectionValue#width"><a href=
"LuCI.form.SectionValue.html#width">width
</a></li>
1489 <ul class=
"typedefs itemMembers">
1492 <ul class=
"typedefs itemMembers">
1495 <ul class=
"methods itemMembers">
1497 <span class=
"subtitle">Methods
</span>
1499 <li data-name=
"LuCI.form.SectionValue#append"><a href=
"LuCI.form.SectionValue.html#append">append
</a></li>
1501 <li data-name=
"LuCI.form.SectionValue#cbid"><a href=
"LuCI.form.SectionValue.html#cbid">cbid
</a></li>
1503 <li data-name=
"LuCI.form.SectionValue#cfgvalue"><a href=
"LuCI.form.SectionValue.html#cfgvalue">cfgvalue
</a></li>
1505 <li data-name=
"LuCI.form.SectionValue#depends"><a href=
"LuCI.form.SectionValue.html#depends">depends
</a></li>
1507 <li data-name=
"LuCI.form.SectionValue#formvalue"><a href=
"LuCI.form.SectionValue.html#formvalue">formvalue
</a></li>
1509 <li data-name=
"LuCI.form.SectionValue#getUIElement"><a href=
"LuCI.form.SectionValue.html#getUIElement">getUIElement
</a></li>
1511 <li data-name=
"LuCI.form.SectionValue#getValidationError"><a href=
"LuCI.form.SectionValue.html#getValidationError">getValidationError
</a></li>
1513 <li data-name=
"LuCI.form.SectionValue#isActive"><a href=
"LuCI.form.SectionValue.html#isActive">isActive
</a></li>
1515 <li data-name=
"LuCI.form.SectionValue#isValid"><a href=
"LuCI.form.SectionValue.html#isValid">isValid
</a></li>
1517 <li data-name=
"LuCI.form.SectionValue#load"><a href=
"LuCI.form.SectionValue.html#load">load
</a></li>
1519 <li data-name=
"LuCI.form.SectionValue#parse"><a href=
"LuCI.form.SectionValue.html#parse">parse
</a></li>
1521 <li data-name=
"LuCI.form.SectionValue#remove"><a href=
"LuCI.form.SectionValue.html#remove">remove
</a></li>
1523 <li data-name=
"LuCI.form.SectionValue#stripTags"><a href=
"LuCI.form.SectionValue.html#stripTags">stripTags
</a></li>
1525 <li data-name=
"LuCI.form.SectionValue#textvalue"><a href=
"LuCI.form.SectionValue.html#textvalue">textvalue
</a></li>
1527 <li data-name=
"LuCI.form.SectionValue#titleFn"><a href=
"LuCI.form.SectionValue.html#titleFn">titleFn
</a></li>
1529 <li data-name=
"LuCI.form.SectionValue#value"><a href=
"LuCI.form.SectionValue.html#value">value
</a></li>
1531 <li data-name=
"LuCI.form.SectionValue#write"><a href=
"LuCI.form.SectionValue.html#write">write
</a></li>
1534 <ul class=
"events itemMembers">
1539 <li class=
"item" data-name=
"LuCI.form.TableSection">
1540 <span class=
"title">
1541 <a href=
"LuCI.form.TableSection.html">LuCI.form.TableSection
</a>
1544 <ul class=
"members itemMembers">
1546 <span class=
"subtitle">Members
</span>
1548 <li data-name=
"LuCI.form.TableSection##addbtntitle"><a href=
"LuCI.form.TableSection.html#addbtntitle">addbtntitle
</a></li>
1550 <li data-name=
"LuCI.form.TableSection##addremove"><a href=
"LuCI.form.TableSection.html#addremove">addremove
</a></li>
1552 <li data-name=
"LuCI.form.TableSection##anonymous"><a href=
"LuCI.form.TableSection.html#anonymous">anonymous
</a></li>
1554 <li data-name=
"LuCI.form.TableSection##extedit"><a href=
"LuCI.form.TableSection.html#extedit">extedit
</a></li>
1556 <li data-name=
"LuCI.form.TableSection##max_cols"><a href=
"LuCI.form.TableSection.html#max_cols">max_cols
</a></li>
1558 <li data-name=
"LuCI.form.TableSection##modaltitle"><a href=
"LuCI.form.TableSection.html#modaltitle">modaltitle
</a></li>
1560 <li data-name=
"LuCI.form.TableSection##nodescriptions"><a href=
"LuCI.form.TableSection.html#nodescriptions">nodescriptions
</a></li>
1562 <li data-name=
"LuCI.form.TableSection##rowcolors"><a href=
"LuCI.form.TableSection.html#rowcolors">rowcolors
</a></li>
1564 <li data-name=
"LuCI.form.TableSection##sectiontitle"><a href=
"LuCI.form.TableSection.html#sectiontitle">sectiontitle
</a></li>
1566 <li data-name=
"LuCI.form.TableSection##sortable"><a href=
"LuCI.form.TableSection.html#sortable">sortable
</a></li>
1568 <li data-name=
"LuCI.form.TableSection##uciconfig"><a href=
"LuCI.form.TableSection.html#uciconfig">uciconfig
</a></li>
1570 <li data-name=
"LuCI.form.TableSection#addbtntitle"><a href=
"LuCI.form.TableSection.html#addbtntitle">addbtntitle
</a></li>
1572 <li data-name=
"LuCI.form.TableSection#addremove"><a href=
"LuCI.form.TableSection.html#addremove">addremove
</a></li>
1574 <li data-name=
"LuCI.form.TableSection#anonymous"><a href=
"LuCI.form.TableSection.html#anonymous">anonymous
</a></li>
1576 <li data-name=
"LuCI.form.TableSection#parentoption"><a href=
"LuCI.form.TableSection.html#parentoption">parentoption
</a></li>
1578 <li data-name=
"LuCI.form.TableSection#tabbed"><a href=
"LuCI.form.TableSection.html#tabbed">tabbed
</a></li>
1580 <li data-name=
"LuCI.form.TableSection#tooltip"><a href=
"LuCI.form.TableSection.html#tooltip">tooltip
</a></li>
1582 <li data-name=
"LuCI.form.TableSection#tooltipicon"><a href=
"LuCI.form.TableSection.html#tooltipicon">tooltipicon
</a></li>
1584 <li data-name=
"LuCI.form.TableSection#uciconfig"><a href=
"LuCI.form.TableSection.html#uciconfig">uciconfig
</a></li>
1587 <ul class=
"typedefs itemMembers">
1590 <ul class=
"typedefs itemMembers">
1593 <ul class=
"methods itemMembers">
1595 <span class=
"subtitle">Methods
</span>
1597 <li data-name=
"LuCI.form.TableSection#addModalOptions"><a href=
"LuCI.form.TableSection.html#addModalOptions">addModalOptions
</a></li>
1599 <li data-name=
"LuCI.form.TableSection#append"><a href=
"LuCI.form.TableSection.html#append">append
</a></li>
1601 <li data-name=
"LuCI.form.TableSection#cfgvalue"><a href=
"LuCI.form.TableSection.html#cfgvalue">cfgvalue
</a></li>
1603 <li data-name=
"LuCI.form.TableSection#filter"><a href=
"LuCI.form.TableSection.html#filter">filter
</a></li>
1605 <li data-name=
"LuCI.form.TableSection#formvalue"><a href=
"LuCI.form.TableSection.html#formvalue">formvalue
</a></li>
1607 <li data-name=
"LuCI.form.TableSection#getOption"><a href=
"LuCI.form.TableSection.html#getOption">getOption
</a></li>
1609 <li data-name=
"LuCI.form.TableSection#getUIElement"><a href=
"LuCI.form.TableSection.html#getUIElement">getUIElement
</a></li>
1611 <li data-name=
"LuCI.form.TableSection#load"><a href=
"LuCI.form.TableSection.html#load">load
</a></li>
1613 <li data-name=
"LuCI.form.TableSection#option"><a href=
"LuCI.form.TableSection.html#option">option
</a></li>
1615 <li data-name=
"LuCI.form.TableSection#parse"><a href=
"LuCI.form.TableSection.html#parse">parse
</a></li>
1617 <li data-name=
"LuCI.form.TableSection#stripTags"><a href=
"LuCI.form.TableSection.html#stripTags">stripTags
</a></li>
1619 <li data-name=
"LuCI.form.TableSection#tab"><a href=
"LuCI.form.TableSection.html#tab">tab
</a></li>
1621 <li data-name=
"LuCI.form.TableSection#taboption"><a href=
"LuCI.form.TableSection.html#taboption">taboption
</a></li>
1623 <li data-name=
"LuCI.form.TableSection#titleFn"><a href=
"LuCI.form.TableSection.html#titleFn">titleFn
</a></li>
1626 <ul class=
"events itemMembers">
1631 <li class=
"item" data-name=
"LuCI.form.TextValue">
1632 <span class=
"title">
1633 <a href=
"LuCI.form.TextValue.html">LuCI.form.TextValue
</a>
1636 <ul class=
"members itemMembers">
1638 <span class=
"subtitle">Members
</span>
1640 <li data-name=
"LuCI.form.TextValue##cols"><a href=
"LuCI.form.TextValue.html#cols">cols
</a></li>
1642 <li data-name=
"LuCI.form.TextValue##monospace"><a href=
"LuCI.form.TextValue.html#monospace">monospace
</a></li>
1644 <li data-name=
"LuCI.form.TextValue##rows"><a href=
"LuCI.form.TextValue.html#rows">rows
</a></li>
1646 <li data-name=
"LuCI.form.TextValue##wrap"><a href=
"LuCI.form.TextValue.html#wrap">wrap
</a></li>
1648 <li data-name=
"LuCI.form.TextValue#datatype"><a href=
"LuCI.form.TextValue.html#datatype">datatype
</a></li>
1650 <li data-name=
"LuCI.form.TextValue#default"><a href=
"LuCI.form.TextValue.html#default">default
</a></li>
1652 <li data-name=
"LuCI.form.TextValue#editable"><a href=
"LuCI.form.TextValue.html#editable">editable
</a></li>
1654 <li data-name=
"LuCI.form.TextValue#modalonly"><a href=
"LuCI.form.TextValue.html#modalonly">modalonly
</a></li>
1656 <li data-name=
"LuCI.form.TextValue#onchange"><a href=
"LuCI.form.TextValue.html#onchange">onchange
</a></li>
1658 <li data-name=
"LuCI.form.TextValue#optional"><a href=
"LuCI.form.TextValue.html#optional">optional
</a></li>
1660 <li data-name=
"LuCI.form.TextValue#password"><a href=
"LuCI.form.TextValue.html#password">password
</a></li>
1662 <li data-name=
"LuCI.form.TextValue#placeholder"><a href=
"LuCI.form.TextValue.html#placeholder">placeholder
</a></li>
1664 <li data-name=
"LuCI.form.TextValue#readonly"><a href=
"LuCI.form.TextValue.html#readonly">readonly
</a></li>
1666 <li data-name=
"LuCI.form.TextValue#retain"><a href=
"LuCI.form.TextValue.html#retain">retain
</a></li>
1668 <li data-name=
"LuCI.form.TextValue#rmempty"><a href=
"LuCI.form.TextValue.html#rmempty">rmempty
</a></li>
1670 <li data-name=
"LuCI.form.TextValue#uciconfig"><a href=
"LuCI.form.TextValue.html#uciconfig">uciconfig
</a></li>
1672 <li data-name=
"LuCI.form.TextValue#ucioption"><a href=
"LuCI.form.TextValue.html#ucioption">ucioption
</a></li>
1674 <li data-name=
"LuCI.form.TextValue#ucisection"><a href=
"LuCI.form.TextValue.html#ucisection">ucisection
</a></li>
1676 <li data-name=
"LuCI.form.TextValue#validate"><a href=
"LuCI.form.TextValue.html#validate">validate
</a></li>
1678 <li data-name=
"LuCI.form.TextValue#width"><a href=
"LuCI.form.TextValue.html#width">width
</a></li>
1681 <ul class=
"typedefs itemMembers">
1684 <ul class=
"typedefs itemMembers">
1687 <ul class=
"methods itemMembers">
1689 <span class=
"subtitle">Methods
</span>
1691 <li data-name=
"LuCI.form.TextValue#append"><a href=
"LuCI.form.TextValue.html#append">append
</a></li>
1693 <li data-name=
"LuCI.form.TextValue#cbid"><a href=
"LuCI.form.TextValue.html#cbid">cbid
</a></li>
1695 <li data-name=
"LuCI.form.TextValue#cfgvalue"><a href=
"LuCI.form.TextValue.html#cfgvalue">cfgvalue
</a></li>
1697 <li data-name=
"LuCI.form.TextValue#depends"><a href=
"LuCI.form.TextValue.html#depends">depends
</a></li>
1699 <li data-name=
"LuCI.form.TextValue#formvalue"><a href=
"LuCI.form.TextValue.html#formvalue">formvalue
</a></li>
1701 <li data-name=
"LuCI.form.TextValue#getUIElement"><a href=
"LuCI.form.TextValue.html#getUIElement">getUIElement
</a></li>
1703 <li data-name=
"LuCI.form.TextValue#getValidationError"><a href=
"LuCI.form.TextValue.html#getValidationError">getValidationError
</a></li>
1705 <li data-name=
"LuCI.form.TextValue#isActive"><a href=
"LuCI.form.TextValue.html#isActive">isActive
</a></li>
1707 <li data-name=
"LuCI.form.TextValue#isValid"><a href=
"LuCI.form.TextValue.html#isValid">isValid
</a></li>
1709 <li data-name=
"LuCI.form.TextValue#load"><a href=
"LuCI.form.TextValue.html#load">load
</a></li>
1711 <li data-name=
"LuCI.form.TextValue#parse"><a href=
"LuCI.form.TextValue.html#parse">parse
</a></li>
1713 <li data-name=
"LuCI.form.TextValue#remove"><a href=
"LuCI.form.TextValue.html#remove">remove
</a></li>
1715 <li data-name=
"LuCI.form.TextValue#stripTags"><a href=
"LuCI.form.TextValue.html#stripTags">stripTags
</a></li>
1717 <li data-name=
"LuCI.form.TextValue#textvalue"><a href=
"LuCI.form.TextValue.html#textvalue">textvalue
</a></li>
1719 <li data-name=
"LuCI.form.TextValue#titleFn"><a href=
"LuCI.form.TextValue.html#titleFn">titleFn
</a></li>
1721 <li data-name=
"LuCI.form.TextValue#write"><a href=
"LuCI.form.TextValue.html#write">write
</a></li>
1724 <ul class=
"events itemMembers">
1729 <li class=
"item" data-name=
"LuCI.form.TypedSection">
1730 <span class=
"title">
1731 <a href=
"LuCI.form.TypedSection.html">LuCI.form.TypedSection
</a>
1734 <ul class=
"members itemMembers">
1736 <span class=
"subtitle">Members
</span>
1738 <li data-name=
"LuCI.form.TypedSection##addbtntitle"><a href=
"LuCI.form.TypedSection.html#addbtntitle">addbtntitle
</a></li>
1740 <li data-name=
"LuCI.form.TypedSection##addremove"><a href=
"LuCI.form.TypedSection.html#addremove">addremove
</a></li>
1742 <li data-name=
"LuCI.form.TypedSection##anonymous"><a href=
"LuCI.form.TypedSection.html#anonymous">anonymous
</a></li>
1744 <li data-name=
"LuCI.form.TypedSection##tabbed"><a href=
"LuCI.form.TypedSection.html#tabbed">tabbed
</a></li>
1746 <li data-name=
"LuCI.form.TypedSection##tooltip"><a href=
"LuCI.form.TypedSection.html#tooltip">tooltip
</a></li>
1748 <li data-name=
"LuCI.form.TypedSection##tooltipicon"><a href=
"LuCI.form.TypedSection.html#tooltipicon">tooltipicon
</a></li>
1750 <li data-name=
"LuCI.form.TypedSection##uciconfig"><a href=
"LuCI.form.TypedSection.html#uciconfig">uciconfig
</a></li>
1752 <li data-name=
"LuCI.form.TypedSection#parentoption"><a href=
"LuCI.form.TypedSection.html#parentoption">parentoption
</a></li>
1755 <ul class=
"typedefs itemMembers">
1758 <ul class=
"typedefs itemMembers">
1761 <ul class=
"methods itemMembers">
1763 <span class=
"subtitle">Methods
</span>
1765 <li data-name=
"LuCI.form.TypedSection#append"><a href=
"LuCI.form.TypedSection.html#append">append
</a></li>
1767 <li data-name=
"LuCI.form.TypedSection#cfgsections"><a href=
"LuCI.form.TypedSection.html#cfgsections">cfgsections
</a></li>
1769 <li data-name=
"LuCI.form.TypedSection#cfgvalue"><a href=
"LuCI.form.TypedSection.html#cfgvalue">cfgvalue
</a></li>
1771 <li data-name=
"LuCI.form.TypedSection#filter"><a href=
"LuCI.form.TypedSection.html#filter">filter
</a></li>
1773 <li data-name=
"LuCI.form.TypedSection#formvalue"><a href=
"LuCI.form.TypedSection.html#formvalue">formvalue
</a></li>
1775 <li data-name=
"LuCI.form.TypedSection#getOption"><a href=
"LuCI.form.TypedSection.html#getOption">getOption
</a></li>
1777 <li data-name=
"LuCI.form.TypedSection#getUIElement"><a href=
"LuCI.form.TypedSection.html#getUIElement">getUIElement
</a></li>
1779 <li data-name=
"LuCI.form.TypedSection#load"><a href=
"LuCI.form.TypedSection.html#load">load
</a></li>
1781 <li data-name=
"LuCI.form.TypedSection#option"><a href=
"LuCI.form.TypedSection.html#option">option
</a></li>
1783 <li data-name=
"LuCI.form.TypedSection#parse"><a href=
"LuCI.form.TypedSection.html#parse">parse
</a></li>
1785 <li data-name=
"LuCI.form.TypedSection#render"><a href=
"LuCI.form.TypedSection.html#render">render
</a></li>
1787 <li data-name=
"LuCI.form.TypedSection#stripTags"><a href=
"LuCI.form.TypedSection.html#stripTags">stripTags
</a></li>
1789 <li data-name=
"LuCI.form.TypedSection#tab"><a href=
"LuCI.form.TypedSection.html#tab">tab
</a></li>
1791 <li data-name=
"LuCI.form.TypedSection#taboption"><a href=
"LuCI.form.TypedSection.html#taboption">taboption
</a></li>
1793 <li data-name=
"LuCI.form.TypedSection#titleFn"><a href=
"LuCI.form.TypedSection.html#titleFn">titleFn
</a></li>
1796 <ul class=
"events itemMembers">
1801 <li class=
"item" data-name=
"LuCI.form.Value">
1802 <span class=
"title">
1803 <a href=
"LuCI.form.Value.html">LuCI.form.Value
</a>
1806 <ul class=
"members itemMembers">
1808 <span class=
"subtitle">Members
</span>
1810 <li data-name=
"LuCI.form.Value##password"><a href=
"LuCI.form.Value.html#password">password
</a></li>
1812 <li data-name=
"LuCI.form.Value##placeholder"><a href=
"LuCI.form.Value.html#placeholder">placeholder
</a></li>
1814 <li data-name=
"LuCI.form.Value#datatype"><a href=
"LuCI.form.Value.html#datatype">datatype
</a></li>
1816 <li data-name=
"LuCI.form.Value#default"><a href=
"LuCI.form.Value.html#default">default
</a></li>
1818 <li data-name=
"LuCI.form.Value#editable"><a href=
"LuCI.form.Value.html#editable">editable
</a></li>
1820 <li data-name=
"LuCI.form.Value#modalonly"><a href=
"LuCI.form.Value.html#modalonly">modalonly
</a></li>
1822 <li data-name=
"LuCI.form.Value#onchange"><a href=
"LuCI.form.Value.html#onchange">onchange
</a></li>
1824 <li data-name=
"LuCI.form.Value#optional"><a href=
"LuCI.form.Value.html#optional">optional
</a></li>
1826 <li data-name=
"LuCI.form.Value#readonly"><a href=
"LuCI.form.Value.html#readonly">readonly
</a></li>
1828 <li data-name=
"LuCI.form.Value#retain"><a href=
"LuCI.form.Value.html#retain">retain
</a></li>
1830 <li data-name=
"LuCI.form.Value#rmempty"><a href=
"LuCI.form.Value.html#rmempty">rmempty
</a></li>
1832 <li data-name=
"LuCI.form.Value#uciconfig"><a href=
"LuCI.form.Value.html#uciconfig">uciconfig
</a></li>
1834 <li data-name=
"LuCI.form.Value#ucioption"><a href=
"LuCI.form.Value.html#ucioption">ucioption
</a></li>
1836 <li data-name=
"LuCI.form.Value#ucisection"><a href=
"LuCI.form.Value.html#ucisection">ucisection
</a></li>
1838 <li data-name=
"LuCI.form.Value#validate"><a href=
"LuCI.form.Value.html#validate">validate
</a></li>
1840 <li data-name=
"LuCI.form.Value#width"><a href=
"LuCI.form.Value.html#width">width
</a></li>
1843 <ul class=
"typedefs itemMembers">
1846 <ul class=
"typedefs itemMembers">
1849 <ul class=
"methods itemMembers">
1851 <span class=
"subtitle">Methods
</span>
1853 <li data-name=
"LuCI.form.Value#append"><a href=
"LuCI.form.Value.html#append">append
</a></li>
1855 <li data-name=
"LuCI.form.Value#cbid"><a href=
"LuCI.form.Value.html#cbid">cbid
</a></li>
1857 <li data-name=
"LuCI.form.Value#cfgvalue"><a href=
"LuCI.form.Value.html#cfgvalue">cfgvalue
</a></li>
1859 <li data-name=
"LuCI.form.Value#depends"><a href=
"LuCI.form.Value.html#depends">depends
</a></li>
1861 <li data-name=
"LuCI.form.Value#formvalue"><a href=
"LuCI.form.Value.html#formvalue">formvalue
</a></li>
1863 <li data-name=
"LuCI.form.Value#getUIElement"><a href=
"LuCI.form.Value.html#getUIElement">getUIElement
</a></li>
1865 <li data-name=
"LuCI.form.Value#getValidationError"><a href=
"LuCI.form.Value.html#getValidationError">getValidationError
</a></li>
1867 <li data-name=
"LuCI.form.Value#isActive"><a href=
"LuCI.form.Value.html#isActive">isActive
</a></li>
1869 <li data-name=
"LuCI.form.Value#isValid"><a href=
"LuCI.form.Value.html#isValid">isValid
</a></li>
1871 <li data-name=
"LuCI.form.Value#load"><a href=
"LuCI.form.Value.html#load">load
</a></li>
1873 <li data-name=
"LuCI.form.Value#parse"><a href=
"LuCI.form.Value.html#parse">parse
</a></li>
1875 <li data-name=
"LuCI.form.Value#remove"><a href=
"LuCI.form.Value.html#remove">remove
</a></li>
1877 <li data-name=
"LuCI.form.Value#render"><a href=
"LuCI.form.Value.html#render">render
</a></li>
1879 <li data-name=
"LuCI.form.Value#stripTags"><a href=
"LuCI.form.Value.html#stripTags">stripTags
</a></li>
1881 <li data-name=
"LuCI.form.Value#textvalue"><a href=
"LuCI.form.Value.html#textvalue">textvalue
</a></li>
1883 <li data-name=
"LuCI.form.Value#titleFn"><a href=
"LuCI.form.Value.html#titleFn">titleFn
</a></li>
1885 <li data-name=
"LuCI.form.Value#value"><a href=
"LuCI.form.Value.html#value">value
</a></li>
1887 <li data-name=
"LuCI.form.Value#write"><a href=
"LuCI.form.Value.html#write">write
</a></li>
1890 <ul class=
"events itemMembers">
1895 <li class=
"item" data-name=
"LuCI.fs">
1896 <span class=
"title">
1897 <a href=
"LuCI.fs.html">LuCI.fs
</a>
1900 <ul class=
"members itemMembers">
1903 <ul class=
"typedefs itemMembers">
1905 <span class=
"subtitle">Typedefs
</span>
1907 <li data-name=
"LuCI.fs.FileExecResult"><a href=
"LuCI.fs.html#.FileExecResult">FileExecResult
</a></li>
1909 <li data-name=
"LuCI.fs.FileStatEntry"><a href=
"LuCI.fs.html#.FileStatEntry">FileStatEntry
</a></li>
1912 <ul class=
"typedefs itemMembers">
1915 <ul class=
"methods itemMembers">
1917 <span class=
"subtitle">Methods
</span>
1919 <li data-name=
"LuCI.fs#exec"><a href=
"LuCI.fs.html#exec">exec
</a></li>
1921 <li data-name=
"LuCI.fs#exec_direct"><a href=
"LuCI.fs.html#exec_direct">exec_direct
</a></li>
1923 <li data-name=
"LuCI.fs#lines"><a href=
"LuCI.fs.html#lines">lines
</a></li>
1925 <li data-name=
"LuCI.fs#list"><a href=
"LuCI.fs.html#list">list
</a></li>
1927 <li data-name=
"LuCI.fs#read"><a href=
"LuCI.fs.html#read">read
</a></li>
1929 <li data-name=
"LuCI.fs#read_direct"><a href=
"LuCI.fs.html#read_direct">read_direct
</a></li>
1931 <li data-name=
"LuCI.fs#remove"><a href=
"LuCI.fs.html#remove">remove
</a></li>
1933 <li data-name=
"LuCI.fs#stat"><a href=
"LuCI.fs.html#stat">stat
</a></li>
1935 <li data-name=
"LuCI.fs#trimmed"><a href=
"LuCI.fs.html#trimmed">trimmed
</a></li>
1937 <li data-name=
"LuCI.fs#write"><a href=
"LuCI.fs.html#write">write
</a></li>
1940 <ul class=
"events itemMembers">
1945 <li class=
"item" data-name=
"LuCI.headers">
1946 <span class=
"title">
1947 <a href=
"LuCI.headers.html">LuCI.headers
</a>
1950 <ul class=
"members itemMembers">
1953 <ul class=
"typedefs itemMembers">
1956 <ul class=
"typedefs itemMembers">
1959 <ul class=
"methods itemMembers">
1961 <span class=
"subtitle">Methods
</span>
1963 <li data-name=
"LuCI.headers#get"><a href=
"LuCI.headers.html#get">get
</a></li>
1965 <li data-name=
"LuCI.headers#has"><a href=
"LuCI.headers.html#has">has
</a></li>
1968 <ul class=
"events itemMembers">
1973 <li class=
"item" data-name=
"LuCI.network">
1974 <span class=
"title">
1975 <a href=
"LuCI.network.html">LuCI.network
</a>
1978 <ul class=
"members itemMembers">
1981 <ul class=
"typedefs itemMembers">
1983 <span class=
"subtitle">Typedefs
</span>
1985 <li data-name=
"LuCI.network.SwitchTopology"><a href=
"LuCI.network.html#.SwitchTopology">SwitchTopology
</a></li>
1987 <li data-name=
"LuCI.network.WifiEncryption"><a href=
"LuCI.network.html#.WifiEncryption">WifiEncryption
</a></li>
1989 <li data-name=
"LuCI.network.WifiPeerEntry"><a href=
"LuCI.network.html#.WifiPeerEntry">WifiPeerEntry
</a></li>
1991 <li data-name=
"LuCI.network.WifiRateEntry"><a href=
"LuCI.network.html#.WifiRateEntry">WifiRateEntry
</a></li>
1993 <li data-name=
"LuCI.network.WifiScanResult"><a href=
"LuCI.network.html#.WifiScanResult">WifiScanResult
</a></li>
1996 <ul class=
"typedefs itemMembers">
1999 <ul class=
"methods itemMembers">
2001 <span class=
"subtitle">Methods
</span>
2003 <li data-name=
"LuCI.network#addNetwork"><a href=
"LuCI.network.html#addNetwork">addNetwork
</a></li>
2005 <li data-name=
"LuCI.network#addWifiNetwork"><a href=
"LuCI.network.html#addWifiNetwork">addWifiNetwork
</a></li>
2007 <li data-name=
"LuCI.network#deleteNetwork"><a href=
"LuCI.network.html#deleteNetwork">deleteNetwork
</a></li>
2009 <li data-name=
"LuCI.network#deleteWifiNetwork"><a href=
"LuCI.network.html#deleteWifiNetwork">deleteWifiNetwork
</a></li>
2011 <li data-name=
"LuCI.network#flushCache"><a href=
"LuCI.network.html#flushCache">flushCache
</a></li>
2013 <li data-name=
"LuCI.network#formatWifiEncryption"><a href=
"LuCI.network.html#formatWifiEncryption">formatWifiEncryption
</a></li>
2015 <li data-name=
"LuCI.network#getDevice"><a href=
"LuCI.network.html#getDevice">getDevice
</a></li>
2017 <li data-name=
"LuCI.network#getDevices"><a href=
"LuCI.network.html#getDevices">getDevices
</a></li>
2019 <li data-name=
"LuCI.network#getDSLModemType"><a href=
"LuCI.network.html#getDSLModemType">getDSLModemType
</a></li>
2021 <li data-name=
"LuCI.network#getHostHints"><a href=
"LuCI.network.html#getHostHints">getHostHints
</a></li>
2023 <li data-name=
"LuCI.network#getIfnameOf"><a href=
"LuCI.network.html#getIfnameOf">getIfnameOf
</a></li>
2025 <li data-name=
"LuCI.network#getNetwork"><a href=
"LuCI.network.html#getNetwork">getNetwork
</a></li>
2027 <li data-name=
"LuCI.network#getNetworks"><a href=
"LuCI.network.html#getNetworks">getNetworks
</a></li>
2029 <li data-name=
"LuCI.network#getProtocol"><a href=
"LuCI.network.html#getProtocol">getProtocol
</a></li>
2031 <li data-name=
"LuCI.network#getProtocols"><a href=
"LuCI.network.html#getProtocols">getProtocols
</a></li>
2033 <li data-name=
"LuCI.network#getSwitchTopologies"><a href=
"LuCI.network.html#getSwitchTopologies">getSwitchTopologies
</a></li>
2035 <li data-name=
"LuCI.network#getWAN6Networks"><a href=
"LuCI.network.html#getWAN6Networks">getWAN6Networks
</a></li>
2037 <li data-name=
"LuCI.network#getWANNetworks"><a href=
"LuCI.network.html#getWANNetworks">getWANNetworks
</a></li>
2039 <li data-name=
"LuCI.network#getWifiDevice"><a href=
"LuCI.network.html#getWifiDevice">getWifiDevice
</a></li>
2041 <li data-name=
"LuCI.network#getWifiDevices"><a href=
"LuCI.network.html#getWifiDevices">getWifiDevices
</a></li>
2043 <li data-name=
"LuCI.network#getWifiNetwork"><a href=
"LuCI.network.html#getWifiNetwork">getWifiNetwork
</a></li>
2045 <li data-name=
"LuCI.network#getWifiNetworks"><a href=
"LuCI.network.html#getWifiNetworks">getWifiNetworks
</a></li>
2047 <li data-name=
"LuCI.network#isIgnoredDevice"><a href=
"LuCI.network.html#isIgnoredDevice">isIgnoredDevice
</a></li>
2049 <li data-name=
"LuCI.network#maskToPrefix"><a href=
"LuCI.network.html#maskToPrefix">maskToPrefix
</a></li>
2051 <li data-name=
"LuCI.network#prefixToMask"><a href=
"LuCI.network.html#prefixToMask">prefixToMask
</a></li>
2053 <li data-name=
"LuCI.network#registerErrorCode"><a href=
"LuCI.network.html#registerErrorCode">registerErrorCode
</a></li>
2055 <li data-name=
"LuCI.network#registerPatternVirtual"><a href=
"LuCI.network.html#registerPatternVirtual">registerPatternVirtual
</a></li>
2057 <li data-name=
"LuCI.network#registerProtocol"><a href=
"LuCI.network.html#registerProtocol">registerProtocol
</a></li>
2059 <li data-name=
"LuCI.network#renameNetwork"><a href=
"LuCI.network.html#renameNetwork">renameNetwork
</a></li>
2062 <ul class=
"events itemMembers">
2067 <li class=
"item" data-name=
"LuCI.network.Device">
2068 <span class=
"title">
2069 <a href=
"LuCI.network.Device.html">LuCI.network.Device
</a>
2072 <ul class=
"members itemMembers">
2075 <ul class=
"typedefs itemMembers">
2078 <ul class=
"typedefs itemMembers">
2081 <ul class=
"methods itemMembers">
2083 <span class=
"subtitle">Methods
</span>
2085 <li data-name=
"LuCI.network.Device#getBridgeID"><a href=
"LuCI.network.Device.html#getBridgeID">getBridgeID
</a></li>
2087 <li data-name=
"LuCI.network.Device#getBridgeSTP"><a href=
"LuCI.network.Device.html#getBridgeSTP">getBridgeSTP
</a></li>
2089 <li data-name=
"LuCI.network.Device#getCarrier"><a href=
"LuCI.network.Device.html#getCarrier">getCarrier
</a></li>
2091 <li data-name=
"LuCI.network.Device#getDuplex"><a href=
"LuCI.network.Device.html#getDuplex">getDuplex
</a></li>
2093 <li data-name=
"LuCI.network.Device#getI18n"><a href=
"LuCI.network.Device.html#getI18n">getI18n
</a></li>
2095 <li data-name=
"LuCI.network.Device#getIP6Addrs"><a href=
"LuCI.network.Device.html#getIP6Addrs">getIP6Addrs
</a></li>
2097 <li data-name=
"LuCI.network.Device#getIPAddrs"><a href=
"LuCI.network.Device.html#getIPAddrs">getIPAddrs
</a></li>
2099 <li data-name=
"LuCI.network.Device#getMAC"><a href=
"LuCI.network.Device.html#getMAC">getMAC
</a></li>
2101 <li data-name=
"LuCI.network.Device#getMTU"><a href=
"LuCI.network.Device.html#getMTU">getMTU
</a></li>
2103 <li data-name=
"LuCI.network.Device#getName"><a href=
"LuCI.network.Device.html#getName">getName
</a></li>
2105 <li data-name=
"LuCI.network.Device#getNetwork"><a href=
"LuCI.network.Device.html#getNetwork">getNetwork
</a></li>
2107 <li data-name=
"LuCI.network.Device#getNetworks"><a href=
"LuCI.network.Device.html#getNetworks">getNetworks
</a></li>
2109 <li data-name=
"LuCI.network.Device#getParent"><a href=
"LuCI.network.Device.html#getParent">getParent
</a></li>
2111 <li data-name=
"LuCI.network.Device#getPorts"><a href=
"LuCI.network.Device.html#getPorts">getPorts
</a></li>
2113 <li data-name=
"LuCI.network.Device#getRXBytes"><a href=
"LuCI.network.Device.html#getRXBytes">getRXBytes
</a></li>
2115 <li data-name=
"LuCI.network.Device#getRXPackets"><a href=
"LuCI.network.Device.html#getRXPackets">getRXPackets
</a></li>
2117 <li data-name=
"LuCI.network.Device#getShortName"><a href=
"LuCI.network.Device.html#getShortName">getShortName
</a></li>
2119 <li data-name=
"LuCI.network.Device#getSpeed"><a href=
"LuCI.network.Device.html#getSpeed">getSpeed
</a></li>
2121 <li data-name=
"LuCI.network.Device#getTXBytes"><a href=
"LuCI.network.Device.html#getTXBytes">getTXBytes
</a></li>
2123 <li data-name=
"LuCI.network.Device#getTXPackets"><a href=
"LuCI.network.Device.html#getTXPackets">getTXPackets
</a></li>
2125 <li data-name=
"LuCI.network.Device#getType"><a href=
"LuCI.network.Device.html#getType">getType
</a></li>
2127 <li data-name=
"LuCI.network.Device#getTypeI18n"><a href=
"LuCI.network.Device.html#getTypeI18n">getTypeI18n
</a></li>
2129 <li data-name=
"LuCI.network.Device#getWifiNetwork"><a href=
"LuCI.network.Device.html#getWifiNetwork">getWifiNetwork
</a></li>
2131 <li data-name=
"LuCI.network.Device#isBridge"><a href=
"LuCI.network.Device.html#isBridge">isBridge
</a></li>
2133 <li data-name=
"LuCI.network.Device#isBridgePort"><a href=
"LuCI.network.Device.html#isBridgePort">isBridgePort
</a></li>
2135 <li data-name=
"LuCI.network.Device#isUp"><a href=
"LuCI.network.Device.html#isUp">isUp
</a></li>
2138 <ul class=
"events itemMembers">
2143 <li class=
"item" data-name=
"LuCI.network.Hosts">
2144 <span class=
"title">
2145 <a href=
"LuCI.network.Hosts.html">LuCI.network.Hosts
</a>
2148 <ul class=
"members itemMembers">
2151 <ul class=
"typedefs itemMembers">
2154 <ul class=
"typedefs itemMembers">
2157 <ul class=
"methods itemMembers">
2159 <span class=
"subtitle">Methods
</span>
2161 <li data-name=
"LuCI.network.Hosts#getHostnameByIP6Addr"><a href=
"LuCI.network.Hosts.html#getHostnameByIP6Addr">getHostnameByIP6Addr
</a></li>
2163 <li data-name=
"LuCI.network.Hosts#getHostnameByIPAddr"><a href=
"LuCI.network.Hosts.html#getHostnameByIPAddr">getHostnameByIPAddr
</a></li>
2165 <li data-name=
"LuCI.network.Hosts#getHostnameByMACAddr"><a href=
"LuCI.network.Hosts.html#getHostnameByMACAddr">getHostnameByMACAddr
</a></li>
2167 <li data-name=
"LuCI.network.Hosts#getIP6AddrByMACAddr"><a href=
"LuCI.network.Hosts.html#getIP6AddrByMACAddr">getIP6AddrByMACAddr
</a></li>
2169 <li data-name=
"LuCI.network.Hosts#getIPAddrByMACAddr"><a href=
"LuCI.network.Hosts.html#getIPAddrByMACAddr">getIPAddrByMACAddr
</a></li>
2171 <li data-name=
"LuCI.network.Hosts#getMACAddrByIP6Addr"><a href=
"LuCI.network.Hosts.html#getMACAddrByIP6Addr">getMACAddrByIP6Addr
</a></li>
2173 <li data-name=
"LuCI.network.Hosts#getMACAddrByIPAddr"><a href=
"LuCI.network.Hosts.html#getMACAddrByIPAddr">getMACAddrByIPAddr
</a></li>
2175 <li data-name=
"LuCI.network.Hosts#getMACHints"><a href=
"LuCI.network.Hosts.html#getMACHints">getMACHints
</a></li>
2178 <ul class=
"events itemMembers">
2183 <li class=
"item" data-name=
"LuCI.network.Protocol">
2184 <span class=
"title">
2185 <a href=
"LuCI.network.Protocol.html">LuCI.network.Protocol
</a>
2188 <ul class=
"members itemMembers">
2191 <ul class=
"typedefs itemMembers">
2194 <ul class=
"typedefs itemMembers">
2197 <ul class=
"methods itemMembers">
2199 <span class=
"subtitle">Methods
</span>
2201 <li data-name=
"LuCI.network.Protocol#addDevice"><a href=
"LuCI.network.Protocol.html#addDevice">addDevice
</a></li>
2203 <li data-name=
"LuCI.network.Protocol#containsDevice"><a href=
"LuCI.network.Protocol.html#containsDevice">containsDevice
</a></li>
2205 <li data-name=
"LuCI.network.Protocol#deleteConfiguration"><a href=
"LuCI.network.Protocol.html#deleteConfiguration">deleteConfiguration
</a></li>
2207 <li data-name=
"LuCI.network.Protocol#deleteDevice"><a href=
"LuCI.network.Protocol.html#deleteDevice">deleteDevice
</a></li>
2209 <li data-name=
"LuCI.network.Protocol#get"><a href=
"LuCI.network.Protocol.html#get">get
</a></li>
2211 <li data-name=
"LuCI.network.Protocol#getDevice"><a href=
"LuCI.network.Protocol.html#getDevice">getDevice
</a></li>
2213 <li data-name=
"LuCI.network.Protocol#getDevices"><a href=
"LuCI.network.Protocol.html#getDevices">getDevices
</a></li>
2215 <li data-name=
"LuCI.network.Protocol#getDNS6Addrs"><a href=
"LuCI.network.Protocol.html#getDNS6Addrs">getDNS6Addrs
</a></li>
2217 <li data-name=
"LuCI.network.Protocol#getDNSAddrs"><a href=
"LuCI.network.Protocol.html#getDNSAddrs">getDNSAddrs
</a></li>
2219 <li data-name=
"LuCI.network.Protocol#getErrors"><a href=
"LuCI.network.Protocol.html#getErrors">getErrors
</a></li>
2221 <li data-name=
"LuCI.network.Protocol#getExpiry"><a href=
"LuCI.network.Protocol.html#getExpiry">getExpiry
</a></li>
2223 <li data-name=
"LuCI.network.Protocol#getGateway6Addr"><a href=
"LuCI.network.Protocol.html#getGateway6Addr">getGateway6Addr
</a></li>
2225 <li data-name=
"LuCI.network.Protocol#getGatewayAddr"><a href=
"LuCI.network.Protocol.html#getGatewayAddr">getGatewayAddr
</a></li>
2227 <li data-name=
"LuCI.network.Protocol#getI18n"><a href=
"LuCI.network.Protocol.html#getI18n">getI18n
</a></li>
2229 <li data-name=
"LuCI.network.Protocol#getIfname"><a href=
"LuCI.network.Protocol.html#getIfname">getIfname
</a></li>
2231 <li data-name=
"LuCI.network.Protocol#getIP6Addr"><a href=
"LuCI.network.Protocol.html#getIP6Addr">getIP6Addr
</a></li>
2233 <li data-name=
"LuCI.network.Protocol#getIP6Addrs"><a href=
"LuCI.network.Protocol.html#getIP6Addrs">getIP6Addrs
</a></li>
2235 <li data-name=
"LuCI.network.Protocol#getIP6Prefix"><a href=
"LuCI.network.Protocol.html#getIP6Prefix">getIP6Prefix
</a></li>
2237 <li data-name=
"LuCI.network.Protocol#getIPAddr"><a href=
"LuCI.network.Protocol.html#getIPAddr">getIPAddr
</a></li>
2239 <li data-name=
"LuCI.network.Protocol#getIPAddrs"><a href=
"LuCI.network.Protocol.html#getIPAddrs">getIPAddrs
</a></li>
2241 <li data-name=
"LuCI.network.Protocol#getL2Device"><a href=
"LuCI.network.Protocol.html#getL2Device">getL2Device
</a></li>
2243 <li data-name=
"LuCI.network.Protocol#getL3Device"><a href=
"LuCI.network.Protocol.html#getL3Device">getL3Device
</a></li>
2245 <li data-name=
"LuCI.network.Protocol#getMetric"><a href=
"LuCI.network.Protocol.html#getMetric">getMetric
</a></li>
2247 <li data-name=
"LuCI.network.Protocol#getName"><a href=
"LuCI.network.Protocol.html#getName">getName
</a></li>
2249 <li data-name=
"LuCI.network.Protocol#getNetmask"><a href=
"LuCI.network.Protocol.html#getNetmask">getNetmask
</a></li>
2251 <li data-name=
"LuCI.network.Protocol#getOpkgPackage"><a href=
"LuCI.network.Protocol.html#getOpkgPackage">getOpkgPackage
</a></li>
2253 <li data-name=
"LuCI.network.Protocol#getProtocol"><a href=
"LuCI.network.Protocol.html#getProtocol">getProtocol
</a></li>
2255 <li data-name=
"LuCI.network.Protocol#getType"><a href=
"LuCI.network.Protocol.html#getType">getType
</a></li>
2257 <li data-name=
"LuCI.network.Protocol#getUptime"><a href=
"LuCI.network.Protocol.html#getUptime">getUptime
</a></li>
2259 <li data-name=
"LuCI.network.Protocol#getZoneName"><a href=
"LuCI.network.Protocol.html#getZoneName">getZoneName
</a></li>
2261 <li data-name=
"LuCI.network.Protocol#isAlias"><a href=
"LuCI.network.Protocol.html#isAlias">isAlias
</a></li>
2263 <li data-name=
"LuCI.network.Protocol#isBridge"><a href=
"LuCI.network.Protocol.html#isBridge">isBridge
</a></li>
2265 <li data-name=
"LuCI.network.Protocol#isCreateable"><a href=
"LuCI.network.Protocol.html#isCreateable">isCreateable
</a></li>
2267 <li data-name=
"LuCI.network.Protocol#isDynamic"><a href=
"LuCI.network.Protocol.html#isDynamic">isDynamic
</a></li>
2269 <li data-name=
"LuCI.network.Protocol#isEmpty"><a href=
"LuCI.network.Protocol.html#isEmpty">isEmpty
</a></li>
2271 <li data-name=
"LuCI.network.Protocol#isFloating"><a href=
"LuCI.network.Protocol.html#isFloating">isFloating
</a></li>
2273 <li data-name=
"LuCI.network.Protocol#isInstalled"><a href=
"LuCI.network.Protocol.html#isInstalled">isInstalled
</a></li>
2275 <li data-name=
"LuCI.network.Protocol#isUp"><a href=
"LuCI.network.Protocol.html#isUp">isUp
</a></li>
2277 <li data-name=
"LuCI.network.Protocol#isVirtual"><a href=
"LuCI.network.Protocol.html#isVirtual">isVirtual
</a></li>
2279 <li data-name=
"LuCI.network.Protocol#set"><a href=
"LuCI.network.Protocol.html#set">set
</a></li>
2282 <ul class=
"events itemMembers">
2287 <li class=
"item" data-name=
"LuCI.network.WifiDevice">
2288 <span class=
"title">
2289 <a href=
"LuCI.network.WifiDevice.html">LuCI.network.WifiDevice
</a>
2292 <ul class=
"members itemMembers">
2295 <ul class=
"typedefs itemMembers">
2298 <ul class=
"typedefs itemMembers">
2301 <ul class=
"methods itemMembers">
2303 <span class=
"subtitle">Methods
</span>
2305 <li data-name=
"LuCI.network.WifiDevice#addWifiNetwork"><a href=
"LuCI.network.WifiDevice.html#addWifiNetwork">addWifiNetwork
</a></li>
2307 <li data-name=
"LuCI.network.WifiDevice#deleteWifiNetwork"><a href=
"LuCI.network.WifiDevice.html#deleteWifiNetwork">deleteWifiNetwork
</a></li>
2309 <li data-name=
"LuCI.network.WifiDevice#get"><a href=
"LuCI.network.WifiDevice.html#get">get
</a></li>
2311 <li data-name=
"LuCI.network.WifiDevice#getHTModes"><a href=
"LuCI.network.WifiDevice.html#getHTModes">getHTModes
</a></li>
2313 <li data-name=
"LuCI.network.WifiDevice#getHWModes"><a href=
"LuCI.network.WifiDevice.html#getHWModes">getHWModes
</a></li>
2315 <li data-name=
"LuCI.network.WifiDevice#getI18n"><a href=
"LuCI.network.WifiDevice.html#getI18n">getI18n
</a></li>
2317 <li data-name=
"LuCI.network.WifiDevice#getName"><a href=
"LuCI.network.WifiDevice.html#getName">getName
</a></li>
2319 <li data-name=
"LuCI.network.WifiDevice#getScanList"><a href=
"LuCI.network.WifiDevice.html#getScanList">getScanList
</a></li>
2321 <li data-name=
"LuCI.network.WifiDevice#getWifiNetwork"><a href=
"LuCI.network.WifiDevice.html#getWifiNetwork">getWifiNetwork
</a></li>
2323 <li data-name=
"LuCI.network.WifiDevice#getWifiNetworks"><a href=
"LuCI.network.WifiDevice.html#getWifiNetworks">getWifiNetworks
</a></li>
2325 <li data-name=
"LuCI.network.WifiDevice#isDisabled"><a href=
"LuCI.network.WifiDevice.html#isDisabled">isDisabled
</a></li>
2327 <li data-name=
"LuCI.network.WifiDevice#isUp"><a href=
"LuCI.network.WifiDevice.html#isUp">isUp
</a></li>
2329 <li data-name=
"LuCI.network.WifiDevice#set"><a href=
"LuCI.network.WifiDevice.html#set">set
</a></li>
2332 <ul class=
"events itemMembers">
2337 <li class=
"item" data-name=
"LuCI.network.WifiNetwork">
2338 <span class=
"title">
2339 <a href=
"LuCI.network.WifiNetwork.html">LuCI.network.WifiNetwork
</a>
2342 <ul class=
"members itemMembers">
2345 <ul class=
"typedefs itemMembers">
2348 <ul class=
"typedefs itemMembers">
2351 <ul class=
"methods itemMembers">
2353 <span class=
"subtitle">Methods
</span>
2355 <li data-name=
"LuCI.network.WifiNetwork#disconnectClient"><a href=
"LuCI.network.WifiNetwork.html#disconnectClient">disconnectClient
</a></li>
2357 <li data-name=
"LuCI.network.WifiNetwork#get"><a href=
"LuCI.network.WifiNetwork.html#get">get
</a></li>
2359 <li data-name=
"LuCI.network.WifiNetwork#getActiveBSSID"><a href=
"LuCI.network.WifiNetwork.html#getActiveBSSID">getActiveBSSID
</a></li>
2361 <li data-name=
"LuCI.network.WifiNetwork#getActiveEncryption"><a href=
"LuCI.network.WifiNetwork.html#getActiveEncryption">getActiveEncryption
</a></li>
2363 <li data-name=
"LuCI.network.WifiNetwork#getActiveMode"><a href=
"LuCI.network.WifiNetwork.html#getActiveMode">getActiveMode
</a></li>
2365 <li data-name=
"LuCI.network.WifiNetwork#getActiveModeI18n"><a href=
"LuCI.network.WifiNetwork.html#getActiveModeI18n">getActiveModeI18n
</a></li>
2367 <li data-name=
"LuCI.network.WifiNetwork#getActiveSSID"><a href=
"LuCI.network.WifiNetwork.html#getActiveSSID">getActiveSSID
</a></li>
2369 <li data-name=
"LuCI.network.WifiNetwork#getAssocList"><a href=
"LuCI.network.WifiNetwork.html#getAssocList">getAssocList
</a></li>
2371 <li data-name=
"LuCI.network.WifiNetwork#getBitRate"><a href=
"LuCI.network.WifiNetwork.html#getBitRate">getBitRate
</a></li>
2373 <li data-name=
"LuCI.network.WifiNetwork#getBSSID"><a href=
"LuCI.network.WifiNetwork.html#getBSSID">getBSSID
</a></li>
2375 <li data-name=
"LuCI.network.WifiNetwork#getChannel"><a href=
"LuCI.network.WifiNetwork.html#getChannel">getChannel
</a></li>
2377 <li data-name=
"LuCI.network.WifiNetwork#getCountryCode"><a href=
"LuCI.network.WifiNetwork.html#getCountryCode">getCountryCode
</a></li>
2379 <li data-name=
"LuCI.network.WifiNetwork#getDevice"><a href=
"LuCI.network.WifiNetwork.html#getDevice">getDevice
</a></li>
2381 <li data-name=
"LuCI.network.WifiNetwork#getFrequency"><a href=
"LuCI.network.WifiNetwork.html#getFrequency">getFrequency
</a></li>
2383 <li data-name=
"LuCI.network.WifiNetwork#getI18n"><a href=
"LuCI.network.WifiNetwork.html#getI18n">getI18n
</a></li>
2385 <li data-name=
"LuCI.network.WifiNetwork#getID"><a href=
"LuCI.network.WifiNetwork.html#getID">getID
</a></li>
2387 <li data-name=
"LuCI.network.WifiNetwork#getIfname"><a href=
"LuCI.network.WifiNetwork.html#getIfname">getIfname
</a></li>
2389 <li data-name=
"LuCI.network.WifiNetwork#getMeshID"><a href=
"LuCI.network.WifiNetwork.html#getMeshID">getMeshID
</a></li>
2391 <li data-name=
"LuCI.network.WifiNetwork#getMode"><a href=
"LuCI.network.WifiNetwork.html#getMode">getMode
</a></li>
2393 <li data-name=
"LuCI.network.WifiNetwork#getName"><a href=
"LuCI.network.WifiNetwork.html#getName">getName
</a></li>
2395 <li data-name=
"LuCI.network.WifiNetwork#getNetwork"><a href=
"LuCI.network.WifiNetwork.html#getNetwork">getNetwork
</a></li>
2397 <li data-name=
"LuCI.network.WifiNetwork#getNetworkNames"><a href=
"LuCI.network.WifiNetwork.html#getNetworkNames">getNetworkNames
</a></li>
2399 <li data-name=
"LuCI.network.WifiNetwork#getNetworks"><a href=
"LuCI.network.WifiNetwork.html#getNetworks">getNetworks
</a></li>
2401 <li data-name=
"LuCI.network.WifiNetwork#getNoise"><a href=
"LuCI.network.WifiNetwork.html#getNoise">getNoise
</a></li>
2403 <li data-name=
"LuCI.network.WifiNetwork#getShortName"><a href=
"LuCI.network.WifiNetwork.html#getShortName">getShortName
</a></li>
2405 <li data-name=
"LuCI.network.WifiNetwork#getSignal"><a href=
"LuCI.network.WifiNetwork.html#getSignal">getSignal
</a></li>
2407 <li data-name=
"LuCI.network.WifiNetwork#getSignalLevel"><a href=
"LuCI.network.WifiNetwork.html#getSignalLevel">getSignalLevel
</a></li>
2409 <li data-name=
"LuCI.network.WifiNetwork#getSignalPercent"><a href=
"LuCI.network.WifiNetwork.html#getSignalPercent">getSignalPercent
</a></li>
2411 <li data-name=
"LuCI.network.WifiNetwork#getSSID"><a href=
"LuCI.network.WifiNetwork.html#getSSID">getSSID
</a></li>
2413 <li data-name=
"LuCI.network.WifiNetwork#getTXPower"><a href=
"LuCI.network.WifiNetwork.html#getTXPower">getTXPower
</a></li>
2415 <li data-name=
"LuCI.network.WifiNetwork#getTXPowerOffset"><a href=
"LuCI.network.WifiNetwork.html#getTXPowerOffset">getTXPowerOffset
</a></li>
2417 <li data-name=
"LuCI.network.WifiNetwork#getVlanIfnames"><a href=
"LuCI.network.WifiNetwork.html#getVlanIfnames">getVlanIfnames
</a></li>
2419 <li data-name=
"LuCI.network.WifiNetwork#getWifiDevice"><a href=
"LuCI.network.WifiNetwork.html#getWifiDevice">getWifiDevice
</a></li>
2421 <li data-name=
"LuCI.network.WifiNetwork#getWifiDeviceName"><a href=
"LuCI.network.WifiNetwork.html#getWifiDeviceName">getWifiDeviceName
</a></li>
2423 <li data-name=
"LuCI.network.WifiNetwork#isClientDisconnectSupported"><a href=
"LuCI.network.WifiNetwork.html#isClientDisconnectSupported">isClientDisconnectSupported
</a></li>
2425 <li data-name=
"LuCI.network.WifiNetwork#isDisabled"><a href=
"LuCI.network.WifiNetwork.html#isDisabled">isDisabled
</a></li>
2427 <li data-name=
"LuCI.network.WifiNetwork#isUp"><a href=
"LuCI.network.WifiNetwork.html#isUp">isUp
</a></li>
2429 <li data-name=
"LuCI.network.WifiNetwork#set"><a href=
"LuCI.network.WifiNetwork.html#set">set
</a></li>
2432 <ul class=
"events itemMembers">
2437 <li class=
"item" data-name=
"LuCI.poll">
2438 <span class=
"title">
2439 <a href=
"LuCI.poll.html">LuCI.poll
</a>
2442 <ul class=
"members itemMembers">
2445 <ul class=
"typedefs itemMembers">
2448 <ul class=
"typedefs itemMembers">
2451 <ul class=
"methods itemMembers">
2453 <span class=
"subtitle">Methods
</span>
2455 <li data-name=
"LuCI.poll#active"><a href=
"LuCI.poll.html#active">active
</a></li>
2457 <li data-name=
"LuCI.poll#add"><a href=
"LuCI.poll.html#add">add
</a></li>
2459 <li data-name=
"LuCI.poll#remove"><a href=
"LuCI.poll.html#remove">remove
</a></li>
2461 <li data-name=
"LuCI.poll#start"><a href=
"LuCI.poll.html#start">start
</a></li>
2463 <li data-name=
"LuCI.poll#stop"><a href=
"LuCI.poll.html#stop">stop
</a></li>
2466 <ul class=
"events itemMembers">
2471 <li class=
"item" data-name=
"LuCI.request">
2472 <span class=
"title">
2473 <a href=
"LuCI.request.html">LuCI.request
</a>
2476 <ul class=
"members itemMembers">
2479 <ul class=
"typedefs itemMembers">
2481 <span class=
"subtitle">Typedefs
</span>
2483 <li data-name=
"LuCI.request.interceptorFn"><a href=
"LuCI.request.html#.interceptorFn">interceptorFn
</a></li>
2485 <li data-name=
"LuCI.request.RequestOptions"><a href=
"LuCI.request.html#.RequestOptions">RequestOptions
</a></li>
2488 <ul class=
"typedefs itemMembers">
2491 <ul class=
"methods itemMembers">
2493 <span class=
"subtitle">Methods
</span>
2495 <li data-name=
"LuCI.request#addInterceptor"><a href=
"LuCI.request.html#addInterceptor">addInterceptor
</a></li>
2497 <li data-name=
"LuCI.request#expandURL"><a href=
"LuCI.request.html#expandURL">expandURL
</a></li>
2499 <li data-name=
"LuCI.request#get"><a href=
"LuCI.request.html#get">get
</a></li>
2501 <li data-name=
"LuCI.request#post"><a href=
"LuCI.request.html#post">post
</a></li>
2503 <li data-name=
"LuCI.request#removeInterceptor"><a href=
"LuCI.request.html#removeInterceptor">removeInterceptor
</a></li>
2505 <li data-name=
"LuCI.request#request"><a href=
"LuCI.request.html#request">request
</a></li>
2508 <ul class=
"events itemMembers">
2513 <li class=
"item" data-name=
"LuCI.request.poll">
2514 <span class=
"title">
2515 <a href=
"LuCI.request.poll.html">LuCI.request.poll
</a>
2518 <ul class=
"members itemMembers">
2521 <ul class=
"typedefs itemMembers">
2523 <span class=
"subtitle">Typedefs
</span>
2525 <li data-name=
"LuCI.request.poll~callbackFn"><a href=
"LuCI.request.poll.html#~callbackFn">callbackFn
</a></li>
2528 <ul class=
"typedefs itemMembers">
2531 <ul class=
"methods itemMembers">
2533 <span class=
"subtitle">Methods
</span>
2535 <li data-name=
"LuCI.request.poll#active"><a href=
"LuCI.request.poll.html#active">active
</a></li>
2537 <li data-name=
"LuCI.request.poll#add"><a href=
"LuCI.request.poll.html#add">add
</a></li>
2539 <li data-name=
"LuCI.request.poll#remove"><a href=
"LuCI.request.poll.html#remove">remove
</a></li>
2541 <li data-name=
"LuCI.request.poll#start"><a href=
"LuCI.request.poll.html#start">start
</a></li>
2543 <li data-name=
"LuCI.request.poll#stop"><a href=
"LuCI.request.poll.html#stop">stop
</a></li>
2546 <ul class=
"events itemMembers">
2551 <li class=
"item" data-name=
"LuCI.response">
2552 <span class=
"title">
2553 <a href=
"LuCI.response.html">LuCI.response
</a>
2556 <ul class=
"members itemMembers">
2558 <span class=
"subtitle">Members
</span>
2560 <li data-name=
"LuCI.response#duration"><a href=
"LuCI.response.html#duration">duration
</a></li>
2562 <li data-name=
"LuCI.response#headers"><a href=
"LuCI.response.html#headers">headers
</a></li>
2564 <li data-name=
"LuCI.response#ok"><a href=
"LuCI.response.html#ok">ok
</a></li>
2566 <li data-name=
"LuCI.response#status"><a href=
"LuCI.response.html#status">status
</a></li>
2568 <li data-name=
"LuCI.response#statusText"><a href=
"LuCI.response.html#statusText">statusText
</a></li>
2570 <li data-name=
"LuCI.response#url"><a href=
"LuCI.response.html#url">url
</a></li>
2573 <ul class=
"typedefs itemMembers">
2576 <ul class=
"typedefs itemMembers">
2579 <ul class=
"methods itemMembers">
2581 <span class=
"subtitle">Methods
</span>
2583 <li data-name=
"LuCI.response#blob"><a href=
"LuCI.response.html#blob">blob
</a></li>
2585 <li data-name=
"LuCI.response#clone"><a href=
"LuCI.response.html#clone">clone
</a></li>
2587 <li data-name=
"LuCI.response#json"><a href=
"LuCI.response.html#json">json
</a></li>
2589 <li data-name=
"LuCI.response#text"><a href=
"LuCI.response.html#text">text
</a></li>
2592 <ul class=
"events itemMembers">
2597 <li class=
"item" data-name=
"LuCI.rpc">
2598 <span class=
"title">
2599 <a href=
"LuCI.rpc.html">LuCI.rpc
</a>
2602 <ul class=
"members itemMembers">
2605 <ul class=
"typedefs itemMembers">
2607 <span class=
"subtitle">Typedefs
</span>
2609 <li data-name=
"LuCI.rpc.DeclareOptions"><a href=
"LuCI.rpc.html#.DeclareOptions">DeclareOptions
</a></li>
2611 <li data-name=
"LuCI.rpc~filterFn"><a href=
"LuCI.rpc.html#~filterFn">filterFn
</a></li>
2613 <li data-name=
"LuCI.rpc~interceptorFn"><a href=
"LuCI.rpc.html#~interceptorFn">interceptorFn
</a></li>
2615 <li data-name=
"LuCI.rpc~invokeFn"><a href=
"LuCI.rpc.html#~invokeFn">invokeFn
</a></li>
2618 <ul class=
"typedefs itemMembers">
2621 <ul class=
"methods itemMembers">
2623 <span class=
"subtitle">Methods
</span>
2625 <li data-name=
"LuCI.rpc#addInterceptor"><a href=
"LuCI.rpc.html#addInterceptor">addInterceptor
</a></li>
2627 <li data-name=
"LuCI.rpc#declare"><a href=
"LuCI.rpc.html#declare">declare
</a></li>
2629 <li data-name=
"LuCI.rpc#getBaseURL"><a href=
"LuCI.rpc.html#getBaseURL">getBaseURL
</a></li>
2631 <li data-name=
"LuCI.rpc#getSessionID"><a href=
"LuCI.rpc.html#getSessionID">getSessionID
</a></li>
2633 <li data-name=
"LuCI.rpc#getStatusText"><a href=
"LuCI.rpc.html#getStatusText">getStatusText
</a></li>
2635 <li data-name=
"LuCI.rpc#list"><a href=
"LuCI.rpc.html#list">list
</a></li>
2637 <li data-name=
"LuCI.rpc#removeInterceptor"><a href=
"LuCI.rpc.html#removeInterceptor">removeInterceptor
</a></li>
2639 <li data-name=
"LuCI.rpc#setBaseURL"><a href=
"LuCI.rpc.html#setBaseURL">setBaseURL
</a></li>
2641 <li data-name=
"LuCI.rpc#setSessionID"><a href=
"LuCI.rpc.html#setSessionID">setSessionID
</a></li>
2644 <ul class=
"events itemMembers">
2649 <li class=
"item" data-name=
"LuCI.session">
2650 <span class=
"title">
2651 <a href=
"LuCI.session.html">LuCI.session
</a>
2654 <ul class=
"members itemMembers">
2657 <ul class=
"typedefs itemMembers">
2660 <ul class=
"typedefs itemMembers">
2663 <ul class=
"methods itemMembers">
2665 <span class=
"subtitle">Methods
</span>
2667 <li data-name=
"LuCI.session#getID"><a href=
"LuCI.session.html#getID">getID
</a></li>
2669 <li data-name=
"LuCI.session#getLocalData"><a href=
"LuCI.session.html#getLocalData">getLocalData
</a></li>
2671 <li data-name=
"LuCI.session#getToken"><a href=
"LuCI.session.html#getToken">getToken
</a></li>
2673 <li data-name=
"LuCI.session#setLocalData"><a href=
"LuCI.session.html#setLocalData">setLocalData
</a></li>
2676 <ul class=
"events itemMembers">
2681 <li class=
"item" data-name=
"LuCI.uci">
2682 <span class=
"title">
2683 <a href=
"LuCI.uci.html">LuCI.uci
</a>
2686 <ul class=
"members itemMembers">
2689 <ul class=
"typedefs itemMembers">
2691 <span class=
"subtitle">Typedefs
</span>
2693 <li data-name=
"LuCI.uci.ChangeRecord"><a href=
"LuCI.uci.html#.ChangeRecord">ChangeRecord
</a></li>
2695 <li data-name=
"LuCI.uci.SectionObject"><a href=
"LuCI.uci.html#.SectionObject">SectionObject
</a></li>
2697 <li data-name=
"LuCI.uci~sectionsFn"><a href=
"LuCI.uci.html#~sectionsFn">sectionsFn
</a></li>
2700 <ul class=
"typedefs itemMembers">
2703 <ul class=
"methods itemMembers">
2705 <span class=
"subtitle">Methods
</span>
2707 <li data-name=
"LuCI.uci#add"><a href=
"LuCI.uci.html#add">add
</a></li>
2709 <li data-name=
"LuCI.uci#apply"><a href=
"LuCI.uci.html#apply">apply
</a></li>
2711 <li data-name=
"LuCI.uci#changes"><a href=
"LuCI.uci.html#changes">changes
</a></li>
2713 <li data-name=
"LuCI.uci#createSID"><a href=
"LuCI.uci.html#createSID">createSID
</a></li>
2715 <li data-name=
"LuCI.uci#get"><a href=
"LuCI.uci.html#get">get
</a></li>
2717 <li data-name=
"LuCI.uci#get_first"><a href=
"LuCI.uci.html#get_first">get_first
</a></li>
2719 <li data-name=
"LuCI.uci#load"><a href=
"LuCI.uci.html#load">load
</a></li>
2721 <li data-name=
"LuCI.uci#move"><a href=
"LuCI.uci.html#move">move
</a></li>
2723 <li data-name=
"LuCI.uci#remove"><a href=
"LuCI.uci.html#remove">remove
</a></li>
2725 <li data-name=
"LuCI.uci#resolveSID"><a href=
"LuCI.uci.html#resolveSID">resolveSID
</a></li>
2727 <li data-name=
"LuCI.uci#save"><a href=
"LuCI.uci.html#save">save
</a></li>
2729 <li data-name=
"LuCI.uci#sections"><a href=
"LuCI.uci.html#sections">sections
</a></li>
2731 <li data-name=
"LuCI.uci#set"><a href=
"LuCI.uci.html#set">set
</a></li>
2733 <li data-name=
"LuCI.uci#set_first"><a href=
"LuCI.uci.html#set_first">set_first
</a></li>
2735 <li data-name=
"LuCI.uci#unload"><a href=
"LuCI.uci.html#unload">unload
</a></li>
2737 <li data-name=
"LuCI.uci#unset"><a href=
"LuCI.uci.html#unset">unset
</a></li>
2739 <li data-name=
"LuCI.uci#unset_first"><a href=
"LuCI.uci.html#unset_first">unset_first
</a></li>
2742 <ul class=
"events itemMembers">
2747 <li class=
"item" data-name=
"LuCI.ui">
2748 <span class=
"title">
2749 <a href=
"LuCI.ui.html">LuCI.ui
</a>
2752 <ul class=
"members itemMembers">
2755 <ul class=
"typedefs itemMembers">
2757 <span class=
"subtitle">Typedefs
</span>
2759 <li data-name=
"LuCI.ui.FileUploadReply"><a href=
"LuCI.ui.html#.FileUploadReply">FileUploadReply
</a></li>
2762 <ul class=
"typedefs itemMembers">
2765 <ul class=
"methods itemMembers">
2767 <span class=
"subtitle">Methods
</span>
2769 <li data-name=
"LuCI.ui#addNotification"><a href=
"LuCI.ui.html#addNotification">addNotification
</a></li>
2771 <li data-name=
"LuCI.ui#addValidator"><a href=
"LuCI.ui.html#addValidator">addValidator
</a></li>
2773 <li data-name=
"LuCI.ui#awaitReconnect"><a href=
"LuCI.ui.html#awaitReconnect">awaitReconnect
</a></li>
2775 <li data-name=
"LuCI.ui#createHandlerFn"><a href=
"LuCI.ui.html#createHandlerFn">createHandlerFn
</a></li>
2777 <li data-name=
"LuCI.ui#hideIndicator"><a href=
"LuCI.ui.html#hideIndicator">hideIndicator
</a></li>
2779 <li data-name=
"LuCI.ui#hideModal"><a href=
"LuCI.ui.html#hideModal">hideModal
</a></li>
2781 <li data-name=
"LuCI.ui#instantiateView"><a href=
"LuCI.ui.html#instantiateView">instantiateView
</a></li>
2783 <li data-name=
"LuCI.ui#itemlist"><a href=
"LuCI.ui.html#itemlist">itemlist
</a></li>
2785 <li data-name=
"LuCI.ui#pingDevice"><a href=
"LuCI.ui.html#pingDevice">pingDevice
</a></li>
2787 <li data-name=
"LuCI.ui#showIndicator"><a href=
"LuCI.ui.html#showIndicator">showIndicator
</a></li>
2789 <li data-name=
"LuCI.ui#showModal"><a href=
"LuCI.ui.html#showModal">showModal
</a></li>
2791 <li data-name=
"LuCI.ui#uploadFile"><a href=
"LuCI.ui.html#uploadFile">uploadFile
</a></li>
2794 <ul class=
"events itemMembers">
2799 <li class=
"item" data-name=
"LuCI.ui.AbstractElement">
2800 <span class=
"title">
2801 <a href=
"LuCI.ui.AbstractElement.html">LuCI.ui.AbstractElement
</a>
2804 <ul class=
"members itemMembers">
2807 <ul class=
"typedefs itemMembers">
2809 <span class=
"subtitle">Typedefs
</span>
2811 <li data-name=
"LuCI.ui.AbstractElement.InitOptions"><a href=
"LuCI.ui.AbstractElement.html#.InitOptions">InitOptions
</a></li>
2814 <ul class=
"typedefs itemMembers">
2817 <ul class=
"methods itemMembers">
2819 <span class=
"subtitle">Methods
</span>
2821 <li data-name=
"LuCI.ui.AbstractElement#getValidationError"><a href=
"LuCI.ui.AbstractElement.html#getValidationError">getValidationError
</a></li>
2823 <li data-name=
"LuCI.ui.AbstractElement#getValue"><a href=
"LuCI.ui.AbstractElement.html#getValue">getValue
</a></li>
2825 <li data-name=
"LuCI.ui.AbstractElement#isChanged"><a href=
"LuCI.ui.AbstractElement.html#isChanged">isChanged
</a></li>
2827 <li data-name=
"LuCI.ui.AbstractElement#isValid"><a href=
"LuCI.ui.AbstractElement.html#isValid">isValid
</a></li>
2829 <li data-name=
"LuCI.ui.AbstractElement#registerEvents"><a href=
"LuCI.ui.AbstractElement.html#registerEvents">registerEvents
</a></li>
2831 <li data-name=
"LuCI.ui.AbstractElement#render"><a href=
"LuCI.ui.AbstractElement.html#render">render
</a></li>
2833 <li data-name=
"LuCI.ui.AbstractElement#setChangeEvents"><a href=
"LuCI.ui.AbstractElement.html#setChangeEvents">setChangeEvents
</a></li>
2835 <li data-name=
"LuCI.ui.AbstractElement#setPlaceholder"><a href=
"LuCI.ui.AbstractElement.html#setPlaceholder">setPlaceholder
</a></li>
2837 <li data-name=
"LuCI.ui.AbstractElement#setUpdateEvents"><a href=
"LuCI.ui.AbstractElement.html#setUpdateEvents">setUpdateEvents
</a></li>
2839 <li data-name=
"LuCI.ui.AbstractElement#setValue"><a href=
"LuCI.ui.AbstractElement.html#setValue">setValue
</a></li>
2841 <li data-name=
"LuCI.ui.AbstractElement#triggerValidation"><a href=
"LuCI.ui.AbstractElement.html#triggerValidation">triggerValidation
</a></li>
2844 <ul class=
"events itemMembers">
2849 <li class=
"item" data-name=
"LuCI.ui.changes">
2850 <span class=
"title">
2851 <a href=
"LuCI.ui.changes.html">LuCI.ui.changes
</a>
2854 <ul class=
"members itemMembers">
2857 <ul class=
"typedefs itemMembers">
2860 <ul class=
"typedefs itemMembers">
2863 <ul class=
"methods itemMembers">
2865 <span class=
"subtitle">Methods
</span>
2867 <li data-name=
"LuCI.ui.changes#apply"><a href=
"LuCI.ui.changes.html#apply">apply
</a></li>
2869 <li data-name=
"LuCI.ui.changes#displayChanges"><a href=
"LuCI.ui.changes.html#displayChanges">displayChanges
</a></li>
2871 <li data-name=
"LuCI.ui.changes#renderChangeIndicator"><a href=
"LuCI.ui.changes.html#renderChangeIndicator">renderChangeIndicator
</a></li>
2873 <li data-name=
"LuCI.ui.changes#revert"><a href=
"LuCI.ui.changes.html#revert">revert
</a></li>
2875 <li data-name=
"LuCI.ui.changes#setIndicator"><a href=
"LuCI.ui.changes.html#setIndicator">setIndicator
</a></li>
2878 <ul class=
"events itemMembers">
2883 <li class=
"item" data-name=
"LuCI.ui.Checkbox">
2884 <span class=
"title">
2885 <a href=
"LuCI.ui.Checkbox.html">LuCI.ui.Checkbox
</a>
2888 <ul class=
"members itemMembers">
2891 <ul class=
"typedefs itemMembers">
2893 <span class=
"subtitle">Typedefs
</span>
2895 <li data-name=
"LuCI.ui.Checkbox.InitOptions"><a href=
"LuCI.ui.Checkbox.html#.InitOptions">InitOptions
</a></li>
2898 <ul class=
"typedefs itemMembers">
2901 <ul class=
"methods itemMembers">
2903 <span class=
"subtitle">Methods
</span>
2905 <li data-name=
"LuCI.ui.Checkbox#getValidationError"><a href=
"LuCI.ui.Checkbox.html#getValidationError">getValidationError
</a></li>
2907 <li data-name=
"LuCI.ui.Checkbox#getValue"><a href=
"LuCI.ui.Checkbox.html#getValue">getValue
</a></li>
2909 <li data-name=
"LuCI.ui.Checkbox#isChanged"><a href=
"LuCI.ui.Checkbox.html#isChanged">isChanged
</a></li>
2911 <li data-name=
"LuCI.ui.Checkbox#isChecked"><a href=
"LuCI.ui.Checkbox.html#isChecked">isChecked
</a></li>
2913 <li data-name=
"LuCI.ui.Checkbox#isValid"><a href=
"LuCI.ui.Checkbox.html#isValid">isValid
</a></li>
2915 <li data-name=
"LuCI.ui.Checkbox#registerEvents"><a href=
"LuCI.ui.Checkbox.html#registerEvents">registerEvents
</a></li>
2917 <li data-name=
"LuCI.ui.Checkbox#render"><a href=
"LuCI.ui.Checkbox.html#render">render
</a></li>
2919 <li data-name=
"LuCI.ui.Checkbox#setChangeEvents"><a href=
"LuCI.ui.Checkbox.html#setChangeEvents">setChangeEvents
</a></li>
2921 <li data-name=
"LuCI.ui.Checkbox#setPlaceholder"><a href=
"LuCI.ui.Checkbox.html#setPlaceholder">setPlaceholder
</a></li>
2923 <li data-name=
"LuCI.ui.Checkbox#setUpdateEvents"><a href=
"LuCI.ui.Checkbox.html#setUpdateEvents">setUpdateEvents
</a></li>
2925 <li data-name=
"LuCI.ui.Checkbox#setValue"><a href=
"LuCI.ui.Checkbox.html#setValue">setValue
</a></li>
2927 <li data-name=
"LuCI.ui.Checkbox#triggerValidation"><a href=
"LuCI.ui.Checkbox.html#triggerValidation">triggerValidation
</a></li>
2930 <ul class=
"events itemMembers">
2935 <li class=
"item" data-name=
"LuCI.ui.Combobox">
2936 <span class=
"title">
2937 <a href=
"LuCI.ui.Combobox.html">LuCI.ui.Combobox
</a>
2940 <ul class=
"members itemMembers">
2943 <ul class=
"typedefs itemMembers">
2945 <span class=
"subtitle">Typedefs
</span>
2947 <li data-name=
"LuCI.ui.Combobox.InitOptions"><a href=
"LuCI.ui.Combobox.html#.InitOptions">InitOptions
</a></li>
2950 <ul class=
"typedefs itemMembers">
2953 <ul class=
"methods itemMembers">
2955 <span class=
"subtitle">Methods
</span>
2957 <li data-name=
"LuCI.ui.Combobox#addChoices"><a href=
"LuCI.ui.Combobox.html#addChoices">addChoices
</a></li>
2959 <li data-name=
"LuCI.ui.Combobox#clearChoices"><a href=
"LuCI.ui.Combobox.html#clearChoices">clearChoices
</a></li>
2961 <li data-name=
"LuCI.ui.Combobox#closeAllDropdowns"><a href=
"LuCI.ui.Combobox.html#closeAllDropdowns">closeAllDropdowns
</a></li>
2963 <li data-name=
"LuCI.ui.Combobox#getValidationError"><a href=
"LuCI.ui.Combobox.html#getValidationError">getValidationError
</a></li>
2965 <li data-name=
"LuCI.ui.Combobox#isChanged"><a href=
"LuCI.ui.Combobox.html#isChanged">isChanged
</a></li>
2967 <li data-name=
"LuCI.ui.Combobox#isValid"><a href=
"LuCI.ui.Combobox.html#isValid">isValid
</a></li>
2969 <li data-name=
"LuCI.ui.Combobox#registerEvents"><a href=
"LuCI.ui.Combobox.html#registerEvents">registerEvents
</a></li>
2971 <li data-name=
"LuCI.ui.Combobox#setChangeEvents"><a href=
"LuCI.ui.Combobox.html#setChangeEvents">setChangeEvents
</a></li>
2973 <li data-name=
"LuCI.ui.Combobox#setPlaceholder"><a href=
"LuCI.ui.Combobox.html#setPlaceholder">setPlaceholder
</a></li>
2975 <li data-name=
"LuCI.ui.Combobox#setUpdateEvents"><a href=
"LuCI.ui.Combobox.html#setUpdateEvents">setUpdateEvents
</a></li>
2977 <li data-name=
"LuCI.ui.Combobox#triggerValidation"><a href=
"LuCI.ui.Combobox.html#triggerValidation">triggerValidation
</a></li>
2980 <ul class=
"events itemMembers">
2985 <li class=
"item" data-name=
"LuCI.ui.ComboButton">
2986 <span class=
"title">
2987 <a href=
"LuCI.ui.ComboButton.html">LuCI.ui.ComboButton
</a>
2990 <ul class=
"members itemMembers">
2993 <ul class=
"typedefs itemMembers">
2995 <span class=
"subtitle">Typedefs
</span>
2997 <li data-name=
"LuCI.ui.ComboButton.InitOptions"><a href=
"LuCI.ui.ComboButton.html#.InitOptions">InitOptions
</a></li>
3000 <ul class=
"typedefs itemMembers">
3003 <ul class=
"methods itemMembers">
3005 <span class=
"subtitle">Methods
</span>
3007 <li data-name=
"LuCI.ui.ComboButton#addChoices"><a href=
"LuCI.ui.ComboButton.html#addChoices">addChoices
</a></li>
3009 <li data-name=
"LuCI.ui.ComboButton#clearChoices"><a href=
"LuCI.ui.ComboButton.html#clearChoices">clearChoices
</a></li>
3011 <li data-name=
"LuCI.ui.ComboButton#closeAllDropdowns"><a href=
"LuCI.ui.ComboButton.html#closeAllDropdowns">closeAllDropdowns
</a></li>
3013 <li data-name=
"LuCI.ui.ComboButton#getValidationError"><a href=
"LuCI.ui.ComboButton.html#getValidationError">getValidationError
</a></li>
3015 <li data-name=
"LuCI.ui.ComboButton#isChanged"><a href=
"LuCI.ui.ComboButton.html#isChanged">isChanged
</a></li>
3017 <li data-name=
"LuCI.ui.ComboButton#isValid"><a href=
"LuCI.ui.ComboButton.html#isValid">isValid
</a></li>
3019 <li data-name=
"LuCI.ui.ComboButton#registerEvents"><a href=
"LuCI.ui.ComboButton.html#registerEvents">registerEvents
</a></li>
3021 <li data-name=
"LuCI.ui.ComboButton#setChangeEvents"><a href=
"LuCI.ui.ComboButton.html#setChangeEvents">setChangeEvents
</a></li>
3023 <li data-name=
"LuCI.ui.ComboButton#setPlaceholder"><a href=
"LuCI.ui.ComboButton.html#setPlaceholder">setPlaceholder
</a></li>
3025 <li data-name=
"LuCI.ui.ComboButton#setUpdateEvents"><a href=
"LuCI.ui.ComboButton.html#setUpdateEvents">setUpdateEvents
</a></li>
3027 <li data-name=
"LuCI.ui.ComboButton#triggerValidation"><a href=
"LuCI.ui.ComboButton.html#triggerValidation">triggerValidation
</a></li>
3030 <ul class=
"events itemMembers">
3035 <li class=
"item" data-name=
"LuCI.ui.Dropdown">
3036 <span class=
"title">
3037 <a href=
"LuCI.ui.Dropdown.html">LuCI.ui.Dropdown
</a>
3040 <ul class=
"members itemMembers">
3043 <ul class=
"typedefs itemMembers">
3045 <span class=
"subtitle">Typedefs
</span>
3047 <li data-name=
"LuCI.ui.Dropdown.InitOptions"><a href=
"LuCI.ui.Dropdown.html#.InitOptions">InitOptions
</a></li>
3050 <ul class=
"typedefs itemMembers">
3053 <ul class=
"methods itemMembers">
3055 <span class=
"subtitle">Methods
</span>
3057 <li data-name=
"LuCI.ui.Dropdown#addChoices"><a href=
"LuCI.ui.Dropdown.html#addChoices">addChoices
</a></li>
3059 <li data-name=
"LuCI.ui.Dropdown#clearChoices"><a href=
"LuCI.ui.Dropdown.html#clearChoices">clearChoices
</a></li>
3061 <li data-name=
"LuCI.ui.Dropdown#closeAllDropdowns"><a href=
"LuCI.ui.Dropdown.html#closeAllDropdowns">closeAllDropdowns
</a></li>
3063 <li data-name=
"LuCI.ui.Dropdown#getValidationError"><a href=
"LuCI.ui.Dropdown.html#getValidationError">getValidationError
</a></li>
3065 <li data-name=
"LuCI.ui.Dropdown#getValue"><a href=
"LuCI.ui.Dropdown.html#getValue">getValue
</a></li>
3067 <li data-name=
"LuCI.ui.Dropdown#isChanged"><a href=
"LuCI.ui.Dropdown.html#isChanged">isChanged
</a></li>
3069 <li data-name=
"LuCI.ui.Dropdown#isValid"><a href=
"LuCI.ui.Dropdown.html#isValid">isValid
</a></li>
3071 <li data-name=
"LuCI.ui.Dropdown#registerEvents"><a href=
"LuCI.ui.Dropdown.html#registerEvents">registerEvents
</a></li>
3073 <li data-name=
"LuCI.ui.Dropdown#render"><a href=
"LuCI.ui.Dropdown.html#render">render
</a></li>
3075 <li data-name=
"LuCI.ui.Dropdown#setChangeEvents"><a href=
"LuCI.ui.Dropdown.html#setChangeEvents">setChangeEvents
</a></li>
3077 <li data-name=
"LuCI.ui.Dropdown#setPlaceholder"><a href=
"LuCI.ui.Dropdown.html#setPlaceholder">setPlaceholder
</a></li>
3079 <li data-name=
"LuCI.ui.Dropdown#setUpdateEvents"><a href=
"LuCI.ui.Dropdown.html#setUpdateEvents">setUpdateEvents
</a></li>
3081 <li data-name=
"LuCI.ui.Dropdown#setValue"><a href=
"LuCI.ui.Dropdown.html#setValue">setValue
</a></li>
3083 <li data-name=
"LuCI.ui.Dropdown#triggerValidation"><a href=
"LuCI.ui.Dropdown.html#triggerValidation">triggerValidation
</a></li>
3086 <ul class=
"events itemMembers">
3091 <li class=
"item" data-name=
"LuCI.ui.DynamicList">
3092 <span class=
"title">
3093 <a href=
"LuCI.ui.DynamicList.html">LuCI.ui.DynamicList
</a>
3096 <ul class=
"members itemMembers">
3099 <ul class=
"typedefs itemMembers">
3101 <span class=
"subtitle">Typedefs
</span>
3103 <li data-name=
"LuCI.ui.DynamicList.InitOptions"><a href=
"LuCI.ui.DynamicList.html#.InitOptions">InitOptions
</a></li>
3106 <ul class=
"typedefs itemMembers">
3109 <ul class=
"methods itemMembers">
3111 <span class=
"subtitle">Methods
</span>
3113 <li data-name=
"LuCI.ui.DynamicList#addChoices"><a href=
"LuCI.ui.DynamicList.html#addChoices">addChoices
</a></li>
3115 <li data-name=
"LuCI.ui.DynamicList#clearChoices"><a href=
"LuCI.ui.DynamicList.html#clearChoices">clearChoices
</a></li>
3117 <li data-name=
"LuCI.ui.DynamicList#getValidationError"><a href=
"LuCI.ui.DynamicList.html#getValidationError">getValidationError
</a></li>
3119 <li data-name=
"LuCI.ui.DynamicList#getValue"><a href=
"LuCI.ui.DynamicList.html#getValue">getValue
</a></li>
3121 <li data-name=
"LuCI.ui.DynamicList#isChanged"><a href=
"LuCI.ui.DynamicList.html#isChanged">isChanged
</a></li>
3123 <li data-name=
"LuCI.ui.DynamicList#isValid"><a href=
"LuCI.ui.DynamicList.html#isValid">isValid
</a></li>
3125 <li data-name=
"LuCI.ui.DynamicList#registerEvents"><a href=
"LuCI.ui.DynamicList.html#registerEvents">registerEvents
</a></li>
3127 <li data-name=
"LuCI.ui.DynamicList#render"><a href=
"LuCI.ui.DynamicList.html#render">render
</a></li>
3129 <li data-name=
"LuCI.ui.DynamicList#setChangeEvents"><a href=
"LuCI.ui.DynamicList.html#setChangeEvents">setChangeEvents
</a></li>
3131 <li data-name=
"LuCI.ui.DynamicList#setPlaceholder"><a href=
"LuCI.ui.DynamicList.html#setPlaceholder">setPlaceholder
</a></li>
3133 <li data-name=
"LuCI.ui.DynamicList#setUpdateEvents"><a href=
"LuCI.ui.DynamicList.html#setUpdateEvents">setUpdateEvents
</a></li>
3135 <li data-name=
"LuCI.ui.DynamicList#setValue"><a href=
"LuCI.ui.DynamicList.html#setValue">setValue
</a></li>
3137 <li data-name=
"LuCI.ui.DynamicList#triggerValidation"><a href=
"LuCI.ui.DynamicList.html#triggerValidation">triggerValidation
</a></li>
3140 <ul class=
"events itemMembers">
3145 <li class=
"item" data-name=
"LuCI.ui.FileUpload">
3146 <span class=
"title">
3147 <a href=
"LuCI.ui.FileUpload.html">LuCI.ui.FileUpload
</a>
3150 <ul class=
"members itemMembers">
3153 <ul class=
"typedefs itemMembers">
3155 <span class=
"subtitle">Typedefs
</span>
3157 <li data-name=
"LuCI.ui.FileUpload.InitOptions"><a href=
"LuCI.ui.FileUpload.html#.InitOptions">InitOptions
</a></li>
3160 <ul class=
"typedefs itemMembers">
3163 <ul class=
"methods itemMembers">
3165 <span class=
"subtitle">Methods
</span>
3167 <li data-name=
"LuCI.ui.FileUpload#getValidationError"><a href=
"LuCI.ui.FileUpload.html#getValidationError">getValidationError
</a></li>
3169 <li data-name=
"LuCI.ui.FileUpload#getValue"><a href=
"LuCI.ui.FileUpload.html#getValue">getValue
</a></li>
3171 <li data-name=
"LuCI.ui.FileUpload#isChanged"><a href=
"LuCI.ui.FileUpload.html#isChanged">isChanged
</a></li>
3173 <li data-name=
"LuCI.ui.FileUpload#isValid"><a href=
"LuCI.ui.FileUpload.html#isValid">isValid
</a></li>
3175 <li data-name=
"LuCI.ui.FileUpload#registerEvents"><a href=
"LuCI.ui.FileUpload.html#registerEvents">registerEvents
</a></li>
3177 <li data-name=
"LuCI.ui.FileUpload#render"><a href=
"LuCI.ui.FileUpload.html#render">render
</a></li>
3179 <li data-name=
"LuCI.ui.FileUpload#setChangeEvents"><a href=
"LuCI.ui.FileUpload.html#setChangeEvents">setChangeEvents
</a></li>
3181 <li data-name=
"LuCI.ui.FileUpload#setPlaceholder"><a href=
"LuCI.ui.FileUpload.html#setPlaceholder">setPlaceholder
</a></li>
3183 <li data-name=
"LuCI.ui.FileUpload#setUpdateEvents"><a href=
"LuCI.ui.FileUpload.html#setUpdateEvents">setUpdateEvents
</a></li>
3185 <li data-name=
"LuCI.ui.FileUpload#setValue"><a href=
"LuCI.ui.FileUpload.html#setValue">setValue
</a></li>
3187 <li data-name=
"LuCI.ui.FileUpload#triggerValidation"><a href=
"LuCI.ui.FileUpload.html#triggerValidation">triggerValidation
</a></li>
3190 <ul class=
"events itemMembers">
3195 <li class=
"item" data-name=
"LuCI.ui.Hiddenfield">
3196 <span class=
"title">
3197 <a href=
"LuCI.ui.Hiddenfield.html">LuCI.ui.Hiddenfield
</a>
3200 <ul class=
"members itemMembers">
3203 <ul class=
"typedefs itemMembers">
3206 <ul class=
"typedefs itemMembers">
3209 <ul class=
"methods itemMembers">
3211 <span class=
"subtitle">Methods
</span>
3213 <li data-name=
"LuCI.ui.Hiddenfield#getValidationError"><a href=
"LuCI.ui.Hiddenfield.html#getValidationError">getValidationError
</a></li>
3215 <li data-name=
"LuCI.ui.Hiddenfield#getValue"><a href=
"LuCI.ui.Hiddenfield.html#getValue">getValue
</a></li>
3217 <li data-name=
"LuCI.ui.Hiddenfield#isChanged"><a href=
"LuCI.ui.Hiddenfield.html#isChanged">isChanged
</a></li>
3219 <li data-name=
"LuCI.ui.Hiddenfield#isValid"><a href=
"LuCI.ui.Hiddenfield.html#isValid">isValid
</a></li>
3221 <li data-name=
"LuCI.ui.Hiddenfield#registerEvents"><a href=
"LuCI.ui.Hiddenfield.html#registerEvents">registerEvents
</a></li>
3223 <li data-name=
"LuCI.ui.Hiddenfield#render"><a href=
"LuCI.ui.Hiddenfield.html#render">render
</a></li>
3225 <li data-name=
"LuCI.ui.Hiddenfield#setChangeEvents"><a href=
"LuCI.ui.Hiddenfield.html#setChangeEvents">setChangeEvents
</a></li>
3227 <li data-name=
"LuCI.ui.Hiddenfield#setPlaceholder"><a href=
"LuCI.ui.Hiddenfield.html#setPlaceholder">setPlaceholder
</a></li>
3229 <li data-name=
"LuCI.ui.Hiddenfield#setUpdateEvents"><a href=
"LuCI.ui.Hiddenfield.html#setUpdateEvents">setUpdateEvents
</a></li>
3231 <li data-name=
"LuCI.ui.Hiddenfield#setValue"><a href=
"LuCI.ui.Hiddenfield.html#setValue">setValue
</a></li>
3233 <li data-name=
"LuCI.ui.Hiddenfield#triggerValidation"><a href=
"LuCI.ui.Hiddenfield.html#triggerValidation">triggerValidation
</a></li>
3236 <ul class=
"events itemMembers">
3241 <li class=
"item" data-name=
"LuCI.ui.menu">
3242 <span class=
"title">
3243 <a href=
"LuCI.ui.menu.html">LuCI.ui.menu
</a>
3246 <ul class=
"members itemMembers">
3249 <ul class=
"typedefs itemMembers">
3251 <span class=
"subtitle">Typedefs
</span>
3253 <li data-name=
"LuCI.ui.menu.MenuNode"><a href=
"LuCI.ui.menu.html#.MenuNode">MenuNode
</a></li>
3256 <ul class=
"typedefs itemMembers">
3259 <ul class=
"methods itemMembers">
3261 <span class=
"subtitle">Methods
</span>
3263 <li data-name=
"LuCI.ui.menu#flushCache"><a href=
"LuCI.ui.menu.html#flushCache">flushCache
</a></li>
3265 <li data-name=
"LuCI.ui.menu#getChildren"><a href=
"LuCI.ui.menu.html#getChildren">getChildren
</a></li>
3267 <li data-name=
"LuCI.ui.menu#load"><a href=
"LuCI.ui.menu.html#load">load
</a></li>
3270 <ul class=
"events itemMembers">
3275 <li class=
"item" data-name=
"LuCI.ui.Select">
3276 <span class=
"title">
3277 <a href=
"LuCI.ui.Select.html">LuCI.ui.Select
</a>
3280 <ul class=
"members itemMembers">
3283 <ul class=
"typedefs itemMembers">
3285 <span class=
"subtitle">Typedefs
</span>
3287 <li data-name=
"LuCI.ui.Select.InitOptions"><a href=
"LuCI.ui.Select.html#.InitOptions">InitOptions
</a></li>
3290 <ul class=
"typedefs itemMembers">
3293 <ul class=
"methods itemMembers">
3295 <span class=
"subtitle">Methods
</span>
3297 <li data-name=
"LuCI.ui.Select#getValidationError"><a href=
"LuCI.ui.Select.html#getValidationError">getValidationError
</a></li>
3299 <li data-name=
"LuCI.ui.Select#getValue"><a href=
"LuCI.ui.Select.html#getValue">getValue
</a></li>
3301 <li data-name=
"LuCI.ui.Select#isChanged"><a href=
"LuCI.ui.Select.html#isChanged">isChanged
</a></li>
3303 <li data-name=
"LuCI.ui.Select#isValid"><a href=
"LuCI.ui.Select.html#isValid">isValid
</a></li>
3305 <li data-name=
"LuCI.ui.Select#registerEvents"><a href=
"LuCI.ui.Select.html#registerEvents">registerEvents
</a></li>
3307 <li data-name=
"LuCI.ui.Select#render"><a href=
"LuCI.ui.Select.html#render">render
</a></li>
3309 <li data-name=
"LuCI.ui.Select#setChangeEvents"><a href=
"LuCI.ui.Select.html#setChangeEvents">setChangeEvents
</a></li>
3311 <li data-name=
"LuCI.ui.Select#setPlaceholder"><a href=
"LuCI.ui.Select.html#setPlaceholder">setPlaceholder
</a></li>
3313 <li data-name=
"LuCI.ui.Select#setUpdateEvents"><a href=
"LuCI.ui.Select.html#setUpdateEvents">setUpdateEvents
</a></li>
3315 <li data-name=
"LuCI.ui.Select#setValue"><a href=
"LuCI.ui.Select.html#setValue">setValue
</a></li>
3317 <li data-name=
"LuCI.ui.Select#triggerValidation"><a href=
"LuCI.ui.Select.html#triggerValidation">triggerValidation
</a></li>
3320 <ul class=
"events itemMembers">
3325 <li class=
"item" data-name=
"LuCI.ui.tabs">
3326 <span class=
"title">
3327 <a href=
"LuCI.ui.tabs.html">LuCI.ui.tabs
</a>
3330 <ul class=
"members itemMembers">
3333 <ul class=
"typedefs itemMembers">
3336 <ul class=
"typedefs itemMembers">
3339 <ul class=
"methods itemMembers">
3341 <span class=
"subtitle">Methods
</span>
3343 <li data-name=
"LuCI.ui.tabs#initTabGroup"><a href=
"LuCI.ui.tabs.html#initTabGroup">initTabGroup
</a></li>
3345 <li data-name=
"LuCI.ui.tabs#isEmptyPane"><a href=
"LuCI.ui.tabs.html#isEmptyPane">isEmptyPane
</a></li>
3348 <ul class=
"events itemMembers">
3353 <li class=
"item" data-name=
"LuCI.ui.Textarea">
3354 <span class=
"title">
3355 <a href=
"LuCI.ui.Textarea.html">LuCI.ui.Textarea
</a>
3358 <ul class=
"members itemMembers">
3361 <ul class=
"typedefs itemMembers">
3363 <span class=
"subtitle">Typedefs
</span>
3365 <li data-name=
"LuCI.ui.Textarea.InitOptions"><a href=
"LuCI.ui.Textarea.html#.InitOptions">InitOptions
</a></li>
3368 <ul class=
"typedefs itemMembers">
3371 <ul class=
"methods itemMembers">
3373 <span class=
"subtitle">Methods
</span>
3375 <li data-name=
"LuCI.ui.Textarea#getValidationError"><a href=
"LuCI.ui.Textarea.html#getValidationError">getValidationError
</a></li>
3377 <li data-name=
"LuCI.ui.Textarea#getValue"><a href=
"LuCI.ui.Textarea.html#getValue">getValue
</a></li>
3379 <li data-name=
"LuCI.ui.Textarea#isChanged"><a href=
"LuCI.ui.Textarea.html#isChanged">isChanged
</a></li>
3381 <li data-name=
"LuCI.ui.Textarea#isValid"><a href=
"LuCI.ui.Textarea.html#isValid">isValid
</a></li>
3383 <li data-name=
"LuCI.ui.Textarea#registerEvents"><a href=
"LuCI.ui.Textarea.html#registerEvents">registerEvents
</a></li>
3385 <li data-name=
"LuCI.ui.Textarea#render"><a href=
"LuCI.ui.Textarea.html#render">render
</a></li>
3387 <li data-name=
"LuCI.ui.Textarea#setChangeEvents"><a href=
"LuCI.ui.Textarea.html#setChangeEvents">setChangeEvents
</a></li>
3389 <li data-name=
"LuCI.ui.Textarea#setPlaceholder"><a href=
"LuCI.ui.Textarea.html#setPlaceholder">setPlaceholder
</a></li>
3391 <li data-name=
"LuCI.ui.Textarea#setUpdateEvents"><a href=
"LuCI.ui.Textarea.html#setUpdateEvents">setUpdateEvents
</a></li>
3393 <li data-name=
"LuCI.ui.Textarea#setValue"><a href=
"LuCI.ui.Textarea.html#setValue">setValue
</a></li>
3395 <li data-name=
"LuCI.ui.Textarea#triggerValidation"><a href=
"LuCI.ui.Textarea.html#triggerValidation">triggerValidation
</a></li>
3398 <ul class=
"events itemMembers">
3403 <li class=
"item" data-name=
"LuCI.ui.Textfield">
3404 <span class=
"title">
3405 <a href=
"LuCI.ui.Textfield.html">LuCI.ui.Textfield
</a>
3408 <ul class=
"members itemMembers">
3411 <ul class=
"typedefs itemMembers">
3413 <span class=
"subtitle">Typedefs
</span>
3415 <li data-name=
"LuCI.ui.Textfield.InitOptions"><a href=
"LuCI.ui.Textfield.html#.InitOptions">InitOptions
</a></li>
3418 <ul class=
"typedefs itemMembers">
3421 <ul class=
"methods itemMembers">
3423 <span class=
"subtitle">Methods
</span>
3425 <li data-name=
"LuCI.ui.Textfield#getValidationError"><a href=
"LuCI.ui.Textfield.html#getValidationError">getValidationError
</a></li>
3427 <li data-name=
"LuCI.ui.Textfield#getValue"><a href=
"LuCI.ui.Textfield.html#getValue">getValue
</a></li>
3429 <li data-name=
"LuCI.ui.Textfield#isChanged"><a href=
"LuCI.ui.Textfield.html#isChanged">isChanged
</a></li>
3431 <li data-name=
"LuCI.ui.Textfield#isValid"><a href=
"LuCI.ui.Textfield.html#isValid">isValid
</a></li>
3433 <li data-name=
"LuCI.ui.Textfield#registerEvents"><a href=
"LuCI.ui.Textfield.html#registerEvents">registerEvents
</a></li>
3435 <li data-name=
"LuCI.ui.Textfield#render"><a href=
"LuCI.ui.Textfield.html#render">render
</a></li>
3437 <li data-name=
"LuCI.ui.Textfield#setChangeEvents"><a href=
"LuCI.ui.Textfield.html#setChangeEvents">setChangeEvents
</a></li>
3439 <li data-name=
"LuCI.ui.Textfield#setPlaceholder"><a href=
"LuCI.ui.Textfield.html#setPlaceholder">setPlaceholder
</a></li>
3441 <li data-name=
"LuCI.ui.Textfield#setUpdateEvents"><a href=
"LuCI.ui.Textfield.html#setUpdateEvents">setUpdateEvents
</a></li>
3443 <li data-name=
"LuCI.ui.Textfield#setValue"><a href=
"LuCI.ui.Textfield.html#setValue">setValue
</a></li>
3445 <li data-name=
"LuCI.ui.Textfield#triggerValidation"><a href=
"LuCI.ui.Textfield.html#triggerValidation">triggerValidation
</a></li>
3448 <ul class=
"events itemMembers">
3453 <li class=
"item" data-name=
"LuCI.view">
3454 <span class=
"title">
3455 <a href=
"LuCI.view.html">LuCI.view
</a>
3458 <ul class=
"members itemMembers">
3461 <ul class=
"typedefs itemMembers">
3464 <ul class=
"typedefs itemMembers">
3467 <ul class=
"methods itemMembers">
3469 <span class=
"subtitle">Methods
</span>
3471 <li data-name=
"LuCI.view#addFooter"><a href=
"LuCI.view.html#addFooter">addFooter
</a></li>
3473 <li data-name=
"LuCI.view#handleReset"><a href=
"LuCI.view.html#handleReset">handleReset
</a></li>
3475 <li data-name=
"LuCI.view#handleSave"><a href=
"LuCI.view.html#handleSave">handleSave
</a></li>
3477 <li data-name=
"LuCI.view#handleSaveApply"><a href=
"LuCI.view.html#handleSaveApply">handleSaveApply
</a></li>
3479 <li data-name=
"LuCI.view#load"><a href=
"LuCI.view.html#load">load
</a></li>
3481 <li data-name=
"LuCI.view#render"><a href=
"LuCI.view.html#render">render
</a></li>
3484 <ul class=
"events itemMembers">
3489 <li class=
"item" data-name=
"LuCI.xhr">
3490 <span class=
"title">
3491 <a href=
"LuCI.xhr.html">LuCI.xhr
</a>
3494 <ul class=
"members itemMembers">
3497 <ul class=
"typedefs itemMembers">
3500 <ul class=
"typedefs itemMembers">
3503 <ul class=
"methods itemMembers">
3505 <span class=
"subtitle">Methods
</span>
3507 <li data-name=
"LuCI.xhr#abort"><a href=
"LuCI.xhr.html#abort">abort
</a></li>
3509 <li data-name=
"LuCI.xhr#busy"><a href=
"LuCI.xhr.html#busy">busy
</a></li>
3511 <li data-name=
"LuCI.xhr#cancel"><a href=
"LuCI.xhr.html#cancel">cancel
</a></li>
3513 <li data-name=
"LuCI.xhr#get"><a href=
"LuCI.xhr.html#get">get
</a></li>
3515 <li data-name=
"LuCI.xhr#post"><a href=
"LuCI.xhr.html#post">post
</a></li>
3517 <li data-name=
"LuCI.xhr#send_form"><a href=
"LuCI.xhr.html#send_form">send_form
</a></li>
3520 <ul class=
"events itemMembers">
3528 <h1 class=
"page-title" data-filename=
"network.js.html">Source: network.js
</h1>
3535 <pre id=
"source-code" class=
"prettyprint source "><code>'use strict';
3538 'require validation';
3539 'require baseclass';
3542 var proto_errors = {
3543 CONNECT_FAILED: _('Connection attempt failed'),
3544 INVALID_ADDRESS: _('IP address is invalid'),
3545 INVALID_GATEWAY: _('Gateway address is invalid'),
3546 INVALID_LOCAL_ADDRESS: _('Local IP address is invalid'),
3547 MISSING_ADDRESS: _('IP address is missing'),
3548 MISSING_PEER_ADDRESS: _('Peer address is missing'),
3549 NO_DEVICE: _('Network device is not present'),
3550 NO_IFACE: _('Unable to determine device name'),
3551 NO_IFNAME: _('Unable to determine device name'),
3552 NO_WAN_ADDRESS: _('Unable to determine external IP address'),
3553 NO_WAN_LINK: _('Unable to determine upstream interface'),
3554 PEER_RESOLVE_FAIL: _('Unable to resolve peer host name'),
3555 PIN_FAILED: _('PIN code rejected')
3558 var iface_patterns_ignore = [
3574 var iface_patterns_wireless = [
3581 var iface_patterns_virtual = [ ];
3583 var callLuciNetworkDevices = rpc.declare({
3585 method: 'getNetworkDevices',
3589 var callLuciWirelessDevices = rpc.declare({
3591 method: 'getWirelessDevices',
3595 var callLuciBoardJSON = rpc.declare({
3597 method: 'getBoardJSON'
3600 var callLuciHostHints = rpc.declare({
3602 method: 'getHostHints',
3606 var callIwinfoAssoclist = rpc.declare({
3608 method: 'assoclist',
3609 params: [ 'device', 'mac' ],
3610 expect: { results: [] }
3613 var callIwinfoScan = rpc.declare({
3616 params: [ 'device' ],
3618 expect: { results: [] }
3621 var callNetworkInterfaceDump = rpc.declare({
3622 object: 'network.interface',
3624 expect: { 'interface': [] }
3627 var callNetworkProtoHandlers = rpc.declare({
3629 method: 'get_proto_handlers',
3638 function getProtocolHandlers(cache) {
3639 return callNetworkProtoHandlers().then(function(protos) {
3640 /* Register
"none" protocol */
3641 if (!protos.hasOwnProperty('none'))
3642 Object.assign(protos, { none: { no_device: false } });
3644 /* Hack: emulate relayd protocol */
3645 if (!protos.hasOwnProperty('relay')
&& L.hasSystemFeature('relayd'))
3646 Object.assign(protos, { relay: { no_device: true } });
3648 Object.assign(_protospecs, protos);
3650 return Promise.all(Object.keys(protos).map(function(p) {
3651 return Promise.resolve(L.require('protocol.%s'.format(p))).catch(function(err) {
3652 if (L.isObject(err)
&& err.name != 'NetworkError')
3655 })).then(function() {
3658 }).catch(function() {
3663 function getWifiStateBySid(sid) {
3664 var s = uci.get('wireless', sid);
3666 if (s != null
&& s['.type'] == 'wifi-iface') {
3667 for (var radioname in _state.radios) {
3668 for (var i =
0; i
< _state.radios[radioname].interfaces.length; i++) {
3669 var netstate = _state.radios[radioname].interfaces[i];
3671 if (typeof(netstate.section) != 'string')
3674 var s2 = uci.get('wireless', netstate.section);
3676 if (s2 != null
&& s['.type'] == s2['.type']
&& s['.name'] == s2['.name']) {
3677 if (s2['.anonymous'] == false
&& netstate.section.charAt(
0) == '@')
3680 return [ radioname, _state.radios[radioname], netstate ];
3689 function getWifiStateByIfname(ifname) {
3690 for (var radioname in _state.radios) {
3691 for (var i =
0; i
< _state.radios[radioname].interfaces.length; i++) {
3692 var netstate = _state.radios[radioname].interfaces[i];
3694 if (typeof(netstate.ifname) != 'string')
3697 if (netstate.ifname == ifname)
3698 return [ radioname, _state.radios[radioname], netstate ];
3705 function isWifiIfname(ifname) {
3706 for (var i =
0; i
< iface_patterns_wireless.length; i++)
3707 if (iface_patterns_wireless[i].test(ifname))
3713 function getWifiSidByNetid(netid) {
3714 var m = /^(\w+)\.network(\d+)$/.exec(netid);
3716 var sections = uci.sections('wireless', 'wifi-iface');
3717 for (var i =
0, n =
0; i
< sections.length; i++) {
3718 if (sections[i].device != m[
1])
3722 return sections[i]['.name'];
3729 function getWifiSidByIfname(ifname) {
3730 var sid = getWifiSidByNetid(ifname);
3735 var res = getWifiStateByIfname(ifname);
3737 if (res != null
&& L.isObject(res[
2])
&& typeof(res[
2].section) == 'string')
3738 return res[
2].section;
3743 function getWifiNetidBySid(sid) {
3744 var s = uci.get('wireless', sid);
3745 if (s != null
&& s['.type'] == 'wifi-iface') {
3746 var radioname = s.device;
3747 if (typeof(radioname) == 'string') {
3748 var sections = uci.sections('wireless', 'wifi-iface');
3749 for (var i =
0, n =
0; i
< sections.length; i++) {
3750 if (sections[i].device != s.device)
3755 if (sections[i]['.name'] != s['.name'])
3758 return [ '%s.network%d'.format(s.device, n), s.device ];
3767 function getWifiNetidByNetname(name) {
3768 var sections = uci.sections('wireless', 'wifi-iface');
3769 for (var i =
0; i
< sections.length; i++) {
3770 if (typeof(sections[i].network) != 'string')
3773 var nets = sections[i].network.split(/\s+/);
3774 for (var j =
0; j
< nets.length; j++) {
3775 if (nets[j] != name)
3778 return getWifiNetidBySid(sections[i]['.name']);
3785 function isVirtualIfname(ifname) {
3786 for (var i =
0; i
< iface_patterns_virtual.length; i++)
3787 if (iface_patterns_virtual[i].test(ifname))
3793 function isIgnoredIfname(ifname) {
3794 for (var i =
0; i
< iface_patterns_ignore.length; i++)
3795 if (iface_patterns_ignore[i].test(ifname))
3801 function appendValue(config, section, option, value) {
3802 var values = uci.get(config, section, option),
3803 isArray = Array.isArray(values),
3806 if (isArray == false)
3807 values = L.toArray(values);
3809 if (values.indexOf(value) == -
1) {
3814 uci.set(config, section, option, isArray ? values : values.join(' '));
3819 function removeValue(config, section, option, value) {
3820 var values = uci.get(config, section, option),
3821 isArray = Array.isArray(values),
3824 if (isArray == false)
3825 values = L.toArray(values);
3827 for (var i = values.length -
1; i
>=
0; i--) {
3828 if (values[i] == value) {
3829 values.splice(i,
1);
3834 if (values.length
> 0)
3835 uci.set(config, section, option, isArray ? values : values.join(' '));
3837 uci.unset(config, section, option);
3842 function prefixToMask(bits, v6) {
3843 var w = v6 ?
128 :
32,
3849 for (var i =
0; i
< w /
16; i++) {
3850 var b = Math.min(
16, bits);
3851 m.push((
0xffff << (
16 - b))
& 0xffff);
3856 return String.prototype.format.apply('%x:%x:%x:%x:%x:%x:%x:%x', m).replace(/:
0(?::
0)+$/, '::');
3858 return '%d.%d.%d.%d'.format(m[
0]
>>> 8, m[
0]
& 0xff, m[
1]
>>> 8, m[
1]
& 0xff);
3861 function maskToPrefix(mask, v6) {
3862 var m = v6 ? validation.parseIPv6(mask) : validation.parseIPv4(mask);
3869 for (var i =
0, z = false; i
< m.length; i++) {
3872 while (!z
&& (m[i]
& (v6 ?
0x8000 :
0x80))) {
3873 m[i] = (m[i]
<< 1)
& (v6 ?
0xffff :
0xff);
3884 function initNetworkState(refresh) {
3885 if (_state == null || refresh) {
3886 _init = _init || Promise.all([
3887 L.resolveDefault(callNetworkInterfaceDump(), []),
3888 L.resolveDefault(callLuciBoardJSON(), {}),
3889 L.resolveDefault(callLuciNetworkDevices(), {}),
3890 L.resolveDefault(callLuciWirelessDevices(), {}),
3891 L.resolveDefault(callLuciHostHints(), {}),
3892 getProtocolHandlers(),
3893 L.resolveDefault(uci.load('network')),
3894 L.resolveDefault(uci.load('wireless')),
3895 L.resolveDefault(uci.load('luci'))
3896 ]).then(function(data) {
3897 var netifd_ifaces = data[
0],
3898 board_json = data[
1],
3899 luci_devs = data[
2];
3902 isTunnel: {}, isBridge: {}, isSwitch: {}, isWifi: {},
3903 ifaces: netifd_ifaces, radios: data[
3], hosts: data[
4],
3904 netdevs: {}, bridges: {}, switches: {}, hostapd: {}
3907 for (var name in luci_devs) {
3908 var dev = luci_devs[name];
3910 if (isVirtualIfname(name))
3911 s.isTunnel[name] = true;
3913 if (!s.isTunnel[name]
&& isIgnoredIfname(name))
3916 s.netdevs[name] = s.netdevs[name] || {
3925 devtype: dev.devtype,
3928 wireless: dev.wireless,
3934 if (Array.isArray(dev.ipaddrs))
3935 for (var i =
0; i
< dev.ipaddrs.length; i++)
3936 s.netdevs[name].ipaddrs.push(dev.ipaddrs[i].address + '/' + dev.ipaddrs[i].netmask);
3938 if (Array.isArray(dev.ip6addrs))
3939 for (var i =
0; i
< dev.ip6addrs.length; i++)
3940 s.netdevs[name].ip6addrs.push(dev.ip6addrs[i].address + '/' + dev.ip6addrs[i].netmask);
3943 for (var name in luci_devs) {
3944 var dev = luci_devs[name];
3956 for (var i =
0; dev.ports
&& i
< dev.ports.length; i++) {
3957 var subdev = s.netdevs[dev.ports[i]];
3962 b.ifnames.push(subdev);
3966 s.bridges[name] = b;
3967 s.isBridge[name] = true;
3970 for (var name in luci_devs) {
3971 var dev = luci_devs[name];
3973 if (!dev.parent || dev.devtype != 'dsa')
3976 s.isSwitch[dev.parent] = true;
3977 s.isSwitch[name] = true;
3980 if (L.isObject(board_json.switch)) {
3981 for (var switchname in board_json.switch) {
3982 var layout = board_json.switch[switchname],
3989 if (L.isObject(layout)
&& Array.isArray(layout.ports)) {
3990 for (var i =
0, port; (port = layout.ports[i]) != null; i++) {
3991 if (typeof(port) == 'object'
&& typeof(port.num) == 'number'
&&
3992 (typeof(port.role) == 'string' || typeof(port.device) == 'string')) {
3995 role: port.role || 'cpu',
3996 index: (port.index != null) ? port.index : port.num
3999 if (port.device != null) {
4000 spec.device = port.device;
4001 spec.tagged = spec.need_tag;
4002 netdevs[port.num] = port.device;
4007 if (port.role != null)
4008 nports[port.role] = (nports[port.role] ||
0) +
1;
4012 ports.sort(function(a, b) {
4013 return L.naturalCompare(a.role, b.role) || L.naturalCompare(a.index, b.index);
4016 for (var i =
0, port; (port = ports[i]) != null; i++) {
4017 if (port.role != role) {
4023 port.label = 'CPU (%s)'.format(port.device);
4024 else if (nports[role]
> 1)
4025 port.label = '%s %d'.format(role.toUpperCase(), pnum++);
4027 port.label = role.toUpperCase();
4033 s.switches[switchname] = {
4041 if (L.isObject(board_json.dsl)
&& L.isObject(board_json.dsl.modem)) {
4042 s.hasDSLModem = board_json.dsl.modem;
4049 if (L.isObject(s.radios))
4050 for (var radio in s.radios)
4051 if (L.isObject(s.radios[radio])
&& Array.isArray(s.radios[radio].interfaces))
4052 for (var i =
0; i
< s.radios[radio].interfaces.length; i++)
4053 if (L.isObject(s.radios[radio].interfaces[i])
&& s.radios[radio].interfaces[i].ifname)
4054 objects.push('hostapd.%s'.format(s.radios[radio].interfaces[i].ifname));
4056 return (objects.length ? L.resolveDefault(rpc.list.apply(rpc, objects), {}) : Promise.resolve({})).then(function(res) {
4057 for (var k in res) {
4058 var m = k.match(/^hostapd\.(.+)$/);
4060 s.hostapd[m[
1]] = res[k];
4063 return (_state = s);
4068 return (_state != null ? Promise.resolve(_state) : _init);
4071 function ifnameOf(obj) {
4072 if (obj instanceof Protocol)
4073 return obj.getIfname();
4074 else if (obj instanceof Device)
4075 return obj.getName();
4076 else if (obj instanceof WifiDevice)
4077 return obj.getName();
4078 else if (obj instanceof WifiNetwork)
4079 return obj.getIfname();
4080 else if (typeof(obj) == 'string')
4081 return obj.replace(/:.+$/, '');
4086 function networkSort(a, b) {
4087 return L.naturalCompare(a.getName(), b.getName());
4090 function deviceSort(a, b) {
4091 var typeWeigth = { wifi:
2, alias:
3 };
4093 return L.naturalCompare(typeWeigth[a.getType()] ||
1, typeWeigth[b.getType()] ||
1) ||
4094 L.naturalCompare(a.getName(), b.getName());
4097 function formatWifiEncryption(enc) {
4098 if (!L.isObject(enc))
4104 var ciphers = Array.isArray(enc.ciphers)
4105 ? enc.ciphers.map(function(c) { return c.toUpperCase() }) : [ 'NONE' ];
4107 if (Array.isArray(enc.wep)) {
4108 var has_open = false,
4111 for (var i =
0; i
< enc.wep.length; i++)
4112 if (enc.wep[i] == 'open')
4114 else if (enc.wep[i] == 'shared')
4117 if (has_open
&& has_shared)
4118 return 'WEP Open/Shared (%s)'.format(ciphers.join(', '));
4120 return 'WEP Open System (%s)'.format(ciphers.join(', '));
4121 else if (has_shared)
4122 return 'WEP Shared Auth (%s)'.format(ciphers.join(', '));
4127 if (Array.isArray(enc.wpa)) {
4129 suites = Array.isArray(enc.authentication)
4130 ? enc.authentication.map(function(a) { return a.toUpperCase() }) : [ 'NONE' ];
4132 for (var i =
0; i
< enc.wpa.length; i++)
4133 switch (enc.wpa[i]) {
4135 versions.push('WPA');
4139 versions.push('WPA%d'.format(enc.wpa[i]));
4143 if (versions.length
> 1)
4144 return 'mixed %s %s (%s)'.format(versions.join('/'), suites.join(', '), ciphers.join(', '));
4146 return '%s %s (%s)'.format(versions[
0], suites.join(', '), ciphers.join(', '));
4152 function enumerateNetworks() {
4153 var uciInterfaces = uci.sections('network', 'interface'),
4156 for (var i =
0; i
< uciInterfaces.length; i++)
4157 networks[uciInterfaces[i]['.name']] = this.instantiateNetwork(uciInterfaces[i]['.name']);
4159 for (var i =
0; i
< _state.ifaces.length; i++)
4160 if (networks[_state.ifaces[i].interface] == null)
4161 networks[_state.ifaces[i].interface] =
4162 this.instantiateNetwork(_state.ifaces[i].interface, _state.ifaces[i].proto);
4166 for (var network in networks)
4167 if (networks.hasOwnProperty(network))
4168 rv.push(networks[network]);
4170 rv.sort(networkSort);
4176 var Hosts, Network, Protocol, Device, WifiDevice, WifiNetwork;
4184 * The `LuCI.network` class combines data from multiple `ubus` APIs to
4185 * provide an abstraction of the current network configuration state.
4187 * It provides methods to enumerate interfaces and devices, to query
4188 * current configuration details and to manipulate settings.
4190 Network = baseclass.extend(/** @lends LuCI.network.prototype */ {
4192 * Converts the given prefix size in bits to a netmask.
4196 * @param {number} bits
4197 * The prefix size in bits.
4199 * @param {boolean} [v6=false]
4200 * Whether to convert the bits value into an IPv4 netmask (`false`) or
4201 * an IPv6 netmask (`true`).
4203 * @returns {null|string}
4204 * Returns a string containing the netmask corresponding to the bit count
4205 * or `null` when the given amount of bits exceeds the maximum possible
4206 * value of `
32` for IPv4 or `
128` for IPv6.
4208 prefixToMask: prefixToMask,
4211 * Converts the given netmask to a prefix size in bits.
4215 * @param {string} netmask
4216 * The netmask to convert into a bits count.
4218 * @param {boolean} [v6=false]
4219 * Whether to parse the given netmask as IPv4 (`false`) or IPv6 (`true`)
4222 * @returns {null|number}
4223 * Returns the number of prefix bits contained in the netmask or `null`
4224 * if the given netmask value was invalid.
4226 maskToPrefix: maskToPrefix,
4229 * An encryption entry describes active wireless encryption settings
4230 * such as the used key management protocols, active ciphers and
4231 * protocol versions.
4233 * @typedef {Object
<string, boolean|Array
<number|string
>>} LuCI.network.WifiEncryption
4234 * @memberof LuCI.network
4236 * @property {boolean} enabled
4237 * Specifies whether any kind of encryption, such as `WEP` or `WPA` is
4238 * enabled. If set to `false`, then no encryption is active and the
4239 * corresponding network is open.
4241 * @property {string[]} [wep]
4242 * When the `wep` property exists, the network uses WEP encryption.
4243 * In this case, the property is set to an array of active WEP modes
4244 * which might be either `open`, `shared` or both.
4246 * @property {number[]} [wpa]
4247 * When the `wpa` property exists, the network uses WPA security.
4248 * In this case, the property is set to an array containing the WPA
4249 * protocol versions used, e.g. `[
1,
2 ]` for WPA/WPA2 mixed mode or
4250 * `[
3 ]` for WPA3-SAE.
4252 * @property {string[]} [authentication]
4253 * The `authentication` property only applies to WPA encryption and
4254 * is defined when the `wpa` property is set as well. It points to
4255 * an array of active authentication suites used by the network, e.g.
4256 * `[
"psk" ]` for a WPA(
2)-PSK network or `[
"psk",
"sae" ]` for
4257 * mixed WPA2-PSK/WPA3-SAE encryption.
4259 * @property {string[]} [ciphers]
4260 * If either WEP or WPA encryption is active, then the `ciphers`
4261 * property will be set to an array describing the active encryption
4262 * ciphers used by the network, e.g. `[
"tkip",
"ccmp" ]` for a
4263 * WPA/WPA2-PSK mixed network or `[
"wep-40",
"wep-104" ]` for an
4268 * Converts a given {@link LuCI.network.WifiEncryption encryption entry}
4269 * into a human readable string such as `mixed WPA/WPA2 PSK (TKIP, CCMP)`
4270 * or `WPA3 SAE (CCMP)`.
4274 * @param {LuCI.network.WifiEncryption} encryption
4275 * The wireless encryption entry to convert.
4277 * @returns {null|string}
4278 * Returns the description string for the given encryption entry or
4279 * `null` if the given entry was invalid.
4281 formatWifiEncryption: formatWifiEncryption,
4284 * Flushes the local network state cache and fetches updated information
4285 * from the remote `ubus` apis.
4287 * @returns {Promise
<Object
>}
4288 * Returns a promise resolving to the internal network state object.
4290 flushCache: function() {
4291 initNetworkState(true);
4296 * Instantiates the given {@link LuCI.network.Protocol Protocol} back-end,
4297 * optionally using the given network name.
4299 * @param {string} protoname
4300 * The protocol back-end to use, e.g. `static` or `dhcp`.
4302 * @param {string} [netname=__dummy__]
4303 * The network name to use for the instantiated protocol. This should be
4304 * usually set to one of the interfaces described in /etc/config/network
4305 * but it is allowed to omit it, e.g. to query protocol capabilities
4306 * without the need for an existing interface.
4308 * @returns {null|LuCI.network.Protocol}
4309 * Returns the instantiated protocol back-end class or `null` if the given
4310 * protocol isn't known.
4312 getProtocol: function(protoname, netname) {
4313 var v = _protocols[protoname];
4315 return new v(netname || '__dummy__');
4321 * Obtains instances of all known {@link LuCI.network.Protocol Protocol}
4324 * @returns {Array
<LuCI.network.Protocol
>}
4325 * Returns an array of protocol class instances.
4327 getProtocols: function() {
4330 for (var protoname in _protocols)
4331 rv.push(new _protocols[protoname]('__dummy__'));
4337 * Registers a new {@link LuCI.network.Protocol Protocol} subclass
4338 * with the given methods and returns the resulting subclass value.
4340 * This functions internally calls
4341 * {@link LuCI.Class.extend Class.extend()} on the `Network.Protocol`
4344 * @param {string} protoname
4345 * The name of the new protocol to register.
4347 * @param {Object
<string, *
>} methods
4348 * The member methods and values of the new `Protocol` subclass to
4349 * be passed to {@link LuCI.Class.extend Class.extend()}.
4351 * @returns {LuCI.network.Protocol}
4352 * Returns the new `Protocol` subclass.
4354 registerProtocol: function(protoname, methods) {
4355 var spec = L.isObject(_protospecs) ? _protospecs[protoname] : null;
4356 var proto = Protocol.extend(Object.assign({
4357 getI18n: function() {
4361 isFloating: function() {
4365 isVirtual: function() {
4366 return (L.isObject(spec)
&& spec.no_device == true);
4369 renderFormOptions: function(section) {
4373 __init__: function(name) {
4377 getProtocol: function() {
4382 _protocols[protoname] = proto;
4388 * Registers a new regular expression pattern to recognize
4389 * virtual interfaces.
4391 * @param {RegExp} pat
4392 * A `RegExp` instance to match a virtual interface name
4393 * such as `
6in4-wan` or `tun0`.
4395 registerPatternVirtual: function(pat) {
4396 iface_patterns_virtual.push(pat);
4400 * Registers a new human readable translation string for a `Protocol`
4403 * @param {string} code
4404 * The `ubus` protocol error code to register a translation for, e.g.
4407 * @param {string} message
4408 * The message to use as translation for the given protocol error code.
4410 * @returns {boolean}
4411 * Returns `true` if the error code description has been added or `false`
4412 * if either the arguments were invalid or if there already was a
4413 * description for the given code.
4415 registerErrorCode: function(code, message) {
4416 if (typeof(code) == 'string'
&&
4417 typeof(message) == 'string'
&&
4418 !proto_errors.hasOwnProperty(code)) {
4419 proto_errors[code] = message;
4427 * Adds a new network of the given name and update it with the given
4428 * uci option values.
4430 * If a network with the given name already exist but is empty, then
4431 * this function will update its option, otherwise it will do nothing.
4433 * @param {string} name
4434 * The name of the network to add. Must be in the format `[a-zA-Z0-
9_]+`.
4436 * @param {Object
<string, string|string[]
>} [options]
4437 * An object of uci option values to set on the new network or to
4438 * update in an existing, empty network.
4440 * @returns {Promise
<null|LuCI.network.Protocol
>}
4441 * Returns a promise resolving to the `Protocol` subclass instance
4442 * describing the added network or resolving to `null` if the name
4443 * was invalid or if a non-empty network of the given name already
4446 addNetwork: function(name, options) {
4447 return this.getNetwork(name).then(L.bind(function(existingNetwork) {
4448 if (name != null
&& /^[a-zA-Z0-
9_]+$/.test(name)
&& existingNetwork == null) {
4449 var sid = uci.add('network', 'interface', name);
4452 if (L.isObject(options))
4453 for (var key in options)
4454 if (options.hasOwnProperty(key))
4455 uci.set('network', sid, key, options[key]);
4457 return this.instantiateNetwork(sid);
4460 else if (existingNetwork != null
&& existingNetwork.isEmpty()) {
4461 if (L.isObject(options))
4462 for (var key in options)
4463 if (options.hasOwnProperty(key))
4464 existingNetwork.set(key, options[key]);
4466 return existingNetwork;
4472 * Get a {@link LuCI.network.Protocol Protocol} instance describing
4473 * the network with the given name.
4475 * @param {string} name
4476 * The logical interface name of the network get, e.g. `lan` or `wan`.
4478 * @returns {Promise
<null|LuCI.network.Protocol
>}
4479 * Returns a promise resolving to a
4480 * {@link LuCI.network.Protocol Protocol} subclass instance describing
4481 * the network or `null` if the network did not exist.
4483 getNetwork: function(name) {
4484 return initNetworkState().then(L.bind(function() {
4485 var section = (name != null) ? uci.get('network', name) : null;
4487 if (section != null
&& section['.type'] == 'interface') {
4488 return this.instantiateNetwork(name);
4490 else if (name != null) {
4491 for (var i =
0; i
< _state.ifaces.length; i++)
4492 if (_state.ifaces[i].interface == name)
4493 return this.instantiateNetwork(name, _state.ifaces[i].proto);
4501 * Gets an array containing all known networks.
4503 * @returns {Promise
<Array
<LuCI.network.Protocol
>>}
4504 * Returns a promise resolving to a name-sorted array of
4505 * {@link LuCI.network.Protocol Protocol} subclass instances
4506 * describing all known networks.
4508 getNetworks: function() {
4509 return initNetworkState().then(L.bind(enumerateNetworks, this));
4513 * Deletes the given network and its references from the network and
4514 * firewall configuration.
4516 * @param {string} name
4517 * The name of the network to delete.
4519 * @returns {Promise
<boolean
>}
4520 * Returns a promise resolving to either `true` if the network and
4521 * references to it were successfully deleted from the configuration or
4522 * `false` if the given network could not be found.
4524 deleteNetwork: function(name) {
4525 var requireFirewall = Promise.resolve(L.require('firewall')).catch(function() {}),
4526 loadDHCP = L.resolveDefault(uci.load('dhcp')),
4527 network = this.instantiateNetwork(name);
4529 return Promise.all([ requireFirewall, loadDHCP, initNetworkState() ]).then(function(res) {
4530 var uciInterface = uci.get('network', name),
4533 if (uciInterface != null
&& uciInterface['.type'] == 'interface') {
4534 return Promise.resolve(network ? network.deleteConfiguration() : null).then(function() {
4535 uci.remove('network', name);
4537 uci.sections('luci', 'ifstate', function(s) {
4538 if (s.interface == name)
4539 uci.remove('luci', s['.name']);
4542 uci.sections('network', null, function(s) {
4543 switch (s['.type']) {
4547 if (s.interface == name)
4548 uci.remove('network', s['.name']);
4554 if (s.in == name || s.out == name)
4555 uci.remove('network', s['.name']);
4561 uci.sections('wireless', 'wifi-iface', function(s) {
4562 var networks = L.toArray(s.network).filter(function(network) { return network != name });
4564 if (networks.length
> 0)
4565 uci.set('wireless', s['.name'], 'network', networks.join(' '));
4567 uci.unset('wireless', s['.name'], 'network');
4570 uci.sections('dhcp', 'dhcp', function(s) {
4571 if (s.interface == name)
4572 uci.remove('dhcp', s['.name']);
4576 return firewall.deleteNetwork(name).then(function() { return true });
4579 }).catch(function() {
4589 * Rename the given network and its references to a new name.
4591 * @param {string} oldName
4592 * The current name of the network.
4594 * @param {string} newName
4595 * The name to rename the network to, must be in the format
4598 * @returns {Promise
<boolean
>}
4599 * Returns a promise resolving to either `true` if the network was
4600 * successfully renamed or `false` if the new name was invalid, if
4601 * a network with the new name already exists or if the network to
4602 * rename could not be found.
4604 renameNetwork: function(oldName, newName) {
4605 return initNetworkState().then(function() {
4606 if (newName == null || !/^[a-zA-Z0-
9_]+$/.test(newName) || uci.get('network', newName) != null)
4609 var oldNetwork = uci.get('network', oldName);
4611 if (oldNetwork == null || oldNetwork['.type'] != 'interface')
4614 var sid = uci.add('network', 'interface', newName);
4616 for (var key in oldNetwork)
4617 if (oldNetwork.hasOwnProperty(key)
&& key.charAt(
0) != '.')
4618 uci.set('network', sid, key, oldNetwork[key]);
4620 uci.sections('luci', 'ifstate', function(s) {
4621 if (s.interface == oldName)
4622 uci.set('luci', s['.name'], 'interface', newName);
4625 uci.sections('network', 'alias', function(s) {
4626 if (s.interface == oldName)
4627 uci.set('network', s['.name'], 'interface', newName);
4630 uci.sections('network', 'route', function(s) {
4631 if (s.interface == oldName)
4632 uci.set('network', s['.name'], 'interface', newName);
4635 uci.sections('network', 'route6', function(s) {
4636 if (s.interface == oldName)
4637 uci.set('network', s['.name'], 'interface', newName);
4640 uci.sections('wireless', 'wifi-iface', function(s) {
4641 var networks = L.toArray(s.network).map(function(network) { return (network == oldName ? newName : network) });
4643 if (networks.length
> 0)
4644 uci.set('wireless', s['.name'], 'network', networks.join(' '));
4647 uci.remove('network', oldName);
4654 * Get a {@link LuCI.network.Device Device} instance describing the
4655 * given network device.
4657 * @param {string} name
4658 * The name of the network device to get, e.g. `eth0` or `br-lan`.
4660 * @returns {Promise
<null|LuCI.network.Device
>}
4661 * Returns a promise resolving to the `Device` instance describing
4662 * the network device or `null` if the given device name could not
4665 getDevice: function(name) {
4666 return initNetworkState().then(L.bind(function() {
4670 if (_state.netdevs.hasOwnProperty(name))
4671 return this.instantiateDevice(name);
4673 var netid = getWifiNetidBySid(name);
4675 return this.instantiateDevice(netid[
0]);
4682 * Get a sorted list of all found network devices.
4684 * @returns {Promise
<Array
<LuCI.network.Device
>>}
4685 * Returns a promise resolving to a sorted array of `Device` class
4686 * instances describing the network devices found on the system.
4688 getDevices: function() {
4689 return initNetworkState().then(L.bind(function() {
4692 /* find simple devices */
4693 var uciInterfaces = uci.sections('network', 'interface');
4694 for (var i =
0; i
< uciInterfaces.length; i++) {
4695 var ifnames = L.toArray(uciInterfaces[i].ifname);
4697 for (var j =
0; j
< ifnames.length; j++) {
4698 if (ifnames[j].charAt(
0) == '@')
4701 if (isIgnoredIfname(ifnames[j]) || isVirtualIfname(ifnames[j]) || isWifiIfname(ifnames[j]))
4704 devices[ifnames[j]] = this.instantiateDevice(ifnames[j]);
4708 for (var ifname in _state.netdevs) {
4709 if (devices.hasOwnProperty(ifname))
4712 if (isIgnoredIfname(ifname) || isWifiIfname(ifname))
4715 if (_state.netdevs[ifname].wireless)
4718 devices[ifname] = this.instantiateDevice(ifname);
4721 /* find VLAN devices */
4722 var uciSwitchVLANs = uci.sections('network', 'switch_vlan');
4723 for (var i =
0; i
< uciSwitchVLANs.length; i++) {
4724 if (typeof(uciSwitchVLANs[i].ports) != 'string' ||
4725 typeof(uciSwitchVLANs[i].device) != 'string' ||
4726 !_state.switches.hasOwnProperty(uciSwitchVLANs[i].device))
4729 var ports = uciSwitchVLANs[i].ports.split(/\s+/);
4730 for (var j =
0; j
< ports.length; j++) {
4731 var m = ports[j].match(/^(\d+)([tu]?)$/);
4735 var netdev = _state.switches[uciSwitchVLANs[i].device].netdevs[m[
1]];
4739 if (!devices.hasOwnProperty(netdev))
4740 devices[netdev] = this.instantiateDevice(netdev);
4742 _state.isSwitch[netdev] = true;
4747 var vid = uciSwitchVLANs[i].vid || uciSwitchVLANs[i].vlan;
4748 vid = (vid != null ? +vid : null);
4750 if (vid == null || vid
< 0 || vid
> 4095)
4753 var vlandev = '%s.%d'.format(netdev, vid);
4755 if (!devices.hasOwnProperty(vlandev))
4756 devices[vlandev] = this.instantiateDevice(vlandev);
4758 _state.isSwitch[vlandev] = true;
4762 /* find bridge VLAN devices */
4763 var uciBridgeVLANs = uci.sections('network', 'bridge-vlan');
4764 for (var i =
0; i
< uciBridgeVLANs.length; i++) {
4765 var basedev = uciBridgeVLANs[i].device,
4766 local = uciBridgeVLANs[i].local,
4767 alias = uciBridgeVLANs[i].alias,
4768 vid = +uciBridgeVLANs[i].vlan,
4769 ports = L.toArray(uciBridgeVLANs[i].ports);
4774 if (isNaN(vid) || vid
< 0 || vid
> 4095)
4777 var vlandev = '%s.%s'.format(basedev, alias || vid);
4779 _state.isBridge[basedev] = true;
4781 if (!_state.bridges.hasOwnProperty(basedev))
4782 _state.bridges[basedev] = {
4787 if (!devices.hasOwnProperty(vlandev))
4788 devices[vlandev] = this.instantiateDevice(vlandev);
4790 ports.forEach(function(port_name) {
4791 var m = port_name.match(/^([^:]+)(?::[ut*]+)?$/),
4792 p = m ? m[
1] : null;
4797 if (_state.bridges[basedev].ifnames.filter(function(sd) { return sd.name == p }).length)
4800 _state.netdevs[p] = _state.netdevs[p] || {
4805 devtype: 'ethernet',
4810 _state.bridges[basedev].ifnames.push(_state.netdevs[p]);
4811 _state.netdevs[p].bridge = _state.bridges[basedev];
4815 /* find wireless interfaces */
4816 var uciWifiIfaces = uci.sections('wireless', 'wifi-iface'),
4819 for (var i =
0; i
< uciWifiIfaces.length; i++) {
4820 if (typeof(uciWifiIfaces[i].device) != 'string')
4823 networkCount[uciWifiIfaces[i].device] = (networkCount[uciWifiIfaces[i].device] ||
0) +
1;
4825 var netid = '%s.network%d'.format(uciWifiIfaces[i].device, networkCount[uciWifiIfaces[i].device]);
4827 devices[netid] = this.instantiateDevice(netid);
4830 /* find uci declared devices */
4831 var uciDevices = uci.sections('network', 'device');
4833 for (var i =
0; i
< uciDevices.length; i++) {
4834 var type = uciDevices[i].type,
4835 name = uciDevices[i].name;
4837 if (!type || !name || devices.hasOwnProperty(name))
4840 if (type == 'bridge')
4841 _state.isBridge[name] = true;
4843 devices[name] = this.instantiateDevice(name);
4848 for (var netdev in devices)
4849 if (devices.hasOwnProperty(netdev))
4850 rv.push(devices[netdev]);
4852 rv.sort(deviceSort);
4859 * Test if a given network device name is in the list of patterns for
4860 * device names to ignore.
4862 * Ignored device names are usually Linux network devices which are
4863 * spawned implicitly by kernel modules such as `tunl0` or `hwsim0`
4864 * and which are unsuitable for use in network configuration.
4866 * @param {string} name
4867 * The device name to test.
4869 * @returns {boolean}
4870 * Returns `true` if the given name is in the ignore pattern list,
4871 * else returns `false`.
4873 isIgnoredDevice: function(name) {
4874 return isIgnoredIfname(name);
4878 * Get a {@link LuCI.network.WifiDevice WifiDevice} instance describing
4879 * the given wireless radio.
4881 * @param {string} devname
4882 * The configuration name of the wireless radio to look up, e.g. `radio0`
4883 * for the first mac80211 phy on the system.
4885 * @returns {Promise
<null|LuCI.network.WifiDevice
>}
4886 * Returns a promise resolving to the `WifiDevice` instance describing
4887 * the underlying radio device or `null` if the wireless radio could not
4890 getWifiDevice: function(devname) {
4891 return initNetworkState().then(L.bind(function() {
4892 var existingDevice = uci.get('wireless', devname);
4894 if (existingDevice == null || existingDevice['.type'] != 'wifi-device')
4897 return this.instantiateWifiDevice(devname, _state.radios[devname] || {});
4902 * Obtain a list of all configured radio devices.
4904 * @returns {Promise
<Array
<LuCI.network.WifiDevice
>>}
4905 * Returns a promise resolving to an array of `WifiDevice` instances
4906 * describing the wireless radios configured in the system.
4907 * The order of the array corresponds to the order of the radios in
4908 * the configuration.
4910 getWifiDevices: function() {
4911 return initNetworkState().then(L.bind(function() {
4912 var uciWifiDevices = uci.sections('wireless', 'wifi-device'),
4915 for (var i =
0; i
< uciWifiDevices.length; i++) {
4916 var devname = uciWifiDevices[i]['.name'];
4917 rv.push(this.instantiateWifiDevice(devname, _state.radios[devname] || {}));
4925 * Get a {@link LuCI.network.WifiNetwork WifiNetwork} instance describing
4926 * the given wireless network.
4928 * @param {string} netname
4929 * The name of the wireless network to look up. This may be either an uci
4930 * configuration section ID, a network ID in the form `radio#.network#`
4931 * or a Linux network device name like `wlan0` which is resolved to the
4932 * corresponding configuration section through `ubus` runtime information.
4934 * @returns {Promise
<null|LuCI.network.WifiNetwork
>}
4935 * Returns a promise resolving to the `WifiNetwork` instance describing
4936 * the wireless network or `null` if the corresponding network could not
4939 getWifiNetwork: function(netname) {
4940 return initNetworkState()
4941 .then(L.bind(this.lookupWifiNetwork, this, netname));
4945 * Get an array of all {@link LuCI.network.WifiNetwork WifiNetwork}
4946 * instances describing the wireless networks present on the system.
4948 * @returns {Promise
<Array
<LuCI.network.WifiNetwork
>>}
4949 * Returns a promise resolving to an array of `WifiNetwork` instances
4950 * describing the wireless networks. The array will be empty if no networks
4953 getWifiNetworks: function() {
4954 return initNetworkState().then(L.bind(function() {
4955 var wifiIfaces = uci.sections('wireless', 'wifi-iface'),
4958 for (var i =
0; i
< wifiIfaces.length; i++)
4959 rv.push(this.lookupWifiNetwork(wifiIfaces[i]['.name']));
4961 rv.sort(function(a, b) {
4962 return L.naturalCompare(a.getID(), b.getID());
4970 * Adds a new wireless network to the configuration and sets its options
4971 * to the provided values.
4973 * @param {Object
<string, string|string[]
>} options
4974 * The options to set for the newly added wireless network. This object
4975 * must at least contain a `device` property which is set to the radio
4976 * name the new network belongs to.
4978 * @returns {Promise
<null|LuCI.network.WifiNetwork
>}
4979 * Returns a promise resolving to a `WifiNetwork` instance describing
4980 * the newly added wireless network or `null` if the given options
4981 * were invalid or if the associated radio device could not be found.
4983 addWifiNetwork: function(options) {
4984 return initNetworkState().then(L.bind(function() {
4985 if (options == null ||
4986 typeof(options) != 'object' ||
4987 typeof(options.device) != 'string')
4990 var existingDevice = uci.get('wireless', options.device);
4991 if (existingDevice == null || existingDevice['.type'] != 'wifi-device')
4994 /* XXX: need to add a named section (wifinet#) here */
4995 var sid = uci.add('wireless', 'wifi-iface');
4996 for (var key in options)
4997 if (options.hasOwnProperty(key))
4998 uci.set('wireless', sid, key, options[key]);
5000 var radioname = existingDevice['.name'],
5001 netid = getWifiNetidBySid(sid) || [];
5003 return this.instantiateWifiNetwork(sid, radioname, _state.radios[radioname], netid[
0], null);
5008 * Deletes the given wireless network from the configuration.
5010 * @param {string} netname
5011 * The name of the network to remove. This may be either a
5012 * network ID in the form `radio#.network#` or a Linux network device
5013 * name like `wlan0` which is resolved to the corresponding configuration
5014 * section through `ubus` runtime information.
5016 * @returns {Promise
<boolean
>}
5017 * Returns a promise resolving to `true` if the wireless network has been
5018 * successfully deleted from the configuration or `false` if it could not
5021 deleteWifiNetwork: function(netname) {
5022 return initNetworkState().then(L.bind(function() {
5023 var sid = getWifiSidByIfname(netname);
5028 uci.remove('wireless', sid);
5034 getStatusByRoute: function(addr, mask) {
5035 return initNetworkState().then(L.bind(function() {
5038 for (var i =
0; i
< _state.ifaces.length; i++) {
5039 if (!Array.isArray(_state.ifaces[i].route))
5042 for (var j =
0; j
< _state.ifaces[i].route.length; j++) {
5043 if (typeof(_state.ifaces[i].route[j]) != 'object' ||
5044 typeof(_state.ifaces[i].route[j].target) != 'string' ||
5045 typeof(_state.ifaces[i].route[j].mask) != 'number')
5048 if (_state.ifaces[i].route[j].table)
5051 if (_state.ifaces[i].route[j].target != addr ||
5052 _state.ifaces[i].route[j].mask != mask)
5055 rv.push(_state.ifaces[i]);
5059 rv.sort(function(a, b) {
5060 return L.naturalCompare(a.metric, b.metric) || L.naturalCompare(a.interface, b.interface);
5068 getStatusByAddress: function(addr) {
5069 return initNetworkState().then(L.bind(function() {
5072 for (var i =
0; i
< _state.ifaces.length; i++) {
5073 if (Array.isArray(_state.ifaces[i]['ipv4-address']))
5074 for (var j =
0; j
< _state.ifaces[i]['ipv4-address'].length; j++)
5075 if (typeof(_state.ifaces[i]['ipv4-address'][j]) == 'object'
&&
5076 _state.ifaces[i]['ipv4-address'][j].address == addr)
5077 return _state.ifaces[i];
5079 if (Array.isArray(_state.ifaces[i]['ipv6-address']))
5080 for (var j =
0; j
< _state.ifaces[i]['ipv6-address'].length; j++)
5081 if (typeof(_state.ifaces[i]['ipv6-address'][j]) == 'object'
&&
5082 _state.ifaces[i]['ipv6-address'][j].address == addr)
5083 return _state.ifaces[i];
5085 if (Array.isArray(_state.ifaces[i]['ipv6-prefix-assignment']))
5086 for (var j =
0; j
< _state.ifaces[i]['ipv6-prefix-assignment'].length; j++)
5087 if (typeof(_state.ifaces[i]['ipv6-prefix-assignment'][j]) == 'object'
&&
5088 typeof(_state.ifaces[i]['ipv6-prefix-assignment'][j]['local-address']) == 'object'
&&
5089 _state.ifaces[i]['ipv6-prefix-assignment'][j]['local-address'].address == addr)
5090 return _state.ifaces[i];
5098 * Get IPv4 wan networks.
5100 * This function looks up all networks having a default `
0.0.0.0/
0` route
5101 * and returns them as array.
5103 * @returns {Promise
<Array
<LuCI.network.Protocol
>>}
5104 * Returns a promise resolving to an array of `Protocol` subclass
5105 * instances describing the found default route interfaces.
5107 getWANNetworks: function() {
5108 return this.getStatusByRoute('
0.0.0.0',
0).then(L.bind(function(statuses) {
5109 var rv = [], seen = {};
5111 for (var i =
0; i
< statuses.length; i++) {
5112 if (!seen.hasOwnProperty(statuses[i].interface)) {
5113 rv.push(this.instantiateNetwork(statuses[i].interface, statuses[i].proto));
5114 seen[statuses[i].interface] = true;
5123 * Get IPv6 wan networks.
5125 * This function looks up all networks having a default `::/
0` route
5126 * and returns them as array.
5128 * @returns {Promise
<Array
<LuCI.network.Protocol
>>}
5129 * Returns a promise resolving to an array of `Protocol` subclass
5130 * instances describing the found IPv6 default route interfaces.
5132 getWAN6Networks: function() {
5133 return this.getStatusByRoute('::',
0).then(L.bind(function(statuses) {
5134 var rv = [], seen = {};
5136 for (var i =
0; i
< statuses.length; i++) {
5137 if (!seen.hasOwnProperty(statuses[i].interface)) {
5138 rv.push(this.instantiateNetwork(statuses[i].interface, statuses[i].proto));
5139 seen[statuses[i].interface] = true;
5148 * Describes a swconfig switch topology by specifying the CPU
5149 * connections and external port labels of a switch.
5151 * @typedef {Object
<string, Object|Array
>} SwitchTopology
5152 * @memberof LuCI.network
5154 * @property {Object
<number, string
>} netdevs
5155 * The `netdevs` property points to an object describing the CPU port
5156 * connections of the switch. The numeric key of the enclosed object is
5157 * the port number, the value contains the Linux network device name the
5158 * port is hardwired to.
5160 * @property {Array
<Object
<string, boolean|number|string
>>} ports
5161 * The `ports` property points to an array describing the populated
5162 * ports of the switch in the external label order. Each array item is
5163 * an object containing the following keys:
5164 * - `num` - the internal switch port number
5165 * - `label` - the label of the port, e.g. `LAN
1` or `CPU (eth0)`
5166 * - `device` - the connected Linux network device name (CPU ports only)
5167 * - `tagged` - a boolean indicating whether the port must be tagged to
5168 * function (CPU ports only)
5172 * Returns the topologies of all swconfig switches found on the system.
5174 * @returns {Promise
<Object
<string, LuCI.network.SwitchTopology
>>}
5175 * Returns a promise resolving to an object containing the topologies
5176 * of each switch. The object keys correspond to the name of the switches
5177 * such as `switch0`, the values are
5178 * {@link LuCI.network.SwitchTopology SwitchTopology} objects describing
5181 getSwitchTopologies: function() {
5182 return initNetworkState().then(function() {
5183 return _state.switches;
5188 instantiateNetwork: function(name, proto) {
5192 proto = (proto == null ? uci.get('network', name, 'proto') : proto);
5194 var protoClass = _protocols[proto] || Protocol;
5195 return new protoClass(name);
5199 instantiateDevice: function(name, network, extend) {
5201 return new (Device.extend(extend))(name, network);
5203 return new Device(name, network);
5207 instantiateWifiDevice: function(radioname, radiostate) {
5208 return new WifiDevice(radioname, radiostate);
5212 instantiateWifiNetwork: function(sid, radioname, radiostate, netid, netstate, hostapd) {
5213 return new WifiNetwork(sid, radioname, radiostate, netid, netstate, hostapd);
5217 lookupWifiNetwork: function(netname) {
5218 var sid, res, netid, radioname, radiostate, netstate;
5220 sid = getWifiSidByNetid(netname);
5223 res = getWifiStateBySid(sid);
5225 radioname = res ? res[
0] : null;
5226 radiostate = res ? res[
1] : null;
5227 netstate = res ? res[
2] : null;
5230 res = getWifiStateByIfname(netname);
5234 radiostate = res[
1];
5236 sid = netstate.section;
5237 netid = L.toArray(getWifiNetidBySid(sid))[
0];
5240 res = getWifiStateBySid(netname);
5244 radiostate = res[
1];
5247 netid = L.toArray(getWifiNetidBySid(sid))[
0];
5250 res = getWifiNetidBySid(netname);
5261 return this.instantiateWifiNetwork(sid || netname, radioname,
5262 radiostate, netid, netstate,
5263 netstate ? _state.hostapd[netstate.ifname] : null);
5267 * Obtains the network device name of the given object.
5269 * @param {LuCI.network.Protocol|LuCI.network.Device|LuCI.network.WifiDevice|LuCI.network.WifiNetwork|string} obj
5270 * The object to get the device name from.
5272 * @returns {null|string}
5273 * Returns a string containing the device name or `null` if the given
5274 * object could not be converted to a name.
5276 getIfnameOf: function(obj) {
5277 return ifnameOf(obj);
5281 * Queries the internal DSL modem type from board information.
5283 * @returns {Promise
<null|string
>}
5284 * Returns a promise resolving to the type of the internal modem
5285 * (e.g. `vdsl`) or to `null` if no internal modem is present.
5287 getDSLModemType: function() {
5288 return initNetworkState().then(function() {
5289 return _state.hasDSLModem ? _state.hasDSLModem.type : null;
5294 * Queries aggregated information about known hosts.
5296 * This function aggregates information from various sources such as
5297 * DHCP lease databases, ARP and IPv6 neighbour entries, wireless
5298 * association list etc. and returns a {@link LuCI.network.Hosts Hosts}
5299 * class instance describing the found hosts.
5301 * @returns {Promise
<LuCI.network.Hosts
>}
5302 * Returns a `Hosts` instance describing host known on the system.
5304 getHostHints: function() {
5305 return initNetworkState().then(function() {
5306 return new Hosts(_state.hosts);
5313 * @memberof LuCI.network
5317 * The `LuCI.network.Hosts` class encapsulates host information aggregated
5318 * from multiple sources and provides convenience functions to access the
5319 * host information by different criteria.
5321 Hosts = baseclass.extend(/** @lends LuCI.network.Hosts.prototype */ {
5322 __init__: function(hosts) {
5327 * Look up the hostname associated with the given MAC address.
5329 * @param {string} mac
5330 * The MAC address to look up.
5332 * @returns {null|string}
5333 * Returns the hostname associated with the given MAC or `null` if
5334 * no matching host could be found or if no hostname is known for
5335 * the corresponding host.
5337 getHostnameByMACAddr: function(mac) {
5338 return this.hosts[mac]
5339 ? (this.hosts[mac].name || null)
5344 * Look up the IPv4 address associated with the given MAC address.
5346 * @param {string} mac
5347 * The MAC address to look up.
5349 * @returns {null|string}
5350 * Returns the IPv4 address associated with the given MAC or `null` if
5351 * no matching host could be found or if no IPv4 address is known for
5352 * the corresponding host.
5354 getIPAddrByMACAddr: function(mac) {
5355 return this.hosts[mac]
5356 ? (L.toArray(this.hosts[mac].ipaddrs || this.hosts[mac].ipv4)[
0] || null)
5361 * Look up the IPv6 address associated with the given MAC address.
5363 * @param {string} mac
5364 * The MAC address to look up.
5366 * @returns {null|string}
5367 * Returns the IPv6 address associated with the given MAC or `null` if
5368 * no matching host could be found or if no IPv6 address is known for
5369 * the corresponding host.
5371 getIP6AddrByMACAddr: function(mac) {
5372 return this.hosts[mac]
5373 ? (L.toArray(this.hosts[mac].ip6addrs || this.hosts[mac].ipv6)[
0] || null)
5378 * Look up the hostname associated with the given IPv4 address.
5380 * @param {string} ipaddr
5381 * The IPv4 address to look up.
5383 * @returns {null|string}
5384 * Returns the hostname associated with the given IPv4 or `null` if
5385 * no matching host could be found or if no hostname is known for
5386 * the corresponding host.
5388 getHostnameByIPAddr: function(ipaddr) {
5389 for (var mac in this.hosts) {
5390 if (this.hosts[mac].name == null)
5393 var addrs = L.toArray(this.hosts[mac].ipaddrs || this.hosts[mac].ipv4);
5395 for (var i =
0; i
< addrs.length; i++)
5396 if (addrs[i] == ipaddr)
5397 return this.hosts[mac].name;
5404 * Look up the MAC address associated with the given IPv4 address.
5406 * @param {string} ipaddr
5407 * The IPv4 address to look up.
5409 * @returns {null|string}
5410 * Returns the MAC address associated with the given IPv4 or `null` if
5411 * no matching host could be found or if no MAC address is known for
5412 * the corresponding host.
5414 getMACAddrByIPAddr: function(ipaddr) {
5415 for (var mac in this.hosts) {
5416 var addrs = L.toArray(this.hosts[mac].ipaddrs || this.hosts[mac].ipv4);
5418 for (var i =
0; i
< addrs.length; i++)
5419 if (addrs[i] == ipaddr)
5427 * Look up the hostname associated with the given IPv6 address.
5429 * @param {string} ip6addr
5430 * The IPv6 address to look up.
5432 * @returns {null|string}
5433 * Returns the hostname associated with the given IPv6 or `null` if
5434 * no matching host could be found or if no hostname is known for
5435 * the corresponding host.
5437 getHostnameByIP6Addr: function(ip6addr) {
5438 for (var mac in this.hosts) {
5439 if (this.hosts[mac].name == null)
5442 var addrs = L.toArray(this.hosts[mac].ip6addrs || this.hosts[mac].ipv6);
5444 for (var i =
0; i
< addrs.length; i++)
5445 if (addrs[i] == ip6addr)
5446 return this.hosts[mac].name;
5453 * Look up the MAC address associated with the given IPv6 address.
5455 * @param {string} ip6addr
5456 * The IPv6 address to look up.
5458 * @returns {null|string}
5459 * Returns the MAC address associated with the given IPv6 or `null` if
5460 * no matching host could be found or if no MAC address is known for
5461 * the corresponding host.
5463 getMACAddrByIP6Addr: function(ip6addr) {
5464 for (var mac in this.hosts) {
5465 var addrs = L.toArray(this.hosts[mac].ip6addrs || this.hosts[mac].ipv6);
5467 for (var i =
0; i
< addrs.length; i++)
5468 if (addrs[i] == ip6addr)
5476 * Return an array of (MAC address, name hint) tuples sorted by
5479 * @param {boolean} [preferIp6=false]
5480 * Whether to prefer IPv6 addresses (`true`) or IPv4 addresses (`false`)
5481 * as name hint when no hostname is known for a specific MAC address.
5483 * @returns {Array
<Array
<string
>>}
5484 * Returns an array of arrays containing a name hint for each found
5485 * MAC address on the system. The array is sorted ascending by MAC.
5487 * Each item of the resulting array is a two element array with the
5488 * MAC being the first element and the name hint being the second
5489 * element. The name hint is either the hostname, an IPv4 or an IPv6
5490 * address related to the MAC address.
5492 * If no hostname but both IPv4 and IPv6 addresses are known, the
5493 * `preferIP6` flag specifies whether the IPv6 or the IPv4 address
5496 getMACHints: function(preferIp6) {
5499 for (var mac in this.hosts) {
5500 var hint = this.hosts[mac].name ||
5501 L.toArray(this.hosts[mac][preferIp6 ? 'ip6addrs' : 'ipaddrs'] || this.hosts[mac][preferIp6 ? 'ipv6' : 'ipv4'])[
0] ||
5502 L.toArray(this.hosts[mac][preferIp6 ? 'ipaddrs' : 'ip6addrs'] || this.hosts[mac][preferIp6 ? 'ipv4' : 'ipv6'])[
0];
5504 rv.push([mac, hint]);
5507 return rv.sort(function(a, b) {
5508 return L.naturalCompare(a[
0], b[
0]);
5515 * @memberof LuCI.network
5519 * The `Network.Protocol` class serves as base for protocol specific
5520 * subclasses which describe logical UCI networks defined by `config
5521 * interface` sections in `/etc/config/network`.
5523 Protocol = baseclass.extend(/** @lends LuCI.network.Protocol.prototype */ {
5524 __init__: function(name) {
5528 _get: function(opt) {
5529 var val = uci.get('network', this.sid, opt);
5531 if (Array.isArray(val))
5532 return val.join(' ');
5537 _ubus: function(field) {
5538 for (var i =
0; i
< _state.ifaces.length; i++) {
5539 if (_state.ifaces[i].interface != this.sid)
5542 return (field != null ? _state.ifaces[i][field] : _state.ifaces[i]);
5547 * Read the given UCI option value of this network.
5549 * @param {string} opt
5550 * The UCI option name to read.
5552 * @returns {null|string|string[]}
5553 * Returns the UCI option value or `null` if the requested option is
5556 get: function(opt) {
5557 return uci.get('network', this.sid, opt);
5561 * Set the given UCI option of this network to the given value.
5563 * @param {string} opt
5564 * The name of the UCI option to set.
5566 * @param {null|string|string[]} val
5567 * The value to set or `null` to remove the given option from the
5570 set: function(opt, val) {
5571 return uci.set('network', this.sid, opt, val);
5575 * Get the associated Linux network device of this network.
5577 * @returns {null|string}
5578 * Returns the name of the associated network device or `null` if
5579 * it could not be determined.
5581 getIfname: function() {
5584 if (this.isFloating())
5585 ifname = this._ubus('l3_device');
5587 ifname = this._ubus('device') || this._ubus('l3_device');
5592 var res = getWifiNetidByNetname(this.sid);
5593 return (res != null ? res[
0] : null);
5597 * Get the name of this network protocol class.
5599 * This function will be overwritten by subclasses created by
5600 * {@link LuCI.network#registerProtocol Network.registerProtocol()}.
5604 * Returns the name of the network protocol implementation, e.g.
5605 * `static` or `dhcp`.
5607 getProtocol: function() {
5612 * Return a human readable description for the protocol, such as
5613 * `Static address` or `DHCP client`.
5615 * This function should be overwritten by subclasses.
5619 * Returns the description string.
5621 getI18n: function() {
5622 switch (this.getProtocol()) {
5623 case 'none': return _('Unmanaged');
5624 case 'static': return _('Static address');
5625 case 'dhcp': return _('DHCP client');
5626 default: return _('Unknown');
5631 * Get the type of the underlying interface.
5633 * This function actually is a convenience wrapper around
5634 * `proto.get(
"type")` and is mainly used by other `LuCI.network` code
5635 * to check whether the interface is declared as bridge in UCI.
5637 * @returns {null|string}
5638 * Returns the value of the `type` option of the associated logical
5639 * interface or `null` if no `type` option is set.
5641 getType: function() {
5642 return this._get('type');
5646 * Get the name of the associated logical interface.
5649 * Returns the logical interface name, such as `lan` or `wan`.
5651 getName: function() {
5656 * Get the uptime of the logical interface.
5659 * Returns the uptime of the associated interface in seconds.
5661 getUptime: function() {
5662 return this._ubus('uptime') ||
0;
5666 * Get the logical interface expiry time in seconds.
5668 * For protocols that have a concept of a lease, such as DHCP or
5669 * DHCPv6, this function returns the remaining time in seconds
5670 * until the lease expires.
5673 * Returns the amount of seconds until the lease expires or `-
1`
5674 * if it isn't applicable to the associated protocol.
5676 getExpiry: function() {
5677 var u = this._ubus('uptime'),
5678 d = this._ubus('data');
5680 if (typeof(u) == 'number'
&& d != null
&&
5681 typeof(d) == 'object'
&& typeof(d.leasetime) == 'number') {
5682 var r = d.leasetime - (u % d.leasetime);
5683 return (r
> 0 ? r :
0);
5690 * Get the metric value of the logical interface.
5693 * Returns the current metric value used for device and network
5694 * routes spawned by the associated logical interface.
5696 getMetric: function() {
5697 return this._ubus('metric') ||
0;
5701 * Get the requested firewall zone name of the logical interface.
5703 * Some protocol implementations request a specific firewall zone
5704 * to trigger inclusion of their resulting network devices into the
5705 * firewall rule set.
5707 * @returns {null|string}
5708 * Returns the requested firewall zone name as published in the
5709 * `ubus` runtime information or `null` if the remote protocol
5710 * handler didn't request a zone.
5712 getZoneName: function() {
5713 var d = this._ubus('data');
5715 if (L.isObject(d)
&& typeof(d.zone) == 'string')
5722 * Query the first (primary) IPv4 address of the logical interface.
5724 * @returns {null|string}
5725 * Returns the primary IPv4 address registered by the protocol handler
5726 * or `null` if no IPv4 addresses were set.
5728 getIPAddr: function() {
5729 var addrs = this._ubus('ipv4-address');
5730 return ((Array.isArray(addrs)
&& addrs.length) ? addrs[
0].address : null);
5734 * Query all IPv4 addresses of the logical interface.
5736 * @returns {string[]}
5737 * Returns an array of IPv4 addresses in CIDR notation which have been
5738 * registered by the protocol handler. The order of the resulting array
5739 * follows the order of the addresses in `ubus` runtime information.
5741 getIPAddrs: function() {
5742 var addrs = this._ubus('ipv4-address'),
5745 if (Array.isArray(addrs))
5746 for (var i =
0; i
< addrs.length; i++)
5747 rv.push('%s/%d'.format(addrs[i].address, addrs[i].mask));
5753 * Query the first (primary) IPv4 netmask of the logical interface.
5755 * @returns {null|string}
5756 * Returns the netmask of the primary IPv4 address registered by the
5757 * protocol handler or `null` if no IPv4 addresses were set.
5759 getNetmask: function() {
5760 var addrs = this._ubus('ipv4-address');
5761 if (Array.isArray(addrs)
&& addrs.length)
5762 return prefixToMask(addrs[
0].mask, false);
5766 * Query the gateway (nexthop) of the default route associated with
5767 * this logical interface.
5770 * Returns a string containing the IPv4 nexthop address of the associated
5771 * default route or `null` if no default route was found.
5773 getGatewayAddr: function() {
5774 var routes = this._ubus('route');
5776 if (Array.isArray(routes))
5777 for (var i =
0; i
< routes.length; i++)
5778 if (typeof(routes[i]) == 'object'
&&
5779 routes[i].target == '
0.0.0.0'
&&
5780 routes[i].mask ==
0)
5781 return routes[i].nexthop;
5787 * Query the IPv4 DNS servers associated with the logical interface.
5789 * @returns {string[]}
5790 * Returns an array of IPv4 DNS servers registered by the remote
5791 * protocol back-end.
5793 getDNSAddrs: function() {
5794 var addrs = this._ubus('dns-server'),
5797 if (Array.isArray(addrs))
5798 for (var i =
0; i
< addrs.length; i++)
5799 if (!/:/.test(addrs[i]))
5806 * Query the first (primary) IPv6 address of the logical interface.
5808 * @returns {null|string}
5809 * Returns the primary IPv6 address registered by the protocol handler
5810 * in CIDR notation or `null` if no IPv6 addresses were set.
5812 getIP6Addr: function() {
5813 var addrs = this._ubus('ipv6-address');
5815 if (Array.isArray(addrs)
&& L.isObject(addrs[
0]))
5816 return '%s/%d'.format(addrs[
0].address, addrs[
0].mask);
5818 addrs = this._ubus('ipv6-prefix-assignment');
5820 if (Array.isArray(addrs)
&& L.isObject(addrs[
0])
&& L.isObject(addrs[
0]['local-address']))
5821 return '%s/%d'.format(addrs[
0]['local-address'].address, addrs[
0]['local-address'].mask);
5827 * Query all IPv6 addresses of the logical interface.
5829 * @returns {string[]}
5830 * Returns an array of IPv6 addresses in CIDR notation which have been
5831 * registered by the protocol handler. The order of the resulting array
5832 * follows the order of the addresses in `ubus` runtime information.
5834 getIP6Addrs: function() {
5835 var addrs = this._ubus('ipv6-address'),
5838 if (Array.isArray(addrs))
5839 for (var i =
0; i
< addrs.length; i++)
5840 if (L.isObject(addrs[i]))
5841 rv.push('%s/%d'.format(addrs[i].address, addrs[i].mask));
5843 addrs = this._ubus('ipv6-prefix-assignment');
5845 if (Array.isArray(addrs))
5846 for (var i =
0; i
< addrs.length; i++)
5847 if (L.isObject(addrs[i])
&& L.isObject(addrs[i]['local-address']))
5848 rv.push('%s/%d'.format(addrs[i]['local-address'].address, addrs[i]['local-address'].mask));
5854 * Query the gateway (nexthop) of the IPv6 default route associated with
5855 * this logical interface.
5858 * Returns a string containing the IPv6 nexthop address of the associated
5859 * default route or `null` if no default route was found.
5861 getGateway6Addr: function() {
5862 var routes = this._ubus('route');
5864 if (Array.isArray(routes))
5865 for (var i =
0; i
< routes.length; i++)
5866 if (typeof(routes[i]) == 'object'
&&
5867 routes[i].target == '::'
&&
5868 routes[i].mask ==
0)
5869 return routes[i].nexthop;
5875 * Query the IPv6 DNS servers associated with the logical interface.
5877 * @returns {string[]}
5878 * Returns an array of IPv6 DNS servers registered by the remote
5879 * protocol back-end.
5881 getDNS6Addrs: function() {
5882 var addrs = this._ubus('dns-server'),
5885 if (Array.isArray(addrs))
5886 for (var i =
0; i
< addrs.length; i++)
5887 if (/:/.test(addrs[i]))
5894 * Query the routed IPv6 prefix associated with the logical interface.
5896 * @returns {null|string}
5897 * Returns the routed IPv6 prefix registered by the remote protocol
5898 * handler or `null` if no prefix is present.
5900 getIP6Prefix: function() {
5901 var prefixes = this._ubus('ipv6-prefix');
5903 if (Array.isArray(prefixes)
&& L.isObject(prefixes[
0]))
5904 return '%s/%d'.format(prefixes[
0].address, prefixes[
0].mask);
5910 * Query interface error messages published in `ubus` runtime state.
5912 * Interface errors are emitted by remote protocol handlers if the setup
5913 * of the underlying logical interface failed, e.g. due to bad
5914 * configuration or network connectivity issues.
5916 * This function will translate the found error codes to human readable
5917 * messages using the descriptions registered by
5918 * {@link LuCI.network#registerErrorCode Network.registerErrorCode()}
5919 * and fall back to `
"Unknown error (%s)"` where `%s` is replaced by the
5920 * error code in case no translation can be found.
5922 * @returns {string[]}
5923 * Returns an array of translated interface error messages.
5925 getErrors: function() {
5926 var errors = this._ubus('errors'),
5929 if (Array.isArray(errors)) {
5930 for (var i =
0; i
< errors.length; i++) {
5931 if (!L.isObject(errors[i]) || typeof(errors[i].code) != 'string')
5935 rv.push(proto_errors[errors[i].code] || _('Unknown error (%s)').format(errors[i].code));
5943 * Checks whether the underlying logical interface is declared as bridge.
5945 * @returns {boolean}
5946 * Returns `true` when the interface is declared with `option type bridge`
5947 * and when the associated protocol implementation is not marked virtual
5948 * or `false` when the logical interface is no bridge.
5950 isBridge: function() {
5951 return (!this.isVirtual()
&& this.getType() == 'bridge');
5955 * Get the name of the opkg package providing the protocol functionality.
5957 * This function should be overwritten by protocol specific subclasses.
5962 * Returns the name of the opkg package required for the protocol to
5963 * function, e.g. `odhcp6c` for the `dhcpv6` protocol.
5965 getOpkgPackage: function() {
5970 * Check function for the protocol handler if a new interface is creatable.
5972 * This function should be overwritten by protocol specific subclasses.
5976 * @param {string} ifname
5977 * The name of the interface to be created.
5979 * @returns {Promise
<void
>}
5980 * Returns a promise resolving if new interface is creatable, else
5981 * rejects with an error message string.
5983 isCreateable: function(ifname) {
5984 return Promise.resolve(null);
5988 * Checks whether the protocol functionality is installed.
5990 * This function exists for compatibility with old code, it always
5996 * @returns {boolean}
5997 * Returns `true` if the protocol support is installed, else `false`.
5999 isInstalled: function() {
6004 * Checks whether this protocol is
"virtual".
6006 * A
"virtual" protocol is a protocol which spawns its own interfaces
6007 * on demand instead of using existing physical interfaces.
6009 * Examples for virtual protocols are `
6in4` which `gre` spawn tunnel
6010 * network device on startup, examples for non-virtual protocols are
6011 * `dhcp` or `static` which apply IP configuration to existing interfaces.
6013 * This function should be overwritten by subclasses.
6015 * @returns {boolean}
6016 * Returns a boolean indicating whether the underlying protocol spawns
6017 * dynamic interfaces (`true`) or not (`false`).
6019 isVirtual: function() {
6024 * Checks whether this protocol is
"floating".
6026 * A
"floating" protocol is a protocol which spawns its own interfaces
6027 * on demand, like a virtual one but which relies on an existing lower
6028 * level interface to initiate the connection.
6030 * An example for such a protocol is
"pppoe".
6032 * This function exists for backwards compatibility with older code
6033 * but should not be used anymore.
6036 * @returns {boolean}
6037 * Returns a boolean indicating whether this protocol is floating (`true`)
6040 isFloating: function() {
6045 * Checks whether this logical interface is dynamic.
6047 * A dynamic interface is an interface which has been created at runtime,
6048 * e.g. as sub-interface of another interface, but which is not backed by
6049 * any user configuration. Such dynamic interfaces cannot be edited but
6050 * only brought down or restarted.
6052 * @returns {boolean}
6053 * Returns a boolean indicating whether this interface is dynamic (`true`)
6056 isDynamic: function() {
6057 return (this._ubus('dynamic') == true);
6061 * Checks whether this interface is an alias interface.
6063 * Alias interfaces are interfaces layering on top of another interface
6064 * and are denoted by a special `@interfacename` notation in the
6065 * underlying `device` option.
6067 * @returns {null|string}
6068 * Returns the name of the parent interface if this logical interface
6069 * is an alias or `null` if it is not an alias interface.
6071 isAlias: function() {
6072 var ifnames = L.toArray(uci.get('network', this.sid, 'device')),
6075 for (var i =
0; i
< ifnames.length; i++)
6076 if (ifnames[i].charAt(
0) == '@')
6077 parent = ifnames[i].substr(
1);
6078 else if (parent != null)
6085 * Checks whether this logical interface is
"empty", where empty means that it
6086 * has no network devices attached.
6088 * @returns {boolean}
6089 * Returns `true` if this logical interface is empty, else `false`.
6091 isEmpty: function() {
6092 if (this.isFloating())
6096 device = this._get('device');
6098 if (device != null
&& device.match(/\S+/))
6101 if (empty == true
&& getWifiNetidBySid(this.sid) != null)
6108 * Checks whether this logical interface is configured and running.
6110 * @returns {boolean}
6111 * Returns `true` when the interface is active or `false` when it is not.
6114 return (this._ubus('up') == true);
6118 * Add the given network device to the logical interface.
6120 * @param {LuCI.network.Protocol|LuCI.network.Device|LuCI.network.WifiDevice|LuCI.network.WifiNetwork|string} device
6121 * The object or device name to add to the logical interface. In case the
6122 * given argument is not a string, it is resolved though the
6123 * {@link LuCI.network#getIfnameOf Network.getIfnameOf()} function.
6125 * @returns {boolean}
6126 * Returns `true` if the device name has been added or `false` if any
6127 * argument was invalid, if the device was already part of the logical
6128 * interface or if the logical interface is virtual.
6130 addDevice: function(device) {
6131 device = ifnameOf(device);
6133 if (device == null || this.isFloating())
6136 var wif = getWifiSidByIfname(device);
6139 return appendValue('wireless', wif, 'network', this.sid);
6141 return appendValue('network', this.sid, 'device', device);
6145 * Remove the given network device from the logical interface.
6147 * @param {LuCI.network.Protocol|LuCI.network.Device|LuCI.network.WifiDevice|LuCI.network.WifiNetwork|string} device
6148 * The object or device name to remove from the logical interface. In case
6149 * the given argument is not a string, it is resolved though the
6150 * {@link LuCI.network#getIfnameOf Network.getIfnameOf()} function.
6152 * @returns {boolean}
6153 * Returns `true` if the device name has been added or `false` if any
6154 * argument was invalid, if the device was already part of the logical
6155 * interface or if the logical interface is virtual.
6157 deleteDevice: function(device) {
6160 device = ifnameOf(device);
6162 if (device == null || this.isFloating())
6165 var wif = getWifiSidByIfname(device);
6168 rv = removeValue('wireless', wif, 'network', this.sid);
6170 if (removeValue('network', this.sid, 'device', device))
6177 * Returns the Linux network device associated with this logical
6180 * @returns {LuCI.network.Device}
6181 * Returns a `Network.Device` class instance representing the
6182 * expected Linux network device according to the configuration.
6184 getDevice: function() {
6185 if (this.isVirtual()) {
6186 var ifname = '%s-%s'.format(this.getProtocol(), this.sid);
6187 _state.isTunnel[this.getProtocol() + '-' + this.sid] = true;
6188 return Network.prototype.instantiateDevice(ifname, this);
6190 else if (this.isBridge()) {
6191 var ifname = 'br-%s'.format(this.sid);
6192 _state.isBridge[ifname] = true;
6193 return new Device(ifname, this);
6196 var ifnames = L.toArray(uci.get('network', this.sid, 'device'));
6198 for (var i =
0; i
< ifnames.length; i++) {
6199 var m = ifnames[i].match(/^([^:/]+)/);
6200 return ((m
&& m[
1]) ? Network.prototype.instantiateDevice(m[
1], this) : null);
6203 ifname = getWifiNetidByNetname(this.sid);
6205 return (ifname != null ? Network.prototype.instantiateDevice(ifname[
0], this) : null);
6210 * Returns the layer
2 Linux network device currently associated
6211 * with this logical interface.
6213 * @returns {LuCI.network.Device}
6214 * Returns a `Network.Device` class instance representing the Linux
6215 * network device currently associated with the logical interface.
6217 getL2Device: function() {
6218 var ifname = this._ubus('device');
6219 return (ifname != null ? Network.prototype.instantiateDevice(ifname, this) : null);
6223 * Returns the layer
3 Linux network device currently associated
6224 * with this logical interface.
6226 * @returns {LuCI.network.Device}
6227 * Returns a `Network.Device` class instance representing the Linux
6228 * network device currently associated with the logical interface.
6230 getL3Device: function() {
6231 var ifname = this._ubus('l3_device');
6232 return (ifname != null ? Network.prototype.instantiateDevice(ifname, this) : null);
6236 * Returns a list of network sub-devices associated with this logical
6239 * @returns {null|Array
<LuCI.network.Device
>}
6240 * Returns an array of `Network.Device` class instances representing
6241 * the sub-devices attached to this logical interface or `null` if the
6242 * logical interface does not support sub-devices, e.g. because it is
6243 * virtual and not a bridge.
6245 getDevices: function() {
6248 if (!this.isBridge()
&& !(this.isVirtual()
&& !this.isFloating()))
6251 var device = uci.get('network', this.sid, 'device');
6253 if (device
&& device.charAt(
0) != '@') {
6254 var m = device.match(/^([^:/]+)/);
6256 rv.push(Network.prototype.instantiateDevice(m[
1], this));
6259 var uciWifiIfaces = uci.sections('wireless', 'wifi-iface');
6261 for (var i =
0; i
< uciWifiIfaces.length; i++) {
6262 if (typeof(uciWifiIfaces[i].device) != 'string')
6265 var networks = L.toArray(uciWifiIfaces[i].network);
6267 for (var j =
0; j
< networks.length; j++) {
6268 if (networks[j] != this.sid)
6271 var netid = getWifiNetidBySid(uciWifiIfaces[i]['.name']);
6274 rv.push(Network.prototype.instantiateDevice(netid[
0], this));
6278 rv.sort(deviceSort);
6284 * Checks whether this logical interface contains the given device
6287 * @param {LuCI.network.Protocol|LuCI.network.Device|LuCI.network.WifiDevice|LuCI.network.WifiNetwork|string} device
6288 * The object or device name to check. In case the given argument is not
6289 * a string, it is resolved though the
6290 * {@link LuCI.network#getIfnameOf Network.getIfnameOf()} function.
6292 * @returns {boolean}
6293 * Returns `true` when this logical interface contains the given network
6294 * device or `false` if not.
6296 containsDevice: function(device) {
6297 device = ifnameOf(device);
6301 else if (this.isVirtual()
&& '%s-%s'.format(this.getProtocol(), this.sid) == device)
6303 else if (this.isBridge()
&& 'br-%s'.format(this.sid) == device)
6306 var name = uci.get('network', this.sid, 'device');
6308 var m = name.match(/^([^:/]+)/);
6309 if (m != null
&& m[
1] == device)
6313 var wif = getWifiSidByIfname(device);
6316 var networks = L.toArray(uci.get('wireless', wif, 'network'));
6318 for (var i =
0; i
< networks.length; i++)
6319 if (networks[i] == this.sid)
6327 * Cleanup related configuration entries.
6329 * This function will be invoked if an interface is about to be removed
6330 * from the configuration and is responsible for performing any required
6331 * cleanup tasks, such as unsetting uci entries in related configurations.
6333 * It should be overwritten by protocol specific subclasses.
6337 * @returns {*|Promise
<*
>}
6338 * This function may return a promise which is awaited before the rest of
6339 * the configuration is removed. Any non-promise return value and any
6340 * resolved promise value is ignored. If the returned promise is rejected,
6341 * the interface removal will be aborted.
6343 deleteConfiguration: function() {}
6348 * @memberof LuCI.network
6352 * A `Network.Device` class instance represents an underlying Linux network
6353 * device and allows querying device details such as packet statistics or MTU.
6355 Device = baseclass.extend(/** @lends LuCI.network.Device.prototype */ {
6356 __init__: function(device, network) {
6357 var wif = getWifiSidByIfname(device);
6360 var res = getWifiStateBySid(wif) || [],
6361 netid = getWifiNetidBySid(wif) || [];
6363 this.wif = new WifiNetwork(wif, res[
0], res[
1], netid[
0], res[
2], { ifname: device });
6364 this.device = this.wif.getIfname();
6367 this.device = this.device || device;
6368 this.dev = Object.assign({}, _state.netdevs[this.device]);
6369 this.network = network;
6373 uci.sections('network', 'device', function(s) {
6374 if (s.name == device)
6378 this.config = Object.assign({}, conf);
6381 _devstate: function(/* ... */) {
6384 for (var i =
0; i
< arguments.length; i++)
6386 rv = rv[arguments[i]];
6394 * Get the name of the network device.
6397 * Returns the name of the device, e.g. `eth0` or `wlan0`.
6399 getName: function() {
6400 return (this.wif != null ? this.wif.getIfname() : this.device);
6404 * Get the MAC address of the device.
6406 * @returns {null|string}
6407 * Returns the MAC address of the device or `null` if not applicable,
6408 * e.g. for non-Ethernet tunnel devices.
6410 getMAC: function() {
6411 var mac = this._devstate('macaddr');
6412 return mac ? mac.toUpperCase() : null;
6416 * Get the MTU of the device.
6419 * Returns the MTU of the device.
6421 getMTU: function() {
6422 return this._devstate('mtu');
6426 * Get the IPv4 addresses configured on the device.
6428 * @returns {string[]}
6429 * Returns an array of IPv4 address strings.
6431 getIPAddrs: function() {
6432 var addrs = this._devstate('ipaddrs');
6433 return (Array.isArray(addrs) ? addrs : []);
6437 * Get the IPv6 addresses configured on the device.
6439 * @returns {string[]}
6440 * Returns an array of IPv6 address strings.
6442 getIP6Addrs: function() {
6443 var addrs = this._devstate('ip6addrs');
6444 return (Array.isArray(addrs) ? addrs : []);
6448 * Get the type of the device.
6451 * Returns a string describing the type of the network device:
6452 * - `alias` if it is an abstract alias device (`@` notation)
6453 * - `wifi` if it is a wireless interface (e.g. `wlan0`)
6454 * - `bridge` if it is a bridge device (e.g. `br-lan`)
6455 * - `tunnel` if it is a tun or tap device (e.g. `tun0`)
6456 * - `vlan` if it is a vlan device (e.g. `eth0.1`)
6457 * - `switch` if it is a switch device (e.g.`eth1` connected to switch0)
6458 * - `ethernet` for all other device types
6460 getType: function() {
6461 if (this.device != null
&& this.device.charAt(
0) == '@')
6463 else if (this.dev.devtype == 'wlan' || this.wif != null || isWifiIfname(this.device))
6465 else if (this.dev.devtype == 'bridge' || _state.isBridge[this.device])
6467 else if (_state.isTunnel[this.device])
6469 else if (this.dev.devtype == 'vlan' || this.device.indexOf('.')
> -
1)
6471 else if (this.dev.devtype == 'dsa' || _state.isSwitch[this.device])
6473 else if (this.config.type == '
8021q' || this.config.type == '
8021ad')
6475 else if (this.config.type == 'bridge')
6482 * Get a short description string for the device.
6485 * Returns the device name for non-WiFi devices or a string containing
6486 * the operation mode and SSID for WiFi devices.
6488 getShortName: function() {
6489 if (this.wif != null)
6490 return this.wif.getShortName();
6496 * Get a long description string for the device.
6499 * Returns a string containing the type description and device name
6500 * for non-WiFi devices or operation mode and SSID for WiFi ones.
6502 getI18n: function() {
6503 if (this.wif != null) {
6504 return '%s: %s
"%s"'.format(
6505 _('Wireless Network'),
6506 this.wif.getActiveMode(),
6507 this.wif.getActiveSSID() || this.wif.getActiveBSSID() || this.wif.getID() || '?');
6510 return '%s:
"%s"'.format(this.getTypeI18n(), this.getName());
6514 * Get a string describing the device type.
6517 * Returns a string describing the type, e.g.
"Wireless Adapter" or
6520 getTypeI18n: function() {
6521 switch (this.getType()) {
6523 return _('Alias Interface');
6526 return _('Wireless Adapter');
6532 return (_state.netdevs[this.device]
&& _state.netdevs[this.device].devtype == 'dsa')
6533 ? _('Switch port') : _('Ethernet Switch');
6536 return (_state.isSwitch[this.device] ? _('Switch VLAN') : _('Software VLAN'));
6539 return _('Tunnel Interface');
6542 return _('Ethernet Adapter');
6547 * Get the associated bridge ports of the device.
6549 * @returns {null|Array
<LuCI.network.Device
>}
6550 * Returns an array of `Network.Device` instances representing the ports
6551 * (slave interfaces) of the bridge or `null` when this device isn't
6554 getPorts: function() {
6555 var br = _state.bridges[this.device],
6558 if (br == null || !Array.isArray(br.ifnames))
6561 for (var i =
0; i
< br.ifnames.length; i++)
6562 rv.push(Network.prototype.instantiateDevice(br.ifnames[i].name));
6564 rv.sort(deviceSort);
6572 * @returns {null|string}
6573 * Returns the ID of this network bridge or `null` if this network
6574 * device is not a Linux bridge.
6576 getBridgeID: function() {
6577 var br = _state.bridges[this.device];
6578 return (br != null ? br.id : null);
6582 * Get the bridge STP setting
6584 * @returns {boolean}
6585 * Returns `true` when this device is a Linux bridge and has `stp`
6586 * enabled, else `false`.
6588 getBridgeSTP: function() {
6589 var br = _state.bridges[this.device];
6590 return (br != null ? !!br.stp : false);
6594 * Checks whether this device is up.
6596 * @returns {boolean}
6597 * Returns `true` when the associated device is running pr `false`
6598 * when it is down or absent.
6601 var up = this._devstate('flags', 'up');
6604 up = (this.getType() == 'alias');
6610 * Checks whether this device is a Linux bridge.
6612 * @returns {boolean}
6613 * Returns `true` when the network device is present and a Linux bridge,
6616 isBridge: function() {
6617 return (this.getType() == 'bridge');
6621 * Checks whether this device is part of a Linux bridge.
6623 * @returns {boolean}
6624 * Returns `true` when this network device is part of a bridge,
6627 isBridgePort: function() {
6628 return (this._devstate('bridge') != null);
6632 * Get the amount of transmitted bytes.
6635 * Returns the amount of bytes transmitted by the network device.
6637 getTXBytes: function() {
6638 var stat = this._devstate('stats');
6639 return (stat != null ? stat.tx_bytes ||
0 :
0);
6643 * Get the amount of received bytes.
6646 * Returns the amount of bytes received by the network device.
6648 getRXBytes: function() {
6649 var stat = this._devstate('stats');
6650 return (stat != null ? stat.rx_bytes ||
0 :
0);
6654 * Get the amount of transmitted packets.
6657 * Returns the amount of packets transmitted by the network device.
6659 getTXPackets: function() {
6660 var stat = this._devstate('stats');
6661 return (stat != null ? stat.tx_packets ||
0 :
0);
6665 * Get the amount of received packets.
6668 * Returns the amount of packets received by the network device.
6670 getRXPackets: function() {
6671 var stat = this._devstate('stats');
6672 return (stat != null ? stat.rx_packets ||
0 :
0);
6676 * Get the carrier state of the network device.
6678 * @returns {boolean}
6679 * Returns true if the device has a carrier, e.g. when a cable is
6680 * inserted into an Ethernet port of false if there is none.
6682 getCarrier: function() {
6683 var link = this._devstate('link');
6684 return (link != null ? link.carrier || false : false);
6688 * Get the current link speed of the network device if available.
6690 * @returns {number|null}
6691 * Returns the current speed of the network device in Mbps. If the
6692 * device supports no Ethernet speed levels, null is returned.
6693 * If the device supports Ethernet speeds but has no carrier, -
1 is
6696 getSpeed: function() {
6697 var link = this._devstate('link');
6698 return (link != null ? link.speed || null : null);
6702 * Get the current duplex mode of the network device if available.
6704 * @returns {string|null}
6705 * Returns the current duplex mode of the network device. Returns
6706 * either
"full" or
"half" if the device supports duplex modes or
6707 * null if the duplex mode is unknown or unsupported.
6709 getDuplex: function() {
6710 var link = this._devstate('link'),
6711 duplex = link ? link.duplex : null;
6713 return (duplex != 'unknown') ? duplex : null;
6717 * Get the primary logical interface this device is assigned to.
6719 * @returns {null|LuCI.network.Protocol}
6720 * Returns a `Network.Protocol` instance representing the logical
6721 * interface this device is attached to or `null` if it is not
6722 * assigned to any logical interface.
6724 getNetwork: function() {
6725 return this.getNetworks()[
0];
6729 * Get the logical interfaces this device is assigned to.
6731 * @returns {Array
<LuCI.network.Protocol
>}
6732 * Returns an array of `Network.Protocol` instances representing the
6733 * logical interfaces this device is assigned to.
6735 getNetworks: function() {
6736 if (this.networks == null) {
6739 var networks = enumerateNetworks.apply(L.network);
6741 for (var i =
0; i
< networks.length; i++)
6742 if (networks[i].containsDevice(this.device) || networks[i].getIfname() == this.device)
6743 this.networks.push(networks[i]);
6745 this.networks.sort(networkSort);
6748 return this.networks;
6752 * Get the related wireless network this device is related to.
6754 * @returns {null|LuCI.network.WifiNetwork}
6755 * Returns a `Network.WifiNetwork` instance representing the wireless
6756 * network corresponding to this network device or `null` if this device
6757 * is not a wireless device.
6759 getWifiNetwork: function() {
6760 return (this.wif != null ? this.wif : null);
6764 * Get the logical parent device of this device.
6766 * In case of DSA switch ports, the parent device will be the DSA switch
6767 * device itself, for VLAN devices, the parent refers to the base device
6770 * @returns {null|LuCI.network.Device}
6771 * Returns a `Network.Device` instance representing the parent device or
6772 * `null` when this device has no parent, as it is the case for e.g.
6773 * ordinary ethernet interfaces.
6775 getParent: function() {
6776 if (this.dev.parent)
6777 return Network.prototype.instantiateDevice(this.dev.parent);
6779 if ((this.config.type == '
8021q' || this.config.type == '
802ad')
&& typeof(this.config.ifname) == 'string')
6780 return Network.prototype.instantiateDevice(this.config.ifname);
6788 * @memberof LuCI.network
6792 * A `Network.WifiDevice` class instance represents a wireless radio device
6793 * present on the system and provides wireless capability information as
6794 * well as methods for enumerating related wireless networks.
6796 WifiDevice = baseclass.extend(/** @lends LuCI.network.WifiDevice.prototype */ {
6797 __init__: function(name, radiostate) {
6798 var uciWifiDevice = uci.get('wireless', name);
6800 if (uciWifiDevice != null
&&
6801 uciWifiDevice['.type'] == 'wifi-device'
&&
6802 uciWifiDevice['.name'] != null) {
6803 this.sid = uciWifiDevice['.name'];
6806 this.sid = this.sid || name;
6814 ubus: function(/* ... */) {
6815 var v = this._ubusdata;
6817 for (var i =
0; i
< arguments.length; i++)
6819 v = v[arguments[i]];
6827 * Read the given UCI option value of this wireless device.
6829 * @param {string} opt
6830 * The UCI option name to read.
6832 * @returns {null|string|string[]}
6833 * Returns the UCI option value or `null` if the requested option is
6836 get: function(opt) {
6837 return uci.get('wireless', this.sid, opt);
6841 * Set the given UCI option of this network to the given value.
6843 * @param {string} opt
6844 * The name of the UCI option to set.
6846 * @param {null|string|string[]} value
6847 * The value to set or `null` to remove the given option from the
6850 set: function(opt, value) {
6851 return uci.set('wireless', this.sid, opt, value);
6855 * Checks whether this wireless radio is disabled.
6857 * @returns {boolean}
6858 * Returns `true` when the wireless radio is marked as disabled in `ubus`
6859 * runtime state or when the `disabled` option is set in the corresponding
6860 * UCI configuration.
6862 isDisabled: function() {
6863 return this.ubus('dev', 'disabled') || this.get('disabled') == '
1';
6867 * Get the configuration name of this wireless radio.
6870 * Returns the UCI section name (e.g. `radio0`) of the corresponding
6871 * radio configuration which also serves as unique logical identifier
6872 * for the wireless phy.
6874 getName: function() {
6879 * Gets a list of supported hwmodes.
6881 * The hwmode values describe the frequency band and wireless standard
6882 * versions supported by the wireless phy.
6884 * @returns {string[]}
6885 * Returns an array of valid hwmode values for this radio. Currently
6886 * known mode values are:
6887 * - `a` - Legacy
802.11a mode,
5 GHz, up to
54 Mbit/s
6888 * - `b` - Legacy
802.11b mode,
2.4 GHz, up to
11 Mbit/s
6889 * - `g` - Legacy
802.11g mode,
2.4 GHz, up to
54 Mbit/s
6890 * - `n` - IEEE
802.11n mode,
2.4 or
5 GHz, up to
600 Mbit/s
6891 * - `ac` - IEEE
802.11ac mode,
5 GHz, up to
6770 Mbit/s
6892 * - `ax` - IEEE
802.11ax mode,
2.4 or
5 GHz
6894 getHWModes: function() {
6895 var hwmodes = this.ubus('dev', 'iwinfo', 'hwmodes');
6896 return Array.isArray(hwmodes) ? hwmodes : [ 'b', 'g' ];
6900 * Gets a list of supported htmodes.
6902 * The htmode values describe the wide-frequency options supported by
6905 * @returns {string[]}
6906 * Returns an array of valid htmode values for this radio. Currently
6907 * known mode values are:
6908 * - `HT20` - applicable to IEEE
802.11n,
20 MHz wide channels
6909 * - `HT40` - applicable to IEEE
802.11n,
40 MHz wide channels
6910 * - `VHT20` - applicable to IEEE
802.11ac,
20 MHz wide channels
6911 * - `VHT40` - applicable to IEEE
802.11ac,
40 MHz wide channels
6912 * - `VHT80` - applicable to IEEE
802.11ac,
80 MHz wide channels
6913 * - `VHT160` - applicable to IEEE
802.11ac,
160 MHz wide channels
6914 * - `HE20` - applicable to IEEE
802.11ax,
20 MHz wide channels
6915 * - `HE40` - applicable to IEEE
802.11ax,
40 MHz wide channels
6916 * - `HE80` - applicable to IEEE
802.11ax,
80 MHz wide channels
6917 * - `HE160` - applicable to IEEE
802.11ax,
160 MHz wide channels
6919 getHTModes: function() {
6920 var htmodes = this.ubus('dev', 'iwinfo', 'htmodes');
6921 return (Array.isArray(htmodes)
&& htmodes.length) ? htmodes : null;
6925 * Get a string describing the wireless radio hardware.
6928 * Returns the description string.
6930 getI18n: function() {
6931 var hw = this.ubus('dev', 'iwinfo', 'hardware'),
6932 type = L.isObject(hw) ? hw.name : null;
6933 var modes = this.ubus('dev', 'iwinfo', 'hwmodes_text');
6935 if (this.ubus('dev', 'iwinfo', 'type') == 'wl')
6938 return '%s %s Wireless Controller (%s)'.format(
6940 modes ? '
802.11' + modes : 'unknown',
6945 * A wireless scan result object describes a neighbouring wireless
6946 * network found in the vicinity.
6948 * @typedef {Object
<string, number|string|LuCI.network.WifiEncryption
>} WifiScanResult
6949 * @memberof LuCI.network
6951 * @property {string} ssid
6952 * The SSID / Mesh ID of the network.
6954 * @property {string} bssid
6955 * The BSSID if the network.
6957 * @property {string} mode
6958 * The operation mode of the network (`Master`, `Ad-Hoc`, `Mesh Point`).
6960 * @property {number} channel
6961 * The wireless channel of the network.
6963 * @property {number} signal
6964 * The received signal strength of the network in dBm.
6966 * @property {number} quality
6967 * The numeric quality level of the signal, can be used in conjunction
6968 * with `quality_max` to calculate a quality percentage.
6970 * @property {number} quality_max
6971 * The maximum possible quality level of the signal, can be used in
6972 * conjunction with `quality` to calculate a quality percentage.
6974 * @property {LuCI.network.WifiEncryption} encryption
6975 * The encryption used by the wireless network.
6979 * Trigger a wireless scan on this radio device and obtain a list of
6982 * @returns {Promise
<Array
<LuCI.network.WifiScanResult
>>}
6983 * Returns a promise resolving to an array of scan result objects
6984 * describing the networks found in the vicinity.
6986 getScanList: function() {
6987 return callIwinfoScan(this.sid);
6991 * Check whether the wireless radio is marked as up in the `ubus`
6994 * @returns {boolean}
6995 * Returns `true` when the radio device is up, else `false`.
6998 if (L.isObject(_state.radios[this.sid]))
6999 return (_state.radios[this.sid].up == true);
7005 * Get the wifi network of the given name belonging to this radio device
7007 * @param {string} network
7008 * The name of the wireless network to look up. This may be either an uci
7009 * configuration section ID, a network ID in the form `radio#.network#`
7010 * or a Linux network device name like `wlan0` which is resolved to the
7011 * corresponding configuration section through `ubus` runtime information.
7013 * @returns {Promise
<LuCI.network.WifiNetwork
>}
7014 * Returns a promise resolving to a `Network.WifiNetwork` instance
7015 * representing the wireless network and rejecting with `null` if
7016 * the given network could not be found or is not associated with
7017 * this radio device.
7019 getWifiNetwork: function(network) {
7020 return Network.prototype.getWifiNetwork(network).then(L.bind(function(networkInstance) {
7021 var uciWifiIface = (networkInstance.sid ? uci.get('wireless', networkInstance.sid) : null);
7023 if (uciWifiIface == null || uciWifiIface['.type'] != 'wifi-iface' || uciWifiIface.device != this.sid)
7024 return Promise.reject();
7026 return networkInstance;
7031 * Get all wireless networks associated with this wireless radio device.
7033 * @returns {Promise
<Array
<LuCI.network.WifiNetwork
>>}
7034 * Returns a promise resolving to an array of `Network.WifiNetwork`
7035 * instances representing the wireless networks associated with this
7038 getWifiNetworks: function() {
7039 return Network.prototype.getWifiNetworks().then(L.bind(function(networks) {
7042 for (var i =
0; i
< networks.length; i++)
7043 if (networks[i].getWifiDeviceName() == this.getName())
7044 rv.push(networks[i]);
7051 * Adds a new wireless network associated with this radio device to the
7052 * configuration and sets its options to the provided values.
7054 * @param {Object
<string, string|string[]
>} [options]
7055 * The options to set for the newly added wireless network.
7057 * @returns {Promise
<null|LuCI.network.WifiNetwork
>}
7058 * Returns a promise resolving to a `WifiNetwork` instance describing
7059 * the newly added wireless network or `null` if the given options
7062 addWifiNetwork: function(options) {
7063 if (!L.isObject(options))
7066 options.device = this.sid;
7068 return Network.prototype.addWifiNetwork(options);
7072 * Deletes the wireless network with the given name associated with this
7075 * @param {string} network
7076 * The name of the wireless network to look up. This may be either an uci
7077 * configuration section ID, a network ID in the form `radio#.network#`
7078 * or a Linux network device name like `wlan0` which is resolved to the
7079 * corresponding configuration section through `ubus` runtime information.
7081 * @returns {Promise
<boolean
>}
7082 * Returns a promise resolving to `true` when the wireless network was
7083 * successfully deleted from the configuration or `false` when the given
7084 * network could not be found or if the found network was not associated
7085 * with this wireless radio device.
7087 deleteWifiNetwork: function(network) {
7090 if (network instanceof WifiNetwork) {
7094 var uciWifiIface = uci.get('wireless', network);
7096 if (uciWifiIface == null || uciWifiIface['.type'] != 'wifi-iface')
7097 sid = getWifiSidByIfname(network);
7100 if (sid == null || uci.get('wireless', sid, 'device') != this.sid)
7101 return Promise.resolve(false);
7103 uci.delete('wireless', network);
7105 return Promise.resolve(true);
7111 * @memberof LuCI.network
7115 * A `Network.WifiNetwork` instance represents a wireless network (vif)
7116 * configured on top of a radio device and provides functions for querying
7117 * the runtime state of the network. Most radio devices support multiple
7118 * such networks in parallel.
7120 WifiNetwork = baseclass.extend(/** @lends LuCI.network.WifiNetwork.prototype */ {
7121 __init__: function(sid, radioname, radiostate, netid, netstate, hostapd) {
7132 ubus: function(/* ... */) {
7133 var v = this._ubusdata;
7135 for (var i =
0; i
< arguments.length; i++)
7137 v = v[arguments[i]];
7145 * Read the given UCI option value of this wireless network.
7147 * @param {string} opt
7148 * The UCI option name to read.
7150 * @returns {null|string|string[]}
7151 * Returns the UCI option value or `null` if the requested option is
7154 get: function(opt) {
7155 return uci.get('wireless', this.sid, opt);
7159 * Set the given UCI option of this network to the given value.
7161 * @param {string} opt
7162 * The name of the UCI option to set.
7164 * @param {null|string|string[]} value
7165 * The value to set or `null` to remove the given option from the
7168 set: function(opt, value) {
7169 return uci.set('wireless', this.sid, opt, value);
7173 * Checks whether this wireless network is disabled.
7175 * @returns {boolean}
7176 * Returns `true` when the wireless radio is marked as disabled in `ubus`
7177 * runtime state or when the `disabled` option is set in the corresponding
7178 * UCI configuration.
7180 isDisabled: function() {
7181 return this.ubus('dev', 'disabled') || this.get('disabled') == '
1';
7185 * Get the configured operation mode of the wireless network.
7188 * Returns the configured operation mode. Possible values are:
7189 * - `ap` - Master (Access Point) mode
7190 * - `sta` - Station (client) mode
7191 * - `adhoc` - Ad-Hoc (IBSS) mode
7192 * - `mesh` - Mesh (IEEE
802.11s) mode
7193 * - `monitor` - Monitor mode
7195 getMode: function() {
7196 return this.ubus('net', 'config', 'mode') || this.get('mode') || 'ap';
7200 * Get the configured SSID of the wireless network.
7202 * @returns {null|string}
7203 * Returns the configured SSID value or `null` when this network is
7206 getSSID: function() {
7207 if (this.getMode() == 'mesh')
7210 return this.ubus('net', 'config', 'ssid') || this.get('ssid');
7214 * Get the configured Mesh ID of the wireless network.
7216 * @returns {null|string}
7217 * Returns the configured mesh ID value or `null` when this network
7218 * is not in mesh mode.
7220 getMeshID: function() {
7221 if (this.getMode() != 'mesh')
7224 return this.ubus('net', 'config', 'mesh_id') || this.get('mesh_id');
7228 * Get the configured BSSID of the wireless network.
7230 * @returns {null|string}
7231 * Returns the BSSID value or `null` if none has been specified.
7233 getBSSID: function() {
7234 return this.ubus('net', 'config', 'bssid') || this.get('bssid');
7238 * Get the names of the logical interfaces this wireless network is
7241 * @returns {string[]}
7242 * Returns an array of logical interface names.
7244 getNetworkNames: function() {
7245 return L.toArray(this.ubus('net', 'config', 'network') || this.get('network'));
7249 * Get the internal network ID of this wireless network.
7251 * The network ID is a LuCI specific identifier in the form
7252 * `radio#.network#` to identify wireless networks by their corresponding
7253 * radio and network index numbers.
7256 * Returns the LuCI specific network ID.
7263 * Get the configuration ID of this wireless network.
7266 * Returns the corresponding UCI section ID of the network.
7268 getName: function() {
7273 * Get the Linux network device name.
7275 * @returns {null|string}
7276 * Returns the current Linux network device name as resolved from
7277 * `ubus` runtime information or `null` if this network has no
7278 * associated network device, e.g. when not configured or up.
7280 getIfname: function() {
7281 var ifname = this.ubus('net', 'ifname') || this.ubus('net', 'iwinfo', 'ifname');
7283 if (ifname == null || ifname.match(/^(wifi|radio)\d/))
7284 ifname = this.netid;
7290 * Get the Linux VLAN network device names.
7292 * @returns {string[]}
7293 * Returns the current Linux VLAN network device name as resolved
7294 * from `ubus` runtime information or empty array if this network
7295 * has no associated VLAN network devices.
7297 getVlanIfnames: function() {
7298 var vlans = L.toArray(this.ubus('net', 'vlans')),
7301 for (var i =
0; i
< vlans.length; i++)
7302 ifnames.push(vlans[i]['ifname']);
7308 * Get the name of the corresponding WiFi radio device.
7310 * @returns {null|string}
7311 * Returns the name of the radio device this network is configured on
7312 * or `null` if it cannot be determined.
7314 getWifiDeviceName: function() {
7315 return this.ubus('radio') || this.get('device');
7319 * Get the corresponding WiFi radio device.
7321 * @returns {null|LuCI.network.WifiDevice}
7322 * Returns a `Network.WifiDevice` instance representing the corresponding
7323 * WiFi radio device or `null` if the related radio device could not be
7326 getWifiDevice: function() {
7327 var radioname = this.getWifiDeviceName();
7329 if (radioname == null)
7330 return Promise.reject();
7332 return Network.prototype.getWifiDevice(radioname);
7336 * Check whether the radio network is up.
7338 * This function actually queries the up state of the related radio
7339 * device and assumes this network to be up as well when the parent
7340 * radio is up. This is due to the fact that OpenWrt does not control
7341 * virtual interfaces individually but within one common hostapd
7344 * @returns {boolean}
7345 * Returns `true` when the network is up, else `false`.
7348 var device = this.getDevice();
7353 return device.isUp();
7357 * Query the current operation mode from runtime information.
7360 * Returns the human readable mode name as reported by iwinfo or uci mode.
7361 * Possible returned values are:
7373 getActiveMode: function() {
7374 var mode = this.ubus('net', 'iwinfo', 'mode') || this.getMode();
7377 case 'ap': return 'Master';
7378 case 'sta': return 'Client';
7379 case 'adhoc': return 'Ad-Hoc';
7380 case 'mesh': return 'Mesh Point';
7381 case 'monitor': return 'Monitor';
7382 default: return mode;
7387 * Query the current operation mode from runtime information as
7388 * translated string.
7391 * Returns the translated, human readable mode name as reported by
7392 *`ubus` runtime state.
7394 getActiveModeI18n: function() {
7395 var mode = this.getActiveMode();
7398 case 'Master': return _('Access Point');
7399 case 'Ad-Hoc': return _('Ad-Hoc');
7400 case 'Client': return _('Client');
7401 case 'Monitor': return _('Monitor');
7402 case 'Master(VLAN)': return _('Master (VLAN)');
7403 case 'WDS': return _('WDS');
7404 case 'Mesh Point': return _('Mesh Point');
7405 case 'P2P Client': return _('P2P Client');
7406 case 'P2P Go': return _('P2P Go');
7407 case 'Unknown': return _('Unknown');
7408 default: return mode;
7413 * Query the current SSID from runtime information.
7416 * Returns the current SSID or Mesh ID as reported by `ubus` runtime
7419 getActiveSSID: function() {
7420 return this.ubus('net', 'iwinfo', 'ssid') || this.ubus('net', 'config', 'ssid') || this.get('ssid');
7424 * Query the current BSSID from runtime information.
7427 * Returns the current BSSID or Mesh ID as reported by `ubus` runtime
7430 getActiveBSSID: function() {
7431 return this.ubus('net', 'iwinfo', 'bssid') || this.ubus('net', 'config', 'bssid') || this.get('bssid');
7435 * Query the current encryption settings from runtime information.
7438 * Returns a string describing the current encryption or `-` if the
7439 * encryption state could not be found in `ubus` runtime information.
7441 getActiveEncryption: function() {
7442 return formatWifiEncryption(this.ubus('net', 'iwinfo', 'encryption')) || '-';
7446 * A wireless peer entry describes the properties of a remote wireless
7447 * peer associated with a local network.
7449 * @typedef {Object
<string, boolean|number|string|LuCI.network.WifiRateEntry
>} WifiPeerEntry
7450 * @memberof LuCI.network
7452 * @property {string} mac
7453 * The MAC address (BSSID).
7455 * @property {number} signal
7456 * The received signal strength.
7458 * @property {number} [signal_avg]
7459 * The average signal strength if supported by the driver.
7461 * @property {number} [noise]
7462 * The current noise floor of the radio. May be `
0` or absent if not
7463 * supported by the driver.
7465 * @property {number} inactive
7466 * The amount of milliseconds the peer has been inactive, e.g. due
7469 * @property {number} connected_time
7470 * The amount of milliseconds the peer is associated to this network.
7472 * @property {number} [thr]
7473 * The estimated throughput of the peer, May be `
0` or absent if not
7474 * supported by the driver.
7476 * @property {boolean} authorized
7477 * Specifies whether the peer is authorized to associate to this network.
7479 * @property {boolean} authenticated
7480 * Specifies whether the peer completed authentication to this network.
7482 * @property {string} preamble
7483 * The preamble mode used by the peer. May be `long` or `short`.
7485 * @property {boolean} wme
7486 * Specifies whether the peer supports WME/WMM capabilities.
7488 * @property {boolean} mfp
7489 * Specifies whether management frame protection is active.
7491 * @property {boolean} tdls
7492 * Specifies whether TDLS is active.
7494 * @property {number} [mesh llid]
7495 * The mesh LLID, may be `
0` or absent if not applicable or supported
7498 * @property {number} [mesh plid]
7499 * The mesh PLID, may be `
0` or absent if not applicable or supported
7502 * @property {string} [mesh plink]
7503 * The mesh peer link state description, may be an empty string (`''`)
7504 * or absent if not applicable or supported by the driver.
7506 * The following states are known:
7516 * @property {number} [mesh local PS]
7517 * The local powersafe mode for the peer link, may be an empty
7518 * string (`''`) or absent if not applicable or supported by
7521 * The following modes are known:
7522 * - `ACTIVE` (no power save)
7527 * @property {number} [mesh peer PS]
7528 * The remote powersafe mode for the peer link, may be an empty
7529 * string (`''`) or absent if not applicable or supported by
7532 * The following modes are known:
7533 * - `ACTIVE` (no power save)
7538 * @property {number} [mesh non-peer PS]
7539 * The powersafe mode for all non-peer neighbours, may be an empty
7540 * string (`''`) or absent if not applicable or supported by the driver.
7542 * The following modes are known:
7543 * - `ACTIVE` (no power save)
7548 * @property {LuCI.network.WifiRateEntry} rx
7549 * Describes the receiving wireless rate from the peer.
7551 * @property {LuCI.network.WifiRateEntry} tx
7552 * Describes the transmitting wireless rate to the peer.
7556 * A wireless rate entry describes the properties of a wireless
7557 * transmission rate to or from a peer.
7559 * @typedef {Object
<string, boolean|number
>} WifiRateEntry
7560 * @memberof LuCI.network
7562 * @property {number} [drop_misc]
7563 * The amount of received misc. packages that have been dropped, e.g.
7564 * due to corruption or missing authentication. Only applicable to
7567 * @property {number} packets
7568 * The amount of packets that have been received or sent.
7570 * @property {number} bytes
7571 * The amount of bytes that have been received or sent.
7573 * @property {number} [failed]
7574 * The amount of failed transmission attempts. Only applicable to
7577 * @property {number} [retries]
7578 * The amount of retried transmissions. Only applicable to transmit
7581 * @property {boolean} is_ht
7582 * Specifies whether this rate is an HT (IEEE
802.11n) rate.
7584 * @property {boolean} is_vht
7585 * Specifies whether this rate is an VHT (IEEE
802.11ac) rate.
7587 * @property {number} mhz
7588 * The channel width in MHz used for the transmission.
7590 * @property {number} rate
7591 * The bitrate in bit/s of the transmission.
7593 * @property {number} [mcs]
7594 * The MCS index of the used transmission rate. Only applicable to
7597 * @property {number} [
40mhz]
7598 * Specifies whether the transmission rate used
40MHz wide channel.
7599 * Only applicable to HT or VHT rates.
7601 * Note: this option exists for backwards compatibility only and its
7602 * use is discouraged. The `mhz` field should be used instead to
7603 * determine the channel width.
7605 * @property {boolean} [short_gi]
7606 * Specifies whether a short guard interval is used for the transmission.
7607 * Only applicable to HT or VHT rates.
7609 * @property {number} [nss]
7610 * Specifies the number of spatial streams used by the transmission.
7611 * Only applicable to VHT rates.
7613 * @property {boolean} [he]
7614 * Specifies whether this rate is an HE (IEEE
802.11ax) rate.
7616 * @property {number} [he_gi]
7617 * Specifies whether the guard interval used for the transmission.
7618 * Only applicable to HE rates.
7620 * @property {number} [he_dcm]
7621 * Specifies whether dual concurrent modulation is used for the transmission.
7622 * Only applicable to HE rates.
7626 * Fetch the list of associated peers.
7628 * @returns {Promise
<Array
<LuCI.network.WifiPeerEntry
>>}
7629 * Returns a promise resolving to an array of wireless peers associated
7630 * with this network.
7632 getAssocList: function() {
7634 var ifnames = [ this.getIfname() ].concat(this.getVlanIfnames());
7636 for (var i =
0; i
< ifnames.length; i++)
7637 tasks.push(callIwinfoAssoclist(ifnames[i]));
7639 return Promise.all(tasks).then(function(values) {
7640 return Array.prototype.concat.apply([], values);
7645 * Query the current operating frequency of the wireless network.
7647 * @returns {null|string}
7648 * Returns the current operating frequency of the network from `ubus`
7649 * runtime information in GHz or `null` if the information is not
7652 getFrequency: function() {
7653 var freq = this.ubus('net', 'iwinfo', 'frequency');
7655 if (freq != null
&& freq
> 0)
7656 return '%
.03f'.format(freq /
1000);
7662 * Query the current average bit-rate of all peers associated to this
7665 * @returns {null|number}
7666 * Returns the average bit rate among all peers associated to the network
7667 * as reported by `ubus` runtime information or `null` if the information
7670 getBitRate: function() {
7671 var rate = this.ubus('net', 'iwinfo', 'bitrate');
7673 if (rate != null
&& rate
> 0)
7674 return (rate /
1000);
7680 * Query the current wireless channel.
7682 * @returns {null|number}
7683 * Returns the wireless channel as reported by `ubus` runtime information
7684 * or `null` if it cannot be determined.
7686 getChannel: function() {
7687 return this.ubus('net', 'iwinfo', 'channel') || this.ubus('dev', 'config', 'channel') || this.get('channel');
7691 * Query the current wireless signal.
7693 * @returns {null|number}
7694 * Returns the wireless signal in dBm as reported by `ubus` runtime
7695 * information or `null` if it cannot be determined.
7697 getSignal: function() {
7698 return this.ubus('net', 'iwinfo', 'signal') ||
0;
7702 * Query the current radio noise floor.
7705 * Returns the radio noise floor in dBm as reported by `ubus` runtime
7706 * information or `
0` if it cannot be determined.
7708 getNoise: function() {
7709 return this.ubus('net', 'iwinfo', 'noise') ||
0;
7713 * Query the current country code.
7716 * Returns the wireless country code as reported by `ubus` runtime
7717 * information or `
00` if it cannot be determined.
7719 getCountryCode: function() {
7720 return this.ubus('net', 'iwinfo', 'country') || this.ubus('dev', 'config', 'country') || '
00';
7724 * Query the current radio TX power.
7726 * @returns {null|number}
7727 * Returns the wireless network transmit power in dBm as reported by
7728 * `ubus` runtime information or `null` if it cannot be determined.
7730 getTXPower: function() {
7731 return this.ubus('net', 'iwinfo', 'txpower');
7735 * Query the radio TX power offset.
7737 * Some wireless radios have a fixed power offset, e.g. due to the
7738 * use of external amplifiers.
7741 * Returns the wireless network transmit power offset in dBm as reported
7742 * by `ubus` runtime information or `
0` if there is no offset, or if it
7743 * cannot be determined.
7745 getTXPowerOffset: function() {
7746 return this.ubus('net', 'iwinfo', 'txpower_offset') ||
0;
7750 * Calculate the current signal.
7754 * Returns the calculated signal level, which is the difference between
7755 * noise and signal (SNR), divided by
5.
7757 getSignalLevel: function(signal, noise) {
7758 if (this.getActiveBSSID() == '
00:
00:
00:
00:
00:
00')
7761 signal = signal || this.getSignal();
7762 noise = noise || this.getNoise();
7764 if (signal
< 0 && noise
< 0) {
7765 var snr = -
1 * (noise - signal);
7766 return Math.floor(snr /
5);
7773 * Calculate the current signal quality percentage.
7776 * Returns the calculated signal quality in percent. The value is
7777 * calculated from the `quality` and `quality_max` indicators reported
7778 * by `ubus` runtime state.
7780 getSignalPercent: function() {
7781 var qc = this.ubus('net', 'iwinfo', 'quality') ||
0,
7782 qm = this.ubus('net', 'iwinfo', 'quality_max') ||
0;
7784 if (qc
> 0 && qm
> 0)
7785 return Math.floor((
100 / qm) * qc);
7791 * Get a short description string for this wireless network.
7794 * Returns a string describing this network, consisting of the
7795 * active operation mode, followed by either the SSID, BSSID or
7796 * internal network ID, depending on which information is available.
7798 getShortName: function() {
7799 return '%s
"%s"'.format(
7800 this.getActiveModeI18n(),
7801 this.getActiveSSID() || this.getActiveBSSID() || this.getID());
7805 * Get a description string for this wireless network.
7808 * Returns a string describing this network, consisting of the
7809 * term `Wireless Network`, followed by the active operation mode,
7810 * the SSID, BSSID or internal network ID and the Linux network device
7811 * name, depending on which information is available.
7813 getI18n: function() {
7814 return '%s: %s
"%s" (%s)'.format(
7815 _('Wireless Network'),
7816 this.getActiveModeI18n(),
7817 this.getActiveSSID() || this.getActiveBSSID() || this.getID(),
7822 * Get the primary logical interface this wireless network is attached to.
7824 * @returns {null|LuCI.network.Protocol}
7825 * Returns a `Network.Protocol` instance representing the logical
7826 * interface or `null` if this network is not attached to any logical
7829 getNetwork: function() {
7830 return this.getNetworks()[
0];
7834 * Get the logical interfaces this wireless network is attached to.
7836 * @returns {Array
<LuCI.network.Protocol
>}
7837 * Returns an array of `Network.Protocol` instances representing the
7838 * logical interfaces this wireless network is attached to.
7840 getNetworks: function() {
7841 var networkNames = this.getNetworkNames(),
7844 for (var i =
0; i
< networkNames.length; i++) {
7845 var uciInterface = uci.get('network', networkNames[i]);
7847 if (uciInterface == null || uciInterface['.type'] != 'interface')
7850 networks.push(Network.prototype.instantiateNetwork(networkNames[i]));
7853 networks.sort(networkSort);
7859 * Get the associated Linux network device.
7861 * @returns {LuCI.network.Device}
7862 * Returns a `Network.Device` instance representing the Linux network
7863 * device associated with this wireless network.
7865 getDevice: function() {
7866 return Network.prototype.instantiateDevice(this.getIfname());
7870 * Check whether this WiFi network supports de-authenticating clients.
7872 * @returns {boolean}
7873 * Returns `true` when this WiFi network instance supports forcibly
7874 * de-authenticating clients, otherwise `false`.
7876 isClientDisconnectSupported: function() {
7877 return L.isObject(this.ubus('hostapd', 'del_client'));
7881 * Forcibly disconnect the given client from the wireless network.
7883 * @param {string} mac
7884 * The MAC address of the client to disconnect.
7886 * @param {boolean} [deauth=false]
7887 * Specifies whether to de-authenticate (`true`) or disassociate (`false`)
7890 * @param {number} [reason=
1]
7891 * Specifies the IEEE
802.11 reason code to disassoc/deauth the client
7892 * with. Default is `
1` which corresponds to `Unspecified reason`.
7894 * @param {number} [ban_time=
0]
7895 * Specifies the amount of milliseconds to ban the client from
7896 * reconnecting. By default, no ban time is set which allows the client
7897 * to re-associate / reauthenticate immediately.
7899 * @returns {Promise
<number
>}
7900 * Returns a promise resolving to the underlying ubus call result code
7901 * which is typically `
0`, even for not existing MAC addresses.
7902 * The promise might reject with an error in case invalid arguments
7905 disconnectClient: function(mac, deauth, reason, ban_time) {
7906 if (reason == null || reason ==
0)
7912 return rpc.declare({
7913 object: 'hostapd.%s'.format(this.getIfname()),
7914 method: 'del_client',
7915 params: [ 'addr', 'deauth', 'reason', 'ban_time' ]
7916 })(mac, deauth, reason, ban_time);
7933 Documentation generated by
<a href=
"https://github.com/jsdoc3/jsdoc">JSDoc
3.6.11</a> on Sat Dec
23 2023 16:
26:
46 GMT+
0000 (Coordinated Universal Time)
7937 <script>prettyPrint();
</script>
7938 <script src=
"scripts/jaguar.js"></script>