d27d714380f85670d72629e2eb5cde45e0fc2efb
[project/luci.git] / docs / jsapi / LuCI.Network.Device.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <title>Class: Device</title>
6
7
8 <script src="scripts/prettify/prettify.js"></script>
9 <script src="scripts/prettify/lang-css.js"></script>
10 <script src="scripts/jquery.min.js"></script>
11 <!--[if lt IE 9]>
12 <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
13 <![endif]-->
14 <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
15 <link type="text/css" rel="stylesheet" href="styles/bootstrap.min.css">
16 <link type="text/css" rel="stylesheet" href="styles/jaguar.css">
17
18
19 <script>
20 var config = {"monospaceLinks":true,"cleverLinks":true,"default":{}};
21 </script>
22
23
24
25 </head>
26 <body>
27 <div id="wrap" class="clearfix">
28
29 <div class="navigation">
30 <h3 class="applicationName"><a href="index.html"></a></h3>
31
32 <div class="search">
33 <input id="search" type="text" class="form-control input-sm" placeholder="Search Documentations">
34 </div>
35 <ul class="list">
36
37 <li class="item" data-name="LuCI">
38 <span class="title">
39 <a href="LuCI.html">LuCI</a>
40
41 </span>
42 <ul class="members itemMembers">
43
44 <span class="subtitle">Members</span>
45
46 <li data-name="LuCI#env"><a href="LuCI.html#env">env</a></li>
47
48 </ul>
49 <ul class="typedefs itemMembers">
50
51 <span class="subtitle">Typedefs</span>
52
53 <li data-name="LuCI.requestCallbackFn"><a href="LuCI.html#.requestCallbackFn">requestCallbackFn</a></li>
54
55 </ul>
56 <ul class="typedefs itemMembers">
57
58 </ul>
59 <ul class="methods itemMembers">
60
61 <span class="subtitle">Methods</span>
62
63 <li data-name="LuCI#bind"><a href="LuCI.html#bind">bind</a></li>
64
65 <li data-name="LuCI#error"><a href="LuCI.html#error">error</a></li>
66
67 <li data-name="LuCI#get"><a href="LuCI.html#get">get</a></li>
68
69 <li data-name="LuCI#halt"><a href="LuCI.html#halt">halt</a></li>
70
71 <li data-name="LuCI#hasSystemFeature"><a href="LuCI.html#hasSystemFeature">hasSystemFeature</a></li>
72
73 <li data-name="LuCI#isObject"><a href="LuCI.html#isObject">isObject</a></li>
74
75 <li data-name="LuCI#location"><a href="LuCI.html#location">location</a></li>
76
77 <li data-name="LuCI#path"><a href="LuCI.html#path">path</a></li>
78
79 <li data-name="LuCI#poll"><a href="LuCI.html#poll">poll</a></li>
80
81 <li data-name="LuCI#post"><a href="LuCI.html#post">post</a></li>
82
83 <li data-name="LuCI#raise"><a href="LuCI.html#raise">raise</a></li>
84
85 <li data-name="LuCI#require"><a href="LuCI.html#require">require</a></li>
86
87 <li data-name="LuCI#resolveDefault"><a href="LuCI.html#resolveDefault">resolveDefault</a></li>
88
89 <li data-name="LuCI#resource"><a href="LuCI.html#resource">resource</a></li>
90
91 <li data-name="LuCI#run"><a href="LuCI.html#run">run</a></li>
92
93 <li data-name="LuCI#sortedKeys"><a href="LuCI.html#sortedKeys">sortedKeys</a></li>
94
95 <li data-name="LuCI#stop"><a href="LuCI.html#stop">stop</a></li>
96
97 <li data-name="LuCI#toArray"><a href="LuCI.html#toArray">toArray</a></li>
98
99 <li data-name="LuCI#url"><a href="LuCI.html#url">url</a></li>
100
101 </ul>
102 <ul class="events itemMembers">
103
104 </ul>
105 </li>
106
107 <li class="item" data-name="LuCI.Class">
108 <span class="title">
109 <a href="LuCI.Class.html">LuCI.Class</a>
110
111 </span>
112 <ul class="members itemMembers">
113
114 </ul>
115 <ul class="typedefs itemMembers">
116
117 </ul>
118 <ul class="typedefs itemMembers">
119
120 </ul>
121 <ul class="methods itemMembers">
122
123 <span class="subtitle">Methods</span>
124
125 <li data-name="LuCI.Class.extend"><a href="LuCI.Class.html#.extend">extend</a></li>
126
127 <li data-name="LuCI.Class.instantiate"><a href="LuCI.Class.html#.instantiate">instantiate</a></li>
128
129 <li data-name="LuCI.Class.isSubclass"><a href="LuCI.Class.html#.isSubclass">isSubclass</a></li>
130
131 <li data-name="LuCI.Class.singleton"><a href="LuCI.Class.html#.singleton">singleton</a></li>
132
133 <li data-name="LuCI.Class#super"><a href="LuCI.Class.html#super">super</a></li>
134
135 <li data-name="LuCI.Class#varargs"><a href="LuCI.Class.html#varargs">varargs</a></li>
136
137 </ul>
138 <ul class="events itemMembers">
139
140 </ul>
141 </li>
142
143 <li class="item" data-name="LuCI.dom">
144 <span class="title">
145 <a href="LuCI.dom.html">LuCI.dom</a>
146
147 </span>
148 <ul class="members itemMembers">
149
150 </ul>
151 <ul class="typedefs itemMembers">
152
153 <span class="subtitle">Typedefs</span>
154
155 <li data-name="LuCI.dom~ignoreCallbackFn"><a href="LuCI.dom.html#~ignoreCallbackFn">ignoreCallbackFn</a></li>
156
157 </ul>
158 <ul class="typedefs itemMembers">
159
160 </ul>
161 <ul class="methods itemMembers">
162
163 <span class="subtitle">Methods</span>
164
165 <li data-name="LuCI.dom#append"><a href="LuCI.dom.html#append">append</a></li>
166
167 <li data-name="LuCI.dom#attr"><a href="LuCI.dom.html#attr">attr</a></li>
168
169 <li data-name="LuCI.dom#bindClassInstance"><a href="LuCI.dom.html#bindClassInstance">bindClassInstance</a></li>
170
171 <li data-name="LuCI.dom#callClassMethod"><a href="LuCI.dom.html#callClassMethod">callClassMethod</a></li>
172
173 <li data-name="LuCI.dom#content"><a href="LuCI.dom.html#content">content</a></li>
174
175 <li data-name="LuCI.dom#create"><a href="LuCI.dom.html#create">create</a></li>
176
177 <li data-name="LuCI.dom#data"><a href="LuCI.dom.html#data">data</a></li>
178
179 <li data-name="LuCI.dom#elem"><a href="LuCI.dom.html#elem">elem</a></li>
180
181 <li data-name="LuCI.dom#findClassInstance"><a href="LuCI.dom.html#findClassInstance">findClassInstance</a></li>
182
183 <li data-name="LuCI.dom#isEmpty"><a href="LuCI.dom.html#isEmpty">isEmpty</a></li>
184
185 <li data-name="LuCI.dom#matches"><a href="LuCI.dom.html#matches">matches</a></li>
186
187 <li data-name="LuCI.dom#parent"><a href="LuCI.dom.html#parent">parent</a></li>
188
189 <li data-name="LuCI.dom#parse"><a href="LuCI.dom.html#parse">parse</a></li>
190
191 </ul>
192 <ul class="events itemMembers">
193
194 </ul>
195 </li>
196
197 <li class="item" data-name="LuCI.fs">
198 <span class="title">
199 <a href="LuCI.fs.html">LuCI.fs</a>
200
201 </span>
202 <ul class="members itemMembers">
203
204 </ul>
205 <ul class="typedefs itemMembers">
206
207 <span class="subtitle">Typedefs</span>
208
209 <li data-name="LuCI.fs.FileExecResult"><a href="LuCI.fs.html#.FileExecResult">FileExecResult</a></li>
210
211 <li data-name="LuCI.fs.FileStatEntry"><a href="LuCI.fs.html#.FileStatEntry">FileStatEntry</a></li>
212
213 </ul>
214 <ul class="typedefs itemMembers">
215
216 </ul>
217 <ul class="methods itemMembers">
218
219 <span class="subtitle">Methods</span>
220
221 <li data-name="LuCI.fs#exec"><a href="LuCI.fs.html#exec">exec</a></li>
222
223 <li data-name="LuCI.fs#lines"><a href="LuCI.fs.html#lines">lines</a></li>
224
225 <li data-name="LuCI.fs#list"><a href="LuCI.fs.html#list">list</a></li>
226
227 <li data-name="LuCI.fs#read"><a href="LuCI.fs.html#read">read</a></li>
228
229 <li data-name="LuCI.fs#remove"><a href="LuCI.fs.html#remove">remove</a></li>
230
231 <li data-name="LuCI.fs#stat"><a href="LuCI.fs.html#stat">stat</a></li>
232
233 <li data-name="LuCI.fs#trimmed"><a href="LuCI.fs.html#trimmed">trimmed</a></li>
234
235 <li data-name="LuCI.fs#write"><a href="LuCI.fs.html#write">write</a></li>
236
237 </ul>
238 <ul class="events itemMembers">
239
240 </ul>
241 </li>
242
243 <li class="item" data-name="LuCI.Headers">
244 <span class="title">
245 <a href="LuCI.Headers.html">LuCI.Headers</a>
246
247 </span>
248 <ul class="members itemMembers">
249
250 </ul>
251 <ul class="typedefs itemMembers">
252
253 </ul>
254 <ul class="typedefs itemMembers">
255
256 </ul>
257 <ul class="methods itemMembers">
258
259 <span class="subtitle">Methods</span>
260
261 <li data-name="LuCI.Headers#get"><a href="LuCI.Headers.html#get">get</a></li>
262
263 <li data-name="LuCI.Headers#has"><a href="LuCI.Headers.html#has">has</a></li>
264
265 </ul>
266 <ul class="events itemMembers">
267
268 </ul>
269 </li>
270
271 <li class="item" data-name="LuCI.Network">
272 <span class="title">
273 <a href="LuCI.Network.html">LuCI.Network</a>
274
275 </span>
276 <ul class="members itemMembers">
277
278 </ul>
279 <ul class="typedefs itemMembers">
280
281 <span class="subtitle">Typedefs</span>
282
283 <li data-name="LuCI.Network.SwitchTopology"><a href="LuCI.Network.html#.SwitchTopology">SwitchTopology</a></li>
284
285 <li data-name="LuCI.Network.WifiEncryption"><a href="LuCI.Network.html#.WifiEncryption">WifiEncryption</a></li>
286
287 <li data-name="LuCI.Network.WifiPeerEntry"><a href="LuCI.Network.html#.WifiPeerEntry">WifiPeerEntry</a></li>
288
289 <li data-name="LuCI.Network.WifiRateEntry"><a href="LuCI.Network.html#.WifiRateEntry">WifiRateEntry</a></li>
290
291 <li data-name="LuCI.Network.WifiScanResult"><a href="LuCI.Network.html#.WifiScanResult">WifiScanResult</a></li>
292
293 </ul>
294 <ul class="typedefs itemMembers">
295
296 </ul>
297 <ul class="methods itemMembers">
298
299 <span class="subtitle">Methods</span>
300
301 <li data-name="LuCI.Network#addNetwork"><a href="LuCI.Network.html#addNetwork">addNetwork</a></li>
302
303 <li data-name="LuCI.Network#addWifiNetwork"><a href="LuCI.Network.html#addWifiNetwork">addWifiNetwork</a></li>
304
305 <li data-name="LuCI.Network#deleteNetwork"><a href="LuCI.Network.html#deleteNetwork">deleteNetwork</a></li>
306
307 <li data-name="LuCI.Network#deleteWifiNetwork"><a href="LuCI.Network.html#deleteWifiNetwork">deleteWifiNetwork</a></li>
308
309 <li data-name="LuCI.Network#flushCache"><a href="LuCI.Network.html#flushCache">flushCache</a></li>
310
311 <li data-name="LuCI.Network#formatWifiEncryption"><a href="LuCI.Network.html#formatWifiEncryption">formatWifiEncryption</a></li>
312
313 <li data-name="LuCI.Network#getDevice"><a href="LuCI.Network.html#getDevice">getDevice</a></li>
314
315 <li data-name="LuCI.Network#getDevices"><a href="LuCI.Network.html#getDevices">getDevices</a></li>
316
317 <li data-name="LuCI.Network#getDSLModemType"><a href="LuCI.Network.html#getDSLModemType">getDSLModemType</a></li>
318
319 <li data-name="LuCI.Network#getHostHints"><a href="LuCI.Network.html#getHostHints">getHostHints</a></li>
320
321 <li data-name="LuCI.Network#getIfnameOf"><a href="LuCI.Network.html#getIfnameOf">getIfnameOf</a></li>
322
323 <li data-name="LuCI.Network#getNetwork"><a href="LuCI.Network.html#getNetwork">getNetwork</a></li>
324
325 <li data-name="LuCI.Network#getNetworks"><a href="LuCI.Network.html#getNetworks">getNetworks</a></li>
326
327 <li data-name="LuCI.Network#getProtocol"><a href="LuCI.Network.html#getProtocol">getProtocol</a></li>
328
329 <li data-name="LuCI.Network#getProtocols"><a href="LuCI.Network.html#getProtocols">getProtocols</a></li>
330
331 <li data-name="LuCI.Network#getSwitchTopologies"><a href="LuCI.Network.html#getSwitchTopologies">getSwitchTopologies</a></li>
332
333 <li data-name="LuCI.Network#getWAN6Networks"><a href="LuCI.Network.html#getWAN6Networks">getWAN6Networks</a></li>
334
335 <li data-name="LuCI.Network#getWANNetworks"><a href="LuCI.Network.html#getWANNetworks">getWANNetworks</a></li>
336
337 <li data-name="LuCI.Network#getWifiDevice"><a href="LuCI.Network.html#getWifiDevice">getWifiDevice</a></li>
338
339 <li data-name="LuCI.Network#getWifiDevices"><a href="LuCI.Network.html#getWifiDevices">getWifiDevices</a></li>
340
341 <li data-name="LuCI.Network#getWifiNetwork"><a href="LuCI.Network.html#getWifiNetwork">getWifiNetwork</a></li>
342
343 <li data-name="LuCI.Network#getWifiNetworks"><a href="LuCI.Network.html#getWifiNetworks">getWifiNetworks</a></li>
344
345 <li data-name="LuCI.Network#isIgnoredDevice"><a href="LuCI.Network.html#isIgnoredDevice">isIgnoredDevice</a></li>
346
347 <li data-name="LuCI.Network#maskToPrefix"><a href="LuCI.Network.html#maskToPrefix">maskToPrefix</a></li>
348
349 <li data-name="LuCI.Network#prefixToMask"><a href="LuCI.Network.html#prefixToMask">prefixToMask</a></li>
350
351 <li data-name="LuCI.Network#registerErrorCode"><a href="LuCI.Network.html#registerErrorCode">registerErrorCode</a></li>
352
353 <li data-name="LuCI.Network#registerPatternVirtual"><a href="LuCI.Network.html#registerPatternVirtual">registerPatternVirtual</a></li>
354
355 <li data-name="LuCI.Network#registerProtocol"><a href="LuCI.Network.html#registerProtocol">registerProtocol</a></li>
356
357 <li data-name="LuCI.Network#renameNetwork"><a href="LuCI.Network.html#renameNetwork">renameNetwork</a></li>
358
359 </ul>
360 <ul class="events itemMembers">
361
362 </ul>
363 </li>
364
365 <li class="item" data-name="LuCI.Network.Device">
366 <span class="title">
367 <a href="LuCI.Network.Device.html">LuCI.Network.Device</a>
368
369 </span>
370 <ul class="members itemMembers">
371
372 </ul>
373 <ul class="typedefs itemMembers">
374
375 </ul>
376 <ul class="typedefs itemMembers">
377
378 </ul>
379 <ul class="methods itemMembers">
380
381 <span class="subtitle">Methods</span>
382
383 <li data-name="LuCI.Network.Device#getBridgeID"><a href="LuCI.Network.Device.html#getBridgeID">getBridgeID</a></li>
384
385 <li data-name="LuCI.Network.Device#getBridgeSTP"><a href="LuCI.Network.Device.html#getBridgeSTP">getBridgeSTP</a></li>
386
387 <li data-name="LuCI.Network.Device#getI18n"><a href="LuCI.Network.Device.html#getI18n">getI18n</a></li>
388
389 <li data-name="LuCI.Network.Device#getIP6Addrs"><a href="LuCI.Network.Device.html#getIP6Addrs">getIP6Addrs</a></li>
390
391 <li data-name="LuCI.Network.Device#getIPAddrs"><a href="LuCI.Network.Device.html#getIPAddrs">getIPAddrs</a></li>
392
393 <li data-name="LuCI.Network.Device#getMAC"><a href="LuCI.Network.Device.html#getMAC">getMAC</a></li>
394
395 <li data-name="LuCI.Network.Device#getMTU"><a href="LuCI.Network.Device.html#getMTU">getMTU</a></li>
396
397 <li data-name="LuCI.Network.Device#getName"><a href="LuCI.Network.Device.html#getName">getName</a></li>
398
399 <li data-name="LuCI.Network.Device#getNetwork"><a href="LuCI.Network.Device.html#getNetwork">getNetwork</a></li>
400
401 <li data-name="LuCI.Network.Device#getNetworks"><a href="LuCI.Network.Device.html#getNetworks">getNetworks</a></li>
402
403 <li data-name="LuCI.Network.Device#getPorts"><a href="LuCI.Network.Device.html#getPorts">getPorts</a></li>
404
405 <li data-name="LuCI.Network.Device#getRXBytes"><a href="LuCI.Network.Device.html#getRXBytes">getRXBytes</a></li>
406
407 <li data-name="LuCI.Network.Device#getRXPackets"><a href="LuCI.Network.Device.html#getRXPackets">getRXPackets</a></li>
408
409 <li data-name="LuCI.Network.Device#getShortName"><a href="LuCI.Network.Device.html#getShortName">getShortName</a></li>
410
411 <li data-name="LuCI.Network.Device#getTXBytes"><a href="LuCI.Network.Device.html#getTXBytes">getTXBytes</a></li>
412
413 <li data-name="LuCI.Network.Device#getTXPackets"><a href="LuCI.Network.Device.html#getTXPackets">getTXPackets</a></li>
414
415 <li data-name="LuCI.Network.Device#getType"><a href="LuCI.Network.Device.html#getType">getType</a></li>
416
417 <li data-name="LuCI.Network.Device#getTypeI18n"><a href="LuCI.Network.Device.html#getTypeI18n">getTypeI18n</a></li>
418
419 <li data-name="LuCI.Network.Device#getWifiNetwork"><a href="LuCI.Network.Device.html#getWifiNetwork">getWifiNetwork</a></li>
420
421 <li data-name="LuCI.Network.Device#isBridge"><a href="LuCI.Network.Device.html#isBridge">isBridge</a></li>
422
423 <li data-name="LuCI.Network.Device#isBridgePort"><a href="LuCI.Network.Device.html#isBridgePort">isBridgePort</a></li>
424
425 <li data-name="LuCI.Network.Device#isUp"><a href="LuCI.Network.Device.html#isUp">isUp</a></li>
426
427 </ul>
428 <ul class="events itemMembers">
429
430 </ul>
431 </li>
432
433 <li class="item" data-name="LuCI.Network.Hosts">
434 <span class="title">
435 <a href="LuCI.Network.Hosts.html">LuCI.Network.Hosts</a>
436
437 </span>
438 <ul class="members itemMembers">
439
440 </ul>
441 <ul class="typedefs itemMembers">
442
443 </ul>
444 <ul class="typedefs itemMembers">
445
446 </ul>
447 <ul class="methods itemMembers">
448
449 <span class="subtitle">Methods</span>
450
451 <li data-name="LuCI.Network.Hosts#getHostnameByIP6Addr"><a href="LuCI.Network.Hosts.html#getHostnameByIP6Addr">getHostnameByIP6Addr</a></li>
452
453 <li data-name="LuCI.Network.Hosts#getHostnameByIPAddr"><a href="LuCI.Network.Hosts.html#getHostnameByIPAddr">getHostnameByIPAddr</a></li>
454
455 <li data-name="LuCI.Network.Hosts#getHostnameByMACAddr"><a href="LuCI.Network.Hosts.html#getHostnameByMACAddr">getHostnameByMACAddr</a></li>
456
457 <li data-name="LuCI.Network.Hosts#getIP6AddrByMACAddr"><a href="LuCI.Network.Hosts.html#getIP6AddrByMACAddr">getIP6AddrByMACAddr</a></li>
458
459 <li data-name="LuCI.Network.Hosts#getIPAddrByMACAddr"><a href="LuCI.Network.Hosts.html#getIPAddrByMACAddr">getIPAddrByMACAddr</a></li>
460
461 <li data-name="LuCI.Network.Hosts#getMACAddrByIP6Addr"><a href="LuCI.Network.Hosts.html#getMACAddrByIP6Addr">getMACAddrByIP6Addr</a></li>
462
463 <li data-name="LuCI.Network.Hosts#getMACAddrByIPAddr"><a href="LuCI.Network.Hosts.html#getMACAddrByIPAddr">getMACAddrByIPAddr</a></li>
464
465 <li data-name="LuCI.Network.Hosts#getMACHints"><a href="LuCI.Network.Hosts.html#getMACHints">getMACHints</a></li>
466
467 </ul>
468 <ul class="events itemMembers">
469
470 </ul>
471 </li>
472
473 <li class="item" data-name="LuCI.Network.Protocol">
474 <span class="title">
475 <a href="LuCI.Network.Protocol.html">LuCI.Network.Protocol</a>
476
477 </span>
478 <ul class="members itemMembers">
479
480 </ul>
481 <ul class="typedefs itemMembers">
482
483 </ul>
484 <ul class="typedefs itemMembers">
485
486 </ul>
487 <ul class="methods itemMembers">
488
489 <span class="subtitle">Methods</span>
490
491 <li data-name="LuCI.Network.Protocol#addDevice"><a href="LuCI.Network.Protocol.html#addDevice">addDevice</a></li>
492
493 <li data-name="LuCI.Network.Protocol#containsDevice"><a href="LuCI.Network.Protocol.html#containsDevice">containsDevice</a></li>
494
495 <li data-name="LuCI.Network.Protocol#deleteDevice"><a href="LuCI.Network.Protocol.html#deleteDevice">deleteDevice</a></li>
496
497 <li data-name="LuCI.Network.Protocol#get"><a href="LuCI.Network.Protocol.html#get">get</a></li>
498
499 <li data-name="LuCI.Network.Protocol#getDevice"><a href="LuCI.Network.Protocol.html#getDevice">getDevice</a></li>
500
501 <li data-name="LuCI.Network.Protocol#getDevices"><a href="LuCI.Network.Protocol.html#getDevices">getDevices</a></li>
502
503 <li data-name="LuCI.Network.Protocol#getDNS6Addrs"><a href="LuCI.Network.Protocol.html#getDNS6Addrs">getDNS6Addrs</a></li>
504
505 <li data-name="LuCI.Network.Protocol#getDNSAddrs"><a href="LuCI.Network.Protocol.html#getDNSAddrs">getDNSAddrs</a></li>
506
507 <li data-name="LuCI.Network.Protocol#getErrors"><a href="LuCI.Network.Protocol.html#getErrors">getErrors</a></li>
508
509 <li data-name="LuCI.Network.Protocol#getExpiry"><a href="LuCI.Network.Protocol.html#getExpiry">getExpiry</a></li>
510
511 <li data-name="LuCI.Network.Protocol#getGateway6Addr"><a href="LuCI.Network.Protocol.html#getGateway6Addr">getGateway6Addr</a></li>
512
513 <li data-name="LuCI.Network.Protocol#getGatewayAddr"><a href="LuCI.Network.Protocol.html#getGatewayAddr">getGatewayAddr</a></li>
514
515 <li data-name="LuCI.Network.Protocol#getI18n"><a href="LuCI.Network.Protocol.html#getI18n">getI18n</a></li>
516
517 <li data-name="LuCI.Network.Protocol#getIfname"><a href="LuCI.Network.Protocol.html#getIfname">getIfname</a></li>
518
519 <li data-name="LuCI.Network.Protocol#getIP6Addr"><a href="LuCI.Network.Protocol.html#getIP6Addr">getIP6Addr</a></li>
520
521 <li data-name="LuCI.Network.Protocol#getIP6Addrs"><a href="LuCI.Network.Protocol.html#getIP6Addrs">getIP6Addrs</a></li>
522
523 <li data-name="LuCI.Network.Protocol#getIP6Prefix"><a href="LuCI.Network.Protocol.html#getIP6Prefix">getIP6Prefix</a></li>
524
525 <li data-name="LuCI.Network.Protocol#getIPAddr"><a href="LuCI.Network.Protocol.html#getIPAddr">getIPAddr</a></li>
526
527 <li data-name="LuCI.Network.Protocol#getIPAddrs"><a href="LuCI.Network.Protocol.html#getIPAddrs">getIPAddrs</a></li>
528
529 <li data-name="LuCI.Network.Protocol#getL2Device"><a href="LuCI.Network.Protocol.html#getL2Device">getL2Device</a></li>
530
531 <li data-name="LuCI.Network.Protocol#getL3Device"><a href="LuCI.Network.Protocol.html#getL3Device">getL3Device</a></li>
532
533 <li data-name="LuCI.Network.Protocol#getMetric"><a href="LuCI.Network.Protocol.html#getMetric">getMetric</a></li>
534
535 <li data-name="LuCI.Network.Protocol#getName"><a href="LuCI.Network.Protocol.html#getName">getName</a></li>
536
537 <li data-name="LuCI.Network.Protocol#getNetmask"><a href="LuCI.Network.Protocol.html#getNetmask">getNetmask</a></li>
538
539 <li data-name="LuCI.Network.Protocol#getOpkgPackage"><a href="LuCI.Network.Protocol.html#getOpkgPackage">getOpkgPackage</a></li>
540
541 <li data-name="LuCI.Network.Protocol#getProtocol"><a href="LuCI.Network.Protocol.html#getProtocol">getProtocol</a></li>
542
543 <li data-name="LuCI.Network.Protocol#getType"><a href="LuCI.Network.Protocol.html#getType">getType</a></li>
544
545 <li data-name="LuCI.Network.Protocol#getUptime"><a href="LuCI.Network.Protocol.html#getUptime">getUptime</a></li>
546
547 <li data-name="LuCI.Network.Protocol#getZoneName"><a href="LuCI.Network.Protocol.html#getZoneName">getZoneName</a></li>
548
549 <li data-name="LuCI.Network.Protocol#isAlias"><a href="LuCI.Network.Protocol.html#isAlias">isAlias</a></li>
550
551 <li data-name="LuCI.Network.Protocol#isBridge"><a href="LuCI.Network.Protocol.html#isBridge">isBridge</a></li>
552
553 <li data-name="LuCI.Network.Protocol#isDynamic"><a href="LuCI.Network.Protocol.html#isDynamic">isDynamic</a></li>
554
555 <li data-name="LuCI.Network.Protocol#isEmpty"><a href="LuCI.Network.Protocol.html#isEmpty">isEmpty</a></li>
556
557 <li data-name="LuCI.Network.Protocol#isFloating"><a href="LuCI.Network.Protocol.html#isFloating">isFloating</a></li>
558
559 <li data-name="LuCI.Network.Protocol#isInstalled"><a href="LuCI.Network.Protocol.html#isInstalled">isInstalled</a></li>
560
561 <li data-name="LuCI.Network.Protocol#isUp"><a href="LuCI.Network.Protocol.html#isUp">isUp</a></li>
562
563 <li data-name="LuCI.Network.Protocol#isVirtual"><a href="LuCI.Network.Protocol.html#isVirtual">isVirtual</a></li>
564
565 <li data-name="LuCI.Network.Protocol#set"><a href="LuCI.Network.Protocol.html#set">set</a></li>
566
567 </ul>
568 <ul class="events itemMembers">
569
570 </ul>
571 </li>
572
573 <li class="item" data-name="LuCI.Network.WifiDevice">
574 <span class="title">
575 <a href="LuCI.Network.WifiDevice.html">LuCI.Network.WifiDevice</a>
576
577 </span>
578 <ul class="members itemMembers">
579
580 </ul>
581 <ul class="typedefs itemMembers">
582
583 </ul>
584 <ul class="typedefs itemMembers">
585
586 </ul>
587 <ul class="methods itemMembers">
588
589 <span class="subtitle">Methods</span>
590
591 <li data-name="LuCI.Network.WifiDevice#addWifiNetwork"><a href="LuCI.Network.WifiDevice.html#addWifiNetwork">addWifiNetwork</a></li>
592
593 <li data-name="LuCI.Network.WifiDevice#deleteWifiNetwork"><a href="LuCI.Network.WifiDevice.html#deleteWifiNetwork">deleteWifiNetwork</a></li>
594
595 <li data-name="LuCI.Network.WifiDevice#get"><a href="LuCI.Network.WifiDevice.html#get">get</a></li>
596
597 <li data-name="LuCI.Network.WifiDevice#getHTModes"><a href="LuCI.Network.WifiDevice.html#getHTModes">getHTModes</a></li>
598
599 <li data-name="LuCI.Network.WifiDevice#getHWModes"><a href="LuCI.Network.WifiDevice.html#getHWModes">getHWModes</a></li>
600
601 <li data-name="LuCI.Network.WifiDevice#getI18n"><a href="LuCI.Network.WifiDevice.html#getI18n">getI18n</a></li>
602
603 <li data-name="LuCI.Network.WifiDevice#getName"><a href="LuCI.Network.WifiDevice.html#getName">getName</a></li>
604
605 <li data-name="LuCI.Network.WifiDevice#getScanList"><a href="LuCI.Network.WifiDevice.html#getScanList">getScanList</a></li>
606
607 <li data-name="LuCI.Network.WifiDevice#getWifiNetwork"><a href="LuCI.Network.WifiDevice.html#getWifiNetwork">getWifiNetwork</a></li>
608
609 <li data-name="LuCI.Network.WifiDevice#getWifiNetworks"><a href="LuCI.Network.WifiDevice.html#getWifiNetworks">getWifiNetworks</a></li>
610
611 <li data-name="LuCI.Network.WifiDevice#isDisabled"><a href="LuCI.Network.WifiDevice.html#isDisabled">isDisabled</a></li>
612
613 <li data-name="LuCI.Network.WifiDevice#isUp"><a href="LuCI.Network.WifiDevice.html#isUp">isUp</a></li>
614
615 <li data-name="LuCI.Network.WifiDevice#set"><a href="LuCI.Network.WifiDevice.html#set">set</a></li>
616
617 </ul>
618 <ul class="events itemMembers">
619
620 </ul>
621 </li>
622
623 <li class="item" data-name="LuCI.Network.WifiNetwork">
624 <span class="title">
625 <a href="LuCI.Network.WifiNetwork.html">LuCI.Network.WifiNetwork</a>
626
627 </span>
628 <ul class="members itemMembers">
629
630 </ul>
631 <ul class="typedefs itemMembers">
632
633 </ul>
634 <ul class="typedefs itemMembers">
635
636 </ul>
637 <ul class="methods itemMembers">
638
639 <span class="subtitle">Methods</span>
640
641 <li data-name="LuCI.Network.WifiNetwork#disconnectClient"><a href="LuCI.Network.WifiNetwork.html#disconnectClient">disconnectClient</a></li>
642
643 <li data-name="LuCI.Network.WifiNetwork#get"><a href="LuCI.Network.WifiNetwork.html#get">get</a></li>
644
645 <li data-name="LuCI.Network.WifiNetwork#getActiveBSSID"><a href="LuCI.Network.WifiNetwork.html#getActiveBSSID">getActiveBSSID</a></li>
646
647 <li data-name="LuCI.Network.WifiNetwork#getActiveEncryption"><a href="LuCI.Network.WifiNetwork.html#getActiveEncryption">getActiveEncryption</a></li>
648
649 <li data-name="LuCI.Network.WifiNetwork#getActiveMode"><a href="LuCI.Network.WifiNetwork.html#getActiveMode">getActiveMode</a></li>
650
651 <li data-name="LuCI.Network.WifiNetwork#getActiveModeI18n"><a href="LuCI.Network.WifiNetwork.html#getActiveModeI18n">getActiveModeI18n</a></li>
652
653 <li data-name="LuCI.Network.WifiNetwork#getActiveSSID"><a href="LuCI.Network.WifiNetwork.html#getActiveSSID">getActiveSSID</a></li>
654
655 <li data-name="LuCI.Network.WifiNetwork#getAssocList"><a href="LuCI.Network.WifiNetwork.html#getAssocList">getAssocList</a></li>
656
657 <li data-name="LuCI.Network.WifiNetwork#getBitRate"><a href="LuCI.Network.WifiNetwork.html#getBitRate">getBitRate</a></li>
658
659 <li data-name="LuCI.Network.WifiNetwork#getBSSID"><a href="LuCI.Network.WifiNetwork.html#getBSSID">getBSSID</a></li>
660
661 <li data-name="LuCI.Network.WifiNetwork#getChannel"><a href="LuCI.Network.WifiNetwork.html#getChannel">getChannel</a></li>
662
663 <li data-name="LuCI.Network.WifiNetwork#getCountryCode"><a href="LuCI.Network.WifiNetwork.html#getCountryCode">getCountryCode</a></li>
664
665 <li data-name="LuCI.Network.WifiNetwork#getDevice"><a href="LuCI.Network.WifiNetwork.html#getDevice">getDevice</a></li>
666
667 <li data-name="LuCI.Network.WifiNetwork#getFrequency"><a href="LuCI.Network.WifiNetwork.html#getFrequency">getFrequency</a></li>
668
669 <li data-name="LuCI.Network.WifiNetwork#getI18n"><a href="LuCI.Network.WifiNetwork.html#getI18n">getI18n</a></li>
670
671 <li data-name="LuCI.Network.WifiNetwork#getID"><a href="LuCI.Network.WifiNetwork.html#getID">getID</a></li>
672
673 <li data-name="LuCI.Network.WifiNetwork#getIfname"><a href="LuCI.Network.WifiNetwork.html#getIfname">getIfname</a></li>
674
675 <li data-name="LuCI.Network.WifiNetwork#getMeshID"><a href="LuCI.Network.WifiNetwork.html#getMeshID">getMeshID</a></li>
676
677 <li data-name="LuCI.Network.WifiNetwork#getMode"><a href="LuCI.Network.WifiNetwork.html#getMode">getMode</a></li>
678
679 <li data-name="LuCI.Network.WifiNetwork#getName"><a href="LuCI.Network.WifiNetwork.html#getName">getName</a></li>
680
681 <li data-name="LuCI.Network.WifiNetwork#getNetwork"><a href="LuCI.Network.WifiNetwork.html#getNetwork">getNetwork</a></li>
682
683 <li data-name="LuCI.Network.WifiNetwork#getNetworkNames"><a href="LuCI.Network.WifiNetwork.html#getNetworkNames">getNetworkNames</a></li>
684
685 <li data-name="LuCI.Network.WifiNetwork#getNetworks"><a href="LuCI.Network.WifiNetwork.html#getNetworks">getNetworks</a></li>
686
687 <li data-name="LuCI.Network.WifiNetwork#getNoise"><a href="LuCI.Network.WifiNetwork.html#getNoise">getNoise</a></li>
688
689 <li data-name="LuCI.Network.WifiNetwork#getShortName"><a href="LuCI.Network.WifiNetwork.html#getShortName">getShortName</a></li>
690
691 <li data-name="LuCI.Network.WifiNetwork#getSignal"><a href="LuCI.Network.WifiNetwork.html#getSignal">getSignal</a></li>
692
693 <li data-name="LuCI.Network.WifiNetwork#getSignalLevel"><a href="LuCI.Network.WifiNetwork.html#getSignalLevel">getSignalLevel</a></li>
694
695 <li data-name="LuCI.Network.WifiNetwork#getSignalPercent"><a href="LuCI.Network.WifiNetwork.html#getSignalPercent">getSignalPercent</a></li>
696
697 <li data-name="LuCI.Network.WifiNetwork#getSSID"><a href="LuCI.Network.WifiNetwork.html#getSSID">getSSID</a></li>
698
699 <li data-name="LuCI.Network.WifiNetwork#getTXPower"><a href="LuCI.Network.WifiNetwork.html#getTXPower">getTXPower</a></li>
700
701 <li data-name="LuCI.Network.WifiNetwork#getTXPowerOffset"><a href="LuCI.Network.WifiNetwork.html#getTXPowerOffset">getTXPowerOffset</a></li>
702
703 <li data-name="LuCI.Network.WifiNetwork#getWifiDevice"><a href="LuCI.Network.WifiNetwork.html#getWifiDevice">getWifiDevice</a></li>
704
705 <li data-name="LuCI.Network.WifiNetwork#getWifiDeviceName"><a href="LuCI.Network.WifiNetwork.html#getWifiDeviceName">getWifiDeviceName</a></li>
706
707 <li data-name="LuCI.Network.WifiNetwork#isClientDisconnectSupported"><a href="LuCI.Network.WifiNetwork.html#isClientDisconnectSupported">isClientDisconnectSupported</a></li>
708
709 <li data-name="LuCI.Network.WifiNetwork#isDisabled"><a href="LuCI.Network.WifiNetwork.html#isDisabled">isDisabled</a></li>
710
711 <li data-name="LuCI.Network.WifiNetwork#isUp"><a href="LuCI.Network.WifiNetwork.html#isUp">isUp</a></li>
712
713 <li data-name="LuCI.Network.WifiNetwork#set"><a href="LuCI.Network.WifiNetwork.html#set">set</a></li>
714
715 </ul>
716 <ul class="events itemMembers">
717
718 </ul>
719 </li>
720
721 <li class="item" data-name="LuCI.Poll">
722 <span class="title">
723 <a href="LuCI.Poll.html">LuCI.Poll</a>
724
725 </span>
726 <ul class="members itemMembers">
727
728 </ul>
729 <ul class="typedefs itemMembers">
730
731 </ul>
732 <ul class="typedefs itemMembers">
733
734 </ul>
735 <ul class="methods itemMembers">
736
737 <span class="subtitle">Methods</span>
738
739 <li data-name="LuCI.Poll#active"><a href="LuCI.Poll.html#active">active</a></li>
740
741 <li data-name="LuCI.Poll#add"><a href="LuCI.Poll.html#add">add</a></li>
742
743 <li data-name="LuCI.Poll#remove"><a href="LuCI.Poll.html#remove">remove</a></li>
744
745 <li data-name="LuCI.Poll#start"><a href="LuCI.Poll.html#start">start</a></li>
746
747 <li data-name="LuCI.Poll#stop"><a href="LuCI.Poll.html#stop">stop</a></li>
748
749 </ul>
750 <ul class="events itemMembers">
751
752 </ul>
753 </li>
754
755 <li class="item" data-name="LuCI.Request">
756 <span class="title">
757 <a href="LuCI.Request.html">LuCI.Request</a>
758
759 </span>
760 <ul class="members itemMembers">
761
762 </ul>
763 <ul class="typedefs itemMembers">
764
765 <span class="subtitle">Typedefs</span>
766
767 <li data-name="LuCI.Request.interceptorFn"><a href="LuCI.Request.html#.interceptorFn">interceptorFn</a></li>
768
769 <li data-name="LuCI.Request.RequestOptions"><a href="LuCI.Request.html#.RequestOptions">RequestOptions</a></li>
770
771 </ul>
772 <ul class="typedefs itemMembers">
773
774 </ul>
775 <ul class="methods itemMembers">
776
777 <span class="subtitle">Methods</span>
778
779 <li data-name="LuCI.Request#addInterceptor"><a href="LuCI.Request.html#addInterceptor">addInterceptor</a></li>
780
781 <li data-name="LuCI.Request#expandURL"><a href="LuCI.Request.html#expandURL">expandURL</a></li>
782
783 <li data-name="LuCI.Request#get"><a href="LuCI.Request.html#get">get</a></li>
784
785 <li data-name="LuCI.Request#post"><a href="LuCI.Request.html#post">post</a></li>
786
787 <li data-name="LuCI.Request#removeInterceptor"><a href="LuCI.Request.html#removeInterceptor">removeInterceptor</a></li>
788
789 <li data-name="LuCI.Request#request"><a href="LuCI.Request.html#request">request</a></li>
790
791 </ul>
792 <ul class="events itemMembers">
793
794 </ul>
795 </li>
796
797 <li class="item" data-name="LuCI.Request.poll">
798 <span class="title">
799 <a href="LuCI.Request.poll.html">LuCI.Request.poll</a>
800
801 </span>
802 <ul class="members itemMembers">
803
804 </ul>
805 <ul class="typedefs itemMembers">
806
807 <span class="subtitle">Typedefs</span>
808
809 <li data-name="LuCI.Request.poll~callbackFn"><a href="LuCI.Request.poll.html#~callbackFn">callbackFn</a></li>
810
811 </ul>
812 <ul class="typedefs itemMembers">
813
814 </ul>
815 <ul class="methods itemMembers">
816
817 <span class="subtitle">Methods</span>
818
819 <li data-name="LuCI.Request.poll#active"><a href="LuCI.Request.poll.html#active">active</a></li>
820
821 <li data-name="LuCI.Request.poll#add"><a href="LuCI.Request.poll.html#add">add</a></li>
822
823 <li data-name="LuCI.Request.poll#remove"><a href="LuCI.Request.poll.html#remove">remove</a></li>
824
825 <li data-name="LuCI.Request.poll#start"><a href="LuCI.Request.poll.html#start">start</a></li>
826
827 <li data-name="LuCI.Request.poll#stop"><a href="LuCI.Request.poll.html#stop">stop</a></li>
828
829 </ul>
830 <ul class="events itemMembers">
831
832 </ul>
833 </li>
834
835 <li class="item" data-name="LuCI.Response">
836 <span class="title">
837 <a href="LuCI.Response.html">LuCI.Response</a>
838
839 </span>
840 <ul class="members itemMembers">
841
842 <span class="subtitle">Members</span>
843
844 <li data-name="LuCI.Response#duration"><a href="LuCI.Response.html#duration">duration</a></li>
845
846 <li data-name="LuCI.Response#headers"><a href="LuCI.Response.html#headers">headers</a></li>
847
848 <li data-name="LuCI.Response#ok"><a href="LuCI.Response.html#ok">ok</a></li>
849
850 <li data-name="LuCI.Response#status"><a href="LuCI.Response.html#status">status</a></li>
851
852 <li data-name="LuCI.Response#statusText"><a href="LuCI.Response.html#statusText">statusText</a></li>
853
854 <li data-name="LuCI.Response#url"><a href="LuCI.Response.html#url">url</a></li>
855
856 </ul>
857 <ul class="typedefs itemMembers">
858
859 </ul>
860 <ul class="typedefs itemMembers">
861
862 </ul>
863 <ul class="methods itemMembers">
864
865 <span class="subtitle">Methods</span>
866
867 <li data-name="LuCI.Response#clone"><a href="LuCI.Response.html#clone">clone</a></li>
868
869 <li data-name="LuCI.Response#json"><a href="LuCI.Response.html#json">json</a></li>
870
871 <li data-name="LuCI.Response#text"><a href="LuCI.Response.html#text">text</a></li>
872
873 </ul>
874 <ul class="events itemMembers">
875
876 </ul>
877 </li>
878
879 <li class="item" data-name="LuCI.rpc">
880 <span class="title">
881 <a href="LuCI.rpc.html">LuCI.rpc</a>
882
883 </span>
884 <ul class="members itemMembers">
885
886 </ul>
887 <ul class="typedefs itemMembers">
888
889 <span class="subtitle">Typedefs</span>
890
891 <li data-name="LuCI.rpc.DeclareOptions"><a href="LuCI.rpc.html#.DeclareOptions">DeclareOptions</a></li>
892
893 <li data-name="LuCI.rpc~filterFn"><a href="LuCI.rpc.html#~filterFn">filterFn</a></li>
894
895 <li data-name="LuCI.rpc~interceptorFn"><a href="LuCI.rpc.html#~interceptorFn">interceptorFn</a></li>
896
897 <li data-name="LuCI.rpc~invokeFn"><a href="LuCI.rpc.html#~invokeFn">invokeFn</a></li>
898
899 </ul>
900 <ul class="typedefs itemMembers">
901
902 </ul>
903 <ul class="methods itemMembers">
904
905 <span class="subtitle">Methods</span>
906
907 <li data-name="LuCI.rpc#addInterceptor"><a href="LuCI.rpc.html#addInterceptor">addInterceptor</a></li>
908
909 <li data-name="LuCI.rpc#declare"><a href="LuCI.rpc.html#declare">declare</a></li>
910
911 <li data-name="LuCI.rpc#getBaseURL"><a href="LuCI.rpc.html#getBaseURL">getBaseURL</a></li>
912
913 <li data-name="LuCI.rpc#getSessionID"><a href="LuCI.rpc.html#getSessionID">getSessionID</a></li>
914
915 <li data-name="LuCI.rpc#getStatusText"><a href="LuCI.rpc.html#getStatusText">getStatusText</a></li>
916
917 <li data-name="LuCI.rpc#list"><a href="LuCI.rpc.html#list">list</a></li>
918
919 <li data-name="LuCI.rpc#removeInterceptor"><a href="LuCI.rpc.html#removeInterceptor">removeInterceptor</a></li>
920
921 <li data-name="LuCI.rpc#setBaseURL"><a href="LuCI.rpc.html#setBaseURL">setBaseURL</a></li>
922
923 <li data-name="LuCI.rpc#setSessionID"><a href="LuCI.rpc.html#setSessionID">setSessionID</a></li>
924
925 </ul>
926 <ul class="events itemMembers">
927
928 </ul>
929 </li>
930
931 <li class="item" data-name="LuCI.uci">
932 <span class="title">
933 <a href="LuCI.uci.html">LuCI.uci</a>
934
935 </span>
936 <ul class="members itemMembers">
937
938 </ul>
939 <ul class="typedefs itemMembers">
940
941 <span class="subtitle">Typedefs</span>
942
943 <li data-name="LuCI.uci.ChangeRecord"><a href="LuCI.uci.html#.ChangeRecord">ChangeRecord</a></li>
944
945 <li data-name="LuCI.uci.SectionObject"><a href="LuCI.uci.html#.SectionObject">SectionObject</a></li>
946
947 <li data-name="LuCI.uci~sectionsFn"><a href="LuCI.uci.html#~sectionsFn">sectionsFn</a></li>
948
949 </ul>
950 <ul class="typedefs itemMembers">
951
952 </ul>
953 <ul class="methods itemMembers">
954
955 <span class="subtitle">Methods</span>
956
957 <li data-name="LuCI.uci#add"><a href="LuCI.uci.html#add">add</a></li>
958
959 <li data-name="LuCI.uci#apply"><a href="LuCI.uci.html#apply">apply</a></li>
960
961 <li data-name="LuCI.uci#changes"><a href="LuCI.uci.html#changes">changes</a></li>
962
963 <li data-name="LuCI.uci#createSID"><a href="LuCI.uci.html#createSID">createSID</a></li>
964
965 <li data-name="LuCI.uci#get"><a href="LuCI.uci.html#get">get</a></li>
966
967 <li data-name="LuCI.uci#get_first"><a href="LuCI.uci.html#get_first">get_first</a></li>
968
969 <li data-name="LuCI.uci#load"><a href="LuCI.uci.html#load">load</a></li>
970
971 <li data-name="LuCI.uci#move"><a href="LuCI.uci.html#move">move</a></li>
972
973 <li data-name="LuCI.uci#remove"><a href="LuCI.uci.html#remove">remove</a></li>
974
975 <li data-name="LuCI.uci#resolveSID"><a href="LuCI.uci.html#resolveSID">resolveSID</a></li>
976
977 <li data-name="LuCI.uci#save"><a href="LuCI.uci.html#save">save</a></li>
978
979 <li data-name="LuCI.uci#sections"><a href="LuCI.uci.html#sections">sections</a></li>
980
981 <li data-name="LuCI.uci#set"><a href="LuCI.uci.html#set">set</a></li>
982
983 <li data-name="LuCI.uci#set_first"><a href="LuCI.uci.html#set_first">set_first</a></li>
984
985 <li data-name="LuCI.uci#unload"><a href="LuCI.uci.html#unload">unload</a></li>
986
987 <li data-name="LuCI.uci#unset"><a href="LuCI.uci.html#unset">unset</a></li>
988
989 <li data-name="LuCI.uci#unset_first"><a href="LuCI.uci.html#unset_first">unset_first</a></li>
990
991 </ul>
992 <ul class="events itemMembers">
993
994 </ul>
995 </li>
996
997 <li class="item" data-name="LuCI.view">
998 <span class="title">
999 <a href="LuCI.view.html">LuCI.view</a>
1000
1001 </span>
1002 <ul class="members itemMembers">
1003
1004 </ul>
1005 <ul class="typedefs itemMembers">
1006
1007 </ul>
1008 <ul class="typedefs itemMembers">
1009
1010 </ul>
1011 <ul class="methods itemMembers">
1012
1013 <span class="subtitle">Methods</span>
1014
1015 <li data-name="LuCI.view#addFooter"><a href="LuCI.view.html#addFooter">addFooter</a></li>
1016
1017 <li data-name="LuCI.view#handleReset"><a href="LuCI.view.html#handleReset">handleReset</a></li>
1018
1019 <li data-name="LuCI.view#handleSave"><a href="LuCI.view.html#handleSave">handleSave</a></li>
1020
1021 <li data-name="LuCI.view#handleSaveApply"><a href="LuCI.view.html#handleSaveApply">handleSaveApply</a></li>
1022
1023 <li data-name="LuCI.view#load"><a href="LuCI.view.html#load">load</a></li>
1024
1025 <li data-name="LuCI.view#render"><a href="LuCI.view.html#render">render</a></li>
1026
1027 </ul>
1028 <ul class="events itemMembers">
1029
1030 </ul>
1031 </li>
1032
1033 <li class="item" data-name="LuCI.XHR">
1034 <span class="title">
1035 <a href="LuCI.XHR.html">LuCI.XHR</a>
1036
1037 </span>
1038 <ul class="members itemMembers">
1039
1040 </ul>
1041 <ul class="typedefs itemMembers">
1042
1043 </ul>
1044 <ul class="typedefs itemMembers">
1045
1046 </ul>
1047 <ul class="methods itemMembers">
1048
1049 <span class="subtitle">Methods</span>
1050
1051 <li data-name="LuCI.XHR#abort"><a href="LuCI.XHR.html#abort">abort</a></li>
1052
1053 <li data-name="LuCI.XHR#busy"><a href="LuCI.XHR.html#busy">busy</a></li>
1054
1055 <li data-name="LuCI.XHR#cancel"><a href="LuCI.XHR.html#cancel">cancel</a></li>
1056
1057 <li data-name="LuCI.XHR#get"><a href="LuCI.XHR.html#get">get</a></li>
1058
1059 <li data-name="LuCI.XHR#post"><a href="LuCI.XHR.html#post">post</a></li>
1060
1061 <li data-name="LuCI.XHR#send_form"><a href="LuCI.XHR.html#send_form">send_form</a></li>
1062
1063 </ul>
1064 <ul class="events itemMembers">
1065
1066 </ul>
1067 </li>
1068
1069 </ul>
1070 </div>
1071 <div class="main">
1072 <h1 class="page-title" data-filename="LuCI.Network.Device.html">Class: Device</h1>
1073
1074
1075
1076
1077 <section>
1078
1079 <header>
1080 <h2>
1081 <span class="ancestors"><a href="LuCI.html">LuCI</a><a href="LuCI.Network.html">.Network</a>.</span>
1082
1083 Device
1084 </h2>
1085
1086 <div class="class-description"><p>A <code>Network.Device</code> class instance represents an underlying Linux network
1087 device and allows querying device details such as packet statistics or MTU.</p></div>
1088
1089 </header>
1090
1091 <article>
1092 <div class="container-overview">
1093
1094
1095
1096
1097 <dt>
1098 <div class="nameContainer">
1099 <h4 class="name" id="Device">
1100
1101 new LuCI.Network.Device<span class="signature">()</span>
1102 </h4>
1103
1104
1105 <div class="tag-source">
1106 network.js, line 2649
1107 </div>
1108
1109 </div>
1110
1111
1112 </dt>
1113 <dd>
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124 <dl class="details">
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146 </dl>
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160 </dd>
1161
1162
1163 </div>
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178 <h3 class="subsection-title">Methods</h3>
1179
1180 <dl>
1181
1182 <dt>
1183 <div class="nameContainer">
1184 <h4 class="name" id="getBridgeID">
1185
1186 getBridgeID<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{null|string}</span>
1187 </h4>
1188
1189
1190 <div class="tag-source">
1191 network.js, line 2856
1192 </div>
1193
1194 </div>
1195
1196
1197 </dt>
1198 <dd>
1199
1200
1201 <div class="description">
1202 <p>Get the bridge ID</p>
1203 </div>
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213 <dl class="details">
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235 </dl>
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247 <h5>Returns:</h5>
1248
1249
1250
1251 <table class="params">
1252 <thead>
1253 <tr>
1254
1255 <th>Type</th>
1256 <th class="last">Description</th>
1257 </tr>
1258 </thead>
1259 <tbody>
1260
1261 <tr>
1262
1263 <td class="type">
1264
1265 null
1266 |
1267
1268 string
1269
1270
1271 </td>
1272 <td class="description last">Returns the ID of this network bridge or <code>null</code> if this network
1273 device is not a Linux bridge.</td>
1274 </tr>
1275
1276 </tbody>
1277 </table>
1278
1279
1280
1281
1282 </dd>
1283
1284
1285
1286 <dt>
1287 <div class="nameContainer">
1288 <h4 class="name" id="getBridgeSTP">
1289
1290 getBridgeSTP<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{boolean}</span>
1291 </h4>
1292
1293
1294 <div class="tag-source">
1295 network.js, line 2868
1296 </div>
1297
1298 </div>
1299
1300
1301 </dt>
1302 <dd>
1303
1304
1305 <div class="description">
1306 <p>Get the bridge STP setting</p>
1307 </div>
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317 <dl class="details">
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339 </dl>
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351 <h5>Returns:</h5>
1352
1353
1354
1355 <table class="params">
1356 <thead>
1357 <tr>
1358
1359 <th>Type</th>
1360 <th class="last">Description</th>
1361 </tr>
1362 </thead>
1363 <tbody>
1364
1365 <tr>
1366
1367 <td class="type">
1368
1369 boolean
1370
1371
1372 </td>
1373 <td class="description last">Returns <code>true</code> when this device is a Linux bridge and has <code>stp</code>
1374 enabled, else <code>false</code>.</td>
1375 </tr>
1376
1377 </tbody>
1378 </table>
1379
1380
1381
1382
1383 </dd>
1384
1385
1386
1387 <dt>
1388 <div class="nameContainer">
1389 <h4 class="name" id="getI18n">
1390
1391 getI18n<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{string}</span>
1392 </h4>
1393
1394
1395 <div class="tag-source">
1396 network.js, line 2783
1397 </div>
1398
1399 </div>
1400
1401
1402 </dt>
1403 <dd>
1404
1405
1406 <div class="description">
1407 <p>Get a long description string for the device.</p>
1408 </div>
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418 <dl class="details">
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440 </dl>
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452 <h5>Returns:</h5>
1453
1454
1455
1456 <table class="params">
1457 <thead>
1458 <tr>
1459
1460 <th>Type</th>
1461 <th class="last">Description</th>
1462 </tr>
1463 </thead>
1464 <tbody>
1465
1466 <tr>
1467
1468 <td class="type">
1469
1470 string
1471
1472
1473 </td>
1474 <td class="description last">Returns a string containing the type description and device name
1475 for non-wifi devices or operation mode and ssid for wifi ones.</td>
1476 </tr>
1477
1478 </tbody>
1479 </table>
1480
1481
1482
1483
1484 </dd>
1485
1486
1487
1488 <dt>
1489 <div class="nameContainer">
1490 <h4 class="name" id="getIP6Addrs">
1491
1492 getIP6Addrs<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Array.&lt;string>}</span>
1493 </h4>
1494
1495
1496 <div class="tag-source">
1497 network.js, line 2727
1498 </div>
1499
1500 </div>
1501
1502
1503 </dt>
1504 <dd>
1505
1506
1507 <div class="description">
1508 <p>Get the IPv6 addresses configured on the device.</p>
1509 </div>
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519 <dl class="details">
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541 </dl>
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553 <h5>Returns:</h5>
1554
1555
1556
1557 <table class="params">
1558 <thead>
1559 <tr>
1560
1561 <th>Type</th>
1562 <th class="last">Description</th>
1563 </tr>
1564 </thead>
1565 <tbody>
1566
1567 <tr>
1568
1569 <td class="type">
1570
1571 Array.&lt;string>
1572
1573
1574 </td>
1575 <td class="description last">Returns an array of IPv6 address strings.</td>
1576 </tr>
1577
1578 </tbody>
1579 </table>
1580
1581
1582
1583
1584 </dd>
1585
1586
1587
1588 <dt>
1589 <div class="nameContainer">
1590 <h4 class="name" id="getIPAddrs">
1591
1592 getIPAddrs<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Array.&lt;string>}</span>
1593 </h4>
1594
1595
1596 <div class="tag-source">
1597 network.js, line 2716
1598 </div>
1599
1600 </div>
1601
1602
1603 </dt>
1604 <dd>
1605
1606
1607 <div class="description">
1608 <p>Get the IPv4 addresses configured on the device.</p>
1609 </div>
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619 <dl class="details">
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641 </dl>
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653 <h5>Returns:</h5>
1654
1655
1656
1657 <table class="params">
1658 <thead>
1659 <tr>
1660
1661 <th>Type</th>
1662 <th class="last">Description</th>
1663 </tr>
1664 </thead>
1665 <tbody>
1666
1667 <tr>
1668
1669 <td class="type">
1670
1671 Array.&lt;string>
1672
1673
1674 </td>
1675 <td class="description last">Returns an array of IPv4 address strings.</td>
1676 </tr>
1677
1678 </tbody>
1679 </table>
1680
1681
1682
1683
1684 </dd>
1685
1686
1687
1688 <dt>
1689 <div class="nameContainer">
1690 <h4 class="name" id="getMAC">
1691
1692 getMAC<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{null|string}</span>
1693 </h4>
1694
1695
1696 <div class="tag-source">
1697 network.js, line 2695
1698 </div>
1699
1700 </div>
1701
1702
1703 </dt>
1704 <dd>
1705
1706
1707 <div class="description">
1708 <p>Get the MAC address of the device.</p>
1709 </div>
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719 <dl class="details">
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741 </dl>
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753 <h5>Returns:</h5>
1754
1755
1756
1757 <table class="params">
1758 <thead>
1759 <tr>
1760
1761 <th>Type</th>
1762 <th class="last">Description</th>
1763 </tr>
1764 </thead>
1765 <tbody>
1766
1767 <tr>
1768
1769 <td class="type">
1770
1771 null
1772 |
1773
1774 string
1775
1776
1777 </td>
1778 <td class="description last">Returns the MAC address of the device or <code>null</code> if not applicable,
1779 e.g. for non-ethernet tunnel devices.</td>
1780 </tr>
1781
1782 </tbody>
1783 </table>
1784
1785
1786
1787
1788 </dd>
1789
1790
1791
1792 <dt>
1793 <div class="nameContainer">
1794 <h4 class="name" id="getMTU">
1795
1796 getMTU<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{number}</span>
1797 </h4>
1798
1799
1800 <div class="tag-source">
1801 network.js, line 2706
1802 </div>
1803
1804 </div>
1805
1806
1807 </dt>
1808 <dd>
1809
1810
1811 <div class="description">
1812 <p>Get the MTU of the device.</p>
1813 </div>
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823 <dl class="details">
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845 </dl>
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857 <h5>Returns:</h5>
1858
1859
1860
1861 <table class="params">
1862 <thead>
1863 <tr>
1864
1865 <th>Type</th>
1866 <th class="last">Description</th>
1867 </tr>
1868 </thead>
1869 <tbody>
1870
1871 <tr>
1872
1873 <td class="type">
1874
1875 number
1876
1877
1878 </td>
1879 <td class="description last">Returns the MTU of the device.</td>
1880 </tr>
1881
1882 </tbody>
1883 </table>
1884
1885
1886
1887
1888 </dd>
1889
1890
1891
1892 <dt>
1893 <div class="nameContainer">
1894 <h4 class="name" id="getName">
1895
1896 getName<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{string}</span>
1897 </h4>
1898
1899
1900 <div class="tag-source">
1901 network.js, line 2684
1902 </div>
1903
1904 </div>
1905
1906
1907 </dt>
1908 <dd>
1909
1910
1911 <div class="description">
1912 <p>Get the name of the network device.</p>
1913 </div>
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923 <dl class="details">
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945 </dl>
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957 <h5>Returns:</h5>
1958
1959
1960
1961 <table class="params">
1962 <thead>
1963 <tr>
1964
1965 <th>Type</th>
1966 <th class="last">Description</th>
1967 </tr>
1968 </thead>
1969 <tbody>
1970
1971 <tr>
1972
1973 <td class="type">
1974
1975 string
1976
1977
1978 </td>
1979 <td class="description last">Returns the name of the device, e.g. <code>eth0</code> or <code>wlan0</code>.</td>
1980 </tr>
1981
1982 </tbody>
1983 </table>
1984
1985
1986
1987
1988 </dd>
1989
1990
1991
1992 <dt>
1993 <div class="nameContainer">
1994 <h4 class="name" id="getNetwork">
1995
1996 getNetwork<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{null|<a href="LuCI.Network.Protocol.html">LuCI.Network.Protocol</a>}</span>
1997 </h4>
1998
1999
2000 <div class="tag-source">
2001 network.js, line 2963
2002 </div>
2003
2004 </div>
2005
2006
2007 </dt>
2008 <dd>
2009
2010
2011 <div class="description">
2012 <p>Get the primary logical interface this device is assigned to.</p>
2013 </div>
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023 <dl class="details">
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045 </dl>
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057 <h5>Returns:</h5>
2058
2059
2060
2061 <table class="params">
2062 <thead>
2063 <tr>
2064
2065 <th>Type</th>
2066 <th class="last">Description</th>
2067 </tr>
2068 </thead>
2069 <tbody>
2070
2071 <tr>
2072
2073 <td class="type">
2074
2075 null
2076 |
2077
2078 <a href="LuCI.Network.Protocol.html">LuCI.Network.Protocol</a>
2079
2080
2081 </td>
2082 <td class="description last">Returns a <code>Network.Protocol</code> instance representing the logical
2083 interface this device is attached to or <code>null</code> if it is not
2084 assigned to any logical interface.</td>
2085 </tr>
2086
2087 </tbody>
2088 </table>
2089
2090
2091
2092
2093 </dd>
2094
2095
2096
2097 <dt>
2098 <div class="nameContainer">
2099 <h4 class="name" id="getNetworks">
2100
2101 getNetworks<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Array.&lt;<a href="LuCI.Network.Protocol.html">LuCI.Network.Protocol</a>>}</span>
2102 </h4>
2103
2104
2105 <div class="tag-source">
2106 network.js, line 2974
2107 </div>
2108
2109 </div>
2110
2111
2112 </dt>
2113 <dd>
2114
2115
2116 <div class="description">
2117 <p>Get the logical interfaces this device is assigned to.</p>
2118 </div>
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128 <dl class="details">
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150 </dl>
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162 <h5>Returns:</h5>
2163
2164
2165
2166 <table class="params">
2167 <thead>
2168 <tr>
2169
2170 <th>Type</th>
2171 <th class="last">Description</th>
2172 </tr>
2173 </thead>
2174 <tbody>
2175
2176 <tr>
2177
2178 <td class="type">
2179
2180 Array.&lt;<a href="LuCI.Network.Protocol.html">LuCI.Network.Protocol</a>>
2181
2182
2183 </td>
2184 <td class="description last">Returns an array of <code>Network.Protocol</code> instances representing the
2185 logical interfaces this device is assigned to.</td>
2186 </tr>
2187
2188 </tbody>
2189 </table>
2190
2191
2192
2193
2194 </dd>
2195
2196
2197
2198 <dt>
2199 <div class="nameContainer">
2200 <h4 class="name" id="getPorts">
2201
2202 getPorts<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{null|Array.&lt;<a href="LuCI.Network.Device.html">LuCI.Network.Device</a>>}</span>
2203 </h4>
2204
2205
2206 <div class="tag-source">
2207 network.js, line 2834
2208 </div>
2209
2210 </div>
2211
2212
2213 </dt>
2214 <dd>
2215
2216
2217 <div class="description">
2218 <p>Get the associated bridge ports of the device.</p>
2219 </div>
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229 <dl class="details">
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251 </dl>
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263 <h5>Returns:</h5>
2264
2265
2266
2267 <table class="params">
2268 <thead>
2269 <tr>
2270
2271 <th>Type</th>
2272 <th class="last">Description</th>
2273 </tr>
2274 </thead>
2275 <tbody>
2276
2277 <tr>
2278
2279 <td class="type">
2280
2281 null
2282 |
2283
2284 Array.&lt;<a href="LuCI.Network.Device.html">LuCI.Network.Device</a>>
2285
2286
2287 </td>
2288 <td class="description last">Returns an array of <code>Network.Device</code> instances representing the ports
2289 (slave interfaces) of the bridge or <code>null</code> when this device isn't
2290 a Linux bridge.</td>
2291 </tr>
2292
2293 </tbody>
2294 </table>
2295
2296
2297
2298
2299 </dd>
2300
2301
2302
2303 <dt>
2304 <div class="nameContainer">
2305 <h4 class="name" id="getRXBytes">
2306
2307 getRXBytes<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{number}</span>
2308 </h4>
2309
2310
2311 <div class="tag-source">
2312 network.js, line 2928
2313 </div>
2314
2315 </div>
2316
2317
2318 </dt>
2319 <dd>
2320
2321
2322 <div class="description">
2323 <p>Get the amount of received bytes.</p>
2324 </div>
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334 <dl class="details">
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356 </dl>
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368 <h5>Returns:</h5>
2369
2370
2371
2372 <table class="params">
2373 <thead>
2374 <tr>
2375
2376 <th>Type</th>
2377 <th class="last">Description</th>
2378 </tr>
2379 </thead>
2380 <tbody>
2381
2382 <tr>
2383
2384 <td class="type">
2385
2386 number
2387
2388
2389 </td>
2390 <td class="description last">Returns the amount of bytes received by the network device.</td>
2391 </tr>
2392
2393 </tbody>
2394 </table>
2395
2396
2397
2398
2399 </dd>
2400
2401
2402
2403 <dt>
2404 <div class="nameContainer">
2405 <h4 class="name" id="getRXPackets">
2406
2407 getRXPackets<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{number}</span>
2408 </h4>
2409
2410
2411 <div class="tag-source">
2412 network.js, line 2950
2413 </div>
2414
2415 </div>
2416
2417
2418 </dt>
2419 <dd>
2420
2421
2422 <div class="description">
2423 <p>Get the amount of received packets.</p>
2424 </div>
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434 <dl class="details">
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456 </dl>
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468 <h5>Returns:</h5>
2469
2470
2471
2472 <table class="params">
2473 <thead>
2474 <tr>
2475
2476 <th>Type</th>
2477 <th class="last">Description</th>
2478 </tr>
2479 </thead>
2480 <tbody>
2481
2482 <tr>
2483
2484 <td class="type">
2485
2486 number
2487
2488
2489 </td>
2490 <td class="description last">Returns the amount of packets received by the network device.</td>
2491 </tr>
2492
2493 </tbody>
2494 </table>
2495
2496
2497
2498
2499 </dd>
2500
2501
2502
2503 <dt>
2504 <div class="nameContainer">
2505 <h4 class="name" id="getShortName">
2506
2507 getShortName<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{string}</span>
2508 </h4>
2509
2510
2511 <div class="tag-source">
2512 network.js, line 2769
2513 </div>
2514
2515 </div>
2516
2517
2518 </dt>
2519 <dd>
2520
2521
2522 <div class="description">
2523 <p>Get a short description string for the device.</p>
2524 </div>
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534 <dl class="details">
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556 </dl>
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568 <h5>Returns:</h5>
2569
2570
2571
2572 <table class="params">
2573 <thead>
2574 <tr>
2575
2576 <th>Type</th>
2577 <th class="last">Description</th>
2578 </tr>
2579 </thead>
2580 <tbody>
2581
2582 <tr>
2583
2584 <td class="type">
2585
2586 string
2587
2588
2589 </td>
2590 <td class="description last">Returns the device name for non-wifi devices or a string containing
2591 the operation mode and SSID for wifi devices.</td>
2592 </tr>
2593
2594 </tbody>
2595 </table>
2596
2597
2598
2599
2600 </dd>
2601
2602
2603
2604 <dt>
2605 <div class="nameContainer">
2606 <h4 class="name" id="getTXBytes">
2607
2608 getTXBytes<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{number}</span>
2609 </h4>
2610
2611
2612 <div class="tag-source">
2613 network.js, line 2917
2614 </div>
2615
2616 </div>
2617
2618
2619 </dt>
2620 <dd>
2621
2622
2623 <div class="description">
2624 <p>Get the amount of transmitted bytes.</p>
2625 </div>
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635 <dl class="details">
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657 </dl>
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669 <h5>Returns:</h5>
2670
2671
2672
2673 <table class="params">
2674 <thead>
2675 <tr>
2676
2677 <th>Type</th>
2678 <th class="last">Description</th>
2679 </tr>
2680 </thead>
2681 <tbody>
2682
2683 <tr>
2684
2685 <td class="type">
2686
2687 number
2688
2689
2690 </td>
2691 <td class="description last">Returns the amount of bytes transmitted by the network device.</td>
2692 </tr>
2693
2694 </tbody>
2695 </table>
2696
2697
2698
2699
2700 </dd>
2701
2702
2703
2704 <dt>
2705 <div class="nameContainer">
2706 <h4 class="name" id="getTXPackets">
2707
2708 getTXPackets<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{number}</span>
2709 </h4>
2710
2711
2712 <div class="tag-source">
2713 network.js, line 2939
2714 </div>
2715
2716 </div>
2717
2718
2719 </dt>
2720 <dd>
2721
2722
2723 <div class="description">
2724 <p>Get the amount of transmitted packets.</p>
2725 </div>
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735 <dl class="details">
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757 </dl>
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769 <h5>Returns:</h5>
2770
2771
2772
2773 <table class="params">
2774 <thead>
2775 <tr>
2776
2777 <th>Type</th>
2778 <th class="last">Description</th>
2779 </tr>
2780 </thead>
2781 <tbody>
2782
2783 <tr>
2784
2785 <td class="type">
2786
2787 number
2788
2789
2790 </td>
2791 <td class="description last">Returns the amount of packets transmitted by the network device.</td>
2792 </tr>
2793
2794 </tbody>
2795 </table>
2796
2797
2798
2799
2800 </dd>
2801
2802
2803
2804 <dt>
2805 <div class="nameContainer">
2806 <h4 class="name" id="getType">
2807
2808 getType<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{string}</span>
2809 </h4>
2810
2811
2812 <div class="tag-source">
2813 network.js, line 2745
2814 </div>
2815
2816 </div>
2817
2818
2819 </dt>
2820 <dd>
2821
2822
2823 <div class="description">
2824 <p>Get the type of the device..</p>
2825 </div>
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835 <dl class="details">
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857 </dl>
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869 <h5>Returns:</h5>
2870
2871
2872
2873 <table class="params">
2874 <thead>
2875 <tr>
2876
2877 <th>Type</th>
2878 <th class="last">Description</th>
2879 </tr>
2880 </thead>
2881 <tbody>
2882
2883 <tr>
2884
2885 <td class="type">
2886
2887 string
2888
2889
2890 </td>
2891 <td class="description last">Returns a string describing the type of the network device:
2892 <ul>
2893 <li><code>alias</code> if it is an abstract alias device (<code>@</code> notation)</li>
2894 <li><code>wifi</code> if it is a wireless interface (e.g. <code>wlan0</code>)</li>
2895 <li><code>bridge</code> if it is a bridge device (e.g. <code>br-lan</code>)</li>
2896 <li><code>tunnel</code> if it is a tun or tap device (e.g. <code>tun0</code>)</li>
2897 <li><code>vlan</code> if it is a vlan device (e.g. <code>eth0.1</code>)</li>
2898 <li><code>switch</code> if it is a switch device (e.g.<code>eth1</code> connected to switch0)</li>
2899 <li><code>ethernet</code> for all other device types</li>
2900 </ul></td>
2901 </tr>
2902
2903 </tbody>
2904 </table>
2905
2906
2907
2908
2909 </dd>
2910
2911
2912
2913 <dt>
2914 <div class="nameContainer">
2915 <h4 class="name" id="getTypeI18n">
2916
2917 getTypeI18n<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{string}</span>
2918 </h4>
2919
2920
2921 <div class="tag-source">
2922 network.js, line 2801
2923 </div>
2924
2925 </div>
2926
2927
2928 </dt>
2929 <dd>
2930
2931
2932 <div class="description">
2933 <p>Get a string describing the device type.</p>
2934 </div>
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944 <dl class="details">
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966 </dl>
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978 <h5>Returns:</h5>
2979
2980
2981
2982 <table class="params">
2983 <thead>
2984 <tr>
2985
2986 <th>Type</th>
2987 <th class="last">Description</th>
2988 </tr>
2989 </thead>
2990 <tbody>
2991
2992 <tr>
2993
2994 <td class="type">
2995
2996 string
2997
2998
2999 </td>
3000 <td class="description last">Returns a string describing the type, e.g. &quot;Wireless Adapter&quot; or
3001 &quot;Bridge&quot;.</td>
3002 </tr>
3003
3004 </tbody>
3005 </table>
3006
3007
3008
3009
3010 </dd>
3011
3012
3013
3014 <dt>
3015 <div class="nameContainer">
3016 <h4 class="name" id="getWifiNetwork">
3017
3018 getWifiNetwork<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{null|<a href="LuCI.Network.WifiNetwork.html">LuCI.Network.WifiNetwork</a>}</span>
3019 </h4>
3020
3021
3022 <div class="tag-source">
3023 network.js, line 2998
3024 </div>
3025
3026 </div>
3027
3028
3029 </dt>
3030 <dd>
3031
3032
3033 <div class="description">
3034 <p>Get the related wireless network this device is related to.</p>
3035 </div>
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045 <dl class="details">
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067 </dl>
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079 <h5>Returns:</h5>
3080
3081
3082
3083 <table class="params">
3084 <thead>
3085 <tr>
3086
3087 <th>Type</th>
3088 <th class="last">Description</th>
3089 </tr>
3090 </thead>
3091 <tbody>
3092
3093 <tr>
3094
3095 <td class="type">
3096
3097 null
3098 |
3099
3100 <a href="LuCI.Network.WifiNetwork.html">LuCI.Network.WifiNetwork</a>
3101
3102
3103 </td>
3104 <td class="description last">Returns a <code>Network.WifiNetwork</code> instance representing the wireless
3105 network corresponding to this network device or <code>null</code> if this device
3106 is not a wireless device.</td>
3107 </tr>
3108
3109 </tbody>
3110 </table>
3111
3112
3113
3114
3115 </dd>
3116
3117
3118
3119 <dt>
3120 <div class="nameContainer">
3121 <h4 class="name" id="isBridge">
3122
3123 isBridge<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{boolean}</span>
3124 </h4>
3125
3126
3127 <div class="tag-source">
3128 network.js, line 2896
3129 </div>
3130
3131 </div>
3132
3133
3134 </dt>
3135 <dd>
3136
3137
3138 <div class="description">
3139 <p>Checks whether this device is a Linux bridge.</p>
3140 </div>
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150 <dl class="details">
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172 </dl>
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184 <h5>Returns:</h5>
3185
3186
3187
3188 <table class="params">
3189 <thead>
3190 <tr>
3191
3192 <th>Type</th>
3193 <th class="last">Description</th>
3194 </tr>
3195 </thead>
3196 <tbody>
3197
3198 <tr>
3199
3200 <td class="type">
3201
3202 boolean
3203
3204
3205 </td>
3206 <td class="description last">Returns <code>true</code> when the network device is present and a Linux bridge,
3207 else <code>false</code>.</td>
3208 </tr>
3209
3210 </tbody>
3211 </table>
3212
3213
3214
3215
3216 </dd>
3217
3218
3219
3220 <dt>
3221 <div class="nameContainer">
3222 <h4 class="name" id="isBridgePort">
3223
3224 isBridgePort<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{boolean}</span>
3225 </h4>
3226
3227
3228 <div class="tag-source">
3229 network.js, line 2907
3230 </div>
3231
3232 </div>
3233
3234
3235 </dt>
3236 <dd>
3237
3238
3239 <div class="description">
3240 <p>Checks whether this device is part of a Linux bridge.</p>
3241 </div>
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251 <dl class="details">
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273 </dl>
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285 <h5>Returns:</h5>
3286
3287
3288
3289 <table class="params">
3290 <thead>
3291 <tr>
3292
3293 <th>Type</th>
3294 <th class="last">Description</th>
3295 </tr>
3296 </thead>
3297 <tbody>
3298
3299 <tr>
3300
3301 <td class="type">
3302
3303 boolean
3304
3305
3306 </td>
3307 <td class="description last">Returns <code>true</code> when this network device is part of a bridge,
3308 else <code>false</code>.</td>
3309 </tr>
3310
3311 </tbody>
3312 </table>
3313
3314
3315
3316
3317 </dd>
3318
3319
3320
3321 <dt>
3322 <div class="nameContainer">
3323 <h4 class="name" id="isUp">
3324
3325 isUp<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{boolean}</span>
3326 </h4>
3327
3328
3329 <div class="tag-source">
3330 network.js, line 2880
3331 </div>
3332
3333 </div>
3334
3335
3336 </dt>
3337 <dd>
3338
3339
3340 <div class="description">
3341 <p>Checks whether this device is up.</p>
3342 </div>
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352 <dl class="details">
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374 </dl>
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386 <h5>Returns:</h5>
3387
3388
3389
3390 <table class="params">
3391 <thead>
3392 <tr>
3393
3394 <th>Type</th>
3395 <th class="last">Description</th>
3396 </tr>
3397 </thead>
3398 <tbody>
3399
3400 <tr>
3401
3402 <td class="type">
3403
3404 boolean
3405
3406
3407 </td>
3408 <td class="description last">Returns <code>true</code> when the associated device is running pr <code>false</code>
3409 when it is down or absent.</td>
3410 </tr>
3411
3412 </tbody>
3413 </table>
3414
3415
3416
3417
3418 </dd>
3419
3420 </dl>
3421
3422
3423
3424
3425
3426
3427
3428 </article>
3429
3430 </section>
3431
3432
3433
3434
3435
3436
3437
3438 <footer>
3439 Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Thu Nov 07 2019 12:20:51 GMT+0100 (Central European Standard Time)
3440 </footer>
3441 </div>
3442 </div>
3443 <script>prettyPrint();</script>
3444 <script src="scripts/jaguar.js"></script>
3445 </body>
3446 </html>