5 <title>Class: Protocol</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#env"><a href="LuCI.html#env">env</a></li>
49 <ul class="typedefs itemMembers">
51 <span class="subtitle">Typedefs</span>
53 <li data-name="LuCI.requestCallbackFn"><a href="LuCI.html#.requestCallbackFn">requestCallbackFn</a></li>
56 <ul class="typedefs itemMembers">
59 <ul class="methods itemMembers">
61 <span class="subtitle">Methods</span>
63 <li data-name="LuCI#bind"><a href="LuCI.html#bind">bind</a></li>
65 <li data-name="LuCI#error"><a href="LuCI.html#error">error</a></li>
67 <li data-name="LuCI#get"><a href="LuCI.html#get">get</a></li>
69 <li data-name="LuCI#halt"><a href="LuCI.html#halt">halt</a></li>
71 <li data-name="LuCI#hasSystemFeature"><a href="LuCI.html#hasSystemFeature">hasSystemFeature</a></li>
73 <li data-name="LuCI#isObject"><a href="LuCI.html#isObject">isObject</a></li>
75 <li data-name="LuCI#location"><a href="LuCI.html#location">location</a></li>
77 <li data-name="LuCI#path"><a href="LuCI.html#path">path</a></li>
79 <li data-name="LuCI#poll"><a href="LuCI.html#poll">poll</a></li>
81 <li data-name="LuCI#post"><a href="LuCI.html#post">post</a></li>
83 <li data-name="LuCI#raise"><a href="LuCI.html#raise">raise</a></li>
85 <li data-name="LuCI#require"><a href="LuCI.html#require">require</a></li>
87 <li data-name="LuCI#resolveDefault"><a href="LuCI.html#resolveDefault">resolveDefault</a></li>
89 <li data-name="LuCI#resource"><a href="LuCI.html#resource">resource</a></li>
91 <li data-name="LuCI#run"><a href="LuCI.html#run">run</a></li>
93 <li data-name="LuCI#sortedKeys"><a href="LuCI.html#sortedKeys">sortedKeys</a></li>
95 <li data-name="LuCI#stop"><a href="LuCI.html#stop">stop</a></li>
97 <li data-name="LuCI#toArray"><a href="LuCI.html#toArray">toArray</a></li>
99 <li data-name="LuCI#url"><a href="LuCI.html#url">url</a></li>
102 <ul class="events itemMembers">
107 <li class="item" data-name="LuCI.Class">
109 <a href="LuCI.Class.html">LuCI.Class</a>
112 <ul class="members itemMembers">
115 <ul class="typedefs itemMembers">
118 <ul class="typedefs itemMembers">
121 <ul class="methods itemMembers">
123 <span class="subtitle">Methods</span>
125 <li data-name="LuCI.Class.extend"><a href="LuCI.Class.html#.extend">extend</a></li>
127 <li data-name="LuCI.Class.instantiate"><a href="LuCI.Class.html#.instantiate">instantiate</a></li>
129 <li data-name="LuCI.Class.isSubclass"><a href="LuCI.Class.html#.isSubclass">isSubclass</a></li>
131 <li data-name="LuCI.Class.singleton"><a href="LuCI.Class.html#.singleton">singleton</a></li>
133 <li data-name="LuCI.Class#super"><a href="LuCI.Class.html#super">super</a></li>
135 <li data-name="LuCI.Class#varargs"><a href="LuCI.Class.html#varargs">varargs</a></li>
138 <ul class="events itemMembers">
143 <li class="item" data-name="LuCI.dom">
145 <a href="LuCI.dom.html">LuCI.dom</a>
148 <ul class="members itemMembers">
151 <ul class="typedefs itemMembers">
153 <span class="subtitle">Typedefs</span>
155 <li data-name="LuCI.dom~ignoreCallbackFn"><a href="LuCI.dom.html#~ignoreCallbackFn">ignoreCallbackFn</a></li>
158 <ul class="typedefs itemMembers">
161 <ul class="methods itemMembers">
163 <span class="subtitle">Methods</span>
165 <li data-name="LuCI.dom#append"><a href="LuCI.dom.html#append">append</a></li>
167 <li data-name="LuCI.dom#attr"><a href="LuCI.dom.html#attr">attr</a></li>
169 <li data-name="LuCI.dom#bindClassInstance"><a href="LuCI.dom.html#bindClassInstance">bindClassInstance</a></li>
171 <li data-name="LuCI.dom#callClassMethod"><a href="LuCI.dom.html#callClassMethod">callClassMethod</a></li>
173 <li data-name="LuCI.dom#content"><a href="LuCI.dom.html#content">content</a></li>
175 <li data-name="LuCI.dom#create"><a href="LuCI.dom.html#create">create</a></li>
177 <li data-name="LuCI.dom#data"><a href="LuCI.dom.html#data">data</a></li>
179 <li data-name="LuCI.dom#elem"><a href="LuCI.dom.html#elem">elem</a></li>
181 <li data-name="LuCI.dom#findClassInstance"><a href="LuCI.dom.html#findClassInstance">findClassInstance</a></li>
183 <li data-name="LuCI.dom#isEmpty"><a href="LuCI.dom.html#isEmpty">isEmpty</a></li>
185 <li data-name="LuCI.dom#matches"><a href="LuCI.dom.html#matches">matches</a></li>
187 <li data-name="LuCI.dom#parent"><a href="LuCI.dom.html#parent">parent</a></li>
189 <li data-name="LuCI.dom#parse"><a href="LuCI.dom.html#parse">parse</a></li>
192 <ul class="events itemMembers">
197 <li class="item" data-name="LuCI.fs">
199 <a href="LuCI.fs.html">LuCI.fs</a>
202 <ul class="members itemMembers">
205 <ul class="typedefs itemMembers">
207 <span class="subtitle">Typedefs</span>
209 <li data-name="LuCI.fs.FileExecResult"><a href="LuCI.fs.html#.FileExecResult">FileExecResult</a></li>
211 <li data-name="LuCI.fs.FileStatEntry"><a href="LuCI.fs.html#.FileStatEntry">FileStatEntry</a></li>
214 <ul class="typedefs itemMembers">
217 <ul class="methods itemMembers">
219 <span class="subtitle">Methods</span>
221 <li data-name="LuCI.fs#exec"><a href="LuCI.fs.html#exec">exec</a></li>
223 <li data-name="LuCI.fs#lines"><a href="LuCI.fs.html#lines">lines</a></li>
225 <li data-name="LuCI.fs#list"><a href="LuCI.fs.html#list">list</a></li>
227 <li data-name="LuCI.fs#read"><a href="LuCI.fs.html#read">read</a></li>
229 <li data-name="LuCI.fs#remove"><a href="LuCI.fs.html#remove">remove</a></li>
231 <li data-name="LuCI.fs#stat"><a href="LuCI.fs.html#stat">stat</a></li>
233 <li data-name="LuCI.fs#trimmed"><a href="LuCI.fs.html#trimmed">trimmed</a></li>
235 <li data-name="LuCI.fs#write"><a href="LuCI.fs.html#write">write</a></li>
238 <ul class="events itemMembers">
243 <li class="item" data-name="LuCI.Headers">
245 <a href="LuCI.Headers.html">LuCI.Headers</a>
248 <ul class="members itemMembers">
251 <ul class="typedefs itemMembers">
254 <ul class="typedefs itemMembers">
257 <ul class="methods itemMembers">
259 <span class="subtitle">Methods</span>
261 <li data-name="LuCI.Headers#get"><a href="LuCI.Headers.html#get">get</a></li>
263 <li data-name="LuCI.Headers#has"><a href="LuCI.Headers.html#has">has</a></li>
266 <ul class="events itemMembers">
271 <li class="item" data-name="LuCI.Network">
273 <a href="LuCI.Network.html">LuCI.Network</a>
276 <ul class="members itemMembers">
279 <ul class="typedefs itemMembers">
281 <span class="subtitle">Typedefs</span>
283 <li data-name="LuCI.Network.SwitchTopology"><a href="LuCI.Network.html#.SwitchTopology">SwitchTopology</a></li>
285 <li data-name="LuCI.Network.WifiEncryption"><a href="LuCI.Network.html#.WifiEncryption">WifiEncryption</a></li>
287 <li data-name="LuCI.Network.WifiPeerEntry"><a href="LuCI.Network.html#.WifiPeerEntry">WifiPeerEntry</a></li>
289 <li data-name="LuCI.Network.WifiRateEntry"><a href="LuCI.Network.html#.WifiRateEntry">WifiRateEntry</a></li>
291 <li data-name="LuCI.Network.WifiScanResult"><a href="LuCI.Network.html#.WifiScanResult">WifiScanResult</a></li>
294 <ul class="typedefs itemMembers">
297 <ul class="methods itemMembers">
299 <span class="subtitle">Methods</span>
301 <li data-name="LuCI.Network#addNetwork"><a href="LuCI.Network.html#addNetwork">addNetwork</a></li>
303 <li data-name="LuCI.Network#addWifiNetwork"><a href="LuCI.Network.html#addWifiNetwork">addWifiNetwork</a></li>
305 <li data-name="LuCI.Network#deleteNetwork"><a href="LuCI.Network.html#deleteNetwork">deleteNetwork</a></li>
307 <li data-name="LuCI.Network#deleteWifiNetwork"><a href="LuCI.Network.html#deleteWifiNetwork">deleteWifiNetwork</a></li>
309 <li data-name="LuCI.Network#flushCache"><a href="LuCI.Network.html#flushCache">flushCache</a></li>
311 <li data-name="LuCI.Network#formatWifiEncryption"><a href="LuCI.Network.html#formatWifiEncryption">formatWifiEncryption</a></li>
313 <li data-name="LuCI.Network#getDevice"><a href="LuCI.Network.html#getDevice">getDevice</a></li>
315 <li data-name="LuCI.Network#getDevices"><a href="LuCI.Network.html#getDevices">getDevices</a></li>
317 <li data-name="LuCI.Network#getDSLModemType"><a href="LuCI.Network.html#getDSLModemType">getDSLModemType</a></li>
319 <li data-name="LuCI.Network#getHostHints"><a href="LuCI.Network.html#getHostHints">getHostHints</a></li>
321 <li data-name="LuCI.Network#getIfnameOf"><a href="LuCI.Network.html#getIfnameOf">getIfnameOf</a></li>
323 <li data-name="LuCI.Network#getNetwork"><a href="LuCI.Network.html#getNetwork">getNetwork</a></li>
325 <li data-name="LuCI.Network#getNetworks"><a href="LuCI.Network.html#getNetworks">getNetworks</a></li>
327 <li data-name="LuCI.Network#getProtocol"><a href="LuCI.Network.html#getProtocol">getProtocol</a></li>
329 <li data-name="LuCI.Network#getProtocols"><a href="LuCI.Network.html#getProtocols">getProtocols</a></li>
331 <li data-name="LuCI.Network#getSwitchTopologies"><a href="LuCI.Network.html#getSwitchTopologies">getSwitchTopologies</a></li>
333 <li data-name="LuCI.Network#getWAN6Networks"><a href="LuCI.Network.html#getWAN6Networks">getWAN6Networks</a></li>
335 <li data-name="LuCI.Network#getWANNetworks"><a href="LuCI.Network.html#getWANNetworks">getWANNetworks</a></li>
337 <li data-name="LuCI.Network#getWifiDevice"><a href="LuCI.Network.html#getWifiDevice">getWifiDevice</a></li>
339 <li data-name="LuCI.Network#getWifiDevices"><a href="LuCI.Network.html#getWifiDevices">getWifiDevices</a></li>
341 <li data-name="LuCI.Network#getWifiNetwork"><a href="LuCI.Network.html#getWifiNetwork">getWifiNetwork</a></li>
343 <li data-name="LuCI.Network#getWifiNetworks"><a href="LuCI.Network.html#getWifiNetworks">getWifiNetworks</a></li>
345 <li data-name="LuCI.Network#isIgnoredDevice"><a href="LuCI.Network.html#isIgnoredDevice">isIgnoredDevice</a></li>
347 <li data-name="LuCI.Network#maskToPrefix"><a href="LuCI.Network.html#maskToPrefix">maskToPrefix</a></li>
349 <li data-name="LuCI.Network#prefixToMask"><a href="LuCI.Network.html#prefixToMask">prefixToMask</a></li>
351 <li data-name="LuCI.Network#registerErrorCode"><a href="LuCI.Network.html#registerErrorCode">registerErrorCode</a></li>
353 <li data-name="LuCI.Network#registerPatternVirtual"><a href="LuCI.Network.html#registerPatternVirtual">registerPatternVirtual</a></li>
355 <li data-name="LuCI.Network#registerProtocol"><a href="LuCI.Network.html#registerProtocol">registerProtocol</a></li>
357 <li data-name="LuCI.Network#renameNetwork"><a href="LuCI.Network.html#renameNetwork">renameNetwork</a></li>
360 <ul class="events itemMembers">
365 <li class="item" data-name="LuCI.Network.Device">
367 <a href="LuCI.Network.Device.html">LuCI.Network.Device</a>
370 <ul class="members itemMembers">
373 <ul class="typedefs itemMembers">
376 <ul class="typedefs itemMembers">
379 <ul class="methods itemMembers">
381 <span class="subtitle">Methods</span>
383 <li data-name="LuCI.Network.Device#getBridgeID"><a href="LuCI.Network.Device.html#getBridgeID">getBridgeID</a></li>
385 <li data-name="LuCI.Network.Device#getBridgeSTP"><a href="LuCI.Network.Device.html#getBridgeSTP">getBridgeSTP</a></li>
387 <li data-name="LuCI.Network.Device#getI18n"><a href="LuCI.Network.Device.html#getI18n">getI18n</a></li>
389 <li data-name="LuCI.Network.Device#getIP6Addrs"><a href="LuCI.Network.Device.html#getIP6Addrs">getIP6Addrs</a></li>
391 <li data-name="LuCI.Network.Device#getIPAddrs"><a href="LuCI.Network.Device.html#getIPAddrs">getIPAddrs</a></li>
393 <li data-name="LuCI.Network.Device#getMAC"><a href="LuCI.Network.Device.html#getMAC">getMAC</a></li>
395 <li data-name="LuCI.Network.Device#getMTU"><a href="LuCI.Network.Device.html#getMTU">getMTU</a></li>
397 <li data-name="LuCI.Network.Device#getName"><a href="LuCI.Network.Device.html#getName">getName</a></li>
399 <li data-name="LuCI.Network.Device#getNetwork"><a href="LuCI.Network.Device.html#getNetwork">getNetwork</a></li>
401 <li data-name="LuCI.Network.Device#getNetworks"><a href="LuCI.Network.Device.html#getNetworks">getNetworks</a></li>
403 <li data-name="LuCI.Network.Device#getPorts"><a href="LuCI.Network.Device.html#getPorts">getPorts</a></li>
405 <li data-name="LuCI.Network.Device#getRXBytes"><a href="LuCI.Network.Device.html#getRXBytes">getRXBytes</a></li>
407 <li data-name="LuCI.Network.Device#getRXPackets"><a href="LuCI.Network.Device.html#getRXPackets">getRXPackets</a></li>
409 <li data-name="LuCI.Network.Device#getShortName"><a href="LuCI.Network.Device.html#getShortName">getShortName</a></li>
411 <li data-name="LuCI.Network.Device#getTXBytes"><a href="LuCI.Network.Device.html#getTXBytes">getTXBytes</a></li>
413 <li data-name="LuCI.Network.Device#getTXPackets"><a href="LuCI.Network.Device.html#getTXPackets">getTXPackets</a></li>
415 <li data-name="LuCI.Network.Device#getType"><a href="LuCI.Network.Device.html#getType">getType</a></li>
417 <li data-name="LuCI.Network.Device#getTypeI18n"><a href="LuCI.Network.Device.html#getTypeI18n">getTypeI18n</a></li>
419 <li data-name="LuCI.Network.Device#getWifiNetwork"><a href="LuCI.Network.Device.html#getWifiNetwork">getWifiNetwork</a></li>
421 <li data-name="LuCI.Network.Device#isBridge"><a href="LuCI.Network.Device.html#isBridge">isBridge</a></li>
423 <li data-name="LuCI.Network.Device#isBridgePort"><a href="LuCI.Network.Device.html#isBridgePort">isBridgePort</a></li>
425 <li data-name="LuCI.Network.Device#isUp"><a href="LuCI.Network.Device.html#isUp">isUp</a></li>
428 <ul class="events itemMembers">
433 <li class="item" data-name="LuCI.Network.Hosts">
435 <a href="LuCI.Network.Hosts.html">LuCI.Network.Hosts</a>
438 <ul class="members itemMembers">
441 <ul class="typedefs itemMembers">
444 <ul class="typedefs itemMembers">
447 <ul class="methods itemMembers">
449 <span class="subtitle">Methods</span>
451 <li data-name="LuCI.Network.Hosts#getHostnameByIP6Addr"><a href="LuCI.Network.Hosts.html#getHostnameByIP6Addr">getHostnameByIP6Addr</a></li>
453 <li data-name="LuCI.Network.Hosts#getHostnameByIPAddr"><a href="LuCI.Network.Hosts.html#getHostnameByIPAddr">getHostnameByIPAddr</a></li>
455 <li data-name="LuCI.Network.Hosts#getHostnameByMACAddr"><a href="LuCI.Network.Hosts.html#getHostnameByMACAddr">getHostnameByMACAddr</a></li>
457 <li data-name="LuCI.Network.Hosts#getIP6AddrByMACAddr"><a href="LuCI.Network.Hosts.html#getIP6AddrByMACAddr">getIP6AddrByMACAddr</a></li>
459 <li data-name="LuCI.Network.Hosts#getIPAddrByMACAddr"><a href="LuCI.Network.Hosts.html#getIPAddrByMACAddr">getIPAddrByMACAddr</a></li>
461 <li data-name="LuCI.Network.Hosts#getMACAddrByIP6Addr"><a href="LuCI.Network.Hosts.html#getMACAddrByIP6Addr">getMACAddrByIP6Addr</a></li>
463 <li data-name="LuCI.Network.Hosts#getMACAddrByIPAddr"><a href="LuCI.Network.Hosts.html#getMACAddrByIPAddr">getMACAddrByIPAddr</a></li>
465 <li data-name="LuCI.Network.Hosts#getMACHints"><a href="LuCI.Network.Hosts.html#getMACHints">getMACHints</a></li>
468 <ul class="events itemMembers">
473 <li class="item" data-name="LuCI.Network.Protocol">
475 <a href="LuCI.Network.Protocol.html">LuCI.Network.Protocol</a>
478 <ul class="members itemMembers">
481 <ul class="typedefs itemMembers">
484 <ul class="typedefs itemMembers">
487 <ul class="methods itemMembers">
489 <span class="subtitle">Methods</span>
491 <li data-name="LuCI.Network.Protocol#addDevice"><a href="LuCI.Network.Protocol.html#addDevice">addDevice</a></li>
493 <li data-name="LuCI.Network.Protocol#containsDevice"><a href="LuCI.Network.Protocol.html#containsDevice">containsDevice</a></li>
495 <li data-name="LuCI.Network.Protocol#deleteDevice"><a href="LuCI.Network.Protocol.html#deleteDevice">deleteDevice</a></li>
497 <li data-name="LuCI.Network.Protocol#get"><a href="LuCI.Network.Protocol.html#get">get</a></li>
499 <li data-name="LuCI.Network.Protocol#getDevice"><a href="LuCI.Network.Protocol.html#getDevice">getDevice</a></li>
501 <li data-name="LuCI.Network.Protocol#getDevices"><a href="LuCI.Network.Protocol.html#getDevices">getDevices</a></li>
503 <li data-name="LuCI.Network.Protocol#getDNS6Addrs"><a href="LuCI.Network.Protocol.html#getDNS6Addrs">getDNS6Addrs</a></li>
505 <li data-name="LuCI.Network.Protocol#getDNSAddrs"><a href="LuCI.Network.Protocol.html#getDNSAddrs">getDNSAddrs</a></li>
507 <li data-name="LuCI.Network.Protocol#getErrors"><a href="LuCI.Network.Protocol.html#getErrors">getErrors</a></li>
509 <li data-name="LuCI.Network.Protocol#getExpiry"><a href="LuCI.Network.Protocol.html#getExpiry">getExpiry</a></li>
511 <li data-name="LuCI.Network.Protocol#getGateway6Addr"><a href="LuCI.Network.Protocol.html#getGateway6Addr">getGateway6Addr</a></li>
513 <li data-name="LuCI.Network.Protocol#getGatewayAddr"><a href="LuCI.Network.Protocol.html#getGatewayAddr">getGatewayAddr</a></li>
515 <li data-name="LuCI.Network.Protocol#getI18n"><a href="LuCI.Network.Protocol.html#getI18n">getI18n</a></li>
517 <li data-name="LuCI.Network.Protocol#getIfname"><a href="LuCI.Network.Protocol.html#getIfname">getIfname</a></li>
519 <li data-name="LuCI.Network.Protocol#getIP6Addr"><a href="LuCI.Network.Protocol.html#getIP6Addr">getIP6Addr</a></li>
521 <li data-name="LuCI.Network.Protocol#getIP6Addrs"><a href="LuCI.Network.Protocol.html#getIP6Addrs">getIP6Addrs</a></li>
523 <li data-name="LuCI.Network.Protocol#getIP6Prefix"><a href="LuCI.Network.Protocol.html#getIP6Prefix">getIP6Prefix</a></li>
525 <li data-name="LuCI.Network.Protocol#getIPAddr"><a href="LuCI.Network.Protocol.html#getIPAddr">getIPAddr</a></li>
527 <li data-name="LuCI.Network.Protocol#getIPAddrs"><a href="LuCI.Network.Protocol.html#getIPAddrs">getIPAddrs</a></li>
529 <li data-name="LuCI.Network.Protocol#getL2Device"><a href="LuCI.Network.Protocol.html#getL2Device">getL2Device</a></li>
531 <li data-name="LuCI.Network.Protocol#getL3Device"><a href="LuCI.Network.Protocol.html#getL3Device">getL3Device</a></li>
533 <li data-name="LuCI.Network.Protocol#getMetric"><a href="LuCI.Network.Protocol.html#getMetric">getMetric</a></li>
535 <li data-name="LuCI.Network.Protocol#getName"><a href="LuCI.Network.Protocol.html#getName">getName</a></li>
537 <li data-name="LuCI.Network.Protocol#getNetmask"><a href="LuCI.Network.Protocol.html#getNetmask">getNetmask</a></li>
539 <li data-name="LuCI.Network.Protocol#getOpkgPackage"><a href="LuCI.Network.Protocol.html#getOpkgPackage">getOpkgPackage</a></li>
541 <li data-name="LuCI.Network.Protocol#getProtocol"><a href="LuCI.Network.Protocol.html#getProtocol">getProtocol</a></li>
543 <li data-name="LuCI.Network.Protocol#getType"><a href="LuCI.Network.Protocol.html#getType">getType</a></li>
545 <li data-name="LuCI.Network.Protocol#getUptime"><a href="LuCI.Network.Protocol.html#getUptime">getUptime</a></li>
547 <li data-name="LuCI.Network.Protocol#getZoneName"><a href="LuCI.Network.Protocol.html#getZoneName">getZoneName</a></li>
549 <li data-name="LuCI.Network.Protocol#isAlias"><a href="LuCI.Network.Protocol.html#isAlias">isAlias</a></li>
551 <li data-name="LuCI.Network.Protocol#isBridge"><a href="LuCI.Network.Protocol.html#isBridge">isBridge</a></li>
553 <li data-name="LuCI.Network.Protocol#isDynamic"><a href="LuCI.Network.Protocol.html#isDynamic">isDynamic</a></li>
555 <li data-name="LuCI.Network.Protocol#isEmpty"><a href="LuCI.Network.Protocol.html#isEmpty">isEmpty</a></li>
557 <li data-name="LuCI.Network.Protocol#isFloating"><a href="LuCI.Network.Protocol.html#isFloating">isFloating</a></li>
559 <li data-name="LuCI.Network.Protocol#isInstalled"><a href="LuCI.Network.Protocol.html#isInstalled">isInstalled</a></li>
561 <li data-name="LuCI.Network.Protocol#isUp"><a href="LuCI.Network.Protocol.html#isUp">isUp</a></li>
563 <li data-name="LuCI.Network.Protocol#isVirtual"><a href="LuCI.Network.Protocol.html#isVirtual">isVirtual</a></li>
565 <li data-name="LuCI.Network.Protocol#set"><a href="LuCI.Network.Protocol.html#set">set</a></li>
568 <ul class="events itemMembers">
573 <li class="item" data-name="LuCI.Network.WifiDevice">
575 <a href="LuCI.Network.WifiDevice.html">LuCI.Network.WifiDevice</a>
578 <ul class="members itemMembers">
581 <ul class="typedefs itemMembers">
584 <ul class="typedefs itemMembers">
587 <ul class="methods itemMembers">
589 <span class="subtitle">Methods</span>
591 <li data-name="LuCI.Network.WifiDevice#addWifiNetwork"><a href="LuCI.Network.WifiDevice.html#addWifiNetwork">addWifiNetwork</a></li>
593 <li data-name="LuCI.Network.WifiDevice#deleteWifiNetwork"><a href="LuCI.Network.WifiDevice.html#deleteWifiNetwork">deleteWifiNetwork</a></li>
595 <li data-name="LuCI.Network.WifiDevice#get"><a href="LuCI.Network.WifiDevice.html#get">get</a></li>
597 <li data-name="LuCI.Network.WifiDevice#getHTModes"><a href="LuCI.Network.WifiDevice.html#getHTModes">getHTModes</a></li>
599 <li data-name="LuCI.Network.WifiDevice#getHWModes"><a href="LuCI.Network.WifiDevice.html#getHWModes">getHWModes</a></li>
601 <li data-name="LuCI.Network.WifiDevice#getI18n"><a href="LuCI.Network.WifiDevice.html#getI18n">getI18n</a></li>
603 <li data-name="LuCI.Network.WifiDevice#getName"><a href="LuCI.Network.WifiDevice.html#getName">getName</a></li>
605 <li data-name="LuCI.Network.WifiDevice#getScanList"><a href="LuCI.Network.WifiDevice.html#getScanList">getScanList</a></li>
607 <li data-name="LuCI.Network.WifiDevice#getWifiNetwork"><a href="LuCI.Network.WifiDevice.html#getWifiNetwork">getWifiNetwork</a></li>
609 <li data-name="LuCI.Network.WifiDevice#getWifiNetworks"><a href="LuCI.Network.WifiDevice.html#getWifiNetworks">getWifiNetworks</a></li>
611 <li data-name="LuCI.Network.WifiDevice#isDisabled"><a href="LuCI.Network.WifiDevice.html#isDisabled">isDisabled</a></li>
613 <li data-name="LuCI.Network.WifiDevice#isUp"><a href="LuCI.Network.WifiDevice.html#isUp">isUp</a></li>
615 <li data-name="LuCI.Network.WifiDevice#set"><a href="LuCI.Network.WifiDevice.html#set">set</a></li>
618 <ul class="events itemMembers">
623 <li class="item" data-name="LuCI.Network.WifiNetwork">
625 <a href="LuCI.Network.WifiNetwork.html">LuCI.Network.WifiNetwork</a>
628 <ul class="members itemMembers">
631 <ul class="typedefs itemMembers">
634 <ul class="typedefs itemMembers">
637 <ul class="methods itemMembers">
639 <span class="subtitle">Methods</span>
641 <li data-name="LuCI.Network.WifiNetwork#disconnectClient"><a href="LuCI.Network.WifiNetwork.html#disconnectClient">disconnectClient</a></li>
643 <li data-name="LuCI.Network.WifiNetwork#get"><a href="LuCI.Network.WifiNetwork.html#get">get</a></li>
645 <li data-name="LuCI.Network.WifiNetwork#getActiveBSSID"><a href="LuCI.Network.WifiNetwork.html#getActiveBSSID">getActiveBSSID</a></li>
647 <li data-name="LuCI.Network.WifiNetwork#getActiveEncryption"><a href="LuCI.Network.WifiNetwork.html#getActiveEncryption">getActiveEncryption</a></li>
649 <li data-name="LuCI.Network.WifiNetwork#getActiveMode"><a href="LuCI.Network.WifiNetwork.html#getActiveMode">getActiveMode</a></li>
651 <li data-name="LuCI.Network.WifiNetwork#getActiveModeI18n"><a href="LuCI.Network.WifiNetwork.html#getActiveModeI18n">getActiveModeI18n</a></li>
653 <li data-name="LuCI.Network.WifiNetwork#getActiveSSID"><a href="LuCI.Network.WifiNetwork.html#getActiveSSID">getActiveSSID</a></li>
655 <li data-name="LuCI.Network.WifiNetwork#getAssocList"><a href="LuCI.Network.WifiNetwork.html#getAssocList">getAssocList</a></li>
657 <li data-name="LuCI.Network.WifiNetwork#getBitRate"><a href="LuCI.Network.WifiNetwork.html#getBitRate">getBitRate</a></li>
659 <li data-name="LuCI.Network.WifiNetwork#getBSSID"><a href="LuCI.Network.WifiNetwork.html#getBSSID">getBSSID</a></li>
661 <li data-name="LuCI.Network.WifiNetwork#getChannel"><a href="LuCI.Network.WifiNetwork.html#getChannel">getChannel</a></li>
663 <li data-name="LuCI.Network.WifiNetwork#getCountryCode"><a href="LuCI.Network.WifiNetwork.html#getCountryCode">getCountryCode</a></li>
665 <li data-name="LuCI.Network.WifiNetwork#getDevice"><a href="LuCI.Network.WifiNetwork.html#getDevice">getDevice</a></li>
667 <li data-name="LuCI.Network.WifiNetwork#getFrequency"><a href="LuCI.Network.WifiNetwork.html#getFrequency">getFrequency</a></li>
669 <li data-name="LuCI.Network.WifiNetwork#getI18n"><a href="LuCI.Network.WifiNetwork.html#getI18n">getI18n</a></li>
671 <li data-name="LuCI.Network.WifiNetwork#getID"><a href="LuCI.Network.WifiNetwork.html#getID">getID</a></li>
673 <li data-name="LuCI.Network.WifiNetwork#getIfname"><a href="LuCI.Network.WifiNetwork.html#getIfname">getIfname</a></li>
675 <li data-name="LuCI.Network.WifiNetwork#getMeshID"><a href="LuCI.Network.WifiNetwork.html#getMeshID">getMeshID</a></li>
677 <li data-name="LuCI.Network.WifiNetwork#getMode"><a href="LuCI.Network.WifiNetwork.html#getMode">getMode</a></li>
679 <li data-name="LuCI.Network.WifiNetwork#getName"><a href="LuCI.Network.WifiNetwork.html#getName">getName</a></li>
681 <li data-name="LuCI.Network.WifiNetwork#getNetwork"><a href="LuCI.Network.WifiNetwork.html#getNetwork">getNetwork</a></li>
683 <li data-name="LuCI.Network.WifiNetwork#getNetworkNames"><a href="LuCI.Network.WifiNetwork.html#getNetworkNames">getNetworkNames</a></li>
685 <li data-name="LuCI.Network.WifiNetwork#getNetworks"><a href="LuCI.Network.WifiNetwork.html#getNetworks">getNetworks</a></li>
687 <li data-name="LuCI.Network.WifiNetwork#getNoise"><a href="LuCI.Network.WifiNetwork.html#getNoise">getNoise</a></li>
689 <li data-name="LuCI.Network.WifiNetwork#getShortName"><a href="LuCI.Network.WifiNetwork.html#getShortName">getShortName</a></li>
691 <li data-name="LuCI.Network.WifiNetwork#getSignal"><a href="LuCI.Network.WifiNetwork.html#getSignal">getSignal</a></li>
693 <li data-name="LuCI.Network.WifiNetwork#getSignalLevel"><a href="LuCI.Network.WifiNetwork.html#getSignalLevel">getSignalLevel</a></li>
695 <li data-name="LuCI.Network.WifiNetwork#getSignalPercent"><a href="LuCI.Network.WifiNetwork.html#getSignalPercent">getSignalPercent</a></li>
697 <li data-name="LuCI.Network.WifiNetwork#getSSID"><a href="LuCI.Network.WifiNetwork.html#getSSID">getSSID</a></li>
699 <li data-name="LuCI.Network.WifiNetwork#getTXPower"><a href="LuCI.Network.WifiNetwork.html#getTXPower">getTXPower</a></li>
701 <li data-name="LuCI.Network.WifiNetwork#getTXPowerOffset"><a href="LuCI.Network.WifiNetwork.html#getTXPowerOffset">getTXPowerOffset</a></li>
703 <li data-name="LuCI.Network.WifiNetwork#getWifiDevice"><a href="LuCI.Network.WifiNetwork.html#getWifiDevice">getWifiDevice</a></li>
705 <li data-name="LuCI.Network.WifiNetwork#getWifiDeviceName"><a href="LuCI.Network.WifiNetwork.html#getWifiDeviceName">getWifiDeviceName</a></li>
707 <li data-name="LuCI.Network.WifiNetwork#isClientDisconnectSupported"><a href="LuCI.Network.WifiNetwork.html#isClientDisconnectSupported">isClientDisconnectSupported</a></li>
709 <li data-name="LuCI.Network.WifiNetwork#isDisabled"><a href="LuCI.Network.WifiNetwork.html#isDisabled">isDisabled</a></li>
711 <li data-name="LuCI.Network.WifiNetwork#isUp"><a href="LuCI.Network.WifiNetwork.html#isUp">isUp</a></li>
713 <li data-name="LuCI.Network.WifiNetwork#set"><a href="LuCI.Network.WifiNetwork.html#set">set</a></li>
716 <ul class="events itemMembers">
721 <li class="item" data-name="LuCI.Poll">
723 <a href="LuCI.Poll.html">LuCI.Poll</a>
726 <ul class="members itemMembers">
729 <ul class="typedefs itemMembers">
732 <ul class="typedefs itemMembers">
735 <ul class="methods itemMembers">
737 <span class="subtitle">Methods</span>
739 <li data-name="LuCI.Poll#active"><a href="LuCI.Poll.html#active">active</a></li>
741 <li data-name="LuCI.Poll#add"><a href="LuCI.Poll.html#add">add</a></li>
743 <li data-name="LuCI.Poll#remove"><a href="LuCI.Poll.html#remove">remove</a></li>
745 <li data-name="LuCI.Poll#start"><a href="LuCI.Poll.html#start">start</a></li>
747 <li data-name="LuCI.Poll#stop"><a href="LuCI.Poll.html#stop">stop</a></li>
750 <ul class="events itemMembers">
755 <li class="item" data-name="LuCI.Request">
757 <a href="LuCI.Request.html">LuCI.Request</a>
760 <ul class="members itemMembers">
763 <ul class="typedefs itemMembers">
765 <span class="subtitle">Typedefs</span>
767 <li data-name="LuCI.Request.interceptorFn"><a href="LuCI.Request.html#.interceptorFn">interceptorFn</a></li>
769 <li data-name="LuCI.Request.RequestOptions"><a href="LuCI.Request.html#.RequestOptions">RequestOptions</a></li>
772 <ul class="typedefs itemMembers">
775 <ul class="methods itemMembers">
777 <span class="subtitle">Methods</span>
779 <li data-name="LuCI.Request#addInterceptor"><a href="LuCI.Request.html#addInterceptor">addInterceptor</a></li>
781 <li data-name="LuCI.Request#expandURL"><a href="LuCI.Request.html#expandURL">expandURL</a></li>
783 <li data-name="LuCI.Request#get"><a href="LuCI.Request.html#get">get</a></li>
785 <li data-name="LuCI.Request#post"><a href="LuCI.Request.html#post">post</a></li>
787 <li data-name="LuCI.Request#removeInterceptor"><a href="LuCI.Request.html#removeInterceptor">removeInterceptor</a></li>
789 <li data-name="LuCI.Request#request"><a href="LuCI.Request.html#request">request</a></li>
792 <ul class="events itemMembers">
797 <li class="item" data-name="LuCI.Request.poll">
799 <a href="LuCI.Request.poll.html">LuCI.Request.poll</a>
802 <ul class="members itemMembers">
805 <ul class="typedefs itemMembers">
807 <span class="subtitle">Typedefs</span>
809 <li data-name="LuCI.Request.poll~callbackFn"><a href="LuCI.Request.poll.html#~callbackFn">callbackFn</a></li>
812 <ul class="typedefs itemMembers">
815 <ul class="methods itemMembers">
817 <span class="subtitle">Methods</span>
819 <li data-name="LuCI.Request.poll#active"><a href="LuCI.Request.poll.html#active">active</a></li>
821 <li data-name="LuCI.Request.poll#add"><a href="LuCI.Request.poll.html#add">add</a></li>
823 <li data-name="LuCI.Request.poll#remove"><a href="LuCI.Request.poll.html#remove">remove</a></li>
825 <li data-name="LuCI.Request.poll#start"><a href="LuCI.Request.poll.html#start">start</a></li>
827 <li data-name="LuCI.Request.poll#stop"><a href="LuCI.Request.poll.html#stop">stop</a></li>
830 <ul class="events itemMembers">
835 <li class="item" data-name="LuCI.Response">
837 <a href="LuCI.Response.html">LuCI.Response</a>
840 <ul class="members itemMembers">
842 <span class="subtitle">Members</span>
844 <li data-name="LuCI.Response#duration"><a href="LuCI.Response.html#duration">duration</a></li>
846 <li data-name="LuCI.Response#headers"><a href="LuCI.Response.html#headers">headers</a></li>
848 <li data-name="LuCI.Response#ok"><a href="LuCI.Response.html#ok">ok</a></li>
850 <li data-name="LuCI.Response#status"><a href="LuCI.Response.html#status">status</a></li>
852 <li data-name="LuCI.Response#statusText"><a href="LuCI.Response.html#statusText">statusText</a></li>
854 <li data-name="LuCI.Response#url"><a href="LuCI.Response.html#url">url</a></li>
857 <ul class="typedefs itemMembers">
860 <ul class="typedefs itemMembers">
863 <ul class="methods itemMembers">
865 <span class="subtitle">Methods</span>
867 <li data-name="LuCI.Response#clone"><a href="LuCI.Response.html#clone">clone</a></li>
869 <li data-name="LuCI.Response#json"><a href="LuCI.Response.html#json">json</a></li>
871 <li data-name="LuCI.Response#text"><a href="LuCI.Response.html#text">text</a></li>
874 <ul class="events itemMembers">
879 <li class="item" data-name="LuCI.rpc">
881 <a href="LuCI.rpc.html">LuCI.rpc</a>
884 <ul class="members itemMembers">
887 <ul class="typedefs itemMembers">
889 <span class="subtitle">Typedefs</span>
891 <li data-name="LuCI.rpc.DeclareOptions"><a href="LuCI.rpc.html#.DeclareOptions">DeclareOptions</a></li>
893 <li data-name="LuCI.rpc~filterFn"><a href="LuCI.rpc.html#~filterFn">filterFn</a></li>
895 <li data-name="LuCI.rpc~interceptorFn"><a href="LuCI.rpc.html#~interceptorFn">interceptorFn</a></li>
897 <li data-name="LuCI.rpc~invokeFn"><a href="LuCI.rpc.html#~invokeFn">invokeFn</a></li>
900 <ul class="typedefs itemMembers">
903 <ul class="methods itemMembers">
905 <span class="subtitle">Methods</span>
907 <li data-name="LuCI.rpc#addInterceptor"><a href="LuCI.rpc.html#addInterceptor">addInterceptor</a></li>
909 <li data-name="LuCI.rpc#declare"><a href="LuCI.rpc.html#declare">declare</a></li>
911 <li data-name="LuCI.rpc#getBaseURL"><a href="LuCI.rpc.html#getBaseURL">getBaseURL</a></li>
913 <li data-name="LuCI.rpc#getSessionID"><a href="LuCI.rpc.html#getSessionID">getSessionID</a></li>
915 <li data-name="LuCI.rpc#getStatusText"><a href="LuCI.rpc.html#getStatusText">getStatusText</a></li>
917 <li data-name="LuCI.rpc#list"><a href="LuCI.rpc.html#list">list</a></li>
919 <li data-name="LuCI.rpc#removeInterceptor"><a href="LuCI.rpc.html#removeInterceptor">removeInterceptor</a></li>
921 <li data-name="LuCI.rpc#setBaseURL"><a href="LuCI.rpc.html#setBaseURL">setBaseURL</a></li>
923 <li data-name="LuCI.rpc#setSessionID"><a href="LuCI.rpc.html#setSessionID">setSessionID</a></li>
926 <ul class="events itemMembers">
931 <li class="item" data-name="LuCI.uci">
933 <a href="LuCI.uci.html">LuCI.uci</a>
936 <ul class="members itemMembers">
939 <ul class="typedefs itemMembers">
941 <span class="subtitle">Typedefs</span>
943 <li data-name="LuCI.uci.ChangeRecord"><a href="LuCI.uci.html#.ChangeRecord">ChangeRecord</a></li>
945 <li data-name="LuCI.uci.SectionObject"><a href="LuCI.uci.html#.SectionObject">SectionObject</a></li>
947 <li data-name="LuCI.uci~sectionsFn"><a href="LuCI.uci.html#~sectionsFn">sectionsFn</a></li>
950 <ul class="typedefs itemMembers">
953 <ul class="methods itemMembers">
955 <span class="subtitle">Methods</span>
957 <li data-name="LuCI.uci#add"><a href="LuCI.uci.html#add">add</a></li>
959 <li data-name="LuCI.uci#apply"><a href="LuCI.uci.html#apply">apply</a></li>
961 <li data-name="LuCI.uci#changes"><a href="LuCI.uci.html#changes">changes</a></li>
963 <li data-name="LuCI.uci#createSID"><a href="LuCI.uci.html#createSID">createSID</a></li>
965 <li data-name="LuCI.uci#get"><a href="LuCI.uci.html#get">get</a></li>
967 <li data-name="LuCI.uci#get_first"><a href="LuCI.uci.html#get_first">get_first</a></li>
969 <li data-name="LuCI.uci#load"><a href="LuCI.uci.html#load">load</a></li>
971 <li data-name="LuCI.uci#move"><a href="LuCI.uci.html#move">move</a></li>
973 <li data-name="LuCI.uci#remove"><a href="LuCI.uci.html#remove">remove</a></li>
975 <li data-name="LuCI.uci#resolveSID"><a href="LuCI.uci.html#resolveSID">resolveSID</a></li>
977 <li data-name="LuCI.uci#save"><a href="LuCI.uci.html#save">save</a></li>
979 <li data-name="LuCI.uci#sections"><a href="LuCI.uci.html#sections">sections</a></li>
981 <li data-name="LuCI.uci#set"><a href="LuCI.uci.html#set">set</a></li>
983 <li data-name="LuCI.uci#set_first"><a href="LuCI.uci.html#set_first">set_first</a></li>
985 <li data-name="LuCI.uci#unload"><a href="LuCI.uci.html#unload">unload</a></li>
987 <li data-name="LuCI.uci#unset"><a href="LuCI.uci.html#unset">unset</a></li>
989 <li data-name="LuCI.uci#unset_first"><a href="LuCI.uci.html#unset_first">unset_first</a></li>
992 <ul class="events itemMembers">
997 <li class="item" data-name="LuCI.view">
999 <a href="LuCI.view.html">LuCI.view</a>
1002 <ul class="members itemMembers">
1005 <ul class="typedefs itemMembers">
1008 <ul class="typedefs itemMembers">
1011 <ul class="methods itemMembers">
1013 <span class="subtitle">Methods</span>
1015 <li data-name="LuCI.view#addFooter"><a href="LuCI.view.html#addFooter">addFooter</a></li>
1017 <li data-name="LuCI.view#handleReset"><a href="LuCI.view.html#handleReset">handleReset</a></li>
1019 <li data-name="LuCI.view#handleSave"><a href="LuCI.view.html#handleSave">handleSave</a></li>
1021 <li data-name="LuCI.view#handleSaveApply"><a href="LuCI.view.html#handleSaveApply">handleSaveApply</a></li>
1023 <li data-name="LuCI.view#load"><a href="LuCI.view.html#load">load</a></li>
1025 <li data-name="LuCI.view#render"><a href="LuCI.view.html#render">render</a></li>
1028 <ul class="events itemMembers">
1033 <li class="item" data-name="LuCI.XHR">
1034 <span class="title">
1035 <a href="LuCI.XHR.html">LuCI.XHR</a>
1038 <ul class="members itemMembers">
1041 <ul class="typedefs itemMembers">
1044 <ul class="typedefs itemMembers">
1047 <ul class="methods itemMembers">
1049 <span class="subtitle">Methods</span>
1051 <li data-name="LuCI.XHR#abort"><a href="LuCI.XHR.html#abort">abort</a></li>
1053 <li data-name="LuCI.XHR#busy"><a href="LuCI.XHR.html#busy">busy</a></li>
1055 <li data-name="LuCI.XHR#cancel"><a href="LuCI.XHR.html#cancel">cancel</a></li>
1057 <li data-name="LuCI.XHR#get"><a href="LuCI.XHR.html#get">get</a></li>
1059 <li data-name="LuCI.XHR#post"><a href="LuCI.XHR.html#post">post</a></li>
1061 <li data-name="LuCI.XHR#send_form"><a href="LuCI.XHR.html#send_form">send_form</a></li>
1064 <ul class="events itemMembers">
1072 <h1 class="page-title" data-filename="LuCI.Network.Protocol.html">Class: Protocol</h1>
1081 <span class="ancestors"><a href="LuCI.html">LuCI</a><a href="LuCI.Network.html">.Network</a>.</span>
1086 <div class="class-description"><p>The <code>Network.Protocol</code> class serves as base for protocol specific
1087 subclasses which describe logical UCI networks defined by <code>config interface</code> sections in <code>/etc/config/network</code>.</p></div>
1092 <div class="container-overview">
1098 <div class="nameContainer">
1099 <h4 class="name" id="Protocol">
1101 new LuCI.Network.Protocol<span class="signature">()</span>
1105 <div class="tag-source">
1106 <a href="network.js.html">network.js</a>, <a href="network.js.html#line1850">line 1850</a>
1124 <dl class="details">
1178 <h3 class="subsection-title">Methods</h3>
1183 <div class="nameContainer">
1184 <h4 class="name" id="addDevice">
1186 addDevice<span class="signature">(device)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{boolean}</span>
1190 <div class="tag-source">
1191 <a href="network.js.html">network.js</a>, <a href="network.js.html#line2439">line 2439</a>
1201 <div class="description">
1202 <p>Add the given network device to the logical interface.</p>
1213 <table class="params">
1224 <th class="last">Description</th>
1233 <td class="name"><code>device</code></td>
1239 <span class="param-type"><a href="LuCI.Network.Protocol.html">LuCI.Network.Protocol</a></span>
1242 <span class="param-type"><a href="LuCI.Network.Device.html">LuCI.Network.Device</a></span>
1245 <span class="param-type"><a href="LuCI.Network.WifiDevice.html">LuCI.Network.WifiDevice</a></span>
1248 <span class="param-type"><a href="LuCI.Network.WifiNetwork.html">LuCI.Network.WifiNetwork</a></span>
1251 <span class="param-type">string</span>
1259 <td class="description last">
1261 <p>The object or device name to add to the logical interface. In case the
1262 given argument is not a string, it is resolved though the
1263 <a href="LuCI.Network.html#getIfnameOf"><code>Network.getIfnameOf()</code></a> function.</p></td>
1272 <dl class="details">
1310 <table class="params">
1315 <th class="last">Description</th>
1328 <td class="description last">Returns <code>true</code> if the device name has been added or <code>false</code> if any
1329 argument was invalid, if the device was already part of the logical
1330 interface or if the logical interface is virtual.</td>
1344 <div class="nameContainer">
1345 <h4 class="name" id="containsDevice">
1347 containsDevice<span class="signature">(device)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{boolean}</span>
1351 <div class="tag-source">
1352 <a href="network.js.html">network.js</a>, <a href="network.js.html#line2608">line 2608</a>
1362 <div class="description">
1363 <p>Checks whether this logical interface contains the given device
1375 <table class="params">
1386 <th class="last">Description</th>
1395 <td class="name"><code>device</code></td>
1401 <span class="param-type"><a href="LuCI.Network.Protocol.html">LuCI.Network.Protocol</a></span>
1404 <span class="param-type"><a href="LuCI.Network.Device.html">LuCI.Network.Device</a></span>
1407 <span class="param-type"><a href="LuCI.Network.WifiDevice.html">LuCI.Network.WifiDevice</a></span>
1410 <span class="param-type"><a href="LuCI.Network.WifiNetwork.html">LuCI.Network.WifiNetwork</a></span>
1413 <span class="param-type">string</span>
1421 <td class="description last">
1423 <p>The object or device name to check. In case the given argument is not
1424 a string, it is resolved though the
1425 <a href="LuCI.Network.html#getIfnameOf"><code>Network.getIfnameOf()</code></a> function.</p></td>
1434 <dl class="details">
1472 <table class="params">
1477 <th class="last">Description</th>
1490 <td class="description last">Returns <code>true</code> when this logical interface contains the given network
1491 device or <code>false</code> if not.</td>
1505 <div class="nameContainer">
1506 <h4 class="name" id="deleteDevice">
1508 deleteDevice<span class="signature">(device)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{boolean}</span>
1512 <div class="tag-source">
1513 <a href="network.js.html">network.js</a>, <a href="network.js.html#line2466">line 2466</a>
1523 <div class="description">
1524 <p>Remove the given network device from the logical interface.</p>
1535 <table class="params">
1546 <th class="last">Description</th>
1555 <td class="name"><code>device</code></td>
1561 <span class="param-type"><a href="LuCI.Network.Protocol.html">LuCI.Network.Protocol</a></span>
1564 <span class="param-type"><a href="LuCI.Network.Device.html">LuCI.Network.Device</a></span>
1567 <span class="param-type"><a href="LuCI.Network.WifiDevice.html">LuCI.Network.WifiDevice</a></span>
1570 <span class="param-type"><a href="LuCI.Network.WifiNetwork.html">LuCI.Network.WifiNetwork</a></span>
1573 <span class="param-type">string</span>
1581 <td class="description last">
1583 <p>The object or device name to remove from the logical interface. In case
1584 the given argument is not a string, it is resolved though the
1585 <a href="LuCI.Network.html#getIfnameOf"><code>Network.getIfnameOf()</code></a> function.</p></td>
1594 <dl class="details">
1632 <table class="params">
1637 <th class="last">Description</th>
1650 <td class="description last">Returns <code>true</code> if the device name has been added or <code>false</code> if any
1651 argument was invalid, if the device was already part of the logical
1652 interface or if the logical interface is virtual.</td>
1666 <div class="nameContainer">
1667 <h4 class="name" id="get">
1669 get<span class="signature">(opt)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{null|string|Array.<string>}</span>
1673 <div class="tag-source">
1674 <a href="network.js.html">network.js</a>, <a href="network.js.html#line1883">line 1883</a>
1684 <div class="description">
1685 <p>Read the given UCI option value of this network.</p>
1696 <table class="params">
1707 <th class="last">Description</th>
1716 <td class="name"><code>opt</code></td>
1722 <span class="param-type">string</span>
1730 <td class="description last">
1732 <p>The UCI option name to read.</p></td>
1741 <dl class="details">
1779 <table class="params">
1784 <th class="last">Description</th>
1803 <td class="description last">Returns the UCI option value or <code>null</code> if the requested option is
1818 <div class="nameContainer">
1819 <h4 class="name" id="getDevice">
1821 getDevice<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{<a href="LuCI.Network.Device.html">LuCI.Network.Device</a>}</span>
1825 <div class="tag-source">
1826 <a href="network.js.html">network.js</a>, <a href="network.js.html#line2493">line 2493</a>
1836 <div class="description">
1837 <p>Returns the Linux network device associated with this logical
1849 <dl class="details">
1887 <table class="params">
1892 <th class="last">Description</th>
1901 <a href="LuCI.Network.Device.html">LuCI.Network.Device</a>
1905 <td class="description last">Returns a <code>Network.Device</code> class instance representing the
1906 expected Linux network device according to the configuration.</td>
1920 <div class="nameContainer">
1921 <h4 class="name" id="getDevices">
1923 getDevices<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{null|Array.<<a href="LuCI.Network.Device.html">LuCI.Network.Device</a>>}</span>
1927 <div class="tag-source">
1928 <a href="network.js.html">network.js</a>, <a href="network.js.html#line2554">line 2554</a>
1938 <div class="description">
1939 <p>Returns a list of network sub-devices associated with this logical
1951 <dl class="details">
1989 <table class="params">
1994 <th class="last">Description</th>
2006 Array.<<a href="LuCI.Network.Device.html">LuCI.Network.Device</a>>
2010 <td class="description last">Returns an array of of <code>Network.Device</code> class instances representing
2011 the sub-devices attached to this logical interface or <code>null</code> if the
2012 logical interface does not support sub-devices, e.g. because it is
2013 virtual and not a bridge.</td>
2027 <div class="nameContainer">
2028 <h4 class="name" id="getDNS6Addrs">
2030 getDNS6Addrs<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Array.<string>}</span>
2034 <div class="tag-source">
2035 <a href="network.js.html">network.js</a>, <a href="network.js.html#line2208">line 2208</a>
2045 <div class="description">
2046 <p>Query the IPv6 DNS servers associated with the logical interface.</p>
2057 <dl class="details">
2095 <table class="params">
2100 <th class="last">Description</th>
2113 <td class="description last">Returns an array of IPv6 DNS servers registered by the remote
2114 protocol backend.</td>
2128 <div class="nameContainer">
2129 <h4 class="name" id="getDNSAddrs">
2131 getDNSAddrs<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Array.<string>}</span>
2135 <div class="tag-source">
2136 <a href="network.js.html">network.js</a>, <a href="network.js.html#line2120">line 2120</a>
2146 <div class="description">
2147 <p>Query the IPv4 DNS servers associated with the logical interface.</p>
2158 <dl class="details">
2196 <table class="params">
2201 <th class="last">Description</th>
2214 <td class="description last">Returns an array of IPv4 DNS servers registered by the remote
2215 protocol backend.</td>
2229 <div class="nameContainer">
2230 <h4 class="name" id="getErrors">
2232 getErrors<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Array.<string>}</span>
2236 <div class="tag-source">
2237 <a href="network.js.html">network.js</a>, <a href="network.js.html#line2252">line 2252</a>
2247 <div class="description">
2248 <p>Query interface error messages published in <code>ubus</code> runtime state.</p>
2249 <p>Interface errors are emitted by remote protocol handlers if the setup
2250 of the underlying logical interface failed, e.g. due to bad
2251 configuration or network connectivity issues.</p>
2252 <p>This function will translate the found error codes to human readable
2253 messages using the descriptions registered by
2254 <a href="LuCI.Network.html#registerErrorCode"><code>Network.registerErrorCode()</code></a>
2255 and fall back to <code>"Unknown error (%s)"</code> where <code>%s</code> is replaced by the
2256 error code in case no translation can be found.</p>
2267 <dl class="details">
2305 <table class="params">
2310 <th class="last">Description</th>
2323 <td class="description last">Returns an array of translated interface error messages.</td>
2337 <div class="nameContainer">
2338 <h4 class="name" id="getExpiry">
2340 getExpiry<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{number}</span>
2344 <div class="tag-source">
2345 <a href="network.js.html">network.js</a>, <a href="network.js.html#line2003">line 2003</a>
2355 <div class="description">
2356 <p>Get the logical interface expiry time in seconds.</p>
2357 <p>For protocols that have a concept of a lease, such as DHCP or
2358 DHCPv6, this function returns the remaining time in seconds
2359 until the lease expires.</p>
2370 <dl class="details">
2408 <table class="params">
2413 <th class="last">Description</th>
2426 <td class="description last">Returns the amount of seconds until the lease expires or <code>-1</code>
2427 if it isn't applicable to the associated protocol.</td>
2441 <div class="nameContainer">
2442 <h4 class="name" id="getGateway6Addr">
2444 getGateway6Addr<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{string}</span>
2448 <div class="tag-source">
2449 <a href="network.js.html">network.js</a>, <a href="network.js.html#line2188">line 2188</a>
2459 <div class="description">
2460 <p>Query the gateway (nexthop) of the IPv6 default route associated with
2461 this logical interface.</p>
2472 <dl class="details">
2510 <table class="params">
2515 <th class="last">Description</th>
2528 <td class="description last">Returns a string containing the IPv6 nexthop address of the associated
2529 default route or <code>null</code> if no default route was found.</td>
2543 <div class="nameContainer">
2544 <h4 class="name" id="getGatewayAddr">
2546 getGatewayAddr<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{string}</span>
2550 <div class="tag-source">
2551 <a href="network.js.html">network.js</a>, <a href="network.js.html#line2100">line 2100</a>
2561 <div class="description">
2562 <p>Query the gateway (nexthop) of the default route associated with
2563 this logical interface.</p>
2574 <dl class="details">
2612 <table class="params">
2617 <th class="last">Description</th>
2630 <td class="description last">Returns a string containing the IPv4 nexthop address of the associated
2631 default route or <code>null</code> if no default route was found.</td>
2645 <div class="nameContainer">
2646 <h4 class="name" id="getI18n">
2648 <span class="type-signature ">abstract</span>getI18n<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{string}</span>
2652 <div class="tag-source">
2653 <a href="network.js.html">network.js</a>, <a href="network.js.html#line1948">line 1948</a>
2663 <div class="description">
2664 <p>Return a human readable description for the protcol, such as
2665 <code>Static address</code> or <code>DHCP client</code>.</p>
2666 <p>This function should be overwritten by subclasses.</p>
2677 <dl class="details">
2715 <table class="params">
2720 <th class="last">Description</th>
2733 <td class="description last">Returns the description string.</td>
2747 <div class="nameContainer">
2748 <h4 class="name" id="getIfname">
2750 getIfname<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{null|string}</span>
2754 <div class="tag-source">
2755 <a href="network.js.html">network.js</a>, <a href="network.js.html#line1908">line 1908</a>
2765 <div class="description">
2766 <p>Get the associared Linux network device of this network.</p>
2777 <dl class="details">
2815 <table class="params">
2820 <th class="last">Description</th>
2836 <td class="description last">Returns the name of the associated network device or <code>null</code> if
2837 it could not be determined.</td>
2851 <div class="nameContainer">
2852 <h4 class="name" id="getIP6Addr">
2854 getIP6Addr<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{null|string}</span>
2858 <div class="tag-source">
2859 <a href="network.js.html">network.js</a>, <a href="network.js.html#line2139">line 2139</a>
2869 <div class="description">
2870 <p>Query the first (primary) IPv6 address of the logical interface.</p>
2881 <dl class="details">
2919 <table class="params">
2924 <th class="last">Description</th>
2940 <td class="description last">Returns the primary IPv6 address registered by the protocol handler
2941 in CIDR notation or <code>null</code> if no IPv6 addresses were set.</td>
2955 <div class="nameContainer">
2956 <h4 class="name" id="getIP6Addrs">
2958 getIP6Addrs<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Array.<string>}</span>
2962 <div class="tag-source">
2963 <a href="network.js.html">network.js</a>, <a href="network.js.html#line2161">line 2161</a>
2973 <div class="description">
2974 <p>Query all IPv6 addresses of the logical interface.</p>
2985 <dl class="details">
3023 <table class="params">
3028 <th class="last">Description</th>
3041 <td class="description last">Returns an array of IPv6 addresses in CIDR notation which have been
3042 registered by the protocol handler. The order of the resulting array
3043 follows the order of the addresses in <code>ubus</code> runtime information.</td>
3057 <div class="nameContainer">
3058 <h4 class="name" id="getIP6Prefix">
3060 getIP6Prefix<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{null|string}</span>
3064 <div class="tag-source">
3065 <a href="network.js.html">network.js</a>, <a href="network.js.html#line2227">line 2227</a>
3075 <div class="description">
3076 <p>Query the routed IPv6 prefix associated with the logical interface.</p>
3087 <dl class="details">
3125 <table class="params">
3130 <th class="last">Description</th>
3146 <td class="description last">Returns the routed IPv6 prefix registered by the remote protocol
3147 handler or <code>null</code> if no prefix is present.</td>
3161 <div class="nameContainer">
3162 <h4 class="name" id="getIPAddr">
3164 getIPAddr<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{null|string}</span>
3168 <div class="tag-source">
3169 <a href="network.js.html">network.js</a>, <a href="network.js.html#line2055">line 2055</a>
3179 <div class="description">
3180 <p>Query the first (primary) IPv4 address of the logical interface.</p>
3191 <dl class="details">
3229 <table class="params">
3234 <th class="last">Description</th>
3250 <td class="description last">Returns the primary IPv4 address registered by the protocol handler
3251 or <code>null</code> if no IPv4 addresses were set.</td>
3265 <div class="nameContainer">
3266 <h4 class="name" id="getIPAddrs">
3268 getIPAddrs<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Array.<string>}</span>
3272 <div class="tag-source">
3273 <a href="network.js.html">network.js</a>, <a href="network.js.html#line2068">line 2068</a>
3283 <div class="description">
3284 <p>Query all IPv4 addresses of the logical interface.</p>
3295 <dl class="details">
3333 <table class="params">
3338 <th class="last">Description</th>
3351 <td class="description last">Returns an array of IPv4 addresses in CIDR notation which have been
3352 registered by the protocol handler. The order of the resulting array
3353 follows the order of the addresses in <code>ubus</code> runtime information.</td>
3367 <div class="nameContainer">
3368 <h4 class="name" id="getL2Device">
3370 getL2Device<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{<a href="LuCI.Network.Device.html">LuCI.Network.Device</a>}</span>
3374 <div class="tag-source">
3375 <a href="network.js.html">network.js</a>, <a href="network.js.html#line2526">line 2526</a>
3385 <div class="description">
3386 <p>Returns the layer 2 linux network device currently associated
3387 with this logical interface.</p>
3398 <dl class="details">
3436 <table class="params">
3441 <th class="last">Description</th>
3450 <a href="LuCI.Network.Device.html">LuCI.Network.Device</a>
3454 <td class="description last">Returns a <code>Network.Device</code> class instance representing the Linux
3455 network device currently associated with the logical interface.</td>
3469 <div class="nameContainer">
3470 <h4 class="name" id="getL3Device">
3472 getL3Device<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{<a href="LuCI.Network.Device.html">LuCI.Network.Device</a>}</span>
3476 <div class="tag-source">
3477 <a href="network.js.html">network.js</a>, <a href="network.js.html#line2539">line 2539</a>
3487 <div class="description">
3488 <p>Returns the layer 3 linux network device currently associated
3489 with this logical interface.</p>
3500 <dl class="details">
3538 <table class="params">
3543 <th class="last">Description</th>
3552 <a href="LuCI.Network.Device.html">LuCI.Network.Device</a>
3556 <td class="description last">Returns a <code>Network.Device</code> class instance representing the Linux
3557 network device currently associated with the logical interface.</td>
3571 <div class="nameContainer">
3572 <h4 class="name" id="getMetric">
3574 getMetric<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{number}</span>
3578 <div class="tag-source">
3579 <a href="network.js.html">network.js</a>, <a href="network.js.html#line2023">line 2023</a>
3589 <div class="description">
3590 <p>Get the metric value of the logical interface.</p>
3601 <dl class="details">
3639 <table class="params">
3644 <th class="last">Description</th>
3657 <td class="description last">Returns the current metric value used for device and network
3658 routes spawned by the associated logical interface.</td>
3672 <div class="nameContainer">
3673 <h4 class="name" id="getName">
3675 getName<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{string}</span>
3679 <div class="tag-source">
3680 <a href="network.js.html">network.js</a>, <a href="network.js.html#line1978">line 1978</a>
3690 <div class="description">
3691 <p>Get the name of the associated logical interface.</p>
3702 <dl class="details">
3740 <table class="params">
3745 <th class="last">Description</th>
3758 <td class="description last">Returns the logical interface name, such as <code>lan</code> or <code>wan</code>.</td>
3772 <div class="nameContainer">
3773 <h4 class="name" id="getNetmask">
3775 getNetmask<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{null|string}</span>
3779 <div class="tag-source">
3780 <a href="network.js.html">network.js</a>, <a href="network.js.html#line2086">line 2086</a>
3790 <div class="description">
3791 <p>Query the first (primary) IPv4 netmask of the logical interface.</p>
3802 <dl class="details">
3840 <table class="params">
3845 <th class="last">Description</th>
3861 <td class="description last">Returns the netmask of the primary IPv4 address registered by the
3862 protocol handler or <code>null</code> if no IPv4 addresses were set.</td>
3876 <div class="nameContainer">
3877 <h4 class="name" id="getOpkgPackage">
3879 <span class="type-signature ">abstract</span>getOpkgPackage<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{string}</span>
3883 <div class="tag-source">
3884 <a href="network.js.html">network.js</a>, <a href="network.js.html#line2292">line 2292</a>
3894 <div class="description">
3895 <p>Get the name of the opkg package providing the protocol functionality.</p>
3896 <p>This function should be overwritten by protocol specific subclasses.</p>
3907 <dl class="details">
3945 <table class="params">
3950 <th class="last">Description</th>
3963 <td class="description last">Returns the name of the opkg package required for the protocol to
3964 function, e.g. <code>odhcp6c</code> for the <code>dhcpv6</code> prototocol.</td>
3978 <div class="nameContainer">
3979 <h4 class="name" id="getProtocol">
3981 <span class="type-signature ">abstract</span>getProtocol<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{string}</span>
3985 <div class="tag-source">
3986 <a href="network.js.html">network.js</a>, <a href="network.js.html#line1934">line 1934</a>
3996 <div class="description">
3997 <p>Get the name of this network protocol class.</p>
3998 <p>This function will be overwritten by subclasses created by
3999 <a href="LuCI.Network.html#registerProtocol"><code>Network.registerProtocol()</code></a>.</p>
4010 <dl class="details">
4048 <table class="params">
4053 <th class="last">Description</th>
4066 <td class="description last">Returns the name of the network protocol implementation, e.g.
4067 <code>static</code> or <code>dhcp</code>.</td>
4081 <div class="nameContainer">
4082 <h4 class="name" id="getType">
4084 getType<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{null|string}</span>
4088 <div class="tag-source">
4089 <a href="network.js.html">network.js</a>, <a href="network.js.html#line1968">line 1968</a>
4099 <div class="description">
4100 <p>Get the type of the underlying interface.</p>
4101 <p>This function actually is a convenience wrapper around
4102 <code>proto.get("type")</code> and is mainly used by other <code>LuCI.Network</code> code
4103 to check whether the interface is declared as bridge in UCI.</p>
4114 <dl class="details">
4152 <table class="params">
4157 <th class="last">Description</th>
4173 <td class="description last">Returns the value of the <code>type</code> option of the associated logical
4174 interface or <code>null</code> if no <code>type</code> option is set.</td>
4188 <div class="nameContainer">
4189 <h4 class="name" id="getUptime">
4191 getUptime<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{number}</span>
4195 <div class="tag-source">
4196 <a href="network.js.html">network.js</a>, <a href="network.js.html#line1988">line 1988</a>
4206 <div class="description">
4207 <p>Get the uptime of the logical interface.</p>
4218 <dl class="details">
4256 <table class="params">
4261 <th class="last">Description</th>
4274 <td class="description last">Returns the uptime of the associated interface in seconds.</td>
4288 <div class="nameContainer">
4289 <h4 class="name" id="getZoneName">
4291 getZoneName<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{null|string}</span>
4295 <div class="tag-source">
4296 <a href="network.js.html">network.js</a>, <a href="network.js.html#line2039">line 2039</a>
4306 <div class="description">
4307 <p>Get the requested firewall zone name of the logical interface.</p>
4308 <p>Some protocol implementations request a specific firewall zone
4309 to trigger inclusion of their resulting network devices into the
4310 firewall rule set.</p>
4321 <dl class="details">
4359 <table class="params">
4364 <th class="last">Description</th>
4380 <td class="description last">Returns the requested firewall zone name as published in the
4381 <code>ubus</code> runtime information or <code>null</code> if the remote protocol
4382 handler didn't request a zone.</td>
4396 <div class="nameContainer">
4397 <h4 class="name" id="isAlias">
4399 isAlias<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{null|string}</span>
4403 <div class="tag-source">
4404 <a href="network.js.html">network.js</a>, <a href="network.js.html#line2380">line 2380</a>
4414 <div class="description">
4415 <p>Checks whether this interface is an alias interface.</p>
4416 <p>Alias interfaces are interfaces layering on top of another interface
4417 and are denoted by a special <code>@interfacename</code> notation in the
4418 underlying <code>ifname</code> option.</p>
4429 <dl class="details">
4467 <table class="params">
4472 <th class="last">Description</th>
4488 <td class="description last">Returns the name of the parent interface if this logical interface
4489 is an alias or <code>null</code> if it is not an alias interface.</td>
4503 <div class="nameContainer">
4504 <h4 class="name" id="isBridge">
4506 isBridge<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{boolean}</span>
4510 <div class="tag-source">
4511 <a href="network.js.html">network.js</a>, <a href="network.js.html#line2277">line 2277</a>
4521 <div class="description">
4522 <p>Checks whether the underlying logical interface is declared as bridge.</p>
4533 <dl class="details">
4571 <table class="params">
4576 <th class="last">Description</th>
4589 <td class="description last">Returns <code>true</code> when the interface is declared with <code>option type bridge</code>
4590 and when the associated protocol implementation is not marked virtual
4591 or <code>false</code> when the logical interface is no bridge.</td>
4605 <div class="nameContainer">
4606 <h4 class="name" id="isDynamic">
4608 isDynamic<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{boolean}</span>
4612 <div class="tag-source">
4613 <a href="network.js.html">network.js</a>, <a href="network.js.html#line2365">line 2365</a>
4623 <div class="description">
4624 <p>Checks whether this logical interface is dynamic.</p>
4625 <p>A dynamic interface is an interface which has been created at runtime,
4626 e.g. as sub-interface of another interface, but which is not backed by
4627 any user configuration. Such dynamic interfaces cannot be edited but
4628 only brought down or restarted.</p>
4639 <dl class="details">
4677 <table class="params">
4682 <th class="last">Description</th>
4695 <td class="description last">Returns a boolean indicating whether this interface is dynamic (<code>true</code>)
4696 or not (<code>false</code>).</td>
4710 <div class="nameContainer">
4711 <h4 class="name" id="isEmpty">
4713 isEmpty<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{boolean}</span>
4717 <div class="tag-source">
4718 <a href="network.js.html">network.js</a>, <a href="network.js.html#line2400">line 2400</a>
4728 <div class="description">
4729 <p>Checks whether this logical interface is "empty", meaning that ut
4730 has no network devices attached.</p>
4741 <dl class="details">
4779 <table class="params">
4784 <th class="last">Description</th>
4797 <td class="description last">Returns <code>true</code> if this logical interface is empty, else <code>false</code>.</td>
4811 <div class="nameContainer">
4812 <h4 class="name" id="isFloating">
4814 isFloating<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{boolean}</span>
4818 <div class="tag-source">
4819 <a href="network.js.html">network.js</a>, <a href="network.js.html#line2349">line 2349</a>
4829 <div class="description">
4830 <p>Checks whether this protocol is "floating".</p>
4831 <p>A "floating" protocol is a protocol which spawns its own interfaces
4832 on demand, like a virtual one but which relies on an existinf lower
4833 level interface to initiate the connection.</p>
4834 <p>An example for such a protocol is "pppoe".</p>
4835 <p>This function exists for backwards compatibility with older code
4836 but should not be used anymore.</p>
4847 <dl class="details">
4855 <dt class="important tag-deprecated">Deprecated</dt><dd class="yes-def tag-deprecated"><ul class="dummy"><li>Yes</li></ul></dd>
4887 <table class="params">
4892 <th class="last">Description</th>
4905 <td class="description last">Returns a boolean indicating whether this protocol is floating (<code>true</code>)
4906 or not (<code>false</code>).</td>
4920 <div class="nameContainer">
4921 <h4 class="name" id="isInstalled">
4923 <span class="type-signature ">abstract</span>isInstalled<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{boolean}</span>
4927 <div class="tag-source">
4928 <a href="network.js.html">network.js</a>, <a href="network.js.html#line2308">line 2308</a>
4938 <div class="description">
4939 <p>Checks whether the protocol functionality is installed.</p>
4940 <p>This function exists for compatibility with old code, it always
4941 returns <code>true</code>.</p>
4952 <dl class="details">
4960 <dt class="important tag-deprecated">Deprecated</dt><dd class="yes-def tag-deprecated"><ul class="dummy"><li>Yes</li></ul></dd>
4992 <table class="params">
4997 <th class="last">Description</th>
5010 <td class="description last">Returns <code>true</code> if the protocol support is installed, else <code>false</code>.</td>
5024 <div class="nameContainer">
5025 <h4 class="name" id="isUp">
5027 isUp<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{boolean}</span>
5031 <div class="tag-source">
5032 <a href="network.js.html">network.js</a>, <a href="network.js.html#line2422">line 2422</a>
5042 <div class="description">
5043 <p>Checks whether this logical interface is configured and running.</p>
5054 <dl class="details">
5092 <table class="params">
5097 <th class="last">Description</th>
5110 <td class="description last">Returns <code>true</code> when the interface is active or <code>false</code> when it is not.</td>
5124 <div class="nameContainer">
5125 <h4 class="name" id="isVirtual">
5127 isVirtual<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{boolean}</span>
5131 <div class="tag-source">
5132 <a href="network.js.html">network.js</a>, <a href="network.js.html#line2328">line 2328</a>
5142 <div class="description">
5143 <p>Checks whether this protocol is "virtual".</p>
5144 <p>A "virtual" protocol is a protocol which spawns its own interfaces
5145 on demand instead of using existing physical interfaces.</p>
5146 <p>Examples for virtual protocols are <code>6in4</code> which <code>gre</code> spawn tunnel
5147 network device on startup, examples for non-virtual protcols are
5148 <code>dhcp</code> or <code>static</code> which apply IP configuration to existing interfaces.</p>
5149 <p>This function should be overwritten by subclasses.</p>
5160 <dl class="details">
5198 <table class="params">
5203 <th class="last">Description</th>
5216 <td class="description last">Returns a boolean indicating whether the underlying protocol spawns
5217 dynamic interfaces (<code>true</code>) or not (<code>false</code>).</td>
5231 <div class="nameContainer">
5232 <h4 class="name" id="set">
5234 set<span class="signature">(opt, val)</span>
5238 <div class="tag-source">
5239 <a href="network.js.html">network.js</a>, <a href="network.js.html#line1897">line 1897</a>
5249 <div class="description">
5250 <p>Set the given UCI option of this network to the given value.</p>
5261 <table class="params">
5272 <th class="last">Description</th>
5281 <td class="name"><code>opt</code></td>
5287 <span class="param-type">string</span>
5295 <td class="description last">
5297 <p>The name of the UCI option to set.</p></td>
5304 <td class="name"><code>val</code></td>
5310 <span class="param-type">null</span>
5313 <span class="param-type">string</span>
5316 <span class="param-type">Array.<string></span>
5324 <td class="description last">
5326 <p>The value to set or <code>null</code> to remove the given option from the
5327 configuration.</p></td>
5336 <dl class="details">
5393 Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Thu Nov 07 2019 12:36:06 GMT+0100 (Central European Standard Time)
5397 <script>prettyPrint();</script>
5398 <script src="scripts/jaguar.js"></script>