7934 lines
299 KiB
HTML
7934 lines
299 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Source: network.js</title>
|
|
|
|
|
|
<script src="scripts/prettify/prettify.js"></script>
|
|
<script src="scripts/prettify/lang-css.js"></script>
|
|
<script src="scripts/jquery.min.js"></script>
|
|
<!--[if lt IE 9]>
|
|
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
|
<![endif]-->
|
|
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
|
|
<link type="text/css" rel="stylesheet" href="styles/bootstrap.min.css">
|
|
<link type="text/css" rel="stylesheet" href="styles/jaguar.css">
|
|
|
|
|
|
<script>
|
|
var config = {"monospaceLinks":true,"cleverLinks":true,"default":{"outputSourceFiles":true}};
|
|
</script>
|
|
|
|
|
|
|
|
</head>
|
|
<body>
|
|
<div id="wrap" class="clearfix">
|
|
|
|
<div class="navigation">
|
|
<h3 class="applicationName"><a href="index.html"></a></h3>
|
|
|
|
<div class="search">
|
|
<input id="search" type="text" class="form-control input-sm" placeholder="Search Documentations">
|
|
</div>
|
|
<ul class="list">
|
|
|
|
<li class="item" data-name="LuCI">
|
|
<span class="title">
|
|
<a href="LuCI.html">LuCI</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
<span class="subtitle">Members</span>
|
|
|
|
<li data-name="LuCI#Class"><a href="LuCI.html#Class">Class</a></li>
|
|
|
|
<li data-name="LuCI#dom"><a href="LuCI.html#dom">dom</a></li>
|
|
|
|
<li data-name="LuCI#env"><a href="LuCI.html#env">env</a></li>
|
|
|
|
<li data-name="LuCI#naturalCompare"><a href="LuCI.html#naturalCompare">naturalCompare</a></li>
|
|
|
|
<li data-name="LuCI#Poll"><a href="LuCI.html#Poll">Poll</a></li>
|
|
|
|
<li data-name="LuCI#Request"><a href="LuCI.html#Request">Request</a></li>
|
|
|
|
<li data-name="LuCI#view"><a href="LuCI.html#view">view</a></li>
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
<span class="subtitle">Typedefs</span>
|
|
|
|
<li data-name="LuCI.requestCallbackFn"><a href="LuCI.html#.requestCallbackFn">requestCallbackFn</a></li>
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI#bind"><a href="LuCI.html#bind">bind</a></li>
|
|
|
|
<li data-name="LuCI#error"><a href="LuCI.html#error">error</a></li>
|
|
|
|
<li data-name="LuCI#fspath"><a href="LuCI.html#fspath">fspath</a></li>
|
|
|
|
<li data-name="LuCI#get"><a href="LuCI.html#get">get</a></li>
|
|
|
|
<li data-name="LuCI#halt"><a href="LuCI.html#halt">halt</a></li>
|
|
|
|
<li data-name="LuCI#hasSystemFeature"><a href="LuCI.html#hasSystemFeature">hasSystemFeature</a></li>
|
|
|
|
<li data-name="LuCI#hasViewPermission"><a href="LuCI.html#hasViewPermission">hasViewPermission</a></li>
|
|
|
|
<li data-name="LuCI#isObject"><a href="LuCI.html#isObject">isObject</a></li>
|
|
|
|
<li data-name="LuCI#location"><a href="LuCI.html#location">location</a></li>
|
|
|
|
<li data-name="LuCI#media"><a href="LuCI.html#media">media</a></li>
|
|
|
|
<li data-name="LuCI#path"><a href="LuCI.html#path">path</a></li>
|
|
|
|
<li data-name="LuCI#poll"><a href="LuCI.html#poll">poll</a></li>
|
|
|
|
<li data-name="LuCI#post"><a href="LuCI.html#post">post</a></li>
|
|
|
|
<li data-name="LuCI#raise"><a href="LuCI.html#raise">raise</a></li>
|
|
|
|
<li data-name="LuCI#require"><a href="LuCI.html#require">require</a></li>
|
|
|
|
<li data-name="LuCI#resolveDefault"><a href="LuCI.html#resolveDefault">resolveDefault</a></li>
|
|
|
|
<li data-name="LuCI#resource"><a href="LuCI.html#resource">resource</a></li>
|
|
|
|
<li data-name="LuCI#run"><a href="LuCI.html#run">run</a></li>
|
|
|
|
<li data-name="LuCI#sortedArray"><a href="LuCI.html#sortedArray">sortedArray</a></li>
|
|
|
|
<li data-name="LuCI#sortedKeys"><a href="LuCI.html#sortedKeys">sortedKeys</a></li>
|
|
|
|
<li data-name="LuCI#stop"><a href="LuCI.html#stop">stop</a></li>
|
|
|
|
<li data-name="LuCI#toArray"><a href="LuCI.html#toArray">toArray</a></li>
|
|
|
|
<li data-name="LuCI#url"><a href="LuCI.html#url">url</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.baseclass">
|
|
<span class="title">
|
|
<a href="LuCI.baseclass.html">LuCI.baseclass</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.baseclass.extend"><a href="LuCI.baseclass.html#.extend">extend</a></li>
|
|
|
|
<li data-name="LuCI.baseclass.instantiate"><a href="LuCI.baseclass.html#.instantiate">instantiate</a></li>
|
|
|
|
<li data-name="LuCI.baseclass.isSubclass"><a href="LuCI.baseclass.html#.isSubclass">isSubclass</a></li>
|
|
|
|
<li data-name="LuCI.baseclass.singleton"><a href="LuCI.baseclass.html#.singleton">singleton</a></li>
|
|
|
|
<li data-name="LuCI.baseclass#super"><a href="LuCI.baseclass.html#super">super</a></li>
|
|
|
|
<li data-name="LuCI.baseclass#varargs"><a href="LuCI.baseclass.html#varargs">varargs</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.dom">
|
|
<span class="title">
|
|
<a href="LuCI.dom.html">LuCI.dom</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
<span class="subtitle">Typedefs</span>
|
|
|
|
<li data-name="LuCI.dom~ignoreCallbackFn"><a href="LuCI.dom.html#~ignoreCallbackFn">ignoreCallbackFn</a></li>
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.dom#append"><a href="LuCI.dom.html#append">append</a></li>
|
|
|
|
<li data-name="LuCI.dom#attr"><a href="LuCI.dom.html#attr">attr</a></li>
|
|
|
|
<li data-name="LuCI.dom#bindClassInstance"><a href="LuCI.dom.html#bindClassInstance">bindClassInstance</a></li>
|
|
|
|
<li data-name="LuCI.dom#callClassMethod"><a href="LuCI.dom.html#callClassMethod">callClassMethod</a></li>
|
|
|
|
<li data-name="LuCI.dom#content"><a href="LuCI.dom.html#content">content</a></li>
|
|
|
|
<li data-name="LuCI.dom#create"><a href="LuCI.dom.html#create">create</a></li>
|
|
|
|
<li data-name="LuCI.dom#data"><a href="LuCI.dom.html#data">data</a></li>
|
|
|
|
<li data-name="LuCI.dom#elem"><a href="LuCI.dom.html#elem">elem</a></li>
|
|
|
|
<li data-name="LuCI.dom#findClassInstance"><a href="LuCI.dom.html#findClassInstance">findClassInstance</a></li>
|
|
|
|
<li data-name="LuCI.dom#isEmpty"><a href="LuCI.dom.html#isEmpty">isEmpty</a></li>
|
|
|
|
<li data-name="LuCI.dom#matches"><a href="LuCI.dom.html#matches">matches</a></li>
|
|
|
|
<li data-name="LuCI.dom#parent"><a href="LuCI.dom.html#parent">parent</a></li>
|
|
|
|
<li data-name="LuCI.dom#parse"><a href="LuCI.dom.html#parse">parse</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.form">
|
|
<span class="title">
|
|
<a href="LuCI.form.html">LuCI.form</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.form.AbstractElement">
|
|
<span class="title">
|
|
<a href="LuCI.form.AbstractElement.html">LuCI.form.AbstractElement</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.form.AbstractElement#append"><a href="LuCI.form.AbstractElement.html#append">append</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractElement#parse"><a href="LuCI.form.AbstractElement.html#parse">parse</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractElement#render"><a href="LuCI.form.AbstractElement.html#render">render</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractElement#stripTags"><a href="LuCI.form.AbstractElement.html#stripTags">stripTags</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractElement#titleFn"><a href="LuCI.form.AbstractElement.html#titleFn">titleFn</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.form.AbstractSection">
|
|
<span class="title">
|
|
<a href="LuCI.form.AbstractSection.html">LuCI.form.AbstractSection</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
<span class="subtitle">Members</span>
|
|
|
|
<li data-name="LuCI.form.AbstractSection##parentoption"><a href="LuCI.form.AbstractSection.html#parentoption">parentoption</a></li>
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.form.AbstractSection#append"><a href="LuCI.form.AbstractSection.html#append">append</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractSection#cfgsections"><a href="LuCI.form.AbstractSection.html#cfgsections">cfgsections</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractSection#cfgvalue"><a href="LuCI.form.AbstractSection.html#cfgvalue">cfgvalue</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractSection#filter"><a href="LuCI.form.AbstractSection.html#filter">filter</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractSection#formvalue"><a href="LuCI.form.AbstractSection.html#formvalue">formvalue</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractSection#getOption"><a href="LuCI.form.AbstractSection.html#getOption">getOption</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractSection#getUIElement"><a href="LuCI.form.AbstractSection.html#getUIElement">getUIElement</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractSection#load"><a href="LuCI.form.AbstractSection.html#load">load</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractSection#option"><a href="LuCI.form.AbstractSection.html#option">option</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractSection#parse"><a href="LuCI.form.AbstractSection.html#parse">parse</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractSection#render"><a href="LuCI.form.AbstractSection.html#render">render</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractSection#stripTags"><a href="LuCI.form.AbstractSection.html#stripTags">stripTags</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractSection#tab"><a href="LuCI.form.AbstractSection.html#tab">tab</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractSection#taboption"><a href="LuCI.form.AbstractSection.html#taboption">taboption</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractSection#titleFn"><a href="LuCI.form.AbstractSection.html#titleFn">titleFn</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.form.AbstractValue">
|
|
<span class="title">
|
|
<a href="LuCI.form.AbstractValue.html">LuCI.form.AbstractValue</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
<span class="subtitle">Members</span>
|
|
|
|
<li data-name="LuCI.form.AbstractValue##datatype"><a href="LuCI.form.AbstractValue.html#datatype">datatype</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractValue##default"><a href="LuCI.form.AbstractValue.html#default">default</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractValue##editable"><a href="LuCI.form.AbstractValue.html#editable">editable</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractValue##modalonly"><a href="LuCI.form.AbstractValue.html#modalonly">modalonly</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractValue##onchange"><a href="LuCI.form.AbstractValue.html#onchange">onchange</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractValue##optional"><a href="LuCI.form.AbstractValue.html#optional">optional</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractValue##readonly"><a href="LuCI.form.AbstractValue.html#readonly">readonly</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractValue##retain"><a href="LuCI.form.AbstractValue.html#retain">retain</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractValue##rmempty"><a href="LuCI.form.AbstractValue.html#rmempty">rmempty</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractValue##uciconfig"><a href="LuCI.form.AbstractValue.html#uciconfig">uciconfig</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractValue##ucioption"><a href="LuCI.form.AbstractValue.html#ucioption">ucioption</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractValue##ucisection"><a href="LuCI.form.AbstractValue.html#ucisection">ucisection</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractValue##validate"><a href="LuCI.form.AbstractValue.html#validate">validate</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractValue##width"><a href="LuCI.form.AbstractValue.html#width">width</a></li>
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.form.AbstractValue#append"><a href="LuCI.form.AbstractValue.html#append">append</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractValue#cbid"><a href="LuCI.form.AbstractValue.html#cbid">cbid</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractValue#cfgvalue"><a href="LuCI.form.AbstractValue.html#cfgvalue">cfgvalue</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractValue#depends"><a href="LuCI.form.AbstractValue.html#depends">depends</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractValue#formvalue"><a href="LuCI.form.AbstractValue.html#formvalue">formvalue</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractValue#getUIElement"><a href="LuCI.form.AbstractValue.html#getUIElement">getUIElement</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractValue#getValidationError"><a href="LuCI.form.AbstractValue.html#getValidationError">getValidationError</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractValue#isActive"><a href="LuCI.form.AbstractValue.html#isActive">isActive</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractValue#isValid"><a href="LuCI.form.AbstractValue.html#isValid">isValid</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractValue#load"><a href="LuCI.form.AbstractValue.html#load">load</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractValue#parse"><a href="LuCI.form.AbstractValue.html#parse">parse</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractValue#remove"><a href="LuCI.form.AbstractValue.html#remove">remove</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractValue#render"><a href="LuCI.form.AbstractValue.html#render">render</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractValue#stripTags"><a href="LuCI.form.AbstractValue.html#stripTags">stripTags</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractValue#textvalue"><a href="LuCI.form.AbstractValue.html#textvalue">textvalue</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractValue#titleFn"><a href="LuCI.form.AbstractValue.html#titleFn">titleFn</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractValue#validate"><a href="LuCI.form.AbstractValue.html#validate">validate</a></li>
|
|
|
|
<li data-name="LuCI.form.AbstractValue#write"><a href="LuCI.form.AbstractValue.html#write">write</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.form.ButtonValue">
|
|
<span class="title">
|
|
<a href="LuCI.form.ButtonValue.html">LuCI.form.ButtonValue</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
<span class="subtitle">Members</span>
|
|
|
|
<li data-name="LuCI.form.ButtonValue##inputstyle"><a href="LuCI.form.ButtonValue.html#inputstyle">inputstyle</a></li>
|
|
|
|
<li data-name="LuCI.form.ButtonValue##inputtitle"><a href="LuCI.form.ButtonValue.html#inputtitle">inputtitle</a></li>
|
|
|
|
<li data-name="LuCI.form.ButtonValue##onclick"><a href="LuCI.form.ButtonValue.html#onclick">onclick</a></li>
|
|
|
|
<li data-name="LuCI.form.ButtonValue#datatype"><a href="LuCI.form.ButtonValue.html#datatype">datatype</a></li>
|
|
|
|
<li data-name="LuCI.form.ButtonValue#default"><a href="LuCI.form.ButtonValue.html#default">default</a></li>
|
|
|
|
<li data-name="LuCI.form.ButtonValue#editable"><a href="LuCI.form.ButtonValue.html#editable">editable</a></li>
|
|
|
|
<li data-name="LuCI.form.ButtonValue#modalonly"><a href="LuCI.form.ButtonValue.html#modalonly">modalonly</a></li>
|
|
|
|
<li data-name="LuCI.form.ButtonValue#onchange"><a href="LuCI.form.ButtonValue.html#onchange">onchange</a></li>
|
|
|
|
<li data-name="LuCI.form.ButtonValue#optional"><a href="LuCI.form.ButtonValue.html#optional">optional</a></li>
|
|
|
|
<li data-name="LuCI.form.ButtonValue#password"><a href="LuCI.form.ButtonValue.html#password">password</a></li>
|
|
|
|
<li data-name="LuCI.form.ButtonValue#placeholder"><a href="LuCI.form.ButtonValue.html#placeholder">placeholder</a></li>
|
|
|
|
<li data-name="LuCI.form.ButtonValue#readonly"><a href="LuCI.form.ButtonValue.html#readonly">readonly</a></li>
|
|
|
|
<li data-name="LuCI.form.ButtonValue#retain"><a href="LuCI.form.ButtonValue.html#retain">retain</a></li>
|
|
|
|
<li data-name="LuCI.form.ButtonValue#rmempty"><a href="LuCI.form.ButtonValue.html#rmempty">rmempty</a></li>
|
|
|
|
<li data-name="LuCI.form.ButtonValue#uciconfig"><a href="LuCI.form.ButtonValue.html#uciconfig">uciconfig</a></li>
|
|
|
|
<li data-name="LuCI.form.ButtonValue#ucioption"><a href="LuCI.form.ButtonValue.html#ucioption">ucioption</a></li>
|
|
|
|
<li data-name="LuCI.form.ButtonValue#ucisection"><a href="LuCI.form.ButtonValue.html#ucisection">ucisection</a></li>
|
|
|
|
<li data-name="LuCI.form.ButtonValue#validate"><a href="LuCI.form.ButtonValue.html#validate">validate</a></li>
|
|
|
|
<li data-name="LuCI.form.ButtonValue#width"><a href="LuCI.form.ButtonValue.html#width">width</a></li>
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.form.ButtonValue#append"><a href="LuCI.form.ButtonValue.html#append">append</a></li>
|
|
|
|
<li data-name="LuCI.form.ButtonValue#cbid"><a href="LuCI.form.ButtonValue.html#cbid">cbid</a></li>
|
|
|
|
<li data-name="LuCI.form.ButtonValue#cfgvalue"><a href="LuCI.form.ButtonValue.html#cfgvalue">cfgvalue</a></li>
|
|
|
|
<li data-name="LuCI.form.ButtonValue#depends"><a href="LuCI.form.ButtonValue.html#depends">depends</a></li>
|
|
|
|
<li data-name="LuCI.form.ButtonValue#formvalue"><a href="LuCI.form.ButtonValue.html#formvalue">formvalue</a></li>
|
|
|
|
<li data-name="LuCI.form.ButtonValue#getUIElement"><a href="LuCI.form.ButtonValue.html#getUIElement">getUIElement</a></li>
|
|
|
|
<li data-name="LuCI.form.ButtonValue#getValidationError"><a href="LuCI.form.ButtonValue.html#getValidationError">getValidationError</a></li>
|
|
|
|
<li data-name="LuCI.form.ButtonValue#isActive"><a href="LuCI.form.ButtonValue.html#isActive">isActive</a></li>
|
|
|
|
<li data-name="LuCI.form.ButtonValue#isValid"><a href="LuCI.form.ButtonValue.html#isValid">isValid</a></li>
|
|
|
|
<li data-name="LuCI.form.ButtonValue#load"><a href="LuCI.form.ButtonValue.html#load">load</a></li>
|
|
|
|
<li data-name="LuCI.form.ButtonValue#parse"><a href="LuCI.form.ButtonValue.html#parse">parse</a></li>
|
|
|
|
<li data-name="LuCI.form.ButtonValue#remove"><a href="LuCI.form.ButtonValue.html#remove">remove</a></li>
|
|
|
|
<li data-name="LuCI.form.ButtonValue#stripTags"><a href="LuCI.form.ButtonValue.html#stripTags">stripTags</a></li>
|
|
|
|
<li data-name="LuCI.form.ButtonValue#textvalue"><a href="LuCI.form.ButtonValue.html#textvalue">textvalue</a></li>
|
|
|
|
<li data-name="LuCI.form.ButtonValue#titleFn"><a href="LuCI.form.ButtonValue.html#titleFn">titleFn</a></li>
|
|
|
|
<li data-name="LuCI.form.ButtonValue#value"><a href="LuCI.form.ButtonValue.html#value">value</a></li>
|
|
|
|
<li data-name="LuCI.form.ButtonValue#write"><a href="LuCI.form.ButtonValue.html#write">write</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.form.DummyValue">
|
|
<span class="title">
|
|
<a href="LuCI.form.DummyValue.html">LuCI.form.DummyValue</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
<span class="subtitle">Members</span>
|
|
|
|
<li data-name="LuCI.form.DummyValue##hidden"><a href="LuCI.form.DummyValue.html#hidden">hidden</a></li>
|
|
|
|
<li data-name="LuCI.form.DummyValue##href"><a href="LuCI.form.DummyValue.html#href">href</a></li>
|
|
|
|
<li data-name="LuCI.form.DummyValue##rawhtml"><a href="LuCI.form.DummyValue.html#rawhtml">rawhtml</a></li>
|
|
|
|
<li data-name="LuCI.form.DummyValue#datatype"><a href="LuCI.form.DummyValue.html#datatype">datatype</a></li>
|
|
|
|
<li data-name="LuCI.form.DummyValue#default"><a href="LuCI.form.DummyValue.html#default">default</a></li>
|
|
|
|
<li data-name="LuCI.form.DummyValue#editable"><a href="LuCI.form.DummyValue.html#editable">editable</a></li>
|
|
|
|
<li data-name="LuCI.form.DummyValue#modalonly"><a href="LuCI.form.DummyValue.html#modalonly">modalonly</a></li>
|
|
|
|
<li data-name="LuCI.form.DummyValue#onchange"><a href="LuCI.form.DummyValue.html#onchange">onchange</a></li>
|
|
|
|
<li data-name="LuCI.form.DummyValue#optional"><a href="LuCI.form.DummyValue.html#optional">optional</a></li>
|
|
|
|
<li data-name="LuCI.form.DummyValue#password"><a href="LuCI.form.DummyValue.html#password">password</a></li>
|
|
|
|
<li data-name="LuCI.form.DummyValue#placeholder"><a href="LuCI.form.DummyValue.html#placeholder">placeholder</a></li>
|
|
|
|
<li data-name="LuCI.form.DummyValue#readonly"><a href="LuCI.form.DummyValue.html#readonly">readonly</a></li>
|
|
|
|
<li data-name="LuCI.form.DummyValue#retain"><a href="LuCI.form.DummyValue.html#retain">retain</a></li>
|
|
|
|
<li data-name="LuCI.form.DummyValue#rmempty"><a href="LuCI.form.DummyValue.html#rmempty">rmempty</a></li>
|
|
|
|
<li data-name="LuCI.form.DummyValue#uciconfig"><a href="LuCI.form.DummyValue.html#uciconfig">uciconfig</a></li>
|
|
|
|
<li data-name="LuCI.form.DummyValue#ucioption"><a href="LuCI.form.DummyValue.html#ucioption">ucioption</a></li>
|
|
|
|
<li data-name="LuCI.form.DummyValue#ucisection"><a href="LuCI.form.DummyValue.html#ucisection">ucisection</a></li>
|
|
|
|
<li data-name="LuCI.form.DummyValue#validate"><a href="LuCI.form.DummyValue.html#validate">validate</a></li>
|
|
|
|
<li data-name="LuCI.form.DummyValue#width"><a href="LuCI.form.DummyValue.html#width">width</a></li>
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.form.DummyValue#append"><a href="LuCI.form.DummyValue.html#append">append</a></li>
|
|
|
|
<li data-name="LuCI.form.DummyValue#cbid"><a href="LuCI.form.DummyValue.html#cbid">cbid</a></li>
|
|
|
|
<li data-name="LuCI.form.DummyValue#cfgvalue"><a href="LuCI.form.DummyValue.html#cfgvalue">cfgvalue</a></li>
|
|
|
|
<li data-name="LuCI.form.DummyValue#depends"><a href="LuCI.form.DummyValue.html#depends">depends</a></li>
|
|
|
|
<li data-name="LuCI.form.DummyValue#formvalue"><a href="LuCI.form.DummyValue.html#formvalue">formvalue</a></li>
|
|
|
|
<li data-name="LuCI.form.DummyValue#getUIElement"><a href="LuCI.form.DummyValue.html#getUIElement">getUIElement</a></li>
|
|
|
|
<li data-name="LuCI.form.DummyValue#getValidationError"><a href="LuCI.form.DummyValue.html#getValidationError">getValidationError</a></li>
|
|
|
|
<li data-name="LuCI.form.DummyValue#isActive"><a href="LuCI.form.DummyValue.html#isActive">isActive</a></li>
|
|
|
|
<li data-name="LuCI.form.DummyValue#isValid"><a href="LuCI.form.DummyValue.html#isValid">isValid</a></li>
|
|
|
|
<li data-name="LuCI.form.DummyValue#load"><a href="LuCI.form.DummyValue.html#load">load</a></li>
|
|
|
|
<li data-name="LuCI.form.DummyValue#parse"><a href="LuCI.form.DummyValue.html#parse">parse</a></li>
|
|
|
|
<li data-name="LuCI.form.DummyValue#remove"><a href="LuCI.form.DummyValue.html#remove">remove</a></li>
|
|
|
|
<li data-name="LuCI.form.DummyValue#stripTags"><a href="LuCI.form.DummyValue.html#stripTags">stripTags</a></li>
|
|
|
|
<li data-name="LuCI.form.DummyValue#textvalue"><a href="LuCI.form.DummyValue.html#textvalue">textvalue</a></li>
|
|
|
|
<li data-name="LuCI.form.DummyValue#titleFn"><a href="LuCI.form.DummyValue.html#titleFn">titleFn</a></li>
|
|
|
|
<li data-name="LuCI.form.DummyValue#value"><a href="LuCI.form.DummyValue.html#value">value</a></li>
|
|
|
|
<li data-name="LuCI.form.DummyValue#write"><a href="LuCI.form.DummyValue.html#write">write</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.form.DynamicList">
|
|
<span class="title">
|
|
<a href="LuCI.form.DynamicList.html">LuCI.form.DynamicList</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
<span class="subtitle">Members</span>
|
|
|
|
<li data-name="LuCI.form.DynamicList#datatype"><a href="LuCI.form.DynamicList.html#datatype">datatype</a></li>
|
|
|
|
<li data-name="LuCI.form.DynamicList#default"><a href="LuCI.form.DynamicList.html#default">default</a></li>
|
|
|
|
<li data-name="LuCI.form.DynamicList#editable"><a href="LuCI.form.DynamicList.html#editable">editable</a></li>
|
|
|
|
<li data-name="LuCI.form.DynamicList#modalonly"><a href="LuCI.form.DynamicList.html#modalonly">modalonly</a></li>
|
|
|
|
<li data-name="LuCI.form.DynamicList#onchange"><a href="LuCI.form.DynamicList.html#onchange">onchange</a></li>
|
|
|
|
<li data-name="LuCI.form.DynamicList#optional"><a href="LuCI.form.DynamicList.html#optional">optional</a></li>
|
|
|
|
<li data-name="LuCI.form.DynamicList#password"><a href="LuCI.form.DynamicList.html#password">password</a></li>
|
|
|
|
<li data-name="LuCI.form.DynamicList#placeholder"><a href="LuCI.form.DynamicList.html#placeholder">placeholder</a></li>
|
|
|
|
<li data-name="LuCI.form.DynamicList#readonly"><a href="LuCI.form.DynamicList.html#readonly">readonly</a></li>
|
|
|
|
<li data-name="LuCI.form.DynamicList#retain"><a href="LuCI.form.DynamicList.html#retain">retain</a></li>
|
|
|
|
<li data-name="LuCI.form.DynamicList#rmempty"><a href="LuCI.form.DynamicList.html#rmempty">rmempty</a></li>
|
|
|
|
<li data-name="LuCI.form.DynamicList#uciconfig"><a href="LuCI.form.DynamicList.html#uciconfig">uciconfig</a></li>
|
|
|
|
<li data-name="LuCI.form.DynamicList#ucioption"><a href="LuCI.form.DynamicList.html#ucioption">ucioption</a></li>
|
|
|
|
<li data-name="LuCI.form.DynamicList#ucisection"><a href="LuCI.form.DynamicList.html#ucisection">ucisection</a></li>
|
|
|
|
<li data-name="LuCI.form.DynamicList#validate"><a href="LuCI.form.DynamicList.html#validate">validate</a></li>
|
|
|
|
<li data-name="LuCI.form.DynamicList#width"><a href="LuCI.form.DynamicList.html#width">width</a></li>
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.form.DynamicList#append"><a href="LuCI.form.DynamicList.html#append">append</a></li>
|
|
|
|
<li data-name="LuCI.form.DynamicList#cbid"><a href="LuCI.form.DynamicList.html#cbid">cbid</a></li>
|
|
|
|
<li data-name="LuCI.form.DynamicList#cfgvalue"><a href="LuCI.form.DynamicList.html#cfgvalue">cfgvalue</a></li>
|
|
|
|
<li data-name="LuCI.form.DynamicList#depends"><a href="LuCI.form.DynamicList.html#depends">depends</a></li>
|
|
|
|
<li data-name="LuCI.form.DynamicList#formvalue"><a href="LuCI.form.DynamicList.html#formvalue">formvalue</a></li>
|
|
|
|
<li data-name="LuCI.form.DynamicList#getUIElement"><a href="LuCI.form.DynamicList.html#getUIElement">getUIElement</a></li>
|
|
|
|
<li data-name="LuCI.form.DynamicList#getValidationError"><a href="LuCI.form.DynamicList.html#getValidationError">getValidationError</a></li>
|
|
|
|
<li data-name="LuCI.form.DynamicList#isActive"><a href="LuCI.form.DynamicList.html#isActive">isActive</a></li>
|
|
|
|
<li data-name="LuCI.form.DynamicList#isValid"><a href="LuCI.form.DynamicList.html#isValid">isValid</a></li>
|
|
|
|
<li data-name="LuCI.form.DynamicList#load"><a href="LuCI.form.DynamicList.html#load">load</a></li>
|
|
|
|
<li data-name="LuCI.form.DynamicList#parse"><a href="LuCI.form.DynamicList.html#parse">parse</a></li>
|
|
|
|
<li data-name="LuCI.form.DynamicList#remove"><a href="LuCI.form.DynamicList.html#remove">remove</a></li>
|
|
|
|
<li data-name="LuCI.form.DynamicList#stripTags"><a href="LuCI.form.DynamicList.html#stripTags">stripTags</a></li>
|
|
|
|
<li data-name="LuCI.form.DynamicList#textvalue"><a href="LuCI.form.DynamicList.html#textvalue">textvalue</a></li>
|
|
|
|
<li data-name="LuCI.form.DynamicList#titleFn"><a href="LuCI.form.DynamicList.html#titleFn">titleFn</a></li>
|
|
|
|
<li data-name="LuCI.form.DynamicList#value"><a href="LuCI.form.DynamicList.html#value">value</a></li>
|
|
|
|
<li data-name="LuCI.form.DynamicList#write"><a href="LuCI.form.DynamicList.html#write">write</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.form.FileUpload">
|
|
<span class="title">
|
|
<a href="LuCI.form.FileUpload.html">LuCI.form.FileUpload</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
<span class="subtitle">Members</span>
|
|
|
|
<li data-name="LuCI.form.FileUpload##enable_remove"><a href="LuCI.form.FileUpload.html#enable_remove">enable_remove</a></li>
|
|
|
|
<li data-name="LuCI.form.FileUpload##enable_upload"><a href="LuCI.form.FileUpload.html#enable_upload">enable_upload</a></li>
|
|
|
|
<li data-name="LuCI.form.FileUpload##root_directory"><a href="LuCI.form.FileUpload.html#root_directory">root_directory</a></li>
|
|
|
|
<li data-name="LuCI.form.FileUpload##show_hidden"><a href="LuCI.form.FileUpload.html#show_hidden">show_hidden</a></li>
|
|
|
|
<li data-name="LuCI.form.FileUpload#datatype"><a href="LuCI.form.FileUpload.html#datatype">datatype</a></li>
|
|
|
|
<li data-name="LuCI.form.FileUpload#default"><a href="LuCI.form.FileUpload.html#default">default</a></li>
|
|
|
|
<li data-name="LuCI.form.FileUpload#editable"><a href="LuCI.form.FileUpload.html#editable">editable</a></li>
|
|
|
|
<li data-name="LuCI.form.FileUpload#modalonly"><a href="LuCI.form.FileUpload.html#modalonly">modalonly</a></li>
|
|
|
|
<li data-name="LuCI.form.FileUpload#onchange"><a href="LuCI.form.FileUpload.html#onchange">onchange</a></li>
|
|
|
|
<li data-name="LuCI.form.FileUpload#optional"><a href="LuCI.form.FileUpload.html#optional">optional</a></li>
|
|
|
|
<li data-name="LuCI.form.FileUpload#password"><a href="LuCI.form.FileUpload.html#password">password</a></li>
|
|
|
|
<li data-name="LuCI.form.FileUpload#placeholder"><a href="LuCI.form.FileUpload.html#placeholder">placeholder</a></li>
|
|
|
|
<li data-name="LuCI.form.FileUpload#readonly"><a href="LuCI.form.FileUpload.html#readonly">readonly</a></li>
|
|
|
|
<li data-name="LuCI.form.FileUpload#retain"><a href="LuCI.form.FileUpload.html#retain">retain</a></li>
|
|
|
|
<li data-name="LuCI.form.FileUpload#rmempty"><a href="LuCI.form.FileUpload.html#rmempty">rmempty</a></li>
|
|
|
|
<li data-name="LuCI.form.FileUpload#uciconfig"><a href="LuCI.form.FileUpload.html#uciconfig">uciconfig</a></li>
|
|
|
|
<li data-name="LuCI.form.FileUpload#ucioption"><a href="LuCI.form.FileUpload.html#ucioption">ucioption</a></li>
|
|
|
|
<li data-name="LuCI.form.FileUpload#ucisection"><a href="LuCI.form.FileUpload.html#ucisection">ucisection</a></li>
|
|
|
|
<li data-name="LuCI.form.FileUpload#validate"><a href="LuCI.form.FileUpload.html#validate">validate</a></li>
|
|
|
|
<li data-name="LuCI.form.FileUpload#width"><a href="LuCI.form.FileUpload.html#width">width</a></li>
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.form.FileUpload#append"><a href="LuCI.form.FileUpload.html#append">append</a></li>
|
|
|
|
<li data-name="LuCI.form.FileUpload#cbid"><a href="LuCI.form.FileUpload.html#cbid">cbid</a></li>
|
|
|
|
<li data-name="LuCI.form.FileUpload#cfgvalue"><a href="LuCI.form.FileUpload.html#cfgvalue">cfgvalue</a></li>
|
|
|
|
<li data-name="LuCI.form.FileUpload#depends"><a href="LuCI.form.FileUpload.html#depends">depends</a></li>
|
|
|
|
<li data-name="LuCI.form.FileUpload#formvalue"><a href="LuCI.form.FileUpload.html#formvalue">formvalue</a></li>
|
|
|
|
<li data-name="LuCI.form.FileUpload#getUIElement"><a href="LuCI.form.FileUpload.html#getUIElement">getUIElement</a></li>
|
|
|
|
<li data-name="LuCI.form.FileUpload#getValidationError"><a href="LuCI.form.FileUpload.html#getValidationError">getValidationError</a></li>
|
|
|
|
<li data-name="LuCI.form.FileUpload#isActive"><a href="LuCI.form.FileUpload.html#isActive">isActive</a></li>
|
|
|
|
<li data-name="LuCI.form.FileUpload#isValid"><a href="LuCI.form.FileUpload.html#isValid">isValid</a></li>
|
|
|
|
<li data-name="LuCI.form.FileUpload#load"><a href="LuCI.form.FileUpload.html#load">load</a></li>
|
|
|
|
<li data-name="LuCI.form.FileUpload#parse"><a href="LuCI.form.FileUpload.html#parse">parse</a></li>
|
|
|
|
<li data-name="LuCI.form.FileUpload#remove"><a href="LuCI.form.FileUpload.html#remove">remove</a></li>
|
|
|
|
<li data-name="LuCI.form.FileUpload#stripTags"><a href="LuCI.form.FileUpload.html#stripTags">stripTags</a></li>
|
|
|
|
<li data-name="LuCI.form.FileUpload#textvalue"><a href="LuCI.form.FileUpload.html#textvalue">textvalue</a></li>
|
|
|
|
<li data-name="LuCI.form.FileUpload#titleFn"><a href="LuCI.form.FileUpload.html#titleFn">titleFn</a></li>
|
|
|
|
<li data-name="LuCI.form.FileUpload#value"><a href="LuCI.form.FileUpload.html#value">value</a></li>
|
|
|
|
<li data-name="LuCI.form.FileUpload#write"><a href="LuCI.form.FileUpload.html#write">write</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.form.FlagValue">
|
|
<span class="title">
|
|
<a href="LuCI.form.FlagValue.html">LuCI.form.FlagValue</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
<span class="subtitle">Members</span>
|
|
|
|
<li data-name="LuCI.form.FlagValue##disabled"><a href="LuCI.form.FlagValue.html#disabled">disabled</a></li>
|
|
|
|
<li data-name="LuCI.form.FlagValue##enabled"><a href="LuCI.form.FlagValue.html#enabled">enabled</a></li>
|
|
|
|
<li data-name="LuCI.form.FlagValue#datatype"><a href="LuCI.form.FlagValue.html#datatype">datatype</a></li>
|
|
|
|
<li data-name="LuCI.form.FlagValue#default"><a href="LuCI.form.FlagValue.html#default">default</a></li>
|
|
|
|
<li data-name="LuCI.form.FlagValue#editable"><a href="LuCI.form.FlagValue.html#editable">editable</a></li>
|
|
|
|
<li data-name="LuCI.form.FlagValue#modalonly"><a href="LuCI.form.FlagValue.html#modalonly">modalonly</a></li>
|
|
|
|
<li data-name="LuCI.form.FlagValue#onchange"><a href="LuCI.form.FlagValue.html#onchange">onchange</a></li>
|
|
|
|
<li data-name="LuCI.form.FlagValue#optional"><a href="LuCI.form.FlagValue.html#optional">optional</a></li>
|
|
|
|
<li data-name="LuCI.form.FlagValue#password"><a href="LuCI.form.FlagValue.html#password">password</a></li>
|
|
|
|
<li data-name="LuCI.form.FlagValue#placeholder"><a href="LuCI.form.FlagValue.html#placeholder">placeholder</a></li>
|
|
|
|
<li data-name="LuCI.form.FlagValue#readonly"><a href="LuCI.form.FlagValue.html#readonly">readonly</a></li>
|
|
|
|
<li data-name="LuCI.form.FlagValue#retain"><a href="LuCI.form.FlagValue.html#retain">retain</a></li>
|
|
|
|
<li data-name="LuCI.form.FlagValue#rmempty"><a href="LuCI.form.FlagValue.html#rmempty">rmempty</a></li>
|
|
|
|
<li data-name="LuCI.form.FlagValue#uciconfig"><a href="LuCI.form.FlagValue.html#uciconfig">uciconfig</a></li>
|
|
|
|
<li data-name="LuCI.form.FlagValue#ucioption"><a href="LuCI.form.FlagValue.html#ucioption">ucioption</a></li>
|
|
|
|
<li data-name="LuCI.form.FlagValue#ucisection"><a href="LuCI.form.FlagValue.html#ucisection">ucisection</a></li>
|
|
|
|
<li data-name="LuCI.form.FlagValue#validate"><a href="LuCI.form.FlagValue.html#validate">validate</a></li>
|
|
|
|
<li data-name="LuCI.form.FlagValue#width"><a href="LuCI.form.FlagValue.html#width">width</a></li>
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.form.FlagValue#append"><a href="LuCI.form.FlagValue.html#append">append</a></li>
|
|
|
|
<li data-name="LuCI.form.FlagValue#cbid"><a href="LuCI.form.FlagValue.html#cbid">cbid</a></li>
|
|
|
|
<li data-name="LuCI.form.FlagValue#cfgvalue"><a href="LuCI.form.FlagValue.html#cfgvalue">cfgvalue</a></li>
|
|
|
|
<li data-name="LuCI.form.FlagValue#depends"><a href="LuCI.form.FlagValue.html#depends">depends</a></li>
|
|
|
|
<li data-name="LuCI.form.FlagValue#formvalue"><a href="LuCI.form.FlagValue.html#formvalue">formvalue</a></li>
|
|
|
|
<li data-name="LuCI.form.FlagValue#getUIElement"><a href="LuCI.form.FlagValue.html#getUIElement">getUIElement</a></li>
|
|
|
|
<li data-name="LuCI.form.FlagValue#getValidationError"><a href="LuCI.form.FlagValue.html#getValidationError">getValidationError</a></li>
|
|
|
|
<li data-name="LuCI.form.FlagValue#isActive"><a href="LuCI.form.FlagValue.html#isActive">isActive</a></li>
|
|
|
|
<li data-name="LuCI.form.FlagValue#isValid"><a href="LuCI.form.FlagValue.html#isValid">isValid</a></li>
|
|
|
|
<li data-name="LuCI.form.FlagValue#load"><a href="LuCI.form.FlagValue.html#load">load</a></li>
|
|
|
|
<li data-name="LuCI.form.FlagValue#parse"><a href="LuCI.form.FlagValue.html#parse">parse</a></li>
|
|
|
|
<li data-name="LuCI.form.FlagValue#remove"><a href="LuCI.form.FlagValue.html#remove">remove</a></li>
|
|
|
|
<li data-name="LuCI.form.FlagValue#stripTags"><a href="LuCI.form.FlagValue.html#stripTags">stripTags</a></li>
|
|
|
|
<li data-name="LuCI.form.FlagValue#textvalue"><a href="LuCI.form.FlagValue.html#textvalue">textvalue</a></li>
|
|
|
|
<li data-name="LuCI.form.FlagValue#titleFn"><a href="LuCI.form.FlagValue.html#titleFn">titleFn</a></li>
|
|
|
|
<li data-name="LuCI.form.FlagValue#value"><a href="LuCI.form.FlagValue.html#value">value</a></li>
|
|
|
|
<li data-name="LuCI.form.FlagValue#write"><a href="LuCI.form.FlagValue.html#write">write</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.form.GridSection">
|
|
<span class="title">
|
|
<a href="LuCI.form.GridSection.html">LuCI.form.GridSection</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
<span class="subtitle">Members</span>
|
|
|
|
<li data-name="LuCI.form.GridSection#addbtntitle"><a href="LuCI.form.GridSection.html#addbtntitle">addbtntitle</a></li>
|
|
|
|
<li data-name="LuCI.form.GridSection#addremove"><a href="LuCI.form.GridSection.html#addremove">addremove</a></li>
|
|
|
|
<li data-name="LuCI.form.GridSection#anonymous"><a href="LuCI.form.GridSection.html#anonymous">anonymous</a></li>
|
|
|
|
<li data-name="LuCI.form.GridSection#extedit"><a href="LuCI.form.GridSection.html#extedit">extedit</a></li>
|
|
|
|
<li data-name="LuCI.form.GridSection#max_cols"><a href="LuCI.form.GridSection.html#max_cols">max_cols</a></li>
|
|
|
|
<li data-name="LuCI.form.GridSection#modaltitle"><a href="LuCI.form.GridSection.html#modaltitle">modaltitle</a></li>
|
|
|
|
<li data-name="LuCI.form.GridSection#nodescriptions"><a href="LuCI.form.GridSection.html#nodescriptions">nodescriptions</a></li>
|
|
|
|
<li data-name="LuCI.form.GridSection#parentoption"><a href="LuCI.form.GridSection.html#parentoption">parentoption</a></li>
|
|
|
|
<li data-name="LuCI.form.GridSection#rowcolors"><a href="LuCI.form.GridSection.html#rowcolors">rowcolors</a></li>
|
|
|
|
<li data-name="LuCI.form.GridSection#sectiontitle"><a href="LuCI.form.GridSection.html#sectiontitle">sectiontitle</a></li>
|
|
|
|
<li data-name="LuCI.form.GridSection#sortable"><a href="LuCI.form.GridSection.html#sortable">sortable</a></li>
|
|
|
|
<li data-name="LuCI.form.GridSection#tabbed"><a href="LuCI.form.GridSection.html#tabbed">tabbed</a></li>
|
|
|
|
<li data-name="LuCI.form.GridSection#tooltip"><a href="LuCI.form.GridSection.html#tooltip">tooltip</a></li>
|
|
|
|
<li data-name="LuCI.form.GridSection#tooltipicon"><a href="LuCI.form.GridSection.html#tooltipicon">tooltipicon</a></li>
|
|
|
|
<li data-name="LuCI.form.GridSection#uciconfig"><a href="LuCI.form.GridSection.html#uciconfig">uciconfig</a></li>
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.form.GridSection#addModalOptions"><a href="LuCI.form.GridSection.html#addModalOptions">addModalOptions</a></li>
|
|
|
|
<li data-name="LuCI.form.GridSection#append"><a href="LuCI.form.GridSection.html#append">append</a></li>
|
|
|
|
<li data-name="LuCI.form.GridSection#cfgvalue"><a href="LuCI.form.GridSection.html#cfgvalue">cfgvalue</a></li>
|
|
|
|
<li data-name="LuCI.form.GridSection#filter"><a href="LuCI.form.GridSection.html#filter">filter</a></li>
|
|
|
|
<li data-name="LuCI.form.GridSection#formvalue"><a href="LuCI.form.GridSection.html#formvalue">formvalue</a></li>
|
|
|
|
<li data-name="LuCI.form.GridSection#getOption"><a href="LuCI.form.GridSection.html#getOption">getOption</a></li>
|
|
|
|
<li data-name="LuCI.form.GridSection#getUIElement"><a href="LuCI.form.GridSection.html#getUIElement">getUIElement</a></li>
|
|
|
|
<li data-name="LuCI.form.GridSection#load"><a href="LuCI.form.GridSection.html#load">load</a></li>
|
|
|
|
<li data-name="LuCI.form.GridSection#option"><a href="LuCI.form.GridSection.html#option">option</a></li>
|
|
|
|
<li data-name="LuCI.form.GridSection#parse"><a href="LuCI.form.GridSection.html#parse">parse</a></li>
|
|
|
|
<li data-name="LuCI.form.GridSection#stripTags"><a href="LuCI.form.GridSection.html#stripTags">stripTags</a></li>
|
|
|
|
<li data-name="LuCI.form.GridSection#tab"><a href="LuCI.form.GridSection.html#tab">tab</a></li>
|
|
|
|
<li data-name="LuCI.form.GridSection#taboption"><a href="LuCI.form.GridSection.html#taboption">taboption</a></li>
|
|
|
|
<li data-name="LuCI.form.GridSection#titleFn"><a href="LuCI.form.GridSection.html#titleFn">titleFn</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.form.HiddenValue">
|
|
<span class="title">
|
|
<a href="LuCI.form.HiddenValue.html">LuCI.form.HiddenValue</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
<span class="subtitle">Members</span>
|
|
|
|
<li data-name="LuCI.form.HiddenValue#datatype"><a href="LuCI.form.HiddenValue.html#datatype">datatype</a></li>
|
|
|
|
<li data-name="LuCI.form.HiddenValue#default"><a href="LuCI.form.HiddenValue.html#default">default</a></li>
|
|
|
|
<li data-name="LuCI.form.HiddenValue#editable"><a href="LuCI.form.HiddenValue.html#editable">editable</a></li>
|
|
|
|
<li data-name="LuCI.form.HiddenValue#modalonly"><a href="LuCI.form.HiddenValue.html#modalonly">modalonly</a></li>
|
|
|
|
<li data-name="LuCI.form.HiddenValue#onchange"><a href="LuCI.form.HiddenValue.html#onchange">onchange</a></li>
|
|
|
|
<li data-name="LuCI.form.HiddenValue#optional"><a href="LuCI.form.HiddenValue.html#optional">optional</a></li>
|
|
|
|
<li data-name="LuCI.form.HiddenValue#password"><a href="LuCI.form.HiddenValue.html#password">password</a></li>
|
|
|
|
<li data-name="LuCI.form.HiddenValue#placeholder"><a href="LuCI.form.HiddenValue.html#placeholder">placeholder</a></li>
|
|
|
|
<li data-name="LuCI.form.HiddenValue#readonly"><a href="LuCI.form.HiddenValue.html#readonly">readonly</a></li>
|
|
|
|
<li data-name="LuCI.form.HiddenValue#retain"><a href="LuCI.form.HiddenValue.html#retain">retain</a></li>
|
|
|
|
<li data-name="LuCI.form.HiddenValue#rmempty"><a href="LuCI.form.HiddenValue.html#rmempty">rmempty</a></li>
|
|
|
|
<li data-name="LuCI.form.HiddenValue#uciconfig"><a href="LuCI.form.HiddenValue.html#uciconfig">uciconfig</a></li>
|
|
|
|
<li data-name="LuCI.form.HiddenValue#ucioption"><a href="LuCI.form.HiddenValue.html#ucioption">ucioption</a></li>
|
|
|
|
<li data-name="LuCI.form.HiddenValue#ucisection"><a href="LuCI.form.HiddenValue.html#ucisection">ucisection</a></li>
|
|
|
|
<li data-name="LuCI.form.HiddenValue#validate"><a href="LuCI.form.HiddenValue.html#validate">validate</a></li>
|
|
|
|
<li data-name="LuCI.form.HiddenValue#width"><a href="LuCI.form.HiddenValue.html#width">width</a></li>
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.form.HiddenValue#append"><a href="LuCI.form.HiddenValue.html#append">append</a></li>
|
|
|
|
<li data-name="LuCI.form.HiddenValue#cbid"><a href="LuCI.form.HiddenValue.html#cbid">cbid</a></li>
|
|
|
|
<li data-name="LuCI.form.HiddenValue#cfgvalue"><a href="LuCI.form.HiddenValue.html#cfgvalue">cfgvalue</a></li>
|
|
|
|
<li data-name="LuCI.form.HiddenValue#depends"><a href="LuCI.form.HiddenValue.html#depends">depends</a></li>
|
|
|
|
<li data-name="LuCI.form.HiddenValue#formvalue"><a href="LuCI.form.HiddenValue.html#formvalue">formvalue</a></li>
|
|
|
|
<li data-name="LuCI.form.HiddenValue#getUIElement"><a href="LuCI.form.HiddenValue.html#getUIElement">getUIElement</a></li>
|
|
|
|
<li data-name="LuCI.form.HiddenValue#getValidationError"><a href="LuCI.form.HiddenValue.html#getValidationError">getValidationError</a></li>
|
|
|
|
<li data-name="LuCI.form.HiddenValue#isActive"><a href="LuCI.form.HiddenValue.html#isActive">isActive</a></li>
|
|
|
|
<li data-name="LuCI.form.HiddenValue#isValid"><a href="LuCI.form.HiddenValue.html#isValid">isValid</a></li>
|
|
|
|
<li data-name="LuCI.form.HiddenValue#load"><a href="LuCI.form.HiddenValue.html#load">load</a></li>
|
|
|
|
<li data-name="LuCI.form.HiddenValue#parse"><a href="LuCI.form.HiddenValue.html#parse">parse</a></li>
|
|
|
|
<li data-name="LuCI.form.HiddenValue#remove"><a href="LuCI.form.HiddenValue.html#remove">remove</a></li>
|
|
|
|
<li data-name="LuCI.form.HiddenValue#stripTags"><a href="LuCI.form.HiddenValue.html#stripTags">stripTags</a></li>
|
|
|
|
<li data-name="LuCI.form.HiddenValue#textvalue"><a href="LuCI.form.HiddenValue.html#textvalue">textvalue</a></li>
|
|
|
|
<li data-name="LuCI.form.HiddenValue#titleFn"><a href="LuCI.form.HiddenValue.html#titleFn">titleFn</a></li>
|
|
|
|
<li data-name="LuCI.form.HiddenValue#value"><a href="LuCI.form.HiddenValue.html#value">value</a></li>
|
|
|
|
<li data-name="LuCI.form.HiddenValue#write"><a href="LuCI.form.HiddenValue.html#write">write</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.form.JSONMap">
|
|
<span class="title">
|
|
<a href="LuCI.form.JSONMap.html">LuCI.form.JSONMap</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
<span class="subtitle">Members</span>
|
|
|
|
<li data-name="LuCI.form.JSONMap#readonly"><a href="LuCI.form.JSONMap.html#readonly">readonly</a></li>
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.form.JSONMap#append"><a href="LuCI.form.JSONMap.html#append">append</a></li>
|
|
|
|
<li data-name="LuCI.form.JSONMap#chain"><a href="LuCI.form.JSONMap.html#chain">chain</a></li>
|
|
|
|
<li data-name="LuCI.form.JSONMap#findElement"><a href="LuCI.form.JSONMap.html#findElement">findElement</a></li>
|
|
|
|
<li data-name="LuCI.form.JSONMap#findElements"><a href="LuCI.form.JSONMap.html#findElements">findElements</a></li>
|
|
|
|
<li data-name="LuCI.form.JSONMap#load"><a href="LuCI.form.JSONMap.html#load">load</a></li>
|
|
|
|
<li data-name="LuCI.form.JSONMap#lookupOption"><a href="LuCI.form.JSONMap.html#lookupOption">lookupOption</a></li>
|
|
|
|
<li data-name="LuCI.form.JSONMap#parse"><a href="LuCI.form.JSONMap.html#parse">parse</a></li>
|
|
|
|
<li data-name="LuCI.form.JSONMap#render"><a href="LuCI.form.JSONMap.html#render">render</a></li>
|
|
|
|
<li data-name="LuCI.form.JSONMap#reset"><a href="LuCI.form.JSONMap.html#reset">reset</a></li>
|
|
|
|
<li data-name="LuCI.form.JSONMap#save"><a href="LuCI.form.JSONMap.html#save">save</a></li>
|
|
|
|
<li data-name="LuCI.form.JSONMap#section"><a href="LuCI.form.JSONMap.html#section">section</a></li>
|
|
|
|
<li data-name="LuCI.form.JSONMap#stripTags"><a href="LuCI.form.JSONMap.html#stripTags">stripTags</a></li>
|
|
|
|
<li data-name="LuCI.form.JSONMap#titleFn"><a href="LuCI.form.JSONMap.html#titleFn">titleFn</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.form.ListValue">
|
|
<span class="title">
|
|
<a href="LuCI.form.ListValue.html">LuCI.form.ListValue</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
<span class="subtitle">Members</span>
|
|
|
|
<li data-name="LuCI.form.ListValue##orientation"><a href="LuCI.form.ListValue.html#orientation">orientation</a></li>
|
|
|
|
<li data-name="LuCI.form.ListValue##size"><a href="LuCI.form.ListValue.html#size">size</a></li>
|
|
|
|
<li data-name="LuCI.form.ListValue##widget"><a href="LuCI.form.ListValue.html#widget">widget</a></li>
|
|
|
|
<li data-name="LuCI.form.ListValue#datatype"><a href="LuCI.form.ListValue.html#datatype">datatype</a></li>
|
|
|
|
<li data-name="LuCI.form.ListValue#default"><a href="LuCI.form.ListValue.html#default">default</a></li>
|
|
|
|
<li data-name="LuCI.form.ListValue#editable"><a href="LuCI.form.ListValue.html#editable">editable</a></li>
|
|
|
|
<li data-name="LuCI.form.ListValue#modalonly"><a href="LuCI.form.ListValue.html#modalonly">modalonly</a></li>
|
|
|
|
<li data-name="LuCI.form.ListValue#onchange"><a href="LuCI.form.ListValue.html#onchange">onchange</a></li>
|
|
|
|
<li data-name="LuCI.form.ListValue#optional"><a href="LuCI.form.ListValue.html#optional">optional</a></li>
|
|
|
|
<li data-name="LuCI.form.ListValue#password"><a href="LuCI.form.ListValue.html#password">password</a></li>
|
|
|
|
<li data-name="LuCI.form.ListValue#placeholder"><a href="LuCI.form.ListValue.html#placeholder">placeholder</a></li>
|
|
|
|
<li data-name="LuCI.form.ListValue#readonly"><a href="LuCI.form.ListValue.html#readonly">readonly</a></li>
|
|
|
|
<li data-name="LuCI.form.ListValue#retain"><a href="LuCI.form.ListValue.html#retain">retain</a></li>
|
|
|
|
<li data-name="LuCI.form.ListValue#rmempty"><a href="LuCI.form.ListValue.html#rmempty">rmempty</a></li>
|
|
|
|
<li data-name="LuCI.form.ListValue#uciconfig"><a href="LuCI.form.ListValue.html#uciconfig">uciconfig</a></li>
|
|
|
|
<li data-name="LuCI.form.ListValue#ucioption"><a href="LuCI.form.ListValue.html#ucioption">ucioption</a></li>
|
|
|
|
<li data-name="LuCI.form.ListValue#ucisection"><a href="LuCI.form.ListValue.html#ucisection">ucisection</a></li>
|
|
|
|
<li data-name="LuCI.form.ListValue#validate"><a href="LuCI.form.ListValue.html#validate">validate</a></li>
|
|
|
|
<li data-name="LuCI.form.ListValue#width"><a href="LuCI.form.ListValue.html#width">width</a></li>
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.form.ListValue#append"><a href="LuCI.form.ListValue.html#append">append</a></li>
|
|
|
|
<li data-name="LuCI.form.ListValue#cbid"><a href="LuCI.form.ListValue.html#cbid">cbid</a></li>
|
|
|
|
<li data-name="LuCI.form.ListValue#cfgvalue"><a href="LuCI.form.ListValue.html#cfgvalue">cfgvalue</a></li>
|
|
|
|
<li data-name="LuCI.form.ListValue#depends"><a href="LuCI.form.ListValue.html#depends">depends</a></li>
|
|
|
|
<li data-name="LuCI.form.ListValue#formvalue"><a href="LuCI.form.ListValue.html#formvalue">formvalue</a></li>
|
|
|
|
<li data-name="LuCI.form.ListValue#getUIElement"><a href="LuCI.form.ListValue.html#getUIElement">getUIElement</a></li>
|
|
|
|
<li data-name="LuCI.form.ListValue#getValidationError"><a href="LuCI.form.ListValue.html#getValidationError">getValidationError</a></li>
|
|
|
|
<li data-name="LuCI.form.ListValue#isActive"><a href="LuCI.form.ListValue.html#isActive">isActive</a></li>
|
|
|
|
<li data-name="LuCI.form.ListValue#isValid"><a href="LuCI.form.ListValue.html#isValid">isValid</a></li>
|
|
|
|
<li data-name="LuCI.form.ListValue#load"><a href="LuCI.form.ListValue.html#load">load</a></li>
|
|
|
|
<li data-name="LuCI.form.ListValue#parse"><a href="LuCI.form.ListValue.html#parse">parse</a></li>
|
|
|
|
<li data-name="LuCI.form.ListValue#remove"><a href="LuCI.form.ListValue.html#remove">remove</a></li>
|
|
|
|
<li data-name="LuCI.form.ListValue#stripTags"><a href="LuCI.form.ListValue.html#stripTags">stripTags</a></li>
|
|
|
|
<li data-name="LuCI.form.ListValue#textvalue"><a href="LuCI.form.ListValue.html#textvalue">textvalue</a></li>
|
|
|
|
<li data-name="LuCI.form.ListValue#titleFn"><a href="LuCI.form.ListValue.html#titleFn">titleFn</a></li>
|
|
|
|
<li data-name="LuCI.form.ListValue#value"><a href="LuCI.form.ListValue.html#value">value</a></li>
|
|
|
|
<li data-name="LuCI.form.ListValue#write"><a href="LuCI.form.ListValue.html#write">write</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.form.Map">
|
|
<span class="title">
|
|
<a href="LuCI.form.Map.html">LuCI.form.Map</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
<span class="subtitle">Members</span>
|
|
|
|
<li data-name="LuCI.form.Map##readonly"><a href="LuCI.form.Map.html#readonly">readonly</a></li>
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.form.Map#append"><a href="LuCI.form.Map.html#append">append</a></li>
|
|
|
|
<li data-name="LuCI.form.Map#chain"><a href="LuCI.form.Map.html#chain">chain</a></li>
|
|
|
|
<li data-name="LuCI.form.Map#findElement"><a href="LuCI.form.Map.html#findElement">findElement</a></li>
|
|
|
|
<li data-name="LuCI.form.Map#findElements"><a href="LuCI.form.Map.html#findElements">findElements</a></li>
|
|
|
|
<li data-name="LuCI.form.Map#load"><a href="LuCI.form.Map.html#load">load</a></li>
|
|
|
|
<li data-name="LuCI.form.Map#lookupOption"><a href="LuCI.form.Map.html#lookupOption">lookupOption</a></li>
|
|
|
|
<li data-name="LuCI.form.Map#parse"><a href="LuCI.form.Map.html#parse">parse</a></li>
|
|
|
|
<li data-name="LuCI.form.Map#render"><a href="LuCI.form.Map.html#render">render</a></li>
|
|
|
|
<li data-name="LuCI.form.Map#reset"><a href="LuCI.form.Map.html#reset">reset</a></li>
|
|
|
|
<li data-name="LuCI.form.Map#save"><a href="LuCI.form.Map.html#save">save</a></li>
|
|
|
|
<li data-name="LuCI.form.Map#section"><a href="LuCI.form.Map.html#section">section</a></li>
|
|
|
|
<li data-name="LuCI.form.Map#stripTags"><a href="LuCI.form.Map.html#stripTags">stripTags</a></li>
|
|
|
|
<li data-name="LuCI.form.Map#titleFn"><a href="LuCI.form.Map.html#titleFn">titleFn</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.form.MultiValue">
|
|
<span class="title">
|
|
<a href="LuCI.form.MultiValue.html">LuCI.form.MultiValue</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
<span class="subtitle">Members</span>
|
|
|
|
<li data-name="LuCI.form.MultiValue##display_size"><a href="LuCI.form.MultiValue.html#display_size">display_size</a></li>
|
|
|
|
<li data-name="LuCI.form.MultiValue##dropdown_size"><a href="LuCI.form.MultiValue.html#dropdown_size">dropdown_size</a></li>
|
|
|
|
<li data-name="LuCI.form.MultiValue#datatype"><a href="LuCI.form.MultiValue.html#datatype">datatype</a></li>
|
|
|
|
<li data-name="LuCI.form.MultiValue#default"><a href="LuCI.form.MultiValue.html#default">default</a></li>
|
|
|
|
<li data-name="LuCI.form.MultiValue#editable"><a href="LuCI.form.MultiValue.html#editable">editable</a></li>
|
|
|
|
<li data-name="LuCI.form.MultiValue#modalonly"><a href="LuCI.form.MultiValue.html#modalonly">modalonly</a></li>
|
|
|
|
<li data-name="LuCI.form.MultiValue#onchange"><a href="LuCI.form.MultiValue.html#onchange">onchange</a></li>
|
|
|
|
<li data-name="LuCI.form.MultiValue#optional"><a href="LuCI.form.MultiValue.html#optional">optional</a></li>
|
|
|
|
<li data-name="LuCI.form.MultiValue#password"><a href="LuCI.form.MultiValue.html#password">password</a></li>
|
|
|
|
<li data-name="LuCI.form.MultiValue#placeholder"><a href="LuCI.form.MultiValue.html#placeholder">placeholder</a></li>
|
|
|
|
<li data-name="LuCI.form.MultiValue#readonly"><a href="LuCI.form.MultiValue.html#readonly">readonly</a></li>
|
|
|
|
<li data-name="LuCI.form.MultiValue#retain"><a href="LuCI.form.MultiValue.html#retain">retain</a></li>
|
|
|
|
<li data-name="LuCI.form.MultiValue#rmempty"><a href="LuCI.form.MultiValue.html#rmempty">rmempty</a></li>
|
|
|
|
<li data-name="LuCI.form.MultiValue#uciconfig"><a href="LuCI.form.MultiValue.html#uciconfig">uciconfig</a></li>
|
|
|
|
<li data-name="LuCI.form.MultiValue#ucioption"><a href="LuCI.form.MultiValue.html#ucioption">ucioption</a></li>
|
|
|
|
<li data-name="LuCI.form.MultiValue#ucisection"><a href="LuCI.form.MultiValue.html#ucisection">ucisection</a></li>
|
|
|
|
<li data-name="LuCI.form.MultiValue#validate"><a href="LuCI.form.MultiValue.html#validate">validate</a></li>
|
|
|
|
<li data-name="LuCI.form.MultiValue#width"><a href="LuCI.form.MultiValue.html#width">width</a></li>
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.form.MultiValue#append"><a href="LuCI.form.MultiValue.html#append">append</a></li>
|
|
|
|
<li data-name="LuCI.form.MultiValue#cbid"><a href="LuCI.form.MultiValue.html#cbid">cbid</a></li>
|
|
|
|
<li data-name="LuCI.form.MultiValue#cfgvalue"><a href="LuCI.form.MultiValue.html#cfgvalue">cfgvalue</a></li>
|
|
|
|
<li data-name="LuCI.form.MultiValue#depends"><a href="LuCI.form.MultiValue.html#depends">depends</a></li>
|
|
|
|
<li data-name="LuCI.form.MultiValue#formvalue"><a href="LuCI.form.MultiValue.html#formvalue">formvalue</a></li>
|
|
|
|
<li data-name="LuCI.form.MultiValue#getUIElement"><a href="LuCI.form.MultiValue.html#getUIElement">getUIElement</a></li>
|
|
|
|
<li data-name="LuCI.form.MultiValue#getValidationError"><a href="LuCI.form.MultiValue.html#getValidationError">getValidationError</a></li>
|
|
|
|
<li data-name="LuCI.form.MultiValue#isActive"><a href="LuCI.form.MultiValue.html#isActive">isActive</a></li>
|
|
|
|
<li data-name="LuCI.form.MultiValue#isValid"><a href="LuCI.form.MultiValue.html#isValid">isValid</a></li>
|
|
|
|
<li data-name="LuCI.form.MultiValue#load"><a href="LuCI.form.MultiValue.html#load">load</a></li>
|
|
|
|
<li data-name="LuCI.form.MultiValue#parse"><a href="LuCI.form.MultiValue.html#parse">parse</a></li>
|
|
|
|
<li data-name="LuCI.form.MultiValue#remove"><a href="LuCI.form.MultiValue.html#remove">remove</a></li>
|
|
|
|
<li data-name="LuCI.form.MultiValue#stripTags"><a href="LuCI.form.MultiValue.html#stripTags">stripTags</a></li>
|
|
|
|
<li data-name="LuCI.form.MultiValue#textvalue"><a href="LuCI.form.MultiValue.html#textvalue">textvalue</a></li>
|
|
|
|
<li data-name="LuCI.form.MultiValue#titleFn"><a href="LuCI.form.MultiValue.html#titleFn">titleFn</a></li>
|
|
|
|
<li data-name="LuCI.form.MultiValue#value"><a href="LuCI.form.MultiValue.html#value">value</a></li>
|
|
|
|
<li data-name="LuCI.form.MultiValue#write"><a href="LuCI.form.MultiValue.html#write">write</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.form.NamedSection">
|
|
<span class="title">
|
|
<a href="LuCI.form.NamedSection.html">LuCI.form.NamedSection</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
<span class="subtitle">Members</span>
|
|
|
|
<li data-name="LuCI.form.NamedSection##addremove"><a href="LuCI.form.NamedSection.html#addremove">addremove</a></li>
|
|
|
|
<li data-name="LuCI.form.NamedSection##uciconfig"><a href="LuCI.form.NamedSection.html#uciconfig">uciconfig</a></li>
|
|
|
|
<li data-name="LuCI.form.NamedSection#parentoption"><a href="LuCI.form.NamedSection.html#parentoption">parentoption</a></li>
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.form.NamedSection#append"><a href="LuCI.form.NamedSection.html#append">append</a></li>
|
|
|
|
<li data-name="LuCI.form.NamedSection#cfgsections"><a href="LuCI.form.NamedSection.html#cfgsections">cfgsections</a></li>
|
|
|
|
<li data-name="LuCI.form.NamedSection#cfgvalue"><a href="LuCI.form.NamedSection.html#cfgvalue">cfgvalue</a></li>
|
|
|
|
<li data-name="LuCI.form.NamedSection#filter"><a href="LuCI.form.NamedSection.html#filter">filter</a></li>
|
|
|
|
<li data-name="LuCI.form.NamedSection#formvalue"><a href="LuCI.form.NamedSection.html#formvalue">formvalue</a></li>
|
|
|
|
<li data-name="LuCI.form.NamedSection#getOption"><a href="LuCI.form.NamedSection.html#getOption">getOption</a></li>
|
|
|
|
<li data-name="LuCI.form.NamedSection#getUIElement"><a href="LuCI.form.NamedSection.html#getUIElement">getUIElement</a></li>
|
|
|
|
<li data-name="LuCI.form.NamedSection#load"><a href="LuCI.form.NamedSection.html#load">load</a></li>
|
|
|
|
<li data-name="LuCI.form.NamedSection#option"><a href="LuCI.form.NamedSection.html#option">option</a></li>
|
|
|
|
<li data-name="LuCI.form.NamedSection#parse"><a href="LuCI.form.NamedSection.html#parse">parse</a></li>
|
|
|
|
<li data-name="LuCI.form.NamedSection#render"><a href="LuCI.form.NamedSection.html#render">render</a></li>
|
|
|
|
<li data-name="LuCI.form.NamedSection#stripTags"><a href="LuCI.form.NamedSection.html#stripTags">stripTags</a></li>
|
|
|
|
<li data-name="LuCI.form.NamedSection#tab"><a href="LuCI.form.NamedSection.html#tab">tab</a></li>
|
|
|
|
<li data-name="LuCI.form.NamedSection#taboption"><a href="LuCI.form.NamedSection.html#taboption">taboption</a></li>
|
|
|
|
<li data-name="LuCI.form.NamedSection#titleFn"><a href="LuCI.form.NamedSection.html#titleFn">titleFn</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.form.SectionValue">
|
|
<span class="title">
|
|
<a href="LuCI.form.SectionValue.html">LuCI.form.SectionValue</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
<span class="subtitle">Members</span>
|
|
|
|
<li data-name="LuCI.form.SectionValue##subsection"><a href="LuCI.form.SectionValue.html#subsection">subsection</a></li>
|
|
|
|
<li data-name="LuCI.form.SectionValue#datatype"><a href="LuCI.form.SectionValue.html#datatype">datatype</a></li>
|
|
|
|
<li data-name="LuCI.form.SectionValue#default"><a href="LuCI.form.SectionValue.html#default">default</a></li>
|
|
|
|
<li data-name="LuCI.form.SectionValue#editable"><a href="LuCI.form.SectionValue.html#editable">editable</a></li>
|
|
|
|
<li data-name="LuCI.form.SectionValue#modalonly"><a href="LuCI.form.SectionValue.html#modalonly">modalonly</a></li>
|
|
|
|
<li data-name="LuCI.form.SectionValue#onchange"><a href="LuCI.form.SectionValue.html#onchange">onchange</a></li>
|
|
|
|
<li data-name="LuCI.form.SectionValue#optional"><a href="LuCI.form.SectionValue.html#optional">optional</a></li>
|
|
|
|
<li data-name="LuCI.form.SectionValue#password"><a href="LuCI.form.SectionValue.html#password">password</a></li>
|
|
|
|
<li data-name="LuCI.form.SectionValue#placeholder"><a href="LuCI.form.SectionValue.html#placeholder">placeholder</a></li>
|
|
|
|
<li data-name="LuCI.form.SectionValue#readonly"><a href="LuCI.form.SectionValue.html#readonly">readonly</a></li>
|
|
|
|
<li data-name="LuCI.form.SectionValue#retain"><a href="LuCI.form.SectionValue.html#retain">retain</a></li>
|
|
|
|
<li data-name="LuCI.form.SectionValue#rmempty"><a href="LuCI.form.SectionValue.html#rmempty">rmempty</a></li>
|
|
|
|
<li data-name="LuCI.form.SectionValue#uciconfig"><a href="LuCI.form.SectionValue.html#uciconfig">uciconfig</a></li>
|
|
|
|
<li data-name="LuCI.form.SectionValue#ucioption"><a href="LuCI.form.SectionValue.html#ucioption">ucioption</a></li>
|
|
|
|
<li data-name="LuCI.form.SectionValue#ucisection"><a href="LuCI.form.SectionValue.html#ucisection">ucisection</a></li>
|
|
|
|
<li data-name="LuCI.form.SectionValue#validate"><a href="LuCI.form.SectionValue.html#validate">validate</a></li>
|
|
|
|
<li data-name="LuCI.form.SectionValue#width"><a href="LuCI.form.SectionValue.html#width">width</a></li>
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.form.SectionValue#append"><a href="LuCI.form.SectionValue.html#append">append</a></li>
|
|
|
|
<li data-name="LuCI.form.SectionValue#cbid"><a href="LuCI.form.SectionValue.html#cbid">cbid</a></li>
|
|
|
|
<li data-name="LuCI.form.SectionValue#cfgvalue"><a href="LuCI.form.SectionValue.html#cfgvalue">cfgvalue</a></li>
|
|
|
|
<li data-name="LuCI.form.SectionValue#depends"><a href="LuCI.form.SectionValue.html#depends">depends</a></li>
|
|
|
|
<li data-name="LuCI.form.SectionValue#formvalue"><a href="LuCI.form.SectionValue.html#formvalue">formvalue</a></li>
|
|
|
|
<li data-name="LuCI.form.SectionValue#getUIElement"><a href="LuCI.form.SectionValue.html#getUIElement">getUIElement</a></li>
|
|
|
|
<li data-name="LuCI.form.SectionValue#getValidationError"><a href="LuCI.form.SectionValue.html#getValidationError">getValidationError</a></li>
|
|
|
|
<li data-name="LuCI.form.SectionValue#isActive"><a href="LuCI.form.SectionValue.html#isActive">isActive</a></li>
|
|
|
|
<li data-name="LuCI.form.SectionValue#isValid"><a href="LuCI.form.SectionValue.html#isValid">isValid</a></li>
|
|
|
|
<li data-name="LuCI.form.SectionValue#load"><a href="LuCI.form.SectionValue.html#load">load</a></li>
|
|
|
|
<li data-name="LuCI.form.SectionValue#parse"><a href="LuCI.form.SectionValue.html#parse">parse</a></li>
|
|
|
|
<li data-name="LuCI.form.SectionValue#remove"><a href="LuCI.form.SectionValue.html#remove">remove</a></li>
|
|
|
|
<li data-name="LuCI.form.SectionValue#stripTags"><a href="LuCI.form.SectionValue.html#stripTags">stripTags</a></li>
|
|
|
|
<li data-name="LuCI.form.SectionValue#textvalue"><a href="LuCI.form.SectionValue.html#textvalue">textvalue</a></li>
|
|
|
|
<li data-name="LuCI.form.SectionValue#titleFn"><a href="LuCI.form.SectionValue.html#titleFn">titleFn</a></li>
|
|
|
|
<li data-name="LuCI.form.SectionValue#value"><a href="LuCI.form.SectionValue.html#value">value</a></li>
|
|
|
|
<li data-name="LuCI.form.SectionValue#write"><a href="LuCI.form.SectionValue.html#write">write</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.form.TableSection">
|
|
<span class="title">
|
|
<a href="LuCI.form.TableSection.html">LuCI.form.TableSection</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
<span class="subtitle">Members</span>
|
|
|
|
<li data-name="LuCI.form.TableSection##addbtntitle"><a href="LuCI.form.TableSection.html#addbtntitle">addbtntitle</a></li>
|
|
|
|
<li data-name="LuCI.form.TableSection##addremove"><a href="LuCI.form.TableSection.html#addremove">addremove</a></li>
|
|
|
|
<li data-name="LuCI.form.TableSection##anonymous"><a href="LuCI.form.TableSection.html#anonymous">anonymous</a></li>
|
|
|
|
<li data-name="LuCI.form.TableSection##extedit"><a href="LuCI.form.TableSection.html#extedit">extedit</a></li>
|
|
|
|
<li data-name="LuCI.form.TableSection##max_cols"><a href="LuCI.form.TableSection.html#max_cols">max_cols</a></li>
|
|
|
|
<li data-name="LuCI.form.TableSection##modaltitle"><a href="LuCI.form.TableSection.html#modaltitle">modaltitle</a></li>
|
|
|
|
<li data-name="LuCI.form.TableSection##nodescriptions"><a href="LuCI.form.TableSection.html#nodescriptions">nodescriptions</a></li>
|
|
|
|
<li data-name="LuCI.form.TableSection##rowcolors"><a href="LuCI.form.TableSection.html#rowcolors">rowcolors</a></li>
|
|
|
|
<li data-name="LuCI.form.TableSection##sectiontitle"><a href="LuCI.form.TableSection.html#sectiontitle">sectiontitle</a></li>
|
|
|
|
<li data-name="LuCI.form.TableSection##sortable"><a href="LuCI.form.TableSection.html#sortable">sortable</a></li>
|
|
|
|
<li data-name="LuCI.form.TableSection##uciconfig"><a href="LuCI.form.TableSection.html#uciconfig">uciconfig</a></li>
|
|
|
|
<li data-name="LuCI.form.TableSection#addbtntitle"><a href="LuCI.form.TableSection.html#addbtntitle">addbtntitle</a></li>
|
|
|
|
<li data-name="LuCI.form.TableSection#addremove"><a href="LuCI.form.TableSection.html#addremove">addremove</a></li>
|
|
|
|
<li data-name="LuCI.form.TableSection#anonymous"><a href="LuCI.form.TableSection.html#anonymous">anonymous</a></li>
|
|
|
|
<li data-name="LuCI.form.TableSection#parentoption"><a href="LuCI.form.TableSection.html#parentoption">parentoption</a></li>
|
|
|
|
<li data-name="LuCI.form.TableSection#tabbed"><a href="LuCI.form.TableSection.html#tabbed">tabbed</a></li>
|
|
|
|
<li data-name="LuCI.form.TableSection#tooltip"><a href="LuCI.form.TableSection.html#tooltip">tooltip</a></li>
|
|
|
|
<li data-name="LuCI.form.TableSection#tooltipicon"><a href="LuCI.form.TableSection.html#tooltipicon">tooltipicon</a></li>
|
|
|
|
<li data-name="LuCI.form.TableSection#uciconfig"><a href="LuCI.form.TableSection.html#uciconfig">uciconfig</a></li>
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.form.TableSection#addModalOptions"><a href="LuCI.form.TableSection.html#addModalOptions">addModalOptions</a></li>
|
|
|
|
<li data-name="LuCI.form.TableSection#append"><a href="LuCI.form.TableSection.html#append">append</a></li>
|
|
|
|
<li data-name="LuCI.form.TableSection#cfgvalue"><a href="LuCI.form.TableSection.html#cfgvalue">cfgvalue</a></li>
|
|
|
|
<li data-name="LuCI.form.TableSection#filter"><a href="LuCI.form.TableSection.html#filter">filter</a></li>
|
|
|
|
<li data-name="LuCI.form.TableSection#formvalue"><a href="LuCI.form.TableSection.html#formvalue">formvalue</a></li>
|
|
|
|
<li data-name="LuCI.form.TableSection#getOption"><a href="LuCI.form.TableSection.html#getOption">getOption</a></li>
|
|
|
|
<li data-name="LuCI.form.TableSection#getUIElement"><a href="LuCI.form.TableSection.html#getUIElement">getUIElement</a></li>
|
|
|
|
<li data-name="LuCI.form.TableSection#load"><a href="LuCI.form.TableSection.html#load">load</a></li>
|
|
|
|
<li data-name="LuCI.form.TableSection#option"><a href="LuCI.form.TableSection.html#option">option</a></li>
|
|
|
|
<li data-name="LuCI.form.TableSection#parse"><a href="LuCI.form.TableSection.html#parse">parse</a></li>
|
|
|
|
<li data-name="LuCI.form.TableSection#stripTags"><a href="LuCI.form.TableSection.html#stripTags">stripTags</a></li>
|
|
|
|
<li data-name="LuCI.form.TableSection#tab"><a href="LuCI.form.TableSection.html#tab">tab</a></li>
|
|
|
|
<li data-name="LuCI.form.TableSection#taboption"><a href="LuCI.form.TableSection.html#taboption">taboption</a></li>
|
|
|
|
<li data-name="LuCI.form.TableSection#titleFn"><a href="LuCI.form.TableSection.html#titleFn">titleFn</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.form.TextValue">
|
|
<span class="title">
|
|
<a href="LuCI.form.TextValue.html">LuCI.form.TextValue</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
<span class="subtitle">Members</span>
|
|
|
|
<li data-name="LuCI.form.TextValue##cols"><a href="LuCI.form.TextValue.html#cols">cols</a></li>
|
|
|
|
<li data-name="LuCI.form.TextValue##monospace"><a href="LuCI.form.TextValue.html#monospace">monospace</a></li>
|
|
|
|
<li data-name="LuCI.form.TextValue##rows"><a href="LuCI.form.TextValue.html#rows">rows</a></li>
|
|
|
|
<li data-name="LuCI.form.TextValue##wrap"><a href="LuCI.form.TextValue.html#wrap">wrap</a></li>
|
|
|
|
<li data-name="LuCI.form.TextValue#datatype"><a href="LuCI.form.TextValue.html#datatype">datatype</a></li>
|
|
|
|
<li data-name="LuCI.form.TextValue#default"><a href="LuCI.form.TextValue.html#default">default</a></li>
|
|
|
|
<li data-name="LuCI.form.TextValue#editable"><a href="LuCI.form.TextValue.html#editable">editable</a></li>
|
|
|
|
<li data-name="LuCI.form.TextValue#modalonly"><a href="LuCI.form.TextValue.html#modalonly">modalonly</a></li>
|
|
|
|
<li data-name="LuCI.form.TextValue#onchange"><a href="LuCI.form.TextValue.html#onchange">onchange</a></li>
|
|
|
|
<li data-name="LuCI.form.TextValue#optional"><a href="LuCI.form.TextValue.html#optional">optional</a></li>
|
|
|
|
<li data-name="LuCI.form.TextValue#password"><a href="LuCI.form.TextValue.html#password">password</a></li>
|
|
|
|
<li data-name="LuCI.form.TextValue#placeholder"><a href="LuCI.form.TextValue.html#placeholder">placeholder</a></li>
|
|
|
|
<li data-name="LuCI.form.TextValue#readonly"><a href="LuCI.form.TextValue.html#readonly">readonly</a></li>
|
|
|
|
<li data-name="LuCI.form.TextValue#retain"><a href="LuCI.form.TextValue.html#retain">retain</a></li>
|
|
|
|
<li data-name="LuCI.form.TextValue#rmempty"><a href="LuCI.form.TextValue.html#rmempty">rmempty</a></li>
|
|
|
|
<li data-name="LuCI.form.TextValue#uciconfig"><a href="LuCI.form.TextValue.html#uciconfig">uciconfig</a></li>
|
|
|
|
<li data-name="LuCI.form.TextValue#ucioption"><a href="LuCI.form.TextValue.html#ucioption">ucioption</a></li>
|
|
|
|
<li data-name="LuCI.form.TextValue#ucisection"><a href="LuCI.form.TextValue.html#ucisection">ucisection</a></li>
|
|
|
|
<li data-name="LuCI.form.TextValue#validate"><a href="LuCI.form.TextValue.html#validate">validate</a></li>
|
|
|
|
<li data-name="LuCI.form.TextValue#width"><a href="LuCI.form.TextValue.html#width">width</a></li>
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.form.TextValue#append"><a href="LuCI.form.TextValue.html#append">append</a></li>
|
|
|
|
<li data-name="LuCI.form.TextValue#cbid"><a href="LuCI.form.TextValue.html#cbid">cbid</a></li>
|
|
|
|
<li data-name="LuCI.form.TextValue#cfgvalue"><a href="LuCI.form.TextValue.html#cfgvalue">cfgvalue</a></li>
|
|
|
|
<li data-name="LuCI.form.TextValue#depends"><a href="LuCI.form.TextValue.html#depends">depends</a></li>
|
|
|
|
<li data-name="LuCI.form.TextValue#formvalue"><a href="LuCI.form.TextValue.html#formvalue">formvalue</a></li>
|
|
|
|
<li data-name="LuCI.form.TextValue#getUIElement"><a href="LuCI.form.TextValue.html#getUIElement">getUIElement</a></li>
|
|
|
|
<li data-name="LuCI.form.TextValue#getValidationError"><a href="LuCI.form.TextValue.html#getValidationError">getValidationError</a></li>
|
|
|
|
<li data-name="LuCI.form.TextValue#isActive"><a href="LuCI.form.TextValue.html#isActive">isActive</a></li>
|
|
|
|
<li data-name="LuCI.form.TextValue#isValid"><a href="LuCI.form.TextValue.html#isValid">isValid</a></li>
|
|
|
|
<li data-name="LuCI.form.TextValue#load"><a href="LuCI.form.TextValue.html#load">load</a></li>
|
|
|
|
<li data-name="LuCI.form.TextValue#parse"><a href="LuCI.form.TextValue.html#parse">parse</a></li>
|
|
|
|
<li data-name="LuCI.form.TextValue#remove"><a href="LuCI.form.TextValue.html#remove">remove</a></li>
|
|
|
|
<li data-name="LuCI.form.TextValue#stripTags"><a href="LuCI.form.TextValue.html#stripTags">stripTags</a></li>
|
|
|
|
<li data-name="LuCI.form.TextValue#textvalue"><a href="LuCI.form.TextValue.html#textvalue">textvalue</a></li>
|
|
|
|
<li data-name="LuCI.form.TextValue#titleFn"><a href="LuCI.form.TextValue.html#titleFn">titleFn</a></li>
|
|
|
|
<li data-name="LuCI.form.TextValue#write"><a href="LuCI.form.TextValue.html#write">write</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.form.TypedSection">
|
|
<span class="title">
|
|
<a href="LuCI.form.TypedSection.html">LuCI.form.TypedSection</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
<span class="subtitle">Members</span>
|
|
|
|
<li data-name="LuCI.form.TypedSection##addbtntitle"><a href="LuCI.form.TypedSection.html#addbtntitle">addbtntitle</a></li>
|
|
|
|
<li data-name="LuCI.form.TypedSection##addremove"><a href="LuCI.form.TypedSection.html#addremove">addremove</a></li>
|
|
|
|
<li data-name="LuCI.form.TypedSection##anonymous"><a href="LuCI.form.TypedSection.html#anonymous">anonymous</a></li>
|
|
|
|
<li data-name="LuCI.form.TypedSection##tabbed"><a href="LuCI.form.TypedSection.html#tabbed">tabbed</a></li>
|
|
|
|
<li data-name="LuCI.form.TypedSection##tooltip"><a href="LuCI.form.TypedSection.html#tooltip">tooltip</a></li>
|
|
|
|
<li data-name="LuCI.form.TypedSection##tooltipicon"><a href="LuCI.form.TypedSection.html#tooltipicon">tooltipicon</a></li>
|
|
|
|
<li data-name="LuCI.form.TypedSection##uciconfig"><a href="LuCI.form.TypedSection.html#uciconfig">uciconfig</a></li>
|
|
|
|
<li data-name="LuCI.form.TypedSection#parentoption"><a href="LuCI.form.TypedSection.html#parentoption">parentoption</a></li>
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.form.TypedSection#append"><a href="LuCI.form.TypedSection.html#append">append</a></li>
|
|
|
|
<li data-name="LuCI.form.TypedSection#cfgsections"><a href="LuCI.form.TypedSection.html#cfgsections">cfgsections</a></li>
|
|
|
|
<li data-name="LuCI.form.TypedSection#cfgvalue"><a href="LuCI.form.TypedSection.html#cfgvalue">cfgvalue</a></li>
|
|
|
|
<li data-name="LuCI.form.TypedSection#filter"><a href="LuCI.form.TypedSection.html#filter">filter</a></li>
|
|
|
|
<li data-name="LuCI.form.TypedSection#formvalue"><a href="LuCI.form.TypedSection.html#formvalue">formvalue</a></li>
|
|
|
|
<li data-name="LuCI.form.TypedSection#getOption"><a href="LuCI.form.TypedSection.html#getOption">getOption</a></li>
|
|
|
|
<li data-name="LuCI.form.TypedSection#getUIElement"><a href="LuCI.form.TypedSection.html#getUIElement">getUIElement</a></li>
|
|
|
|
<li data-name="LuCI.form.TypedSection#load"><a href="LuCI.form.TypedSection.html#load">load</a></li>
|
|
|
|
<li data-name="LuCI.form.TypedSection#option"><a href="LuCI.form.TypedSection.html#option">option</a></li>
|
|
|
|
<li data-name="LuCI.form.TypedSection#parse"><a href="LuCI.form.TypedSection.html#parse">parse</a></li>
|
|
|
|
<li data-name="LuCI.form.TypedSection#render"><a href="LuCI.form.TypedSection.html#render">render</a></li>
|
|
|
|
<li data-name="LuCI.form.TypedSection#stripTags"><a href="LuCI.form.TypedSection.html#stripTags">stripTags</a></li>
|
|
|
|
<li data-name="LuCI.form.TypedSection#tab"><a href="LuCI.form.TypedSection.html#tab">tab</a></li>
|
|
|
|
<li data-name="LuCI.form.TypedSection#taboption"><a href="LuCI.form.TypedSection.html#taboption">taboption</a></li>
|
|
|
|
<li data-name="LuCI.form.TypedSection#titleFn"><a href="LuCI.form.TypedSection.html#titleFn">titleFn</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.form.Value">
|
|
<span class="title">
|
|
<a href="LuCI.form.Value.html">LuCI.form.Value</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
<span class="subtitle">Members</span>
|
|
|
|
<li data-name="LuCI.form.Value##password"><a href="LuCI.form.Value.html#password">password</a></li>
|
|
|
|
<li data-name="LuCI.form.Value##placeholder"><a href="LuCI.form.Value.html#placeholder">placeholder</a></li>
|
|
|
|
<li data-name="LuCI.form.Value#datatype"><a href="LuCI.form.Value.html#datatype">datatype</a></li>
|
|
|
|
<li data-name="LuCI.form.Value#default"><a href="LuCI.form.Value.html#default">default</a></li>
|
|
|
|
<li data-name="LuCI.form.Value#editable"><a href="LuCI.form.Value.html#editable">editable</a></li>
|
|
|
|
<li data-name="LuCI.form.Value#modalonly"><a href="LuCI.form.Value.html#modalonly">modalonly</a></li>
|
|
|
|
<li data-name="LuCI.form.Value#onchange"><a href="LuCI.form.Value.html#onchange">onchange</a></li>
|
|
|
|
<li data-name="LuCI.form.Value#optional"><a href="LuCI.form.Value.html#optional">optional</a></li>
|
|
|
|
<li data-name="LuCI.form.Value#readonly"><a href="LuCI.form.Value.html#readonly">readonly</a></li>
|
|
|
|
<li data-name="LuCI.form.Value#retain"><a href="LuCI.form.Value.html#retain">retain</a></li>
|
|
|
|
<li data-name="LuCI.form.Value#rmempty"><a href="LuCI.form.Value.html#rmempty">rmempty</a></li>
|
|
|
|
<li data-name="LuCI.form.Value#uciconfig"><a href="LuCI.form.Value.html#uciconfig">uciconfig</a></li>
|
|
|
|
<li data-name="LuCI.form.Value#ucioption"><a href="LuCI.form.Value.html#ucioption">ucioption</a></li>
|
|
|
|
<li data-name="LuCI.form.Value#ucisection"><a href="LuCI.form.Value.html#ucisection">ucisection</a></li>
|
|
|
|
<li data-name="LuCI.form.Value#validate"><a href="LuCI.form.Value.html#validate">validate</a></li>
|
|
|
|
<li data-name="LuCI.form.Value#width"><a href="LuCI.form.Value.html#width">width</a></li>
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.form.Value#append"><a href="LuCI.form.Value.html#append">append</a></li>
|
|
|
|
<li data-name="LuCI.form.Value#cbid"><a href="LuCI.form.Value.html#cbid">cbid</a></li>
|
|
|
|
<li data-name="LuCI.form.Value#cfgvalue"><a href="LuCI.form.Value.html#cfgvalue">cfgvalue</a></li>
|
|
|
|
<li data-name="LuCI.form.Value#depends"><a href="LuCI.form.Value.html#depends">depends</a></li>
|
|
|
|
<li data-name="LuCI.form.Value#formvalue"><a href="LuCI.form.Value.html#formvalue">formvalue</a></li>
|
|
|
|
<li data-name="LuCI.form.Value#getUIElement"><a href="LuCI.form.Value.html#getUIElement">getUIElement</a></li>
|
|
|
|
<li data-name="LuCI.form.Value#getValidationError"><a href="LuCI.form.Value.html#getValidationError">getValidationError</a></li>
|
|
|
|
<li data-name="LuCI.form.Value#isActive"><a href="LuCI.form.Value.html#isActive">isActive</a></li>
|
|
|
|
<li data-name="LuCI.form.Value#isValid"><a href="LuCI.form.Value.html#isValid">isValid</a></li>
|
|
|
|
<li data-name="LuCI.form.Value#load"><a href="LuCI.form.Value.html#load">load</a></li>
|
|
|
|
<li data-name="LuCI.form.Value#parse"><a href="LuCI.form.Value.html#parse">parse</a></li>
|
|
|
|
<li data-name="LuCI.form.Value#remove"><a href="LuCI.form.Value.html#remove">remove</a></li>
|
|
|
|
<li data-name="LuCI.form.Value#render"><a href="LuCI.form.Value.html#render">render</a></li>
|
|
|
|
<li data-name="LuCI.form.Value#stripTags"><a href="LuCI.form.Value.html#stripTags">stripTags</a></li>
|
|
|
|
<li data-name="LuCI.form.Value#textvalue"><a href="LuCI.form.Value.html#textvalue">textvalue</a></li>
|
|
|
|
<li data-name="LuCI.form.Value#titleFn"><a href="LuCI.form.Value.html#titleFn">titleFn</a></li>
|
|
|
|
<li data-name="LuCI.form.Value#value"><a href="LuCI.form.Value.html#value">value</a></li>
|
|
|
|
<li data-name="LuCI.form.Value#write"><a href="LuCI.form.Value.html#write">write</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.fs">
|
|
<span class="title">
|
|
<a href="LuCI.fs.html">LuCI.fs</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
<span class="subtitle">Typedefs</span>
|
|
|
|
<li data-name="LuCI.fs.FileExecResult"><a href="LuCI.fs.html#.FileExecResult">FileExecResult</a></li>
|
|
|
|
<li data-name="LuCI.fs.FileStatEntry"><a href="LuCI.fs.html#.FileStatEntry">FileStatEntry</a></li>
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.fs#exec"><a href="LuCI.fs.html#exec">exec</a></li>
|
|
|
|
<li data-name="LuCI.fs#exec_direct"><a href="LuCI.fs.html#exec_direct">exec_direct</a></li>
|
|
|
|
<li data-name="LuCI.fs#lines"><a href="LuCI.fs.html#lines">lines</a></li>
|
|
|
|
<li data-name="LuCI.fs#list"><a href="LuCI.fs.html#list">list</a></li>
|
|
|
|
<li data-name="LuCI.fs#read"><a href="LuCI.fs.html#read">read</a></li>
|
|
|
|
<li data-name="LuCI.fs#read_direct"><a href="LuCI.fs.html#read_direct">read_direct</a></li>
|
|
|
|
<li data-name="LuCI.fs#remove"><a href="LuCI.fs.html#remove">remove</a></li>
|
|
|
|
<li data-name="LuCI.fs#stat"><a href="LuCI.fs.html#stat">stat</a></li>
|
|
|
|
<li data-name="LuCI.fs#trimmed"><a href="LuCI.fs.html#trimmed">trimmed</a></li>
|
|
|
|
<li data-name="LuCI.fs#write"><a href="LuCI.fs.html#write">write</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.headers">
|
|
<span class="title">
|
|
<a href="LuCI.headers.html">LuCI.headers</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.headers#get"><a href="LuCI.headers.html#get">get</a></li>
|
|
|
|
<li data-name="LuCI.headers#has"><a href="LuCI.headers.html#has">has</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.network">
|
|
<span class="title">
|
|
<a href="LuCI.network.html">LuCI.network</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
<span class="subtitle">Typedefs</span>
|
|
|
|
<li data-name="LuCI.network.SwitchTopology"><a href="LuCI.network.html#.SwitchTopology">SwitchTopology</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiEncryption"><a href="LuCI.network.html#.WifiEncryption">WifiEncryption</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiPeerEntry"><a href="LuCI.network.html#.WifiPeerEntry">WifiPeerEntry</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiRateEntry"><a href="LuCI.network.html#.WifiRateEntry">WifiRateEntry</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiScanResult"><a href="LuCI.network.html#.WifiScanResult">WifiScanResult</a></li>
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.network#addNetwork"><a href="LuCI.network.html#addNetwork">addNetwork</a></li>
|
|
|
|
<li data-name="LuCI.network#addWifiNetwork"><a href="LuCI.network.html#addWifiNetwork">addWifiNetwork</a></li>
|
|
|
|
<li data-name="LuCI.network#deleteNetwork"><a href="LuCI.network.html#deleteNetwork">deleteNetwork</a></li>
|
|
|
|
<li data-name="LuCI.network#deleteWifiNetwork"><a href="LuCI.network.html#deleteWifiNetwork">deleteWifiNetwork</a></li>
|
|
|
|
<li data-name="LuCI.network#flushCache"><a href="LuCI.network.html#flushCache">flushCache</a></li>
|
|
|
|
<li data-name="LuCI.network#formatWifiEncryption"><a href="LuCI.network.html#formatWifiEncryption">formatWifiEncryption</a></li>
|
|
|
|
<li data-name="LuCI.network#getDevice"><a href="LuCI.network.html#getDevice">getDevice</a></li>
|
|
|
|
<li data-name="LuCI.network#getDevices"><a href="LuCI.network.html#getDevices">getDevices</a></li>
|
|
|
|
<li data-name="LuCI.network#getDSLModemType"><a href="LuCI.network.html#getDSLModemType">getDSLModemType</a></li>
|
|
|
|
<li data-name="LuCI.network#getHostHints"><a href="LuCI.network.html#getHostHints">getHostHints</a></li>
|
|
|
|
<li data-name="LuCI.network#getIfnameOf"><a href="LuCI.network.html#getIfnameOf">getIfnameOf</a></li>
|
|
|
|
<li data-name="LuCI.network#getNetwork"><a href="LuCI.network.html#getNetwork">getNetwork</a></li>
|
|
|
|
<li data-name="LuCI.network#getNetworks"><a href="LuCI.network.html#getNetworks">getNetworks</a></li>
|
|
|
|
<li data-name="LuCI.network#getProtocol"><a href="LuCI.network.html#getProtocol">getProtocol</a></li>
|
|
|
|
<li data-name="LuCI.network#getProtocols"><a href="LuCI.network.html#getProtocols">getProtocols</a></li>
|
|
|
|
<li data-name="LuCI.network#getSwitchTopologies"><a href="LuCI.network.html#getSwitchTopologies">getSwitchTopologies</a></li>
|
|
|
|
<li data-name="LuCI.network#getWAN6Networks"><a href="LuCI.network.html#getWAN6Networks">getWAN6Networks</a></li>
|
|
|
|
<li data-name="LuCI.network#getWANNetworks"><a href="LuCI.network.html#getWANNetworks">getWANNetworks</a></li>
|
|
|
|
<li data-name="LuCI.network#getWifiDevice"><a href="LuCI.network.html#getWifiDevice">getWifiDevice</a></li>
|
|
|
|
<li data-name="LuCI.network#getWifiDevices"><a href="LuCI.network.html#getWifiDevices">getWifiDevices</a></li>
|
|
|
|
<li data-name="LuCI.network#getWifiNetwork"><a href="LuCI.network.html#getWifiNetwork">getWifiNetwork</a></li>
|
|
|
|
<li data-name="LuCI.network#getWifiNetworks"><a href="LuCI.network.html#getWifiNetworks">getWifiNetworks</a></li>
|
|
|
|
<li data-name="LuCI.network#isIgnoredDevice"><a href="LuCI.network.html#isIgnoredDevice">isIgnoredDevice</a></li>
|
|
|
|
<li data-name="LuCI.network#maskToPrefix"><a href="LuCI.network.html#maskToPrefix">maskToPrefix</a></li>
|
|
|
|
<li data-name="LuCI.network#prefixToMask"><a href="LuCI.network.html#prefixToMask">prefixToMask</a></li>
|
|
|
|
<li data-name="LuCI.network#registerErrorCode"><a href="LuCI.network.html#registerErrorCode">registerErrorCode</a></li>
|
|
|
|
<li data-name="LuCI.network#registerPatternVirtual"><a href="LuCI.network.html#registerPatternVirtual">registerPatternVirtual</a></li>
|
|
|
|
<li data-name="LuCI.network#registerProtocol"><a href="LuCI.network.html#registerProtocol">registerProtocol</a></li>
|
|
|
|
<li data-name="LuCI.network#renameNetwork"><a href="LuCI.network.html#renameNetwork">renameNetwork</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.network.Device">
|
|
<span class="title">
|
|
<a href="LuCI.network.Device.html">LuCI.network.Device</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.network.Device#getBridgeID"><a href="LuCI.network.Device.html#getBridgeID">getBridgeID</a></li>
|
|
|
|
<li data-name="LuCI.network.Device#getBridgeSTP"><a href="LuCI.network.Device.html#getBridgeSTP">getBridgeSTP</a></li>
|
|
|
|
<li data-name="LuCI.network.Device#getCarrier"><a href="LuCI.network.Device.html#getCarrier">getCarrier</a></li>
|
|
|
|
<li data-name="LuCI.network.Device#getDuplex"><a href="LuCI.network.Device.html#getDuplex">getDuplex</a></li>
|
|
|
|
<li data-name="LuCI.network.Device#getI18n"><a href="LuCI.network.Device.html#getI18n">getI18n</a></li>
|
|
|
|
<li data-name="LuCI.network.Device#getIP6Addrs"><a href="LuCI.network.Device.html#getIP6Addrs">getIP6Addrs</a></li>
|
|
|
|
<li data-name="LuCI.network.Device#getIPAddrs"><a href="LuCI.network.Device.html#getIPAddrs">getIPAddrs</a></li>
|
|
|
|
<li data-name="LuCI.network.Device#getMAC"><a href="LuCI.network.Device.html#getMAC">getMAC</a></li>
|
|
|
|
<li data-name="LuCI.network.Device#getMTU"><a href="LuCI.network.Device.html#getMTU">getMTU</a></li>
|
|
|
|
<li data-name="LuCI.network.Device#getName"><a href="LuCI.network.Device.html#getName">getName</a></li>
|
|
|
|
<li data-name="LuCI.network.Device#getNetwork"><a href="LuCI.network.Device.html#getNetwork">getNetwork</a></li>
|
|
|
|
<li data-name="LuCI.network.Device#getNetworks"><a href="LuCI.network.Device.html#getNetworks">getNetworks</a></li>
|
|
|
|
<li data-name="LuCI.network.Device#getParent"><a href="LuCI.network.Device.html#getParent">getParent</a></li>
|
|
|
|
<li data-name="LuCI.network.Device#getPorts"><a href="LuCI.network.Device.html#getPorts">getPorts</a></li>
|
|
|
|
<li data-name="LuCI.network.Device#getRXBytes"><a href="LuCI.network.Device.html#getRXBytes">getRXBytes</a></li>
|
|
|
|
<li data-name="LuCI.network.Device#getRXPackets"><a href="LuCI.network.Device.html#getRXPackets">getRXPackets</a></li>
|
|
|
|
<li data-name="LuCI.network.Device#getShortName"><a href="LuCI.network.Device.html#getShortName">getShortName</a></li>
|
|
|
|
<li data-name="LuCI.network.Device#getSpeed"><a href="LuCI.network.Device.html#getSpeed">getSpeed</a></li>
|
|
|
|
<li data-name="LuCI.network.Device#getTXBytes"><a href="LuCI.network.Device.html#getTXBytes">getTXBytes</a></li>
|
|
|
|
<li data-name="LuCI.network.Device#getTXPackets"><a href="LuCI.network.Device.html#getTXPackets">getTXPackets</a></li>
|
|
|
|
<li data-name="LuCI.network.Device#getType"><a href="LuCI.network.Device.html#getType">getType</a></li>
|
|
|
|
<li data-name="LuCI.network.Device#getTypeI18n"><a href="LuCI.network.Device.html#getTypeI18n">getTypeI18n</a></li>
|
|
|
|
<li data-name="LuCI.network.Device#getWifiNetwork"><a href="LuCI.network.Device.html#getWifiNetwork">getWifiNetwork</a></li>
|
|
|
|
<li data-name="LuCI.network.Device#isBridge"><a href="LuCI.network.Device.html#isBridge">isBridge</a></li>
|
|
|
|
<li data-name="LuCI.network.Device#isBridgePort"><a href="LuCI.network.Device.html#isBridgePort">isBridgePort</a></li>
|
|
|
|
<li data-name="LuCI.network.Device#isUp"><a href="LuCI.network.Device.html#isUp">isUp</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.network.Hosts">
|
|
<span class="title">
|
|
<a href="LuCI.network.Hosts.html">LuCI.network.Hosts</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.network.Hosts#getHostnameByIP6Addr"><a href="LuCI.network.Hosts.html#getHostnameByIP6Addr">getHostnameByIP6Addr</a></li>
|
|
|
|
<li data-name="LuCI.network.Hosts#getHostnameByIPAddr"><a href="LuCI.network.Hosts.html#getHostnameByIPAddr">getHostnameByIPAddr</a></li>
|
|
|
|
<li data-name="LuCI.network.Hosts#getHostnameByMACAddr"><a href="LuCI.network.Hosts.html#getHostnameByMACAddr">getHostnameByMACAddr</a></li>
|
|
|
|
<li data-name="LuCI.network.Hosts#getIP6AddrByMACAddr"><a href="LuCI.network.Hosts.html#getIP6AddrByMACAddr">getIP6AddrByMACAddr</a></li>
|
|
|
|
<li data-name="LuCI.network.Hosts#getIPAddrByMACAddr"><a href="LuCI.network.Hosts.html#getIPAddrByMACAddr">getIPAddrByMACAddr</a></li>
|
|
|
|
<li data-name="LuCI.network.Hosts#getMACAddrByIP6Addr"><a href="LuCI.network.Hosts.html#getMACAddrByIP6Addr">getMACAddrByIP6Addr</a></li>
|
|
|
|
<li data-name="LuCI.network.Hosts#getMACAddrByIPAddr"><a href="LuCI.network.Hosts.html#getMACAddrByIPAddr">getMACAddrByIPAddr</a></li>
|
|
|
|
<li data-name="LuCI.network.Hosts#getMACHints"><a href="LuCI.network.Hosts.html#getMACHints">getMACHints</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.network.Protocol">
|
|
<span class="title">
|
|
<a href="LuCI.network.Protocol.html">LuCI.network.Protocol</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.network.Protocol#addDevice"><a href="LuCI.network.Protocol.html#addDevice">addDevice</a></li>
|
|
|
|
<li data-name="LuCI.network.Protocol#containsDevice"><a href="LuCI.network.Protocol.html#containsDevice">containsDevice</a></li>
|
|
|
|
<li data-name="LuCI.network.Protocol#deleteConfiguration"><a href="LuCI.network.Protocol.html#deleteConfiguration">deleteConfiguration</a></li>
|
|
|
|
<li data-name="LuCI.network.Protocol#deleteDevice"><a href="LuCI.network.Protocol.html#deleteDevice">deleteDevice</a></li>
|
|
|
|
<li data-name="LuCI.network.Protocol#get"><a href="LuCI.network.Protocol.html#get">get</a></li>
|
|
|
|
<li data-name="LuCI.network.Protocol#getDevice"><a href="LuCI.network.Protocol.html#getDevice">getDevice</a></li>
|
|
|
|
<li data-name="LuCI.network.Protocol#getDevices"><a href="LuCI.network.Protocol.html#getDevices">getDevices</a></li>
|
|
|
|
<li data-name="LuCI.network.Protocol#getDNS6Addrs"><a href="LuCI.network.Protocol.html#getDNS6Addrs">getDNS6Addrs</a></li>
|
|
|
|
<li data-name="LuCI.network.Protocol#getDNSAddrs"><a href="LuCI.network.Protocol.html#getDNSAddrs">getDNSAddrs</a></li>
|
|
|
|
<li data-name="LuCI.network.Protocol#getErrors"><a href="LuCI.network.Protocol.html#getErrors">getErrors</a></li>
|
|
|
|
<li data-name="LuCI.network.Protocol#getExpiry"><a href="LuCI.network.Protocol.html#getExpiry">getExpiry</a></li>
|
|
|
|
<li data-name="LuCI.network.Protocol#getGateway6Addr"><a href="LuCI.network.Protocol.html#getGateway6Addr">getGateway6Addr</a></li>
|
|
|
|
<li data-name="LuCI.network.Protocol#getGatewayAddr"><a href="LuCI.network.Protocol.html#getGatewayAddr">getGatewayAddr</a></li>
|
|
|
|
<li data-name="LuCI.network.Protocol#getI18n"><a href="LuCI.network.Protocol.html#getI18n">getI18n</a></li>
|
|
|
|
<li data-name="LuCI.network.Protocol#getIfname"><a href="LuCI.network.Protocol.html#getIfname">getIfname</a></li>
|
|
|
|
<li data-name="LuCI.network.Protocol#getIP6Addr"><a href="LuCI.network.Protocol.html#getIP6Addr">getIP6Addr</a></li>
|
|
|
|
<li data-name="LuCI.network.Protocol#getIP6Addrs"><a href="LuCI.network.Protocol.html#getIP6Addrs">getIP6Addrs</a></li>
|
|
|
|
<li data-name="LuCI.network.Protocol#getIP6Prefix"><a href="LuCI.network.Protocol.html#getIP6Prefix">getIP6Prefix</a></li>
|
|
|
|
<li data-name="LuCI.network.Protocol#getIPAddr"><a href="LuCI.network.Protocol.html#getIPAddr">getIPAddr</a></li>
|
|
|
|
<li data-name="LuCI.network.Protocol#getIPAddrs"><a href="LuCI.network.Protocol.html#getIPAddrs">getIPAddrs</a></li>
|
|
|
|
<li data-name="LuCI.network.Protocol#getL2Device"><a href="LuCI.network.Protocol.html#getL2Device">getL2Device</a></li>
|
|
|
|
<li data-name="LuCI.network.Protocol#getL3Device"><a href="LuCI.network.Protocol.html#getL3Device">getL3Device</a></li>
|
|
|
|
<li data-name="LuCI.network.Protocol#getMetric"><a href="LuCI.network.Protocol.html#getMetric">getMetric</a></li>
|
|
|
|
<li data-name="LuCI.network.Protocol#getName"><a href="LuCI.network.Protocol.html#getName">getName</a></li>
|
|
|
|
<li data-name="LuCI.network.Protocol#getNetmask"><a href="LuCI.network.Protocol.html#getNetmask">getNetmask</a></li>
|
|
|
|
<li data-name="LuCI.network.Protocol#getOpkgPackage"><a href="LuCI.network.Protocol.html#getOpkgPackage">getOpkgPackage</a></li>
|
|
|
|
<li data-name="LuCI.network.Protocol#getProtocol"><a href="LuCI.network.Protocol.html#getProtocol">getProtocol</a></li>
|
|
|
|
<li data-name="LuCI.network.Protocol#getType"><a href="LuCI.network.Protocol.html#getType">getType</a></li>
|
|
|
|
<li data-name="LuCI.network.Protocol#getUptime"><a href="LuCI.network.Protocol.html#getUptime">getUptime</a></li>
|
|
|
|
<li data-name="LuCI.network.Protocol#getZoneName"><a href="LuCI.network.Protocol.html#getZoneName">getZoneName</a></li>
|
|
|
|
<li data-name="LuCI.network.Protocol#isAlias"><a href="LuCI.network.Protocol.html#isAlias">isAlias</a></li>
|
|
|
|
<li data-name="LuCI.network.Protocol#isBridge"><a href="LuCI.network.Protocol.html#isBridge">isBridge</a></li>
|
|
|
|
<li data-name="LuCI.network.Protocol#isCreateable"><a href="LuCI.network.Protocol.html#isCreateable">isCreateable</a></li>
|
|
|
|
<li data-name="LuCI.network.Protocol#isDynamic"><a href="LuCI.network.Protocol.html#isDynamic">isDynamic</a></li>
|
|
|
|
<li data-name="LuCI.network.Protocol#isEmpty"><a href="LuCI.network.Protocol.html#isEmpty">isEmpty</a></li>
|
|
|
|
<li data-name="LuCI.network.Protocol#isFloating"><a href="LuCI.network.Protocol.html#isFloating">isFloating</a></li>
|
|
|
|
<li data-name="LuCI.network.Protocol#isInstalled"><a href="LuCI.network.Protocol.html#isInstalled">isInstalled</a></li>
|
|
|
|
<li data-name="LuCI.network.Protocol#isUp"><a href="LuCI.network.Protocol.html#isUp">isUp</a></li>
|
|
|
|
<li data-name="LuCI.network.Protocol#isVirtual"><a href="LuCI.network.Protocol.html#isVirtual">isVirtual</a></li>
|
|
|
|
<li data-name="LuCI.network.Protocol#set"><a href="LuCI.network.Protocol.html#set">set</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.network.WifiDevice">
|
|
<span class="title">
|
|
<a href="LuCI.network.WifiDevice.html">LuCI.network.WifiDevice</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.network.WifiDevice#addWifiNetwork"><a href="LuCI.network.WifiDevice.html#addWifiNetwork">addWifiNetwork</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiDevice#deleteWifiNetwork"><a href="LuCI.network.WifiDevice.html#deleteWifiNetwork">deleteWifiNetwork</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiDevice#get"><a href="LuCI.network.WifiDevice.html#get">get</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiDevice#getHTModes"><a href="LuCI.network.WifiDevice.html#getHTModes">getHTModes</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiDevice#getHWModes"><a href="LuCI.network.WifiDevice.html#getHWModes">getHWModes</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiDevice#getI18n"><a href="LuCI.network.WifiDevice.html#getI18n">getI18n</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiDevice#getName"><a href="LuCI.network.WifiDevice.html#getName">getName</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiDevice#getScanList"><a href="LuCI.network.WifiDevice.html#getScanList">getScanList</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiDevice#getWifiNetwork"><a href="LuCI.network.WifiDevice.html#getWifiNetwork">getWifiNetwork</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiDevice#getWifiNetworks"><a href="LuCI.network.WifiDevice.html#getWifiNetworks">getWifiNetworks</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiDevice#isDisabled"><a href="LuCI.network.WifiDevice.html#isDisabled">isDisabled</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiDevice#isUp"><a href="LuCI.network.WifiDevice.html#isUp">isUp</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiDevice#set"><a href="LuCI.network.WifiDevice.html#set">set</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.network.WifiNetwork">
|
|
<span class="title">
|
|
<a href="LuCI.network.WifiNetwork.html">LuCI.network.WifiNetwork</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.network.WifiNetwork#disconnectClient"><a href="LuCI.network.WifiNetwork.html#disconnectClient">disconnectClient</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiNetwork#get"><a href="LuCI.network.WifiNetwork.html#get">get</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiNetwork#getActiveBSSID"><a href="LuCI.network.WifiNetwork.html#getActiveBSSID">getActiveBSSID</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiNetwork#getActiveEncryption"><a href="LuCI.network.WifiNetwork.html#getActiveEncryption">getActiveEncryption</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiNetwork#getActiveMode"><a href="LuCI.network.WifiNetwork.html#getActiveMode">getActiveMode</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiNetwork#getActiveModeI18n"><a href="LuCI.network.WifiNetwork.html#getActiveModeI18n">getActiveModeI18n</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiNetwork#getActiveSSID"><a href="LuCI.network.WifiNetwork.html#getActiveSSID">getActiveSSID</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiNetwork#getAssocList"><a href="LuCI.network.WifiNetwork.html#getAssocList">getAssocList</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiNetwork#getBitRate"><a href="LuCI.network.WifiNetwork.html#getBitRate">getBitRate</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiNetwork#getBSSID"><a href="LuCI.network.WifiNetwork.html#getBSSID">getBSSID</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiNetwork#getChannel"><a href="LuCI.network.WifiNetwork.html#getChannel">getChannel</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiNetwork#getCountryCode"><a href="LuCI.network.WifiNetwork.html#getCountryCode">getCountryCode</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiNetwork#getDevice"><a href="LuCI.network.WifiNetwork.html#getDevice">getDevice</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiNetwork#getFrequency"><a href="LuCI.network.WifiNetwork.html#getFrequency">getFrequency</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiNetwork#getI18n"><a href="LuCI.network.WifiNetwork.html#getI18n">getI18n</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiNetwork#getID"><a href="LuCI.network.WifiNetwork.html#getID">getID</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiNetwork#getIfname"><a href="LuCI.network.WifiNetwork.html#getIfname">getIfname</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiNetwork#getMeshID"><a href="LuCI.network.WifiNetwork.html#getMeshID">getMeshID</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiNetwork#getMode"><a href="LuCI.network.WifiNetwork.html#getMode">getMode</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiNetwork#getName"><a href="LuCI.network.WifiNetwork.html#getName">getName</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiNetwork#getNetwork"><a href="LuCI.network.WifiNetwork.html#getNetwork">getNetwork</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiNetwork#getNetworkNames"><a href="LuCI.network.WifiNetwork.html#getNetworkNames">getNetworkNames</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiNetwork#getNetworks"><a href="LuCI.network.WifiNetwork.html#getNetworks">getNetworks</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiNetwork#getNoise"><a href="LuCI.network.WifiNetwork.html#getNoise">getNoise</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiNetwork#getShortName"><a href="LuCI.network.WifiNetwork.html#getShortName">getShortName</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiNetwork#getSignal"><a href="LuCI.network.WifiNetwork.html#getSignal">getSignal</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiNetwork#getSignalLevel"><a href="LuCI.network.WifiNetwork.html#getSignalLevel">getSignalLevel</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiNetwork#getSignalPercent"><a href="LuCI.network.WifiNetwork.html#getSignalPercent">getSignalPercent</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiNetwork#getSSID"><a href="LuCI.network.WifiNetwork.html#getSSID">getSSID</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiNetwork#getTXPower"><a href="LuCI.network.WifiNetwork.html#getTXPower">getTXPower</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiNetwork#getTXPowerOffset"><a href="LuCI.network.WifiNetwork.html#getTXPowerOffset">getTXPowerOffset</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiNetwork#getVlanIfnames"><a href="LuCI.network.WifiNetwork.html#getVlanIfnames">getVlanIfnames</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiNetwork#getWifiDevice"><a href="LuCI.network.WifiNetwork.html#getWifiDevice">getWifiDevice</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiNetwork#getWifiDeviceName"><a href="LuCI.network.WifiNetwork.html#getWifiDeviceName">getWifiDeviceName</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiNetwork#isClientDisconnectSupported"><a href="LuCI.network.WifiNetwork.html#isClientDisconnectSupported">isClientDisconnectSupported</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiNetwork#isDisabled"><a href="LuCI.network.WifiNetwork.html#isDisabled">isDisabled</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiNetwork#isUp"><a href="LuCI.network.WifiNetwork.html#isUp">isUp</a></li>
|
|
|
|
<li data-name="LuCI.network.WifiNetwork#set"><a href="LuCI.network.WifiNetwork.html#set">set</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.poll">
|
|
<span class="title">
|
|
<a href="LuCI.poll.html">LuCI.poll</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.poll#active"><a href="LuCI.poll.html#active">active</a></li>
|
|
|
|
<li data-name="LuCI.poll#add"><a href="LuCI.poll.html#add">add</a></li>
|
|
|
|
<li data-name="LuCI.poll#remove"><a href="LuCI.poll.html#remove">remove</a></li>
|
|
|
|
<li data-name="LuCI.poll#start"><a href="LuCI.poll.html#start">start</a></li>
|
|
|
|
<li data-name="LuCI.poll#stop"><a href="LuCI.poll.html#stop">stop</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.request">
|
|
<span class="title">
|
|
<a href="LuCI.request.html">LuCI.request</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
<span class="subtitle">Typedefs</span>
|
|
|
|
<li data-name="LuCI.request.interceptorFn"><a href="LuCI.request.html#.interceptorFn">interceptorFn</a></li>
|
|
|
|
<li data-name="LuCI.request.RequestOptions"><a href="LuCI.request.html#.RequestOptions">RequestOptions</a></li>
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.request#addInterceptor"><a href="LuCI.request.html#addInterceptor">addInterceptor</a></li>
|
|
|
|
<li data-name="LuCI.request#expandURL"><a href="LuCI.request.html#expandURL">expandURL</a></li>
|
|
|
|
<li data-name="LuCI.request#get"><a href="LuCI.request.html#get">get</a></li>
|
|
|
|
<li data-name="LuCI.request#post"><a href="LuCI.request.html#post">post</a></li>
|
|
|
|
<li data-name="LuCI.request#removeInterceptor"><a href="LuCI.request.html#removeInterceptor">removeInterceptor</a></li>
|
|
|
|
<li data-name="LuCI.request#request"><a href="LuCI.request.html#request">request</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.request.poll">
|
|
<span class="title">
|
|
<a href="LuCI.request.poll.html">LuCI.request.poll</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
<span class="subtitle">Typedefs</span>
|
|
|
|
<li data-name="LuCI.request.poll~callbackFn"><a href="LuCI.request.poll.html#~callbackFn">callbackFn</a></li>
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.request.poll#active"><a href="LuCI.request.poll.html#active">active</a></li>
|
|
|
|
<li data-name="LuCI.request.poll#add"><a href="LuCI.request.poll.html#add">add</a></li>
|
|
|
|
<li data-name="LuCI.request.poll#remove"><a href="LuCI.request.poll.html#remove">remove</a></li>
|
|
|
|
<li data-name="LuCI.request.poll#start"><a href="LuCI.request.poll.html#start">start</a></li>
|
|
|
|
<li data-name="LuCI.request.poll#stop"><a href="LuCI.request.poll.html#stop">stop</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.response">
|
|
<span class="title">
|
|
<a href="LuCI.response.html">LuCI.response</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
<span class="subtitle">Members</span>
|
|
|
|
<li data-name="LuCI.response#duration"><a href="LuCI.response.html#duration">duration</a></li>
|
|
|
|
<li data-name="LuCI.response#headers"><a href="LuCI.response.html#headers">headers</a></li>
|
|
|
|
<li data-name="LuCI.response#ok"><a href="LuCI.response.html#ok">ok</a></li>
|
|
|
|
<li data-name="LuCI.response#status"><a href="LuCI.response.html#status">status</a></li>
|
|
|
|
<li data-name="LuCI.response#statusText"><a href="LuCI.response.html#statusText">statusText</a></li>
|
|
|
|
<li data-name="LuCI.response#url"><a href="LuCI.response.html#url">url</a></li>
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.response#blob"><a href="LuCI.response.html#blob">blob</a></li>
|
|
|
|
<li data-name="LuCI.response#clone"><a href="LuCI.response.html#clone">clone</a></li>
|
|
|
|
<li data-name="LuCI.response#json"><a href="LuCI.response.html#json">json</a></li>
|
|
|
|
<li data-name="LuCI.response#text"><a href="LuCI.response.html#text">text</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.rpc">
|
|
<span class="title">
|
|
<a href="LuCI.rpc.html">LuCI.rpc</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
<span class="subtitle">Typedefs</span>
|
|
|
|
<li data-name="LuCI.rpc.DeclareOptions"><a href="LuCI.rpc.html#.DeclareOptions">DeclareOptions</a></li>
|
|
|
|
<li data-name="LuCI.rpc~filterFn"><a href="LuCI.rpc.html#~filterFn">filterFn</a></li>
|
|
|
|
<li data-name="LuCI.rpc~interceptorFn"><a href="LuCI.rpc.html#~interceptorFn">interceptorFn</a></li>
|
|
|
|
<li data-name="LuCI.rpc~invokeFn"><a href="LuCI.rpc.html#~invokeFn">invokeFn</a></li>
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.rpc#addInterceptor"><a href="LuCI.rpc.html#addInterceptor">addInterceptor</a></li>
|
|
|
|
<li data-name="LuCI.rpc#declare"><a href="LuCI.rpc.html#declare">declare</a></li>
|
|
|
|
<li data-name="LuCI.rpc#getBaseURL"><a href="LuCI.rpc.html#getBaseURL">getBaseURL</a></li>
|
|
|
|
<li data-name="LuCI.rpc#getSessionID"><a href="LuCI.rpc.html#getSessionID">getSessionID</a></li>
|
|
|
|
<li data-name="LuCI.rpc#getStatusText"><a href="LuCI.rpc.html#getStatusText">getStatusText</a></li>
|
|
|
|
<li data-name="LuCI.rpc#list"><a href="LuCI.rpc.html#list">list</a></li>
|
|
|
|
<li data-name="LuCI.rpc#removeInterceptor"><a href="LuCI.rpc.html#removeInterceptor">removeInterceptor</a></li>
|
|
|
|
<li data-name="LuCI.rpc#setBaseURL"><a href="LuCI.rpc.html#setBaseURL">setBaseURL</a></li>
|
|
|
|
<li data-name="LuCI.rpc#setSessionID"><a href="LuCI.rpc.html#setSessionID">setSessionID</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.session">
|
|
<span class="title">
|
|
<a href="LuCI.session.html">LuCI.session</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.session#getID"><a href="LuCI.session.html#getID">getID</a></li>
|
|
|
|
<li data-name="LuCI.session#getLocalData"><a href="LuCI.session.html#getLocalData">getLocalData</a></li>
|
|
|
|
<li data-name="LuCI.session#getToken"><a href="LuCI.session.html#getToken">getToken</a></li>
|
|
|
|
<li data-name="LuCI.session#setLocalData"><a href="LuCI.session.html#setLocalData">setLocalData</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.uci">
|
|
<span class="title">
|
|
<a href="LuCI.uci.html">LuCI.uci</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
<span class="subtitle">Typedefs</span>
|
|
|
|
<li data-name="LuCI.uci.ChangeRecord"><a href="LuCI.uci.html#.ChangeRecord">ChangeRecord</a></li>
|
|
|
|
<li data-name="LuCI.uci.SectionObject"><a href="LuCI.uci.html#.SectionObject">SectionObject</a></li>
|
|
|
|
<li data-name="LuCI.uci~sectionsFn"><a href="LuCI.uci.html#~sectionsFn">sectionsFn</a></li>
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.uci#add"><a href="LuCI.uci.html#add">add</a></li>
|
|
|
|
<li data-name="LuCI.uci#apply"><a href="LuCI.uci.html#apply">apply</a></li>
|
|
|
|
<li data-name="LuCI.uci#changes"><a href="LuCI.uci.html#changes">changes</a></li>
|
|
|
|
<li data-name="LuCI.uci#createSID"><a href="LuCI.uci.html#createSID">createSID</a></li>
|
|
|
|
<li data-name="LuCI.uci#get"><a href="LuCI.uci.html#get">get</a></li>
|
|
|
|
<li data-name="LuCI.uci#get_first"><a href="LuCI.uci.html#get_first">get_first</a></li>
|
|
|
|
<li data-name="LuCI.uci#load"><a href="LuCI.uci.html#load">load</a></li>
|
|
|
|
<li data-name="LuCI.uci#move"><a href="LuCI.uci.html#move">move</a></li>
|
|
|
|
<li data-name="LuCI.uci#remove"><a href="LuCI.uci.html#remove">remove</a></li>
|
|
|
|
<li data-name="LuCI.uci#resolveSID"><a href="LuCI.uci.html#resolveSID">resolveSID</a></li>
|
|
|
|
<li data-name="LuCI.uci#save"><a href="LuCI.uci.html#save">save</a></li>
|
|
|
|
<li data-name="LuCI.uci#sections"><a href="LuCI.uci.html#sections">sections</a></li>
|
|
|
|
<li data-name="LuCI.uci#set"><a href="LuCI.uci.html#set">set</a></li>
|
|
|
|
<li data-name="LuCI.uci#set_first"><a href="LuCI.uci.html#set_first">set_first</a></li>
|
|
|
|
<li data-name="LuCI.uci#unload"><a href="LuCI.uci.html#unload">unload</a></li>
|
|
|
|
<li data-name="LuCI.uci#unset"><a href="LuCI.uci.html#unset">unset</a></li>
|
|
|
|
<li data-name="LuCI.uci#unset_first"><a href="LuCI.uci.html#unset_first">unset_first</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.ui">
|
|
<span class="title">
|
|
<a href="LuCI.ui.html">LuCI.ui</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
<span class="subtitle">Typedefs</span>
|
|
|
|
<li data-name="LuCI.ui.FileUploadReply"><a href="LuCI.ui.html#.FileUploadReply">FileUploadReply</a></li>
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.ui#addNotification"><a href="LuCI.ui.html#addNotification">addNotification</a></li>
|
|
|
|
<li data-name="LuCI.ui#addValidator"><a href="LuCI.ui.html#addValidator">addValidator</a></li>
|
|
|
|
<li data-name="LuCI.ui#awaitReconnect"><a href="LuCI.ui.html#awaitReconnect">awaitReconnect</a></li>
|
|
|
|
<li data-name="LuCI.ui#createHandlerFn"><a href="LuCI.ui.html#createHandlerFn">createHandlerFn</a></li>
|
|
|
|
<li data-name="LuCI.ui#hideIndicator"><a href="LuCI.ui.html#hideIndicator">hideIndicator</a></li>
|
|
|
|
<li data-name="LuCI.ui#hideModal"><a href="LuCI.ui.html#hideModal">hideModal</a></li>
|
|
|
|
<li data-name="LuCI.ui#instantiateView"><a href="LuCI.ui.html#instantiateView">instantiateView</a></li>
|
|
|
|
<li data-name="LuCI.ui#itemlist"><a href="LuCI.ui.html#itemlist">itemlist</a></li>
|
|
|
|
<li data-name="LuCI.ui#pingDevice"><a href="LuCI.ui.html#pingDevice">pingDevice</a></li>
|
|
|
|
<li data-name="LuCI.ui#showIndicator"><a href="LuCI.ui.html#showIndicator">showIndicator</a></li>
|
|
|
|
<li data-name="LuCI.ui#showModal"><a href="LuCI.ui.html#showModal">showModal</a></li>
|
|
|
|
<li data-name="LuCI.ui#uploadFile"><a href="LuCI.ui.html#uploadFile">uploadFile</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.ui.AbstractElement">
|
|
<span class="title">
|
|
<a href="LuCI.ui.AbstractElement.html">LuCI.ui.AbstractElement</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
<span class="subtitle">Typedefs</span>
|
|
|
|
<li data-name="LuCI.ui.AbstractElement.InitOptions"><a href="LuCI.ui.AbstractElement.html#.InitOptions">InitOptions</a></li>
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.ui.AbstractElement#getValidationError"><a href="LuCI.ui.AbstractElement.html#getValidationError">getValidationError</a></li>
|
|
|
|
<li data-name="LuCI.ui.AbstractElement#getValue"><a href="LuCI.ui.AbstractElement.html#getValue">getValue</a></li>
|
|
|
|
<li data-name="LuCI.ui.AbstractElement#isChanged"><a href="LuCI.ui.AbstractElement.html#isChanged">isChanged</a></li>
|
|
|
|
<li data-name="LuCI.ui.AbstractElement#isValid"><a href="LuCI.ui.AbstractElement.html#isValid">isValid</a></li>
|
|
|
|
<li data-name="LuCI.ui.AbstractElement#registerEvents"><a href="LuCI.ui.AbstractElement.html#registerEvents">registerEvents</a></li>
|
|
|
|
<li data-name="LuCI.ui.AbstractElement#render"><a href="LuCI.ui.AbstractElement.html#render">render</a></li>
|
|
|
|
<li data-name="LuCI.ui.AbstractElement#setChangeEvents"><a href="LuCI.ui.AbstractElement.html#setChangeEvents">setChangeEvents</a></li>
|
|
|
|
<li data-name="LuCI.ui.AbstractElement#setPlaceholder"><a href="LuCI.ui.AbstractElement.html#setPlaceholder">setPlaceholder</a></li>
|
|
|
|
<li data-name="LuCI.ui.AbstractElement#setUpdateEvents"><a href="LuCI.ui.AbstractElement.html#setUpdateEvents">setUpdateEvents</a></li>
|
|
|
|
<li data-name="LuCI.ui.AbstractElement#setValue"><a href="LuCI.ui.AbstractElement.html#setValue">setValue</a></li>
|
|
|
|
<li data-name="LuCI.ui.AbstractElement#triggerValidation"><a href="LuCI.ui.AbstractElement.html#triggerValidation">triggerValidation</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.ui.changes">
|
|
<span class="title">
|
|
<a href="LuCI.ui.changes.html">LuCI.ui.changes</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.ui.changes#apply"><a href="LuCI.ui.changes.html#apply">apply</a></li>
|
|
|
|
<li data-name="LuCI.ui.changes#displayChanges"><a href="LuCI.ui.changes.html#displayChanges">displayChanges</a></li>
|
|
|
|
<li data-name="LuCI.ui.changes#renderChangeIndicator"><a href="LuCI.ui.changes.html#renderChangeIndicator">renderChangeIndicator</a></li>
|
|
|
|
<li data-name="LuCI.ui.changes#revert"><a href="LuCI.ui.changes.html#revert">revert</a></li>
|
|
|
|
<li data-name="LuCI.ui.changes#setIndicator"><a href="LuCI.ui.changes.html#setIndicator">setIndicator</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.ui.Checkbox">
|
|
<span class="title">
|
|
<a href="LuCI.ui.Checkbox.html">LuCI.ui.Checkbox</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
<span class="subtitle">Typedefs</span>
|
|
|
|
<li data-name="LuCI.ui.Checkbox.InitOptions"><a href="LuCI.ui.Checkbox.html#.InitOptions">InitOptions</a></li>
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.ui.Checkbox#getValidationError"><a href="LuCI.ui.Checkbox.html#getValidationError">getValidationError</a></li>
|
|
|
|
<li data-name="LuCI.ui.Checkbox#getValue"><a href="LuCI.ui.Checkbox.html#getValue">getValue</a></li>
|
|
|
|
<li data-name="LuCI.ui.Checkbox#isChanged"><a href="LuCI.ui.Checkbox.html#isChanged">isChanged</a></li>
|
|
|
|
<li data-name="LuCI.ui.Checkbox#isChecked"><a href="LuCI.ui.Checkbox.html#isChecked">isChecked</a></li>
|
|
|
|
<li data-name="LuCI.ui.Checkbox#isValid"><a href="LuCI.ui.Checkbox.html#isValid">isValid</a></li>
|
|
|
|
<li data-name="LuCI.ui.Checkbox#registerEvents"><a href="LuCI.ui.Checkbox.html#registerEvents">registerEvents</a></li>
|
|
|
|
<li data-name="LuCI.ui.Checkbox#render"><a href="LuCI.ui.Checkbox.html#render">render</a></li>
|
|
|
|
<li data-name="LuCI.ui.Checkbox#setChangeEvents"><a href="LuCI.ui.Checkbox.html#setChangeEvents">setChangeEvents</a></li>
|
|
|
|
<li data-name="LuCI.ui.Checkbox#setPlaceholder"><a href="LuCI.ui.Checkbox.html#setPlaceholder">setPlaceholder</a></li>
|
|
|
|
<li data-name="LuCI.ui.Checkbox#setUpdateEvents"><a href="LuCI.ui.Checkbox.html#setUpdateEvents">setUpdateEvents</a></li>
|
|
|
|
<li data-name="LuCI.ui.Checkbox#setValue"><a href="LuCI.ui.Checkbox.html#setValue">setValue</a></li>
|
|
|
|
<li data-name="LuCI.ui.Checkbox#triggerValidation"><a href="LuCI.ui.Checkbox.html#triggerValidation">triggerValidation</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.ui.Combobox">
|
|
<span class="title">
|
|
<a href="LuCI.ui.Combobox.html">LuCI.ui.Combobox</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
<span class="subtitle">Typedefs</span>
|
|
|
|
<li data-name="LuCI.ui.Combobox.InitOptions"><a href="LuCI.ui.Combobox.html#.InitOptions">InitOptions</a></li>
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.ui.Combobox#addChoices"><a href="LuCI.ui.Combobox.html#addChoices">addChoices</a></li>
|
|
|
|
<li data-name="LuCI.ui.Combobox#clearChoices"><a href="LuCI.ui.Combobox.html#clearChoices">clearChoices</a></li>
|
|
|
|
<li data-name="LuCI.ui.Combobox#closeAllDropdowns"><a href="LuCI.ui.Combobox.html#closeAllDropdowns">closeAllDropdowns</a></li>
|
|
|
|
<li data-name="LuCI.ui.Combobox#getValidationError"><a href="LuCI.ui.Combobox.html#getValidationError">getValidationError</a></li>
|
|
|
|
<li data-name="LuCI.ui.Combobox#isChanged"><a href="LuCI.ui.Combobox.html#isChanged">isChanged</a></li>
|
|
|
|
<li data-name="LuCI.ui.Combobox#isValid"><a href="LuCI.ui.Combobox.html#isValid">isValid</a></li>
|
|
|
|
<li data-name="LuCI.ui.Combobox#registerEvents"><a href="LuCI.ui.Combobox.html#registerEvents">registerEvents</a></li>
|
|
|
|
<li data-name="LuCI.ui.Combobox#setChangeEvents"><a href="LuCI.ui.Combobox.html#setChangeEvents">setChangeEvents</a></li>
|
|
|
|
<li data-name="LuCI.ui.Combobox#setPlaceholder"><a href="LuCI.ui.Combobox.html#setPlaceholder">setPlaceholder</a></li>
|
|
|
|
<li data-name="LuCI.ui.Combobox#setUpdateEvents"><a href="LuCI.ui.Combobox.html#setUpdateEvents">setUpdateEvents</a></li>
|
|
|
|
<li data-name="LuCI.ui.Combobox#triggerValidation"><a href="LuCI.ui.Combobox.html#triggerValidation">triggerValidation</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.ui.ComboButton">
|
|
<span class="title">
|
|
<a href="LuCI.ui.ComboButton.html">LuCI.ui.ComboButton</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
<span class="subtitle">Typedefs</span>
|
|
|
|
<li data-name="LuCI.ui.ComboButton.InitOptions"><a href="LuCI.ui.ComboButton.html#.InitOptions">InitOptions</a></li>
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.ui.ComboButton#addChoices"><a href="LuCI.ui.ComboButton.html#addChoices">addChoices</a></li>
|
|
|
|
<li data-name="LuCI.ui.ComboButton#clearChoices"><a href="LuCI.ui.ComboButton.html#clearChoices">clearChoices</a></li>
|
|
|
|
<li data-name="LuCI.ui.ComboButton#closeAllDropdowns"><a href="LuCI.ui.ComboButton.html#closeAllDropdowns">closeAllDropdowns</a></li>
|
|
|
|
<li data-name="LuCI.ui.ComboButton#getValidationError"><a href="LuCI.ui.ComboButton.html#getValidationError">getValidationError</a></li>
|
|
|
|
<li data-name="LuCI.ui.ComboButton#isChanged"><a href="LuCI.ui.ComboButton.html#isChanged">isChanged</a></li>
|
|
|
|
<li data-name="LuCI.ui.ComboButton#isValid"><a href="LuCI.ui.ComboButton.html#isValid">isValid</a></li>
|
|
|
|
<li data-name="LuCI.ui.ComboButton#registerEvents"><a href="LuCI.ui.ComboButton.html#registerEvents">registerEvents</a></li>
|
|
|
|
<li data-name="LuCI.ui.ComboButton#setChangeEvents"><a href="LuCI.ui.ComboButton.html#setChangeEvents">setChangeEvents</a></li>
|
|
|
|
<li data-name="LuCI.ui.ComboButton#setPlaceholder"><a href="LuCI.ui.ComboButton.html#setPlaceholder">setPlaceholder</a></li>
|
|
|
|
<li data-name="LuCI.ui.ComboButton#setUpdateEvents"><a href="LuCI.ui.ComboButton.html#setUpdateEvents">setUpdateEvents</a></li>
|
|
|
|
<li data-name="LuCI.ui.ComboButton#triggerValidation"><a href="LuCI.ui.ComboButton.html#triggerValidation">triggerValidation</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.ui.Dropdown">
|
|
<span class="title">
|
|
<a href="LuCI.ui.Dropdown.html">LuCI.ui.Dropdown</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
<span class="subtitle">Typedefs</span>
|
|
|
|
<li data-name="LuCI.ui.Dropdown.InitOptions"><a href="LuCI.ui.Dropdown.html#.InitOptions">InitOptions</a></li>
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.ui.Dropdown#addChoices"><a href="LuCI.ui.Dropdown.html#addChoices">addChoices</a></li>
|
|
|
|
<li data-name="LuCI.ui.Dropdown#clearChoices"><a href="LuCI.ui.Dropdown.html#clearChoices">clearChoices</a></li>
|
|
|
|
<li data-name="LuCI.ui.Dropdown#closeAllDropdowns"><a href="LuCI.ui.Dropdown.html#closeAllDropdowns">closeAllDropdowns</a></li>
|
|
|
|
<li data-name="LuCI.ui.Dropdown#getValidationError"><a href="LuCI.ui.Dropdown.html#getValidationError">getValidationError</a></li>
|
|
|
|
<li data-name="LuCI.ui.Dropdown#getValue"><a href="LuCI.ui.Dropdown.html#getValue">getValue</a></li>
|
|
|
|
<li data-name="LuCI.ui.Dropdown#isChanged"><a href="LuCI.ui.Dropdown.html#isChanged">isChanged</a></li>
|
|
|
|
<li data-name="LuCI.ui.Dropdown#isValid"><a href="LuCI.ui.Dropdown.html#isValid">isValid</a></li>
|
|
|
|
<li data-name="LuCI.ui.Dropdown#registerEvents"><a href="LuCI.ui.Dropdown.html#registerEvents">registerEvents</a></li>
|
|
|
|
<li data-name="LuCI.ui.Dropdown#render"><a href="LuCI.ui.Dropdown.html#render">render</a></li>
|
|
|
|
<li data-name="LuCI.ui.Dropdown#setChangeEvents"><a href="LuCI.ui.Dropdown.html#setChangeEvents">setChangeEvents</a></li>
|
|
|
|
<li data-name="LuCI.ui.Dropdown#setPlaceholder"><a href="LuCI.ui.Dropdown.html#setPlaceholder">setPlaceholder</a></li>
|
|
|
|
<li data-name="LuCI.ui.Dropdown#setUpdateEvents"><a href="LuCI.ui.Dropdown.html#setUpdateEvents">setUpdateEvents</a></li>
|
|
|
|
<li data-name="LuCI.ui.Dropdown#setValue"><a href="LuCI.ui.Dropdown.html#setValue">setValue</a></li>
|
|
|
|
<li data-name="LuCI.ui.Dropdown#triggerValidation"><a href="LuCI.ui.Dropdown.html#triggerValidation">triggerValidation</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.ui.DynamicList">
|
|
<span class="title">
|
|
<a href="LuCI.ui.DynamicList.html">LuCI.ui.DynamicList</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
<span class="subtitle">Typedefs</span>
|
|
|
|
<li data-name="LuCI.ui.DynamicList.InitOptions"><a href="LuCI.ui.DynamicList.html#.InitOptions">InitOptions</a></li>
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.ui.DynamicList#addChoices"><a href="LuCI.ui.DynamicList.html#addChoices">addChoices</a></li>
|
|
|
|
<li data-name="LuCI.ui.DynamicList#clearChoices"><a href="LuCI.ui.DynamicList.html#clearChoices">clearChoices</a></li>
|
|
|
|
<li data-name="LuCI.ui.DynamicList#getValidationError"><a href="LuCI.ui.DynamicList.html#getValidationError">getValidationError</a></li>
|
|
|
|
<li data-name="LuCI.ui.DynamicList#getValue"><a href="LuCI.ui.DynamicList.html#getValue">getValue</a></li>
|
|
|
|
<li data-name="LuCI.ui.DynamicList#isChanged"><a href="LuCI.ui.DynamicList.html#isChanged">isChanged</a></li>
|
|
|
|
<li data-name="LuCI.ui.DynamicList#isValid"><a href="LuCI.ui.DynamicList.html#isValid">isValid</a></li>
|
|
|
|
<li data-name="LuCI.ui.DynamicList#registerEvents"><a href="LuCI.ui.DynamicList.html#registerEvents">registerEvents</a></li>
|
|
|
|
<li data-name="LuCI.ui.DynamicList#render"><a href="LuCI.ui.DynamicList.html#render">render</a></li>
|
|
|
|
<li data-name="LuCI.ui.DynamicList#setChangeEvents"><a href="LuCI.ui.DynamicList.html#setChangeEvents">setChangeEvents</a></li>
|
|
|
|
<li data-name="LuCI.ui.DynamicList#setPlaceholder"><a href="LuCI.ui.DynamicList.html#setPlaceholder">setPlaceholder</a></li>
|
|
|
|
<li data-name="LuCI.ui.DynamicList#setUpdateEvents"><a href="LuCI.ui.DynamicList.html#setUpdateEvents">setUpdateEvents</a></li>
|
|
|
|
<li data-name="LuCI.ui.DynamicList#setValue"><a href="LuCI.ui.DynamicList.html#setValue">setValue</a></li>
|
|
|
|
<li data-name="LuCI.ui.DynamicList#triggerValidation"><a href="LuCI.ui.DynamicList.html#triggerValidation">triggerValidation</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.ui.FileUpload">
|
|
<span class="title">
|
|
<a href="LuCI.ui.FileUpload.html">LuCI.ui.FileUpload</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
<span class="subtitle">Typedefs</span>
|
|
|
|
<li data-name="LuCI.ui.FileUpload.InitOptions"><a href="LuCI.ui.FileUpload.html#.InitOptions">InitOptions</a></li>
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.ui.FileUpload#getValidationError"><a href="LuCI.ui.FileUpload.html#getValidationError">getValidationError</a></li>
|
|
|
|
<li data-name="LuCI.ui.FileUpload#getValue"><a href="LuCI.ui.FileUpload.html#getValue">getValue</a></li>
|
|
|
|
<li data-name="LuCI.ui.FileUpload#isChanged"><a href="LuCI.ui.FileUpload.html#isChanged">isChanged</a></li>
|
|
|
|
<li data-name="LuCI.ui.FileUpload#isValid"><a href="LuCI.ui.FileUpload.html#isValid">isValid</a></li>
|
|
|
|
<li data-name="LuCI.ui.FileUpload#registerEvents"><a href="LuCI.ui.FileUpload.html#registerEvents">registerEvents</a></li>
|
|
|
|
<li data-name="LuCI.ui.FileUpload#render"><a href="LuCI.ui.FileUpload.html#render">render</a></li>
|
|
|
|
<li data-name="LuCI.ui.FileUpload#setChangeEvents"><a href="LuCI.ui.FileUpload.html#setChangeEvents">setChangeEvents</a></li>
|
|
|
|
<li data-name="LuCI.ui.FileUpload#setPlaceholder"><a href="LuCI.ui.FileUpload.html#setPlaceholder">setPlaceholder</a></li>
|
|
|
|
<li data-name="LuCI.ui.FileUpload#setUpdateEvents"><a href="LuCI.ui.FileUpload.html#setUpdateEvents">setUpdateEvents</a></li>
|
|
|
|
<li data-name="LuCI.ui.FileUpload#setValue"><a href="LuCI.ui.FileUpload.html#setValue">setValue</a></li>
|
|
|
|
<li data-name="LuCI.ui.FileUpload#triggerValidation"><a href="LuCI.ui.FileUpload.html#triggerValidation">triggerValidation</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.ui.Hiddenfield">
|
|
<span class="title">
|
|
<a href="LuCI.ui.Hiddenfield.html">LuCI.ui.Hiddenfield</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.ui.Hiddenfield#getValidationError"><a href="LuCI.ui.Hiddenfield.html#getValidationError">getValidationError</a></li>
|
|
|
|
<li data-name="LuCI.ui.Hiddenfield#getValue"><a href="LuCI.ui.Hiddenfield.html#getValue">getValue</a></li>
|
|
|
|
<li data-name="LuCI.ui.Hiddenfield#isChanged"><a href="LuCI.ui.Hiddenfield.html#isChanged">isChanged</a></li>
|
|
|
|
<li data-name="LuCI.ui.Hiddenfield#isValid"><a href="LuCI.ui.Hiddenfield.html#isValid">isValid</a></li>
|
|
|
|
<li data-name="LuCI.ui.Hiddenfield#registerEvents"><a href="LuCI.ui.Hiddenfield.html#registerEvents">registerEvents</a></li>
|
|
|
|
<li data-name="LuCI.ui.Hiddenfield#render"><a href="LuCI.ui.Hiddenfield.html#render">render</a></li>
|
|
|
|
<li data-name="LuCI.ui.Hiddenfield#setChangeEvents"><a href="LuCI.ui.Hiddenfield.html#setChangeEvents">setChangeEvents</a></li>
|
|
|
|
<li data-name="LuCI.ui.Hiddenfield#setPlaceholder"><a href="LuCI.ui.Hiddenfield.html#setPlaceholder">setPlaceholder</a></li>
|
|
|
|
<li data-name="LuCI.ui.Hiddenfield#setUpdateEvents"><a href="LuCI.ui.Hiddenfield.html#setUpdateEvents">setUpdateEvents</a></li>
|
|
|
|
<li data-name="LuCI.ui.Hiddenfield#setValue"><a href="LuCI.ui.Hiddenfield.html#setValue">setValue</a></li>
|
|
|
|
<li data-name="LuCI.ui.Hiddenfield#triggerValidation"><a href="LuCI.ui.Hiddenfield.html#triggerValidation">triggerValidation</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.ui.menu">
|
|
<span class="title">
|
|
<a href="LuCI.ui.menu.html">LuCI.ui.menu</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
<span class="subtitle">Typedefs</span>
|
|
|
|
<li data-name="LuCI.ui.menu.MenuNode"><a href="LuCI.ui.menu.html#.MenuNode">MenuNode</a></li>
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.ui.menu#flushCache"><a href="LuCI.ui.menu.html#flushCache">flushCache</a></li>
|
|
|
|
<li data-name="LuCI.ui.menu#getChildren"><a href="LuCI.ui.menu.html#getChildren">getChildren</a></li>
|
|
|
|
<li data-name="LuCI.ui.menu#load"><a href="LuCI.ui.menu.html#load">load</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.ui.Select">
|
|
<span class="title">
|
|
<a href="LuCI.ui.Select.html">LuCI.ui.Select</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
<span class="subtitle">Typedefs</span>
|
|
|
|
<li data-name="LuCI.ui.Select.InitOptions"><a href="LuCI.ui.Select.html#.InitOptions">InitOptions</a></li>
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.ui.Select#getValidationError"><a href="LuCI.ui.Select.html#getValidationError">getValidationError</a></li>
|
|
|
|
<li data-name="LuCI.ui.Select#getValue"><a href="LuCI.ui.Select.html#getValue">getValue</a></li>
|
|
|
|
<li data-name="LuCI.ui.Select#isChanged"><a href="LuCI.ui.Select.html#isChanged">isChanged</a></li>
|
|
|
|
<li data-name="LuCI.ui.Select#isValid"><a href="LuCI.ui.Select.html#isValid">isValid</a></li>
|
|
|
|
<li data-name="LuCI.ui.Select#registerEvents"><a href="LuCI.ui.Select.html#registerEvents">registerEvents</a></li>
|
|
|
|
<li data-name="LuCI.ui.Select#render"><a href="LuCI.ui.Select.html#render">render</a></li>
|
|
|
|
<li data-name="LuCI.ui.Select#setChangeEvents"><a href="LuCI.ui.Select.html#setChangeEvents">setChangeEvents</a></li>
|
|
|
|
<li data-name="LuCI.ui.Select#setPlaceholder"><a href="LuCI.ui.Select.html#setPlaceholder">setPlaceholder</a></li>
|
|
|
|
<li data-name="LuCI.ui.Select#setUpdateEvents"><a href="LuCI.ui.Select.html#setUpdateEvents">setUpdateEvents</a></li>
|
|
|
|
<li data-name="LuCI.ui.Select#setValue"><a href="LuCI.ui.Select.html#setValue">setValue</a></li>
|
|
|
|
<li data-name="LuCI.ui.Select#triggerValidation"><a href="LuCI.ui.Select.html#triggerValidation">triggerValidation</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.ui.tabs">
|
|
<span class="title">
|
|
<a href="LuCI.ui.tabs.html">LuCI.ui.tabs</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.ui.tabs#initTabGroup"><a href="LuCI.ui.tabs.html#initTabGroup">initTabGroup</a></li>
|
|
|
|
<li data-name="LuCI.ui.tabs#isEmptyPane"><a href="LuCI.ui.tabs.html#isEmptyPane">isEmptyPane</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.ui.Textarea">
|
|
<span class="title">
|
|
<a href="LuCI.ui.Textarea.html">LuCI.ui.Textarea</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
<span class="subtitle">Typedefs</span>
|
|
|
|
<li data-name="LuCI.ui.Textarea.InitOptions"><a href="LuCI.ui.Textarea.html#.InitOptions">InitOptions</a></li>
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.ui.Textarea#getValidationError"><a href="LuCI.ui.Textarea.html#getValidationError">getValidationError</a></li>
|
|
|
|
<li data-name="LuCI.ui.Textarea#getValue"><a href="LuCI.ui.Textarea.html#getValue">getValue</a></li>
|
|
|
|
<li data-name="LuCI.ui.Textarea#isChanged"><a href="LuCI.ui.Textarea.html#isChanged">isChanged</a></li>
|
|
|
|
<li data-name="LuCI.ui.Textarea#isValid"><a href="LuCI.ui.Textarea.html#isValid">isValid</a></li>
|
|
|
|
<li data-name="LuCI.ui.Textarea#registerEvents"><a href="LuCI.ui.Textarea.html#registerEvents">registerEvents</a></li>
|
|
|
|
<li data-name="LuCI.ui.Textarea#render"><a href="LuCI.ui.Textarea.html#render">render</a></li>
|
|
|
|
<li data-name="LuCI.ui.Textarea#setChangeEvents"><a href="LuCI.ui.Textarea.html#setChangeEvents">setChangeEvents</a></li>
|
|
|
|
<li data-name="LuCI.ui.Textarea#setPlaceholder"><a href="LuCI.ui.Textarea.html#setPlaceholder">setPlaceholder</a></li>
|
|
|
|
<li data-name="LuCI.ui.Textarea#setUpdateEvents"><a href="LuCI.ui.Textarea.html#setUpdateEvents">setUpdateEvents</a></li>
|
|
|
|
<li data-name="LuCI.ui.Textarea#setValue"><a href="LuCI.ui.Textarea.html#setValue">setValue</a></li>
|
|
|
|
<li data-name="LuCI.ui.Textarea#triggerValidation"><a href="LuCI.ui.Textarea.html#triggerValidation">triggerValidation</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.ui.Textfield">
|
|
<span class="title">
|
|
<a href="LuCI.ui.Textfield.html">LuCI.ui.Textfield</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
<span class="subtitle">Typedefs</span>
|
|
|
|
<li data-name="LuCI.ui.Textfield.InitOptions"><a href="LuCI.ui.Textfield.html#.InitOptions">InitOptions</a></li>
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.ui.Textfield#getValidationError"><a href="LuCI.ui.Textfield.html#getValidationError">getValidationError</a></li>
|
|
|
|
<li data-name="LuCI.ui.Textfield#getValue"><a href="LuCI.ui.Textfield.html#getValue">getValue</a></li>
|
|
|
|
<li data-name="LuCI.ui.Textfield#isChanged"><a href="LuCI.ui.Textfield.html#isChanged">isChanged</a></li>
|
|
|
|
<li data-name="LuCI.ui.Textfield#isValid"><a href="LuCI.ui.Textfield.html#isValid">isValid</a></li>
|
|
|
|
<li data-name="LuCI.ui.Textfield#registerEvents"><a href="LuCI.ui.Textfield.html#registerEvents">registerEvents</a></li>
|
|
|
|
<li data-name="LuCI.ui.Textfield#render"><a href="LuCI.ui.Textfield.html#render">render</a></li>
|
|
|
|
<li data-name="LuCI.ui.Textfield#setChangeEvents"><a href="LuCI.ui.Textfield.html#setChangeEvents">setChangeEvents</a></li>
|
|
|
|
<li data-name="LuCI.ui.Textfield#setPlaceholder"><a href="LuCI.ui.Textfield.html#setPlaceholder">setPlaceholder</a></li>
|
|
|
|
<li data-name="LuCI.ui.Textfield#setUpdateEvents"><a href="LuCI.ui.Textfield.html#setUpdateEvents">setUpdateEvents</a></li>
|
|
|
|
<li data-name="LuCI.ui.Textfield#setValue"><a href="LuCI.ui.Textfield.html#setValue">setValue</a></li>
|
|
|
|
<li data-name="LuCI.ui.Textfield#triggerValidation"><a href="LuCI.ui.Textfield.html#triggerValidation">triggerValidation</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.view">
|
|
<span class="title">
|
|
<a href="LuCI.view.html">LuCI.view</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.view#addFooter"><a href="LuCI.view.html#addFooter">addFooter</a></li>
|
|
|
|
<li data-name="LuCI.view#handleReset"><a href="LuCI.view.html#handleReset">handleReset</a></li>
|
|
|
|
<li data-name="LuCI.view#handleSave"><a href="LuCI.view.html#handleSave">handleSave</a></li>
|
|
|
|
<li data-name="LuCI.view#handleSaveApply"><a href="LuCI.view.html#handleSaveApply">handleSaveApply</a></li>
|
|
|
|
<li data-name="LuCI.view#load"><a href="LuCI.view.html#load">load</a></li>
|
|
|
|
<li data-name="LuCI.view#render"><a href="LuCI.view.html#render">render</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="item" data-name="LuCI.xhr">
|
|
<span class="title">
|
|
<a href="LuCI.xhr.html">LuCI.xhr</a>
|
|
|
|
</span>
|
|
<ul class="members itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="typedefs itemMembers">
|
|
|
|
</ul>
|
|
<ul class="methods itemMembers">
|
|
|
|
<span class="subtitle">Methods</span>
|
|
|
|
<li data-name="LuCI.xhr#abort"><a href="LuCI.xhr.html#abort">abort</a></li>
|
|
|
|
<li data-name="LuCI.xhr#busy"><a href="LuCI.xhr.html#busy">busy</a></li>
|
|
|
|
<li data-name="LuCI.xhr#cancel"><a href="LuCI.xhr.html#cancel">cancel</a></li>
|
|
|
|
<li data-name="LuCI.xhr#get"><a href="LuCI.xhr.html#get">get</a></li>
|
|
|
|
<li data-name="LuCI.xhr#post"><a href="LuCI.xhr.html#post">post</a></li>
|
|
|
|
<li data-name="LuCI.xhr#send_form"><a href="LuCI.xhr.html#send_form">send_form</a></li>
|
|
|
|
</ul>
|
|
<ul class="events itemMembers">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
</ul>
|
|
</div>
|
|
<div class="main">
|
|
<h1 class="page-title" data-filename="network.js.html">Source: network.js</h1>
|
|
|
|
|
|
|
|
|
|
<section>
|
|
<article>
|
|
<pre id="source-code" class="prettyprint source "><code>'use strict';
|
|
'require uci';
|
|
'require rpc';
|
|
'require validation';
|
|
'require baseclass';
|
|
'require firewall';
|
|
|
|
var proto_errors = {
|
|
CONNECT_FAILED: _('Connection attempt failed'),
|
|
INVALID_ADDRESS: _('IP address is invalid'),
|
|
INVALID_GATEWAY: _('Gateway address is invalid'),
|
|
INVALID_LOCAL_ADDRESS: _('Local IP address is invalid'),
|
|
MISSING_ADDRESS: _('IP address is missing'),
|
|
MISSING_PEER_ADDRESS: _('Peer address is missing'),
|
|
NO_DEVICE: _('Network device is not present'),
|
|
NO_IFACE: _('Unable to determine device name'),
|
|
NO_IFNAME: _('Unable to determine device name'),
|
|
NO_WAN_ADDRESS: _('Unable to determine external IP address'),
|
|
NO_WAN_LINK: _('Unable to determine upstream interface'),
|
|
PEER_RESOLVE_FAIL: _('Unable to resolve peer host name'),
|
|
PIN_FAILED: _('PIN code rejected')
|
|
};
|
|
|
|
var iface_patterns_ignore = [
|
|
/^wmaster\d+/,
|
|
/^wifi\d+/,
|
|
/^hwsim\d+/,
|
|
/^imq\d+/,
|
|
/^ifb\d+/,
|
|
/^mon\.wlan\d+/,
|
|
/^sit\d+/,
|
|
/^gre\d+/,
|
|
/^gretap\d+/,
|
|
/^ip6gre\d+/,
|
|
/^ip6tnl\d+/,
|
|
/^tunl\d+/,
|
|
/^lo$/
|
|
];
|
|
|
|
var iface_patterns_wireless = [
|
|
/^wlan\d+/,
|
|
/^wl\d+/,
|
|
/^ath\d+/,
|
|
/^\w+\.network\d+/
|
|
];
|
|
|
|
var iface_patterns_virtual = [ ];
|
|
|
|
var callLuciNetworkDevices = rpc.declare({
|
|
object: 'luci-rpc',
|
|
method: 'getNetworkDevices',
|
|
expect: { '': {} }
|
|
});
|
|
|
|
var callLuciWirelessDevices = rpc.declare({
|
|
object: 'luci-rpc',
|
|
method: 'getWirelessDevices',
|
|
expect: { '': {} }
|
|
});
|
|
|
|
var callLuciBoardJSON = rpc.declare({
|
|
object: 'luci-rpc',
|
|
method: 'getBoardJSON'
|
|
});
|
|
|
|
var callLuciHostHints = rpc.declare({
|
|
object: 'luci-rpc',
|
|
method: 'getHostHints',
|
|
expect: { '': {} }
|
|
});
|
|
|
|
var callIwinfoAssoclist = rpc.declare({
|
|
object: 'iwinfo',
|
|
method: 'assoclist',
|
|
params: [ 'device', 'mac' ],
|
|
expect: { results: [] }
|
|
});
|
|
|
|
var callIwinfoScan = rpc.declare({
|
|
object: 'iwinfo',
|
|
method: 'scan',
|
|
params: [ 'device' ],
|
|
nobatch: true,
|
|
expect: { results: [] }
|
|
});
|
|
|
|
var callNetworkInterfaceDump = rpc.declare({
|
|
object: 'network.interface',
|
|
method: 'dump',
|
|
expect: { 'interface': [] }
|
|
});
|
|
|
|
var callNetworkProtoHandlers = rpc.declare({
|
|
object: 'network',
|
|
method: 'get_proto_handlers',
|
|
expect: { '': {} }
|
|
});
|
|
|
|
var _init = null,
|
|
_state = null,
|
|
_protocols = {},
|
|
_protospecs = {};
|
|
|
|
function getProtocolHandlers(cache) {
|
|
return callNetworkProtoHandlers().then(function(protos) {
|
|
/* Register "none" protocol */
|
|
if (!protos.hasOwnProperty('none'))
|
|
Object.assign(protos, { none: { no_device: false } });
|
|
|
|
/* Hack: emulate relayd protocol */
|
|
if (!protos.hasOwnProperty('relay') && L.hasSystemFeature('relayd'))
|
|
Object.assign(protos, { relay: { no_device: true } });
|
|
|
|
Object.assign(_protospecs, protos);
|
|
|
|
return Promise.all(Object.keys(protos).map(function(p) {
|
|
return Promise.resolve(L.require('protocol.%s'.format(p))).catch(function(err) {
|
|
if (L.isObject(err) && err.name != 'NetworkError')
|
|
L.error(err);
|
|
});
|
|
})).then(function() {
|
|
return protos;
|
|
});
|
|
}).catch(function() {
|
|
return {};
|
|
});
|
|
}
|
|
|
|
function getWifiStateBySid(sid) {
|
|
var s = uci.get('wireless', sid);
|
|
|
|
if (s != null && s['.type'] == 'wifi-iface') {
|
|
for (var radioname in _state.radios) {
|
|
for (var i = 0; i < _state.radios[radioname].interfaces.length; i++) {
|
|
var netstate = _state.radios[radioname].interfaces[i];
|
|
|
|
if (typeof(netstate.section) != 'string')
|
|
continue;
|
|
|
|
var s2 = uci.get('wireless', netstate.section);
|
|
|
|
if (s2 != null && s['.type'] == s2['.type'] && s['.name'] == s2['.name']) {
|
|
if (s2['.anonymous'] == false && netstate.section.charAt(0) == '@')
|
|
return null;
|
|
|
|
return [ radioname, _state.radios[radioname], netstate ];
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
return null;
|
|
}
|
|
|
|
function getWifiStateByIfname(ifname) {
|
|
for (var radioname in _state.radios) {
|
|
for (var i = 0; i < _state.radios[radioname].interfaces.length; i++) {
|
|
var netstate = _state.radios[radioname].interfaces[i];
|
|
|
|
if (typeof(netstate.ifname) != 'string')
|
|
continue;
|
|
|
|
if (netstate.ifname == ifname)
|
|
return [ radioname, _state.radios[radioname], netstate ];
|
|
}
|
|
}
|
|
|
|
return null;
|
|
}
|
|
|
|
function isWifiIfname(ifname) {
|
|
for (var i = 0; i < iface_patterns_wireless.length; i++)
|
|
if (iface_patterns_wireless[i].test(ifname))
|
|
return true;
|
|
|
|
return false;
|
|
}
|
|
|
|
function getWifiSidByNetid(netid) {
|
|
var m = /^(\w+)\.network(\d+)$/.exec(netid);
|
|
if (m) {
|
|
var sections = uci.sections('wireless', 'wifi-iface');
|
|
for (var i = 0, n = 0; i < sections.length; i++) {
|
|
if (sections[i].device != m[1])
|
|
continue;
|
|
|
|
if (++n == +m[2])
|
|
return sections[i]['.name'];
|
|
}
|
|
}
|
|
|
|
return null;
|
|
}
|
|
|
|
function getWifiSidByIfname(ifname) {
|
|
var sid = getWifiSidByNetid(ifname);
|
|
|
|
if (sid != null)
|
|
return sid;
|
|
|
|
var res = getWifiStateByIfname(ifname);
|
|
|
|
if (res != null && L.isObject(res[2]) && typeof(res[2].section) == 'string')
|
|
return res[2].section;
|
|
|
|
return null;
|
|
}
|
|
|
|
function getWifiNetidBySid(sid) {
|
|
var s = uci.get('wireless', sid);
|
|
if (s != null && s['.type'] == 'wifi-iface') {
|
|
var radioname = s.device;
|
|
if (typeof(s.device) == 'string') {
|
|
var i = 0, netid = null, sections = uci.sections('wireless', 'wifi-iface');
|
|
for (var i = 0, n = 0; i < sections.length; i++) {
|
|
if (sections[i].device != s.device)
|
|
continue;
|
|
|
|
n++;
|
|
|
|
if (sections[i]['.name'] != s['.name'])
|
|
continue;
|
|
|
|
return [ '%s.network%d'.format(s.device, n), s.device ];
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
return null;
|
|
}
|
|
|
|
function getWifiNetidByNetname(name) {
|
|
var sections = uci.sections('wireless', 'wifi-iface');
|
|
for (var i = 0; i < sections.length; i++) {
|
|
if (typeof(sections[i].network) != 'string')
|
|
continue;
|
|
|
|
var nets = sections[i].network.split(/\s+/);
|
|
for (var j = 0; j < nets.length; j++) {
|
|
if (nets[j] != name)
|
|
continue;
|
|
|
|
return getWifiNetidBySid(sections[i]['.name']);
|
|
}
|
|
}
|
|
|
|
return null;
|
|
}
|
|
|
|
function isVirtualIfname(ifname) {
|
|
for (var i = 0; i < iface_patterns_virtual.length; i++)
|
|
if (iface_patterns_virtual[i].test(ifname))
|
|
return true;
|
|
|
|
return false;
|
|
}
|
|
|
|
function isIgnoredIfname(ifname) {
|
|
for (var i = 0; i < iface_patterns_ignore.length; i++)
|
|
if (iface_patterns_ignore[i].test(ifname))
|
|
return true;
|
|
|
|
return false;
|
|
}
|
|
|
|
function appendValue(config, section, option, value) {
|
|
var values = uci.get(config, section, option),
|
|
isArray = Array.isArray(values),
|
|
rv = false;
|
|
|
|
if (isArray == false)
|
|
values = L.toArray(values);
|
|
|
|
if (values.indexOf(value) == -1) {
|
|
values.push(value);
|
|
rv = true;
|
|
}
|
|
|
|
uci.set(config, section, option, isArray ? values : values.join(' '));
|
|
|
|
return rv;
|
|
}
|
|
|
|
function removeValue(config, section, option, value) {
|
|
var values = uci.get(config, section, option),
|
|
isArray = Array.isArray(values),
|
|
rv = false;
|
|
|
|
if (isArray == false)
|
|
values = L.toArray(values);
|
|
|
|
for (var i = values.length - 1; i >= 0; i--) {
|
|
if (values[i] == value) {
|
|
values.splice(i, 1);
|
|
rv = true;
|
|
}
|
|
}
|
|
|
|
if (values.length > 0)
|
|
uci.set(config, section, option, isArray ? values : values.join(' '));
|
|
else
|
|
uci.unset(config, section, option);
|
|
|
|
return rv;
|
|
}
|
|
|
|
function prefixToMask(bits, v6) {
|
|
var w = v6 ? 128 : 32,
|
|
m = [];
|
|
|
|
if (bits > w)
|
|
return null;
|
|
|
|
for (var i = 0; i < w / 16; i++) {
|
|
var b = Math.min(16, bits);
|
|
m.push((0xffff << (16 - b)) & 0xffff);
|
|
bits -= b;
|
|
}
|
|
|
|
if (v6)
|
|
return String.prototype.format.apply('%x:%x:%x:%x:%x:%x:%x:%x', m).replace(/:0(?::0)+$/, '::');
|
|
else
|
|
return '%d.%d.%d.%d'.format(m[0] >>> 8, m[0] & 0xff, m[1] >>> 8, m[1] & 0xff);
|
|
}
|
|
|
|
function maskToPrefix(mask, v6) {
|
|
var m = v6 ? validation.parseIPv6(mask) : validation.parseIPv4(mask);
|
|
|
|
if (!m)
|
|
return null;
|
|
|
|
var bits = 0;
|
|
|
|
for (var i = 0, z = false; i < m.length; i++) {
|
|
z = z || !m[i];
|
|
|
|
while (!z && (m[i] & (v6 ? 0x8000 : 0x80))) {
|
|
m[i] = (m[i] << 1) & (v6 ? 0xffff : 0xff);
|
|
bits++;
|
|
}
|
|
|
|
if (m[i])
|
|
return null;
|
|
}
|
|
|
|
return bits;
|
|
}
|
|
|
|
function initNetworkState(refresh) {
|
|
if (_state == null || refresh) {
|
|
_init = _init || Promise.all([
|
|
L.resolveDefault(callNetworkInterfaceDump(), []),
|
|
L.resolveDefault(callLuciBoardJSON(), {}),
|
|
L.resolveDefault(callLuciNetworkDevices(), {}),
|
|
L.resolveDefault(callLuciWirelessDevices(), {}),
|
|
L.resolveDefault(callLuciHostHints(), {}),
|
|
getProtocolHandlers(),
|
|
L.resolveDefault(uci.load('network')),
|
|
L.resolveDefault(uci.load('wireless')),
|
|
L.resolveDefault(uci.load('luci'))
|
|
]).then(function(data) {
|
|
var netifd_ifaces = data[0],
|
|
board_json = data[1],
|
|
luci_devs = data[2];
|
|
|
|
var s = {
|
|
isTunnel: {}, isBridge: {}, isSwitch: {}, isWifi: {},
|
|
ifaces: netifd_ifaces, radios: data[3], hosts: data[4],
|
|
netdevs: {}, bridges: {}, switches: {}, hostapd: {}
|
|
};
|
|
|
|
for (var name in luci_devs) {
|
|
var dev = luci_devs[name];
|
|
|
|
if (isVirtualIfname(name))
|
|
s.isTunnel[name] = true;
|
|
|
|
if (!s.isTunnel[name] && isIgnoredIfname(name))
|
|
continue;
|
|
|
|
s.netdevs[name] = s.netdevs[name] || {
|
|
idx: dev.ifindex,
|
|
name: name,
|
|
rawname: name,
|
|
flags: dev.flags,
|
|
link: dev.link,
|
|
stats: dev.stats,
|
|
macaddr: dev.mac,
|
|
type: dev.type,
|
|
devtype: dev.devtype,
|
|
mtu: dev.mtu,
|
|
qlen: dev.qlen,
|
|
wireless: dev.wireless,
|
|
parent: dev.parent,
|
|
ipaddrs: [],
|
|
ip6addrs: []
|
|
};
|
|
|
|
if (Array.isArray(dev.ipaddrs))
|
|
for (var i = 0; i < dev.ipaddrs.length; i++)
|
|
s.netdevs[name].ipaddrs.push(dev.ipaddrs[i].address + '/' + dev.ipaddrs[i].netmask);
|
|
|
|
if (Array.isArray(dev.ip6addrs))
|
|
for (var i = 0; i < dev.ip6addrs.length; i++)
|
|
s.netdevs[name].ip6addrs.push(dev.ip6addrs[i].address + '/' + dev.ip6addrs[i].netmask);
|
|
}
|
|
|
|
for (var name in luci_devs) {
|
|
var dev = luci_devs[name];
|
|
|
|
if (!dev.bridge)
|
|
continue;
|
|
|
|
var b = {
|
|
name: name,
|
|
id: dev.id,
|
|
stp: dev.stp,
|
|
ifnames: []
|
|
};
|
|
|
|
for (var i = 0; dev.ports && i < dev.ports.length; i++) {
|
|
var subdev = s.netdevs[dev.ports[i]];
|
|
|
|
if (subdev == null)
|
|
continue;
|
|
|
|
b.ifnames.push(subdev);
|
|
subdev.bridge = b;
|
|
}
|
|
|
|
s.bridges[name] = b;
|
|
s.isBridge[name] = true;
|
|
}
|
|
|
|
for (var name in luci_devs) {
|
|
var dev = luci_devs[name];
|
|
|
|
if (!dev.parent || dev.devtype != 'dsa')
|
|
continue;
|
|
|
|
s.isSwitch[dev.parent] = true;
|
|
s.isSwitch[name] = true;
|
|
}
|
|
|
|
if (L.isObject(board_json.switch)) {
|
|
for (var switchname in board_json.switch) {
|
|
var layout = board_json.switch[switchname],
|
|
netdevs = {},
|
|
nports = {},
|
|
ports = [],
|
|
pnum = null,
|
|
role = null;
|
|
|
|
if (L.isObject(layout) && Array.isArray(layout.ports)) {
|
|
for (var i = 0, port; (port = layout.ports[i]) != null; i++) {
|
|
if (typeof(port) == 'object' && typeof(port.num) == 'number' &&
|
|
(typeof(port.role) == 'string' || typeof(port.device) == 'string')) {
|
|
var spec = {
|
|
num: port.num,
|
|
role: port.role || 'cpu',
|
|
index: (port.index != null) ? port.index : port.num
|
|
};
|
|
|
|
if (port.device != null) {
|
|
spec.device = port.device;
|
|
spec.tagged = spec.need_tag;
|
|
netdevs[port.num] = port.device;
|
|
}
|
|
|
|
ports.push(spec);
|
|
|
|
if (port.role != null)
|
|
nports[port.role] = (nports[port.role] || 0) + 1;
|
|
}
|
|
}
|
|
|
|
ports.sort(function(a, b) {
|
|
return L.naturalCompare(a.role, b.role) || L.naturalCompare(a.index, b.index);
|
|
});
|
|
|
|
for (var i = 0, port; (port = ports[i]) != null; i++) {
|
|
if (port.role != role) {
|
|
role = port.role;
|
|
pnum = 1;
|
|
}
|
|
|
|
if (role == 'cpu')
|
|
port.label = 'CPU (%s)'.format(port.device);
|
|
else if (nports[role] > 1)
|
|
port.label = '%s %d'.format(role.toUpperCase(), pnum++);
|
|
else
|
|
port.label = role.toUpperCase();
|
|
|
|
delete port.role;
|
|
delete port.index;
|
|
}
|
|
|
|
s.switches[switchname] = {
|
|
ports: ports,
|
|
netdevs: netdevs
|
|
};
|
|
}
|
|
}
|
|
}
|
|
|
|
if (L.isObject(board_json.dsl) && L.isObject(board_json.dsl.modem)) {
|
|
s.hasDSLModem = board_json.dsl.modem;
|
|
}
|
|
|
|
_init = null;
|
|
|
|
var objects = [];
|
|
|
|
if (L.isObject(s.radios))
|
|
for (var radio in s.radios)
|
|
if (L.isObject(s.radios[radio]) && Array.isArray(s.radios[radio].interfaces))
|
|
for (var i = 0; i < s.radios[radio].interfaces.length; i++)
|
|
if (L.isObject(s.radios[radio].interfaces[i]) && s.radios[radio].interfaces[i].ifname)
|
|
objects.push('hostapd.%s'.format(s.radios[radio].interfaces[i].ifname));
|
|
|
|
return (objects.length ? L.resolveDefault(rpc.list.apply(rpc, objects), {}) : Promise.resolve({})).then(function(res) {
|
|
for (var k in res) {
|
|
var m = k.match(/^hostapd\.(.+)$/);
|
|
if (m)
|
|
s.hostapd[m[1]] = res[k];
|
|
}
|
|
|
|
return (_state = s);
|
|
});
|
|
});
|
|
}
|
|
|
|
return (_state != null ? Promise.resolve(_state) : _init);
|
|
}
|
|
|
|
function ifnameOf(obj) {
|
|
if (obj instanceof Protocol)
|
|
return obj.getIfname();
|
|
else if (obj instanceof Device)
|
|
return obj.getName();
|
|
else if (obj instanceof WifiDevice)
|
|
return obj.getName();
|
|
else if (obj instanceof WifiNetwork)
|
|
return obj.getIfname();
|
|
else if (typeof(obj) == 'string')
|
|
return obj.replace(/:.+$/, '');
|
|
|
|
return null;
|
|
}
|
|
|
|
function networkSort(a, b) {
|
|
return L.naturalCompare(a.getName(), b.getName());
|
|
}
|
|
|
|
function deviceSort(a, b) {
|
|
var typeWeigth = { wifi: 2, alias: 3 };
|
|
|
|
return L.naturalCompare(typeWeigth[a.getType()] || 1, typeWeigth[b.getType()] || 1) ||
|
|
L.naturalCompare(a.getName(), b.getName());
|
|
}
|
|
|
|
function formatWifiEncryption(enc) {
|
|
if (!L.isObject(enc))
|
|
return null;
|
|
|
|
if (!enc.enabled)
|
|
return 'None';
|
|
|
|
var ciphers = Array.isArray(enc.ciphers)
|
|
? enc.ciphers.map(function(c) { return c.toUpperCase() }) : [ 'NONE' ];
|
|
|
|
if (Array.isArray(enc.wep)) {
|
|
var has_open = false,
|
|
has_shared = false;
|
|
|
|
for (var i = 0; i < enc.wep.length; i++)
|
|
if (enc.wep[i] == 'open')
|
|
has_open = true;
|
|
else if (enc.wep[i] == 'shared')
|
|
has_shared = true;
|
|
|
|
if (has_open && has_shared)
|
|
return 'WEP Open/Shared (%s)'.format(ciphers.join(', '));
|
|
else if (has_open)
|
|
return 'WEP Open System (%s)'.format(ciphers.join(', '));
|
|
else if (has_shared)
|
|
return 'WEP Shared Auth (%s)'.format(ciphers.join(', '));
|
|
|
|
return 'WEP';
|
|
}
|
|
|
|
if (Array.isArray(enc.wpa)) {
|
|
var versions = [],
|
|
suites = Array.isArray(enc.authentication)
|
|
? enc.authentication.map(function(a) { return a.toUpperCase() }) : [ 'NONE' ];
|
|
|
|
for (var i = 0; i < enc.wpa.length; i++)
|
|
switch (enc.wpa[i]) {
|
|
case 1:
|
|
versions.push('WPA');
|
|
break;
|
|
|
|
default:
|
|
versions.push('WPA%d'.format(enc.wpa[i]));
|
|
break;
|
|
}
|
|
|
|
if (versions.length > 1)
|
|
return 'mixed %s %s (%s)'.format(versions.join('/'), suites.join(', '), ciphers.join(', '));
|
|
|
|
return '%s %s (%s)'.format(versions[0], suites.join(', '), ciphers.join(', '));
|
|
}
|
|
|
|
return 'Unknown';
|
|
}
|
|
|
|
function enumerateNetworks() {
|
|
var uciInterfaces = uci.sections('network', 'interface'),
|
|
networks = {};
|
|
|
|
for (var i = 0; i < uciInterfaces.length; i++)
|
|
networks[uciInterfaces[i]['.name']] = this.instantiateNetwork(uciInterfaces[i]['.name']);
|
|
|
|
for (var i = 0; i < _state.ifaces.length; i++)
|
|
if (networks[_state.ifaces[i].interface] == null)
|
|
networks[_state.ifaces[i].interface] =
|
|
this.instantiateNetwork(_state.ifaces[i].interface, _state.ifaces[i].proto);
|
|
|
|
var rv = [];
|
|
|
|
for (var network in networks)
|
|
if (networks.hasOwnProperty(network))
|
|
rv.push(networks[network]);
|
|
|
|
rv.sort(networkSort);
|
|
|
|
return rv;
|
|
}
|
|
|
|
|
|
var Hosts, Network, Protocol, Device, WifiDevice, WifiNetwork;
|
|
|
|
/**
|
|
* @class network
|
|
* @memberof LuCI
|
|
* @hideconstructor
|
|
* @classdesc
|
|
*
|
|
* The `LuCI.network` class combines data from multiple `ubus` apis to
|
|
* provide an abstraction of the current network configuration state.
|
|
*
|
|
* It provides methods to enumerate interfaces and devices, to query
|
|
* current configuration details and to manipulate settings.
|
|
*/
|
|
Network = baseclass.extend(/** @lends LuCI.network.prototype */ {
|
|
/**
|
|
* Converts the given prefix size in bits to a netmask.
|
|
*
|
|
* @method
|
|
*
|
|
* @param {number} bits
|
|
* The prefix size in bits.
|
|
*
|
|
* @param {boolean} [v6=false]
|
|
* Whether to convert the bits value into an IPv4 netmask (`false`) or
|
|
* an IPv6 netmask (`true`).
|
|
*
|
|
* @returns {null|string}
|
|
* Returns a string containing the netmask corresponding to the bit count
|
|
* or `null` when the given amount of bits exceeds the maximum possible
|
|
* value of `32` for IPv4 or `128` for IPv6.
|
|
*/
|
|
prefixToMask: prefixToMask,
|
|
|
|
/**
|
|
* Converts the given netmask to a prefix size in bits.
|
|
*
|
|
* @method
|
|
*
|
|
* @param {string} netmask
|
|
* The netmask to convert into a bit count.
|
|
*
|
|
* @param {boolean} [v6=false]
|
|
* Whether to parse the given netmask as IPv4 (`false`) or IPv6 (`true`)
|
|
* address.
|
|
*
|
|
* @returns {null|number}
|
|
* Returns the number of prefix bits contained in the netmask or `null`
|
|
* if the given netmask value was invalid.
|
|
*/
|
|
maskToPrefix: maskToPrefix,
|
|
|
|
/**
|
|
* An encryption entry describes active wireless encryption settings
|
|
* such as the used key management protocols, active ciphers and
|
|
* protocol versions.
|
|
*
|
|
* @typedef {Object<string, boolean|Array<number|string>>} LuCI.network.WifiEncryption
|
|
* @memberof LuCI.network
|
|
*
|
|
* @property {boolean} enabled
|
|
* Specifies whether any kind of encryption, such as `WEP` or `WPA` is
|
|
* enabled. If set to `false`, then no encryption is active and the
|
|
* corresponding network is open.
|
|
*
|
|
* @property {string[]} [wep]
|
|
* When the `wep` property exists, the network uses WEP encryption.
|
|
* In this case, the property is set to an array of active WEP modes
|
|
* which might be either `open`, `shared` or both.
|
|
*
|
|
* @property {number[]} [wpa]
|
|
* When the `wpa` property exists, the network uses WPA security.
|
|
* In this case, the property is set to an array containing the WPA
|
|
* protocol versions used, e.g. `[ 1, 2 ]` for WPA/WPA2 mixed mode or
|
|
* `[ 3 ]` for WPA3-SAE.
|
|
*
|
|
* @property {string[]} [authentication]
|
|
* The `authentication` property only applies to WPA encryption and
|
|
* is defined when the `wpa` property is set as well. It points to
|
|
* an array of active authentication suites used by the network, e.g.
|
|
* `[ "psk" ]` for a WPA(2)-PSK network or `[ "psk", "sae" ]` for
|
|
* mixed WPA2-PSK/WPA3-SAE encryption.
|
|
*
|
|
* @property {string[]} [ciphers]
|
|
* If either WEP or WPA encryption is active, then the `ciphers`
|
|
* property will be set to an array describing the active encryption
|
|
* ciphers used by the network, e.g. `[ "tkip", "ccmp" ]` for a
|
|
* WPA/WPA2-PSK mixed network or `[ "wep-40", "wep-104" ]` for an
|
|
* WEP network.
|
|
*/
|
|
|
|
/**
|
|
* Converts a given {@link LuCI.network.WifiEncryption encryption entry}
|
|
* into a human readable string such as `mixed WPA/WPA2 PSK (TKIP, CCMP)`
|
|
* or `WPA3 SAE (CCMP)`.
|
|
*
|
|
* @method
|
|
*
|
|
* @param {LuCI.network.WifiEncryption} encryption
|
|
* The wireless encryption entry to convert.
|
|
*
|
|
* @returns {null|string}
|
|
* Returns the description string for the given encryption entry or
|
|
* `null` if the given entry was invalid.
|
|
*/
|
|
formatWifiEncryption: formatWifiEncryption,
|
|
|
|
/**
|
|
* Flushes the local network state cache and fetches updated information
|
|
* from the remote `ubus` apis.
|
|
*
|
|
* @returns {Promise<Object>}
|
|
* Returns a promise resolving to the internal network state object.
|
|
*/
|
|
flushCache: function() {
|
|
initNetworkState(true);
|
|
return _init;
|
|
},
|
|
|
|
/**
|
|
* Instantiates the given {@link LuCI.network.Protocol Protocol} backend,
|
|
* optionally using the given network name.
|
|
*
|
|
* @param {string} protoname
|
|
* The protocol backend to use, e.g. `static` or `dhcp`.
|
|
*
|
|
* @param {string} [netname=__dummy__]
|
|
* The network name to use for the instantiated protocol. This should be
|
|
* usually set to one of the interfaces described in /etc/config/network
|
|
* but it is allowed to omit it, e.g. to query protocol capabilities
|
|
* without the need for an existing interface.
|
|
*
|
|
* @returns {null|LuCI.network.Protocol}
|
|
* Returns the instantiated protocol backend class or `null` if the given
|
|
* protocol isn't known.
|
|
*/
|
|
getProtocol: function(protoname, netname) {
|
|
var v = _protocols[protoname];
|
|
if (v != null)
|
|
return new v(netname || '__dummy__');
|
|
|
|
return null;
|
|
},
|
|
|
|
/**
|
|
* Obtains instances of all known {@link LuCI.network.Protocol Protocol}
|
|
* backend classes.
|
|
*
|
|
* @returns {Array<LuCI.network.Protocol>}
|
|
* Returns an array of protocol class instances.
|
|
*/
|
|
getProtocols: function() {
|
|
var rv = [];
|
|
|
|
for (var protoname in _protocols)
|
|
rv.push(new _protocols[protoname]('__dummy__'));
|
|
|
|
return rv;
|
|
},
|
|
|
|
/**
|
|
* Registers a new {@link LuCI.network.Protocol Protocol} subclass
|
|
* with the given methods and returns the resulting subclass value.
|
|
*
|
|
* This functions internally calls
|
|
* {@link LuCI.Class.extend Class.extend()} on the `Network.Protocol`
|
|
* base class.
|
|
*
|
|
* @param {string} protoname
|
|
* The name of the new protocol to register.
|
|
*
|
|
* @param {Object<string, *>} methods
|
|
* The member methods and values of the new `Protocol` subclass to
|
|
* be passed to {@link LuCI.Class.extend Class.extend()}.
|
|
*
|
|
* @returns {LuCI.network.Protocol}
|
|
* Returns the new `Protocol` subclass.
|
|
*/
|
|
registerProtocol: function(protoname, methods) {
|
|
var spec = L.isObject(_protospecs) ? _protospecs[protoname] : null;
|
|
var proto = Protocol.extend(Object.assign({
|
|
getI18n: function() {
|
|
return protoname;
|
|
},
|
|
|
|
isFloating: function() {
|
|
return false;
|
|
},
|
|
|
|
isVirtual: function() {
|
|
return (L.isObject(spec) && spec.no_device == true);
|
|
},
|
|
|
|
renderFormOptions: function(section) {
|
|
|
|
}
|
|
}, methods, {
|
|
__init__: function(name) {
|
|
this.sid = name;
|
|
},
|
|
|
|
getProtocol: function() {
|
|
return protoname;
|
|
}
|
|
}));
|
|
|
|
_protocols[protoname] = proto;
|
|
|
|
return proto;
|
|
},
|
|
|
|
/**
|
|
* Registers a new regular expression pattern to recognize
|
|
* virtual interfaces.
|
|
*
|
|
* @param {RegExp} pat
|
|
* A `RegExp` instance to match a virtual interface name
|
|
* such as `6in4-wan` or `tun0`.
|
|
*/
|
|
registerPatternVirtual: function(pat) {
|
|
iface_patterns_virtual.push(pat);
|
|
},
|
|
|
|
/**
|
|
* Registers a new human readable translation string for a `Protocol`
|
|
* error code.
|
|
*
|
|
* @param {string} code
|
|
* The `ubus` protocol error code to register a translation for, e.g.
|
|
* `NO_DEVICE`.
|
|
*
|
|
* @param {string} message
|
|
* The message to use as translation for the given protocol error code.
|
|
*
|
|
* @returns {boolean}
|
|
* Returns `true` if the error code description has been added or `false`
|
|
* if either the arguments were invalid or if there already was a
|
|
* description for the given code.
|
|
*/
|
|
registerErrorCode: function(code, message) {
|
|
if (typeof(code) == 'string' &&
|
|
typeof(message) == 'string' &&
|
|
!proto_errors.hasOwnProperty(code)) {
|
|
proto_errors[code] = message;
|
|
return true;
|
|
}
|
|
|
|
return false;
|
|
},
|
|
|
|
/**
|
|
* Adds a new network of the given name and update it with the given
|
|
* uci option values.
|
|
*
|
|
* If a network with the given name already exist but is empty, then
|
|
* this function will update its option, otherwise it will do nothing.
|
|
*
|
|
* @param {string} name
|
|
* The name of the network to add. Must be in the format `[a-zA-Z0-9_]+`.
|
|
*
|
|
* @param {Object<string, string|string[]>} [options]
|
|
* An object of uci option values to set on the new network or to
|
|
* update in an existing, empty network.
|
|
*
|
|
* @returns {Promise<null|LuCI.network.Protocol>}
|
|
* Returns a promise resolving to the `Protocol` subclass instance
|
|
* describing the added network or resolving to `null` if the name
|
|
* was invalid or if a non-empty network of the given name already
|
|
* existed.
|
|
*/
|
|
addNetwork: function(name, options) {
|
|
return this.getNetwork(name).then(L.bind(function(existingNetwork) {
|
|
if (name != null && /^[a-zA-Z0-9_]+$/.test(name) && existingNetwork == null) {
|
|
var sid = uci.add('network', 'interface', name);
|
|
|
|
if (sid != null) {
|
|
if (L.isObject(options))
|
|
for (var key in options)
|
|
if (options.hasOwnProperty(key))
|
|
uci.set('network', sid, key, options[key]);
|
|
|
|
return this.instantiateNetwork(sid);
|
|
}
|
|
}
|
|
else if (existingNetwork != null && existingNetwork.isEmpty()) {
|
|
if (L.isObject(options))
|
|
for (var key in options)
|
|
if (options.hasOwnProperty(key))
|
|
existingNetwork.set(key, options[key]);
|
|
|
|
return existingNetwork;
|
|
}
|
|
}, this));
|
|
},
|
|
|
|
/**
|
|
* Get a {@link LuCI.network.Protocol Protocol} instance describing
|
|
* the network with the given name.
|
|
*
|
|
* @param {string} name
|
|
* The logical interface name of the network get, e.g. `lan` or `wan`.
|
|
*
|
|
* @returns {Promise<null|LuCI.network.Protocol>}
|
|
* Returns a promise resolving to a
|
|
* {@link LuCI.network.Protocol Protocol} subclass instance describing
|
|
* the network or `null` if the network did not exist.
|
|
*/
|
|
getNetwork: function(name) {
|
|
return initNetworkState().then(L.bind(function() {
|
|
var section = (name != null) ? uci.get('network', name) : null;
|
|
|
|
if (section != null && section['.type'] == 'interface') {
|
|
return this.instantiateNetwork(name);
|
|
}
|
|
else if (name != null) {
|
|
for (var i = 0; i < _state.ifaces.length; i++)
|
|
if (_state.ifaces[i].interface == name)
|
|
return this.instantiateNetwork(name, _state.ifaces[i].proto);
|
|
}
|
|
|
|
return null;
|
|
}, this));
|
|
},
|
|
|
|
/**
|
|
* Gets an array containing all known networks.
|
|
*
|
|
* @returns {Promise<Array<LuCI.network.Protocol>>}
|
|
* Returns a promise resolving to a name-sorted array of
|
|
* {@link LuCI.network.Protocol Protocol} subclass instances
|
|
* describing all known networks.
|
|
*/
|
|
getNetworks: function() {
|
|
return initNetworkState().then(L.bind(enumerateNetworks, this));
|
|
},
|
|
|
|
/**
|
|
* Deletes the given network and its references from the network and
|
|
* firewall configuration.
|
|
*
|
|
* @param {string} name
|
|
* The name of the network to delete.
|
|
*
|
|
* @returns {Promise<boolean>}
|
|
* Returns a promise resolving to either `true` if the network and
|
|
* references to it were successfully deleted from the configuration or
|
|
* `false` if the given network could not be found.
|
|
*/
|
|
deleteNetwork: function(name) {
|
|
var requireFirewall = Promise.resolve(L.require('firewall')).catch(function() {}),
|
|
loadDHCP = L.resolveDefault(uci.load('dhcp')),
|
|
network = this.instantiateNetwork(name);
|
|
|
|
return Promise.all([ requireFirewall, loadDHCP, initNetworkState() ]).then(function(res) {
|
|
var uciInterface = uci.get('network', name),
|
|
firewall = res[0];
|
|
|
|
if (uciInterface != null && uciInterface['.type'] == 'interface') {
|
|
return Promise.resolve(network ? network.deleteConfiguration() : null).then(function() {
|
|
uci.remove('network', name);
|
|
|
|
uci.sections('luci', 'ifstate', function(s) {
|
|
if (s.interface == name)
|
|
uci.remove('luci', s['.name']);
|
|
});
|
|
|
|
uci.sections('network', null, function(s) {
|
|
switch (s['.type']) {
|
|
case 'alias':
|
|
case 'route':
|
|
case 'route6':
|
|
if (s.interface == name)
|
|
uci.remove('network', s['.name']);
|
|
|
|
break;
|
|
|
|
case 'rule':
|
|
case 'rule6':
|
|
if (s.in == name || s.out == name)
|
|
uci.remove('network', s['.name']);
|
|
|
|
break;
|
|
}
|
|
});
|
|
|
|
uci.sections('wireless', 'wifi-iface', function(s) {
|
|
var networks = L.toArray(s.network).filter(function(network) { return network != name });
|
|
|
|
if (networks.length > 0)
|
|
uci.set('wireless', s['.name'], 'network', networks.join(' '));
|
|
else
|
|
uci.unset('wireless', s['.name'], 'network');
|
|
});
|
|
|
|
uci.sections('dhcp', 'dhcp', function(s) {
|
|
if (s.interface == name)
|
|
uci.remove('dhcp', s['.name']);
|
|
});
|
|
|
|
if (firewall)
|
|
return firewall.deleteNetwork(name).then(function() { return true });
|
|
|
|
return true;
|
|
}).catch(function() {
|
|
return false;
|
|
});
|
|
}
|
|
|
|
return false;
|
|
});
|
|
},
|
|
|
|
/**
|
|
* Rename the given network and its references to a new name.
|
|
*
|
|
* @param {string} oldName
|
|
* The current name of the network.
|
|
*
|
|
* @param {string} newName
|
|
* The name to rename the network to, must be in the format
|
|
* `[a-z-A-Z0-9_]+`.
|
|
*
|
|
* @returns {Promise<boolean>}
|
|
* Returns a promise resolving to either `true` if the network was
|
|
* successfully renamed or `false` if the new name was invalid, if
|
|
* a network with the new name already exists or if the network to
|
|
* rename could not be found.
|
|
*/
|
|
renameNetwork: function(oldName, newName) {
|
|
return initNetworkState().then(function() {
|
|
if (newName == null || !/^[a-zA-Z0-9_]+$/.test(newName) || uci.get('network', newName) != null)
|
|
return false;
|
|
|
|
var oldNetwork = uci.get('network', oldName);
|
|
|
|
if (oldNetwork == null || oldNetwork['.type'] != 'interface')
|
|
return false;
|
|
|
|
var sid = uci.add('network', 'interface', newName);
|
|
|
|
for (var key in oldNetwork)
|
|
if (oldNetwork.hasOwnProperty(key) && key.charAt(0) != '.')
|
|
uci.set('network', sid, key, oldNetwork[key]);
|
|
|
|
uci.sections('luci', 'ifstate', function(s) {
|
|
if (s.interface == oldName)
|
|
uci.set('luci', s['.name'], 'interface', newName);
|
|
});
|
|
|
|
uci.sections('network', 'alias', function(s) {
|
|
if (s.interface == oldName)
|
|
uci.set('network', s['.name'], 'interface', newName);
|
|
});
|
|
|
|
uci.sections('network', 'route', function(s) {
|
|
if (s.interface == oldName)
|
|
uci.set('network', s['.name'], 'interface', newName);
|
|
});
|
|
|
|
uci.sections('network', 'route6', function(s) {
|
|
if (s.interface == oldName)
|
|
uci.set('network', s['.name'], 'interface', newName);
|
|
});
|
|
|
|
uci.sections('wireless', 'wifi-iface', function(s) {
|
|
var networks = L.toArray(s.network).map(function(network) { return (network == oldName ? newName : network) });
|
|
|
|
if (networks.length > 0)
|
|
uci.set('wireless', s['.name'], 'network', networks.join(' '));
|
|
});
|
|
|
|
uci.remove('network', oldName);
|
|
|
|
return true;
|
|
});
|
|
},
|
|
|
|
/**
|
|
* Get a {@link LuCI.network.Device Device} instance describing the
|
|
* given network device.
|
|
*
|
|
* @param {string} name
|
|
* The name of the network device to get, e.g. `eth0` or `br-lan`.
|
|
*
|
|
* @returns {Promise<null|LuCI.network.Device>}
|
|
* Returns a promise resolving to the `Device` instance describing
|
|
* the network device or `null` if the given device name could not
|
|
* be found.
|
|
*/
|
|
getDevice: function(name) {
|
|
return initNetworkState().then(L.bind(function() {
|
|
if (name == null)
|
|
return null;
|
|
|
|
if (_state.netdevs.hasOwnProperty(name))
|
|
return this.instantiateDevice(name);
|
|
|
|
var netid = getWifiNetidBySid(name);
|
|
if (netid != null)
|
|
return this.instantiateDevice(netid[0]);
|
|
|
|
return null;
|
|
}, this));
|
|
},
|
|
|
|
/**
|
|
* Get a sorted list of all found network devices.
|
|
*
|
|
* @returns {Promise<Array<LuCI.network.Device>>}
|
|
* Returns a promise resolving to a sorted array of `Device` class
|
|
* instances describing the network devices found on the system.
|
|
*/
|
|
getDevices: function() {
|
|
return initNetworkState().then(L.bind(function() {
|
|
var devices = {};
|
|
|
|
/* find simple devices */
|
|
var uciInterfaces = uci.sections('network', 'interface');
|
|
for (var i = 0; i < uciInterfaces.length; i++) {
|
|
var ifnames = L.toArray(uciInterfaces[i].ifname);
|
|
|
|
for (var j = 0; j < ifnames.length; j++) {
|
|
if (ifnames[j].charAt(0) == '@')
|
|
continue;
|
|
|
|
if (isIgnoredIfname(ifnames[j]) || isVirtualIfname(ifnames[j]) || isWifiIfname(ifnames[j]))
|
|
continue;
|
|
|
|
devices[ifnames[j]] = this.instantiateDevice(ifnames[j]);
|
|
}
|
|
}
|
|
|
|
for (var ifname in _state.netdevs) {
|
|
if (devices.hasOwnProperty(ifname))
|
|
continue;
|
|
|
|
if (isIgnoredIfname(ifname) || isWifiIfname(ifname))
|
|
continue;
|
|
|
|
if (_state.netdevs[ifname].wireless)
|
|
continue;
|
|
|
|
devices[ifname] = this.instantiateDevice(ifname);
|
|
}
|
|
|
|
/* find VLAN devices */
|
|
var uciSwitchVLANs = uci.sections('network', 'switch_vlan');
|
|
for (var i = 0; i < uciSwitchVLANs.length; i++) {
|
|
if (typeof(uciSwitchVLANs[i].ports) != 'string' ||
|
|
typeof(uciSwitchVLANs[i].device) != 'string' ||
|
|
!_state.switches.hasOwnProperty(uciSwitchVLANs[i].device))
|
|
continue;
|
|
|
|
var ports = uciSwitchVLANs[i].ports.split(/\s+/);
|
|
for (var j = 0; j < ports.length; j++) {
|
|
var m = ports[j].match(/^(\d+)([tu]?)$/);
|
|
if (m == null)
|
|
continue;
|
|
|
|
var netdev = _state.switches[uciSwitchVLANs[i].device].netdevs[m[1]];
|
|
if (netdev == null)
|
|
continue;
|
|
|
|
if (!devices.hasOwnProperty(netdev))
|
|
devices[netdev] = this.instantiateDevice(netdev);
|
|
|
|
_state.isSwitch[netdev] = true;
|
|
|
|
if (m[2] != 't')
|
|
continue;
|
|
|
|
var vid = uciSwitchVLANs[i].vid || uciSwitchVLANs[i].vlan;
|
|
vid = (vid != null ? +vid : null);
|
|
|
|
if (vid == null || vid < 0 || vid > 4095)
|
|
continue;
|
|
|
|
var vlandev = '%s.%d'.format(netdev, vid);
|
|
|
|
if (!devices.hasOwnProperty(vlandev))
|
|
devices[vlandev] = this.instantiateDevice(vlandev);
|
|
|
|
_state.isSwitch[vlandev] = true;
|
|
}
|
|
}
|
|
|
|
/* find bridge VLAN devices */
|
|
var uciBridgeVLANs = uci.sections('network', 'bridge-vlan');
|
|
for (var i = 0; i < uciBridgeVLANs.length; i++) {
|
|
var basedev = uciBridgeVLANs[i].device,
|
|
local = uciBridgeVLANs[i].local,
|
|
alias = uciBridgeVLANs[i].alias,
|
|
vid = +uciBridgeVLANs[i].vlan,
|
|
ports = L.toArray(uciBridgeVLANs[i].ports);
|
|
|
|
if (local == '0')
|
|
continue;
|
|
|
|
if (isNaN(vid) || vid < 0 || vid > 4095)
|
|
continue;
|
|
|
|
var vlandev = '%s.%s'.format(basedev, alias || vid);
|
|
|
|
_state.isBridge[basedev] = true;
|
|
|
|
if (!_state.bridges.hasOwnProperty(basedev))
|
|
_state.bridges[basedev] = {
|
|
name: basedev,
|
|
ifnames: []
|
|
};
|
|
|
|
if (!devices.hasOwnProperty(vlandev))
|
|
devices[vlandev] = this.instantiateDevice(vlandev);
|
|
|
|
ports.forEach(function(port_name) {
|
|
var m = port_name.match(/^([^:]+)(?::[ut*]+)?$/),
|
|
p = m ? m[1] : null;
|
|
|
|
if (!p)
|
|
return;
|
|
|
|
if (_state.bridges[basedev].ifnames.filter(function(sd) { return sd.name == p }).length)
|
|
return;
|
|
|
|
_state.netdevs[p] = _state.netdevs[p] || {
|
|
name: p,
|
|
ipaddrs: [],
|
|
ip6addrs: [],
|
|
type: 1,
|
|
devtype: 'ethernet',
|
|
stats: {},
|
|
flags: {}
|
|
};
|
|
|
|
_state.bridges[basedev].ifnames.push(_state.netdevs[p]);
|
|
_state.netdevs[p].bridge = _state.bridges[basedev];
|
|
});
|
|
}
|
|
|
|
/* find wireless interfaces */
|
|
var uciWifiIfaces = uci.sections('wireless', 'wifi-iface'),
|
|
networkCount = {};
|
|
|
|
for (var i = 0; i < uciWifiIfaces.length; i++) {
|
|
if (typeof(uciWifiIfaces[i].device) != 'string')
|
|
continue;
|
|
|
|
networkCount[uciWifiIfaces[i].device] = (networkCount[uciWifiIfaces[i].device] || 0) + 1;
|
|
|
|
var netid = '%s.network%d'.format(uciWifiIfaces[i].device, networkCount[uciWifiIfaces[i].device]);
|
|
|
|
devices[netid] = this.instantiateDevice(netid);
|
|
}
|
|
|
|
/* find uci declared devices */
|
|
var uciDevices = uci.sections('network', 'device');
|
|
|
|
for (var i = 0; i < uciDevices.length; i++) {
|
|
var type = uciDevices[i].type,
|
|
name = uciDevices[i].name;
|
|
|
|
if (!type || !name || devices.hasOwnProperty(name))
|
|
continue;
|
|
|
|
if (type == 'bridge')
|
|
_state.isBridge[name] = true;
|
|
|
|
devices[name] = this.instantiateDevice(name);
|
|
}
|
|
|
|
var rv = [];
|
|
|
|
for (var netdev in devices)
|
|
if (devices.hasOwnProperty(netdev))
|
|
rv.push(devices[netdev]);
|
|
|
|
rv.sort(deviceSort);
|
|
|
|
return rv;
|
|
}, this));
|
|
},
|
|
|
|
/**
|
|
* Test if a given network device name is in the list of patterns for
|
|
* device names to ignore.
|
|
*
|
|
* Ignored device names are usually Linux network devices which are
|
|
* spawned implicitly by kernel modules such as `tunl0` or `hwsim0`
|
|
* and which are unsuitable for use in network configuration.
|
|
*
|
|
* @param {string} name
|
|
* The device name to test.
|
|
*
|
|
* @returns {boolean}
|
|
* Returns `true` if the given name is in the ignore pattern list,
|
|
* else returns `false`.
|
|
*/
|
|
isIgnoredDevice: function(name) {
|
|
return isIgnoredIfname(name);
|
|
},
|
|
|
|
/**
|
|
* Get a {@link LuCI.network.WifiDevice WifiDevice} instance describing
|
|
* the given wireless radio.
|
|
*
|
|
* @param {string} devname
|
|
* The configuration name of the wireless radio to lookup, e.g. `radio0`
|
|
* for the first mac80211 phy on the system.
|
|
*
|
|
* @returns {Promise<null|LuCI.network.WifiDevice>}
|
|
* Returns a promise resolving to the `WifiDevice` instance describing
|
|
* the underlying radio device or `null` if the wireless radio could not
|
|
* be found.
|
|
*/
|
|
getWifiDevice: function(devname) {
|
|
return initNetworkState().then(L.bind(function() {
|
|
var existingDevice = uci.get('wireless', devname);
|
|
|
|
if (existingDevice == null || existingDevice['.type'] != 'wifi-device')
|
|
return null;
|
|
|
|
return this.instantiateWifiDevice(devname, _state.radios[devname] || {});
|
|
}, this));
|
|
},
|
|
|
|
/**
|
|
* Obtain a list of all configured radio devices.
|
|
*
|
|
* @returns {Promise<Array<LuCI.network.WifiDevice>>}
|
|
* Returns a promise resolving to an array of `WifiDevice` instances
|
|
* describing the wireless radios configured in the system.
|
|
* The order of the array corresponds to the order of the radios in
|
|
* the configuration.
|
|
*/
|
|
getWifiDevices: function() {
|
|
return initNetworkState().then(L.bind(function() {
|
|
var uciWifiDevices = uci.sections('wireless', 'wifi-device'),
|
|
rv = [];
|
|
|
|
for (var i = 0; i < uciWifiDevices.length; i++) {
|
|
var devname = uciWifiDevices[i]['.name'];
|
|
rv.push(this.instantiateWifiDevice(devname, _state.radios[devname] || {}));
|
|
}
|
|
|
|
return rv;
|
|
}, this));
|
|
},
|
|
|
|
/**
|
|
* Get a {@link LuCI.network.WifiNetwork WifiNetwork} instance describing
|
|
* the given wireless network.
|
|
*
|
|
* @param {string} netname
|
|
* The name of the wireless network to lookup. This may be either an uci
|
|
* configuration section ID, a network ID in the form `radio#.network#`
|
|
* or a Linux network device name like `wlan0` which is resolved to the
|
|
* corresponding configuration section through `ubus` runtime information.
|
|
*
|
|
* @returns {Promise<null|LuCI.network.WifiNetwork>}
|
|
* Returns a promise resolving to the `WifiNetwork` instance describing
|
|
* the wireless network or `null` if the corresponding network could not
|
|
* be found.
|
|
*/
|
|
getWifiNetwork: function(netname) {
|
|
return initNetworkState()
|
|
.then(L.bind(this.lookupWifiNetwork, this, netname));
|
|
},
|
|
|
|
/**
|
|
* Get an array of all {@link LuCI.network.WifiNetwork WifiNetwork}
|
|
* instances describing the wireless networks present on the system.
|
|
*
|
|
* @returns {Promise<Array<LuCI.network.WifiNetwork>>}
|
|
* Returns a promise resolving to an array of `WifiNetwork` instances
|
|
* describing the wireless networks. The array will be empty if no networks
|
|
* are found.
|
|
*/
|
|
getWifiNetworks: function() {
|
|
return initNetworkState().then(L.bind(function() {
|
|
var wifiIfaces = uci.sections('wireless', 'wifi-iface'),
|
|
rv = [];
|
|
|
|
for (var i = 0; i < wifiIfaces.length; i++)
|
|
rv.push(this.lookupWifiNetwork(wifiIfaces[i]['.name']));
|
|
|
|
rv.sort(function(a, b) {
|
|
return L.naturalCompare(a.getID(), b.getID());
|
|
});
|
|
|
|
return rv;
|
|
}, this));
|
|
},
|
|
|
|
/**
|
|
* Adds a new wireless network to the configuration and sets its options
|
|
* to the provided values.
|
|
*
|
|
* @param {Object<string, string|string[]>} options
|
|
* The options to set for the newly added wireless network. This object
|
|
* must at least contain a `device` property which is set to the radio
|
|
* name the new network belongs to.
|
|
*
|
|
* @returns {Promise<null|LuCI.network.WifiNetwork>}
|
|
* Returns a promise resolving to a `WifiNetwork` instance describing
|
|
* the newly added wireless network or `null` if the given options
|
|
* were invalid or if the associated radio device could not be found.
|
|
*/
|
|
addWifiNetwork: function(options) {
|
|
return initNetworkState().then(L.bind(function() {
|
|
if (options == null ||
|
|
typeof(options) != 'object' ||
|
|
typeof(options.device) != 'string')
|
|
return null;
|
|
|
|
var existingDevice = uci.get('wireless', options.device);
|
|
if (existingDevice == null || existingDevice['.type'] != 'wifi-device')
|
|
return null;
|
|
|
|
/* XXX: need to add a named section (wifinet#) here */
|
|
var sid = uci.add('wireless', 'wifi-iface');
|
|
for (var key in options)
|
|
if (options.hasOwnProperty(key))
|
|
uci.set('wireless', sid, key, options[key]);
|
|
|
|
var radioname = existingDevice['.name'],
|
|
netid = getWifiNetidBySid(sid) || [];
|
|
|
|
return this.instantiateWifiNetwork(sid, radioname, _state.radios[radioname], netid[0], null);
|
|
}, this));
|
|
},
|
|
|
|
/**
|
|
* Deletes the given wireless network from the configuration.
|
|
*
|
|
* @param {string} netname
|
|
* The name of the network to remove. This may be either a
|
|
* network ID in the form `radio#.network#` or a Linux network device
|
|
* name like `wlan0` which is resolved to the corresponding configuration
|
|
* section through `ubus` runtime information.
|
|
*
|
|
* @returns {Promise<boolean>}
|
|
* Returns a promise resolving to `true` if the wireless network has been
|
|
* successfully deleted from the configuration or `false` if it could not
|
|
* be found.
|
|
*/
|
|
deleteWifiNetwork: function(netname) {
|
|
return initNetworkState().then(L.bind(function() {
|
|
var sid = getWifiSidByIfname(netname);
|
|
|
|
if (sid == null)
|
|
return false;
|
|
|
|
uci.remove('wireless', sid);
|
|
return true;
|
|
}, this));
|
|
},
|
|
|
|
/* private */
|
|
getStatusByRoute: function(addr, mask) {
|
|
return initNetworkState().then(L.bind(function() {
|
|
var rv = [];
|
|
|
|
for (var i = 0; i < _state.ifaces.length; i++) {
|
|
if (!Array.isArray(_state.ifaces[i].route))
|
|
continue;
|
|
|
|
for (var j = 0; j < _state.ifaces[i].route.length; j++) {
|
|
if (typeof(_state.ifaces[i].route[j]) != 'object' ||
|
|
typeof(_state.ifaces[i].route[j].target) != 'string' ||
|
|
typeof(_state.ifaces[i].route[j].mask) != 'number')
|
|
continue;
|
|
|
|
if (_state.ifaces[i].route[j].table)
|
|
continue;
|
|
|
|
if (_state.ifaces[i].route[j].target != addr ||
|
|
_state.ifaces[i].route[j].mask != mask)
|
|
continue;
|
|
|
|
rv.push(_state.ifaces[i]);
|
|
}
|
|
}
|
|
|
|
rv.sort(function(a, b) {
|
|
return L.naturalCompare(a.metric, b.metric) || L.naturalCompare(a.interface, b.interface);
|
|
});
|
|
|
|
return rv;
|
|
}, this));
|
|
},
|
|
|
|
/* private */
|
|
getStatusByAddress: function(addr) {
|
|
return initNetworkState().then(L.bind(function() {
|
|
var rv = [];
|
|
|
|
for (var i = 0; i < _state.ifaces.length; i++) {
|
|
if (Array.isArray(_state.ifaces[i]['ipv4-address']))
|
|
for (var j = 0; j < _state.ifaces[i]['ipv4-address'].length; j++)
|
|
if (typeof(_state.ifaces[i]['ipv4-address'][j]) == 'object' &&
|
|
_state.ifaces[i]['ipv4-address'][j].address == addr)
|
|
return _state.ifaces[i];
|
|
|
|
if (Array.isArray(_state.ifaces[i]['ipv6-address']))
|
|
for (var j = 0; j < _state.ifaces[i]['ipv6-address'].length; j++)
|
|
if (typeof(_state.ifaces[i]['ipv6-address'][j]) == 'object' &&
|
|
_state.ifaces[i]['ipv6-address'][j].address == addr)
|
|
return _state.ifaces[i];
|
|
|
|
if (Array.isArray(_state.ifaces[i]['ipv6-prefix-assignment']))
|
|
for (var j = 0; j < _state.ifaces[i]['ipv6-prefix-assignment'].length; j++)
|
|
if (typeof(_state.ifaces[i]['ipv6-prefix-assignment'][j]) == 'object' &&
|
|
typeof(_state.ifaces[i]['ipv6-prefix-assignment'][j]['local-address']) == 'object' &&
|
|
_state.ifaces[i]['ipv6-prefix-assignment'][j]['local-address'].address == addr)
|
|
return _state.ifaces[i];
|
|
}
|
|
|
|
return null;
|
|
}, this));
|
|
},
|
|
|
|
/**
|
|
* Get IPv4 wan networks.
|
|
*
|
|
* This function looks up all networks having a default `0.0.0.0/0` route
|
|
* and returns them as array.
|
|
*
|
|
* @returns {Promise<Array<LuCI.network.Protocol>>}
|
|
* Returns a promise resolving to an array of `Protocol` subclass
|
|
* instances describing the found default route interfaces.
|
|
*/
|
|
getWANNetworks: function() {
|
|
return this.getStatusByRoute('0.0.0.0', 0).then(L.bind(function(statuses) {
|
|
var rv = [], seen = {};
|
|
|
|
for (var i = 0; i < statuses.length; i++) {
|
|
if (!seen.hasOwnProperty(statuses[i].interface)) {
|
|
rv.push(this.instantiateNetwork(statuses[i].interface, statuses[i].proto));
|
|
seen[statuses[i].interface] = true;
|
|
}
|
|
}
|
|
|
|
return rv;
|
|
}, this));
|
|
},
|
|
|
|
/**
|
|
* Get IPv6 wan networks.
|
|
*
|
|
* This function looks up all networks having a default `::/0` route
|
|
* and returns them as array.
|
|
*
|
|
* @returns {Promise<Array<LuCI.network.Protocol>>}
|
|
* Returns a promise resolving to an array of `Protocol` subclass
|
|
* instances describing the found IPv6 default route interfaces.
|
|
*/
|
|
getWAN6Networks: function() {
|
|
return this.getStatusByRoute('::', 0).then(L.bind(function(statuses) {
|
|
var rv = [], seen = {};
|
|
|
|
for (var i = 0; i < statuses.length; i++) {
|
|
if (!seen.hasOwnProperty(statuses[i].interface)) {
|
|
rv.push(this.instantiateNetwork(statuses[i].interface, statuses[i].proto));
|
|
seen[statuses[i].interface] = true;
|
|
}
|
|
}
|
|
|
|
return rv;
|
|
}, this));
|
|
},
|
|
|
|
/**
|
|
* Describes an swconfig switch topology by specifying the CPU
|
|
* connections and external port labels of a switch.
|
|
*
|
|
* @typedef {Object<string, Object|Array>} SwitchTopology
|
|
* @memberof LuCI.network
|
|
*
|
|
* @property {Object<number, string>} netdevs
|
|
* The `netdevs` property points to an object describing the CPU port
|
|
* connections of the switch. The numeric key of the enclosed object is
|
|
* the port number, the value contains the Linux network device name the
|
|
* port is hardwired to.
|
|
*
|
|
* @property {Array<Object<string, boolean|number|string>>} ports
|
|
* The `ports` property points to an array describing the populated
|
|
* ports of the switch in the external label order. Each array item is
|
|
* an object containg the following keys:
|
|
* - `num` - the internal switch port number
|
|
* - `label` - the label of the port, e.g. `LAN 1` or `CPU (eth0)`
|
|
* - `device` - the connected Linux network device name (CPU ports only)
|
|
* - `tagged` - a boolean indicating whether the port must be tagged to
|
|
* function (CPU ports only)
|
|
*/
|
|
|
|
/**
|
|
* Returns the topologies of all swconfig switches found on the system.
|
|
*
|
|
* @returns {Promise<Object<string, LuCI.network.SwitchTopology>>}
|
|
* Returns a promise resolving to an object containing the topologies
|
|
* of each switch. The object keys correspond to the name of the switches
|
|
* such as `switch0`, the values are
|
|
* {@link LuCI.network.SwitchTopology SwitchTopology} objects describing
|
|
* the layout.
|
|
*/
|
|
getSwitchTopologies: function() {
|
|
return initNetworkState().then(function() {
|
|
return _state.switches;
|
|
});
|
|
},
|
|
|
|
/* private */
|
|
instantiateNetwork: function(name, proto) {
|
|
if (name == null)
|
|
return null;
|
|
|
|
proto = (proto == null ? uci.get('network', name, 'proto') : proto);
|
|
|
|
var protoClass = _protocols[proto] || Protocol;
|
|
return new protoClass(name);
|
|
},
|
|
|
|
/* private */
|
|
instantiateDevice: function(name, network, extend) {
|
|
if (extend != null)
|
|
return new (Device.extend(extend))(name, network);
|
|
|
|
return new Device(name, network);
|
|
},
|
|
|
|
/* private */
|
|
instantiateWifiDevice: function(radioname, radiostate) {
|
|
return new WifiDevice(radioname, radiostate);
|
|
},
|
|
|
|
/* private */
|
|
instantiateWifiNetwork: function(sid, radioname, radiostate, netid, netstate, hostapd) {
|
|
return new WifiNetwork(sid, radioname, radiostate, netid, netstate, hostapd);
|
|
},
|
|
|
|
/* private */
|
|
lookupWifiNetwork: function(netname) {
|
|
var sid, res, netid, radioname, radiostate, netstate;
|
|
|
|
sid = getWifiSidByNetid(netname);
|
|
|
|
if (sid != null) {
|
|
res = getWifiStateBySid(sid);
|
|
netid = netname;
|
|
radioname = res ? res[0] : null;
|
|
radiostate = res ? res[1] : null;
|
|
netstate = res ? res[2] : null;
|
|
}
|
|
else {
|
|
res = getWifiStateByIfname(netname);
|
|
|
|
if (res != null) {
|
|
radioname = res[0];
|
|
radiostate = res[1];
|
|
netstate = res[2];
|
|
sid = netstate.section;
|
|
netid = L.toArray(getWifiNetidBySid(sid))[0];
|
|
}
|
|
else {
|
|
res = getWifiStateBySid(netname);
|
|
|
|
if (res != null) {
|
|
radioname = res[0];
|
|
radiostate = res[1];
|
|
netstate = res[2];
|
|
sid = netname;
|
|
netid = L.toArray(getWifiNetidBySid(sid))[0];
|
|
}
|
|
else {
|
|
res = getWifiNetidBySid(netname);
|
|
|
|
if (res != null) {
|
|
netid = res[0];
|
|
radioname = res[1];
|
|
sid = netname;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
return this.instantiateWifiNetwork(sid || netname, radioname,
|
|
radiostate, netid, netstate,
|
|
netstate ? _state.hostapd[netstate.ifname] : null);
|
|
},
|
|
|
|
/**
|
|
* Obtains the the network device name of the given object.
|
|
*
|
|
* @param {LuCI.network.Protocol|LuCI.network.Device|LuCI.network.WifiDevice|LuCI.network.WifiNetwork|string} obj
|
|
* The object to get the device name from.
|
|
*
|
|
* @returns {null|string}
|
|
* Returns a string containing the device name or `null` if the given
|
|
* object could not be converted to a name.
|
|
*/
|
|
getIfnameOf: function(obj) {
|
|
return ifnameOf(obj);
|
|
},
|
|
|
|
/**
|
|
* Queries the internal DSL modem type from board information.
|
|
*
|
|
* @returns {Promise<null|string>}
|
|
* Returns a promise resolving to the type of the internal modem
|
|
* (e.g. `vdsl`) or to `null` if no internal modem is present.
|
|
*/
|
|
getDSLModemType: function() {
|
|
return initNetworkState().then(function() {
|
|
return _state.hasDSLModem ? _state.hasDSLModem.type : null;
|
|
});
|
|
},
|
|
|
|
/**
|
|
* Queries aggregated information about known hosts.
|
|
*
|
|
* This function aggregates information from various sources such as
|
|
* DHCP lease databases, ARP and IPv6 neighbour entries, wireless
|
|
* association list etc. and returns a {@link LuCI.network.Hosts Hosts}
|
|
* class instance describing the found hosts.
|
|
*
|
|
* @returns {Promise<LuCI.network.Hosts>}
|
|
* Returns a `Hosts` instance describing host known on the system.
|
|
*/
|
|
getHostHints: function() {
|
|
return initNetworkState().then(function() {
|
|
return new Hosts(_state.hosts);
|
|
});
|
|
}
|
|
});
|
|
|
|
/**
|
|
* @class
|
|
* @memberof LuCI.network
|
|
* @hideconstructor
|
|
* @classdesc
|
|
*
|
|
* The `LuCI.network.Hosts` class encapsulates host information aggregated
|
|
* from multiple sources and provides convenience functions to access the
|
|
* host information by different criteria.
|
|
*/
|
|
Hosts = baseclass.extend(/** @lends LuCI.network.Hosts.prototype */ {
|
|
__init__: function(hosts) {
|
|
this.hosts = hosts;
|
|
},
|
|
|
|
/**
|
|
* Lookup the hostname associated with the given MAC address.
|
|
*
|
|
* @param {string} mac
|
|
* The MAC address to lookup.
|
|
*
|
|
* @returns {null|string}
|
|
* Returns the hostname associated with the given MAC or `null` if
|
|
* no matching host could be found or if no hostname is known for
|
|
* the corresponding host.
|
|
*/
|
|
getHostnameByMACAddr: function(mac) {
|
|
return this.hosts[mac]
|
|
? (this.hosts[mac].name || null)
|
|
: null;
|
|
},
|
|
|
|
/**
|
|
* Lookup the IPv4 address associated with the given MAC address.
|
|
*
|
|
* @param {string} mac
|
|
* The MAC address to lookup.
|
|
*
|
|
* @returns {null|string}
|
|
* Returns the IPv4 address associated with the given MAC or `null` if
|
|
* no matching host could be found or if no IPv4 address is known for
|
|
* the corresponding host.
|
|
*/
|
|
getIPAddrByMACAddr: function(mac) {
|
|
return this.hosts[mac]
|
|
? (L.toArray(this.hosts[mac].ipaddrs || this.hosts[mac].ipv4)[0] || null)
|
|
: null;
|
|
},
|
|
|
|
/**
|
|
* Lookup the IPv6 address associated with the given MAC address.
|
|
*
|
|
* @param {string} mac
|
|
* The MAC address to lookup.
|
|
*
|
|
* @returns {null|string}
|
|
* Returns the IPv6 address associated with the given MAC or `null` if
|
|
* no matching host could be found or if no IPv6 address is known for
|
|
* the corresponding host.
|
|
*/
|
|
getIP6AddrByMACAddr: function(mac) {
|
|
return this.hosts[mac]
|
|
? (L.toArray(this.hosts[mac].ip6addrs || this.hosts[mac].ipv6)[0] || null)
|
|
: null;
|
|
},
|
|
|
|
/**
|
|
* Lookup the hostname associated with the given IPv4 address.
|
|
*
|
|
* @param {string} ipaddr
|
|
* The IPv4 address to lookup.
|
|
*
|
|
* @returns {null|string}
|
|
* Returns the hostname associated with the given IPv4 or `null` if
|
|
* no matching host could be found or if no hostname is known for
|
|
* the corresponding host.
|
|
*/
|
|
getHostnameByIPAddr: function(ipaddr) {
|
|
for (var mac in this.hosts) {
|
|
if (this.hosts[mac].name == null)
|
|
continue;
|
|
|
|
var addrs = L.toArray(this.hosts[mac].ipaddrs || this.hosts[mac].ipv4);
|
|
|
|
for (var i = 0; i < addrs.length; i++)
|
|
if (addrs[i] == ipaddr)
|
|
return this.hosts[mac].name;
|
|
}
|
|
|
|
return null;
|
|
},
|
|
|
|
/**
|
|
* Lookup the MAC address associated with the given IPv4 address.
|
|
*
|
|
* @param {string} ipaddr
|
|
* The IPv4 address to lookup.
|
|
*
|
|
* @returns {null|string}
|
|
* Returns the MAC address associated with the given IPv4 or `null` if
|
|
* no matching host could be found or if no MAC address is known for
|
|
* the corresponding host.
|
|
*/
|
|
getMACAddrByIPAddr: function(ipaddr) {
|
|
for (var mac in this.hosts) {
|
|
var addrs = L.toArray(this.hosts[mac].ipaddrs || this.hosts[mac].ipv4);
|
|
|
|
for (var i = 0; i < addrs.length; i++)
|
|
if (addrs[i] == ipaddr)
|
|
return mac;
|
|
}
|
|
|
|
return null;
|
|
},
|
|
|
|
/**
|
|
* Lookup the hostname associated with the given IPv6 address.
|
|
*
|
|
* @param {string} ip6addr
|
|
* The IPv6 address to lookup.
|
|
*
|
|
* @returns {null|string}
|
|
* Returns the hostname associated with the given IPv6 or `null` if
|
|
* no matching host could be found or if no hostname is known for
|
|
* the corresponding host.
|
|
*/
|
|
getHostnameByIP6Addr: function(ip6addr) {
|
|
for (var mac in this.hosts) {
|
|
if (this.hosts[mac].name == null)
|
|
continue;
|
|
|
|
var addrs = L.toArray(this.hosts[mac].ip6addrs || this.hosts[mac].ipv6);
|
|
|
|
for (var i = 0; i < addrs.length; i++)
|
|
if (addrs[i] == ip6addr)
|
|
return this.hosts[mac].name;
|
|
}
|
|
|
|
return null;
|
|
},
|
|
|
|
/**
|
|
* Lookup the MAC address associated with the given IPv6 address.
|
|
*
|
|
* @param {string} ip6addr
|
|
* The IPv6 address to lookup.
|
|
*
|
|
* @returns {null|string}
|
|
* Returns the MAC address associated with the given IPv6 or `null` if
|
|
* no matching host could be found or if no MAC address is known for
|
|
* the corresponding host.
|
|
*/
|
|
getMACAddrByIP6Addr: function(ip6addr) {
|
|
for (var mac in this.hosts) {
|
|
var addrs = L.toArray(this.hosts[mac].ip6addrs || this.hosts[mac].ipv6);
|
|
|
|
for (var i = 0; i < addrs.length; i++)
|
|
if (addrs[i] == ip6addr)
|
|
return mac;
|
|
}
|
|
|
|
return null;
|
|
},
|
|
|
|
/**
|
|
* Return an array of (MAC address, name hint) tuples sorted by
|
|
* MAC address.
|
|
*
|
|
* @param {boolean} [preferIp6=false]
|
|
* Whether to prefer IPv6 addresses (`true`) or IPv4 addresses (`false`)
|
|
* as name hint when no hostname is known for a specific MAC address.
|
|
*
|
|
* @returns {Array<Array<string>>}
|
|
* Returns an array of arrays containing a name hint for each found
|
|
* MAC address on the system. The array is sorted ascending by MAC.
|
|
*
|
|
* Each item of the resulting array is a two element array with the
|
|
* MAC being the first element and the name hint being the second
|
|
* element. The name hint is either the hostname, an IPv4 or an IPv6
|
|
* address related to the MAC address.
|
|
*
|
|
* If no hostname but both IPv4 and IPv6 addresses are known, the
|
|
* `preferIP6` flag specifies whether the IPv6 or the IPv4 address
|
|
* is used as hint.
|
|
*/
|
|
getMACHints: function(preferIp6) {
|
|
var rv = [];
|
|
|
|
for (var mac in this.hosts) {
|
|
var hint = this.hosts[mac].name ||
|
|
L.toArray(this.hosts[mac][preferIp6 ? 'ip6addrs' : 'ipaddrs'] || this.hosts[mac][preferIp6 ? 'ipv6' : 'ipv4'])[0] ||
|
|
L.toArray(this.hosts[mac][preferIp6 ? 'ipaddrs' : 'ip6addrs'] || this.hosts[mac][preferIp6 ? 'ipv4' : 'ipv6'])[0];
|
|
|
|
rv.push([mac, hint]);
|
|
}
|
|
|
|
return rv.sort(function(a, b) {
|
|
return L.naturalCompare(a[0], b[0]);
|
|
});
|
|
}
|
|
});
|
|
|
|
/**
|
|
* @class
|
|
* @memberof LuCI.network
|
|
* @hideconstructor
|
|
* @classdesc
|
|
*
|
|
* The `Network.Protocol` class serves as base for protocol specific
|
|
* subclasses which describe logical UCI networks defined by `config
|
|
* interface` sections in `/etc/config/network`.
|
|
*/
|
|
Protocol = baseclass.extend(/** @lends LuCI.network.Protocol.prototype */ {
|
|
__init__: function(name) {
|
|
this.sid = name;
|
|
},
|
|
|
|
_get: function(opt) {
|
|
var val = uci.get('network', this.sid, opt);
|
|
|
|
if (Array.isArray(val))
|
|
return val.join(' ');
|
|
|
|
return val || '';
|
|
},
|
|
|
|
_ubus: function(field) {
|
|
for (var i = 0; i < _state.ifaces.length; i++) {
|
|
if (_state.ifaces[i].interface != this.sid)
|
|
continue;
|
|
|
|
return (field != null ? _state.ifaces[i][field] : _state.ifaces[i]);
|
|
}
|
|
},
|
|
|
|
/**
|
|
* Read the given UCI option value of this network.
|
|
*
|
|
* @param {string} opt
|
|
* The UCI option name to read.
|
|
*
|
|
* @returns {null|string|string[]}
|
|
* Returns the UCI option value or `null` if the requested option is
|
|
* not found.
|
|
*/
|
|
get: function(opt) {
|
|
return uci.get('network', this.sid, opt);
|
|
},
|
|
|
|
/**
|
|
* Set the given UCI option of this network to the given value.
|
|
*
|
|
* @param {string} opt
|
|
* The name of the UCI option to set.
|
|
*
|
|
* @param {null|string|string[]} val
|
|
* The value to set or `null` to remove the given option from the
|
|
* configuration.
|
|
*/
|
|
set: function(opt, val) {
|
|
return uci.set('network', this.sid, opt, val);
|
|
},
|
|
|
|
/**
|
|
* Get the associared Linux network device of this network.
|
|
*
|
|
* @returns {null|string}
|
|
* Returns the name of the associated network device or `null` if
|
|
* it could not be determined.
|
|
*/
|
|
getIfname: function() {
|
|
var ifname;
|
|
|
|
if (this.isFloating())
|
|
ifname = this._ubus('l3_device');
|
|
else
|
|
ifname = this._ubus('device') || this._ubus('l3_device');
|
|
|
|
if (ifname != null)
|
|
return ifname;
|
|
|
|
var res = getWifiNetidByNetname(this.sid);
|
|
return (res != null ? res[0] : null);
|
|
},
|
|
|
|
/**
|
|
* Get the name of this network protocol class.
|
|
*
|
|
* This function will be overwritten by subclasses created by
|
|
* {@link LuCI.network#registerProtocol Network.registerProtocol()}.
|
|
*
|
|
* @abstract
|
|
* @returns {string}
|
|
* Returns the name of the network protocol implementation, e.g.
|
|
* `static` or `dhcp`.
|
|
*/
|
|
getProtocol: function() {
|
|
return null;
|
|
},
|
|
|
|
/**
|
|
* Return a human readable description for the protcol, such as
|
|
* `Static address` or `DHCP client`.
|
|
*
|
|
* This function should be overwritten by subclasses.
|
|
*
|
|
* @abstract
|
|
* @returns {string}
|
|
* Returns the description string.
|
|
*/
|
|
getI18n: function() {
|
|
switch (this.getProtocol()) {
|
|
case 'none': return _('Unmanaged');
|
|
case 'static': return _('Static address');
|
|
case 'dhcp': return _('DHCP client');
|
|
default: return _('Unknown');
|
|
}
|
|
},
|
|
|
|
/**
|
|
* Get the type of the underlying interface.
|
|
*
|
|
* This function actually is a convenience wrapper around
|
|
* `proto.get("type")` and is mainly used by other `LuCI.network` code
|
|
* to check whether the interface is declared as bridge in UCI.
|
|
*
|
|
* @returns {null|string}
|
|
* Returns the value of the `type` option of the associated logical
|
|
* interface or `null` if no `type` option is set.
|
|
*/
|
|
getType: function() {
|
|
return this._get('type');
|
|
},
|
|
|
|
/**
|
|
* Get the name of the associated logical interface.
|
|
*
|
|
* @returns {string}
|
|
* Returns the logical interface name, such as `lan` or `wan`.
|
|
*/
|
|
getName: function() {
|
|
return this.sid;
|
|
},
|
|
|
|
/**
|
|
* Get the uptime of the logical interface.
|
|
*
|
|
* @returns {number}
|
|
* Returns the uptime of the associated interface in seconds.
|
|
*/
|
|
getUptime: function() {
|
|
return this._ubus('uptime') || 0;
|
|
},
|
|
|
|
/**
|
|
* Get the logical interface expiry time in seconds.
|
|
*
|
|
* For protocols that have a concept of a lease, such as DHCP or
|
|
* DHCPv6, this function returns the remaining time in seconds
|
|
* until the lease expires.
|
|
*
|
|
* @returns {number}
|
|
* Returns the amount of seconds until the lease expires or `-1`
|
|
* if it isn't applicable to the associated protocol.
|
|
*/
|
|
getExpiry: function() {
|
|
var u = this._ubus('uptime'),
|
|
d = this._ubus('data');
|
|
|
|
if (typeof(u) == 'number' && d != null &&
|
|
typeof(d) == 'object' && typeof(d.leasetime) == 'number') {
|
|
var r = d.leasetime - (u % d.leasetime);
|
|
return (r > 0 ? r : 0);
|
|
}
|
|
|
|
return -1;
|
|
},
|
|
|
|
/**
|
|
* Get the metric value of the logical interface.
|
|
*
|
|
* @returns {number}
|
|
* Returns the current metric value used for device and network
|
|
* routes spawned by the associated logical interface.
|
|
*/
|
|
getMetric: function() {
|
|
return this._ubus('metric') || 0;
|
|
},
|
|
|
|
/**
|
|
* Get the requested firewall zone name of the logical interface.
|
|
*
|
|
* Some protocol implementations request a specific firewall zone
|
|
* to trigger inclusion of their resulting network devices into the
|
|
* firewall rule set.
|
|
*
|
|
* @returns {null|string}
|
|
* Returns the requested firewall zone name as published in the
|
|
* `ubus` runtime information or `null` if the remote protocol
|
|
* handler didn't request a zone.
|
|
*/
|
|
getZoneName: function() {
|
|
var d = this._ubus('data');
|
|
|
|
if (L.isObject(d) && typeof(d.zone) == 'string')
|
|
return d.zone;
|
|
|
|
return null;
|
|
},
|
|
|
|
/**
|
|
* Query the first (primary) IPv4 address of the logical interface.
|
|
*
|
|
* @returns {null|string}
|
|
* Returns the primary IPv4 address registered by the protocol handler
|
|
* or `null` if no IPv4 addresses were set.
|
|
*/
|
|
getIPAddr: function() {
|
|
var addrs = this._ubus('ipv4-address');
|
|
return ((Array.isArray(addrs) && addrs.length) ? addrs[0].address : null);
|
|
},
|
|
|
|
/**
|
|
* Query all IPv4 addresses of the logical interface.
|
|
*
|
|
* @returns {string[]}
|
|
* Returns an array of IPv4 addresses in CIDR notation which have been
|
|
* registered by the protocol handler. The order of the resulting array
|
|
* follows the order of the addresses in `ubus` runtime information.
|
|
*/
|
|
getIPAddrs: function() {
|
|
var addrs = this._ubus('ipv4-address'),
|
|
rv = [];
|
|
|
|
if (Array.isArray(addrs))
|
|
for (var i = 0; i < addrs.length; i++)
|
|
rv.push('%s/%d'.format(addrs[i].address, addrs[i].mask));
|
|
|
|
return rv;
|
|
},
|
|
|
|
/**
|
|
* Query the first (primary) IPv4 netmask of the logical interface.
|
|
*
|
|
* @returns {null|string}
|
|
* Returns the netmask of the primary IPv4 address registered by the
|
|
* protocol handler or `null` if no IPv4 addresses were set.
|
|
*/
|
|
getNetmask: function() {
|
|
var addrs = this._ubus('ipv4-address');
|
|
if (Array.isArray(addrs) && addrs.length)
|
|
return prefixToMask(addrs[0].mask, false);
|
|
},
|
|
|
|
/**
|
|
* Query the gateway (nexthop) of the default route associated with
|
|
* this logical interface.
|
|
*
|
|
* @returns {string}
|
|
* Returns a string containing the IPv4 nexthop address of the associated
|
|
* default route or `null` if no default route was found.
|
|
*/
|
|
getGatewayAddr: function() {
|
|
var routes = this._ubus('route');
|
|
|
|
if (Array.isArray(routes))
|
|
for (var i = 0; i < routes.length; i++)
|
|
if (typeof(routes[i]) == 'object' &&
|
|
routes[i].target == '0.0.0.0' &&
|
|
routes[i].mask == 0)
|
|
return routes[i].nexthop;
|
|
|
|
return null;
|
|
},
|
|
|
|
/**
|
|
* Query the IPv4 DNS servers associated with the logical interface.
|
|
*
|
|
* @returns {string[]}
|
|
* Returns an array of IPv4 DNS servers registered by the remote
|
|
* protocol backend.
|
|
*/
|
|
getDNSAddrs: function() {
|
|
var addrs = this._ubus('dns-server'),
|
|
rv = [];
|
|
|
|
if (Array.isArray(addrs))
|
|
for (var i = 0; i < addrs.length; i++)
|
|
if (!/:/.test(addrs[i]))
|
|
rv.push(addrs[i]);
|
|
|
|
return rv;
|
|
},
|
|
|
|
/**
|
|
* Query the first (primary) IPv6 address of the logical interface.
|
|
*
|
|
* @returns {null|string}
|
|
* Returns the primary IPv6 address registered by the protocol handler
|
|
* in CIDR notation or `null` if no IPv6 addresses were set.
|
|
*/
|
|
getIP6Addr: function() {
|
|
var addrs = this._ubus('ipv6-address');
|
|
|
|
if (Array.isArray(addrs) && L.isObject(addrs[0]))
|
|
return '%s/%d'.format(addrs[0].address, addrs[0].mask);
|
|
|
|
addrs = this._ubus('ipv6-prefix-assignment');
|
|
|
|
if (Array.isArray(addrs) && L.isObject(addrs[0]) && L.isObject(addrs[0]['local-address']))
|
|
return '%s/%d'.format(addrs[0]['local-address'].address, addrs[0]['local-address'].mask);
|
|
|
|
return null;
|
|
},
|
|
|
|
/**
|
|
* Query all IPv6 addresses of the logical interface.
|
|
*
|
|
* @returns {string[]}
|
|
* Returns an array of IPv6 addresses in CIDR notation which have been
|
|
* registered by the protocol handler. The order of the resulting array
|
|
* follows the order of the addresses in `ubus` runtime information.
|
|
*/
|
|
getIP6Addrs: function() {
|
|
var addrs = this._ubus('ipv6-address'),
|
|
rv = [];
|
|
|
|
if (Array.isArray(addrs))
|
|
for (var i = 0; i < addrs.length; i++)
|
|
if (L.isObject(addrs[i]))
|
|
rv.push('%s/%d'.format(addrs[i].address, addrs[i].mask));
|
|
|
|
addrs = this._ubus('ipv6-prefix-assignment');
|
|
|
|
if (Array.isArray(addrs))
|
|
for (var i = 0; i < addrs.length; i++)
|
|
if (L.isObject(addrs[i]) && L.isObject(addrs[i]['local-address']))
|
|
rv.push('%s/%d'.format(addrs[i]['local-address'].address, addrs[i]['local-address'].mask));
|
|
|
|
return rv;
|
|
},
|
|
|
|
/**
|
|
* Query the gateway (nexthop) of the IPv6 default route associated with
|
|
* this logical interface.
|
|
*
|
|
* @returns {string}
|
|
* Returns a string containing the IPv6 nexthop address of the associated
|
|
* default route or `null` if no default route was found.
|
|
*/
|
|
getGateway6Addr: function() {
|
|
var routes = this._ubus('route');
|
|
|
|
if (Array.isArray(routes))
|
|
for (var i = 0; i < routes.length; i++)
|
|
if (typeof(routes[i]) == 'object' &&
|
|
routes[i].target == '::' &&
|
|
routes[i].mask == 0)
|
|
return routes[i].nexthop;
|
|
|
|
return null;
|
|
},
|
|
|
|
/**
|
|
* Query the IPv6 DNS servers associated with the logical interface.
|
|
*
|
|
* @returns {string[]}
|
|
* Returns an array of IPv6 DNS servers registered by the remote
|
|
* protocol backend.
|
|
*/
|
|
getDNS6Addrs: function() {
|
|
var addrs = this._ubus('dns-server'),
|
|
rv = [];
|
|
|
|
if (Array.isArray(addrs))
|
|
for (var i = 0; i < addrs.length; i++)
|
|
if (/:/.test(addrs[i]))
|
|
rv.push(addrs[i]);
|
|
|
|
return rv;
|
|
},
|
|
|
|
/**
|
|
* Query the routed IPv6 prefix associated with the logical interface.
|
|
*
|
|
* @returns {null|string}
|
|
* Returns the routed IPv6 prefix registered by the remote protocol
|
|
* handler or `null` if no prefix is present.
|
|
*/
|
|
getIP6Prefix: function() {
|
|
var prefixes = this._ubus('ipv6-prefix');
|
|
|
|
if (Array.isArray(prefixes) && L.isObject(prefixes[0]))
|
|
return '%s/%d'.format(prefixes[0].address, prefixes[0].mask);
|
|
|
|
return null;
|
|
},
|
|
|
|
/**
|
|
* Query interface error messages published in `ubus` runtime state.
|
|
*
|
|
* Interface errors are emitted by remote protocol handlers if the setup
|
|
* of the underlying logical interface failed, e.g. due to bad
|
|
* configuration or network connectivity issues.
|
|
*
|
|
* This function will translate the found error codes to human readable
|
|
* messages using the descriptions registered by
|
|
* {@link LuCI.network#registerErrorCode Network.registerErrorCode()}
|
|
* and fall back to `"Unknown error (%s)"` where `%s` is replaced by the
|
|
* error code in case no translation can be found.
|
|
*
|
|
* @returns {string[]}
|
|
* Returns an array of translated interface error messages.
|
|
*/
|
|
getErrors: function() {
|
|
var errors = this._ubus('errors'),
|
|
rv = null;
|
|
|
|
if (Array.isArray(errors)) {
|
|
for (var i = 0; i < errors.length; i++) {
|
|
if (!L.isObject(errors[i]) || typeof(errors[i].code) != 'string')
|
|
continue;
|
|
|
|
rv = rv || [];
|
|
rv.push(proto_errors[errors[i].code] || _('Unknown error (%s)').format(errors[i].code));
|
|
}
|
|
}
|
|
|
|
return rv;
|
|
},
|
|
|
|
/**
|
|
* Checks whether the underlying logical interface is declared as bridge.
|
|
*
|
|
* @returns {boolean}
|
|
* Returns `true` when the interface is declared with `option type bridge`
|
|
* and when the associated protocol implementation is not marked virtual
|
|
* or `false` when the logical interface is no bridge.
|
|
*/
|
|
isBridge: function() {
|
|
return (!this.isVirtual() && this.getType() == 'bridge');
|
|
},
|
|
|
|
/**
|
|
* Get the name of the opkg package providing the protocol functionality.
|
|
*
|
|
* This function should be overwritten by protocol specific subclasses.
|
|
*
|
|
* @abstract
|
|
*
|
|
* @returns {string}
|
|
* Returns the name of the opkg package required for the protocol to
|
|
* function, e.g. `odhcp6c` for the `dhcpv6` prototocol.
|
|
*/
|
|
getOpkgPackage: function() {
|
|
return null;
|
|
},
|
|
|
|
/**
|
|
* Check function for the protocol handler if a new interface is createable.
|
|
*
|
|
* This function should be overwritten by protocol specific subclasses.
|
|
*
|
|
* @abstract
|
|
*
|
|
* @param {string} ifname
|
|
* The name of the interface to be created.
|
|
*
|
|
* @returns {Promise<void>}
|
|
* Returns a promise resolving if new interface is createable, else
|
|
* rejects with an error message string.
|
|
*/
|
|
isCreateable: function(ifname) {
|
|
return Promise.resolve(null);
|
|
},
|
|
|
|
/**
|
|
* Checks whether the protocol functionality is installed.
|
|
*
|
|
* This function exists for compatibility with old code, it always
|
|
* returns `true`.
|
|
*
|
|
* @deprecated
|
|
* @abstract
|
|
*
|
|
* @returns {boolean}
|
|
* Returns `true` if the protocol support is installed, else `false`.
|
|
*/
|
|
isInstalled: function() {
|
|
return true;
|
|
},
|
|
|
|
/**
|
|
* Checks whether this protocol is "virtual".
|
|
*
|
|
* A "virtual" protocol is a protocol which spawns its own interfaces
|
|
* on demand instead of using existing physical interfaces.
|
|
*
|
|
* Examples for virtual protocols are `6in4` which `gre` spawn tunnel
|
|
* network device on startup, examples for non-virtual protcols are
|
|
* `dhcp` or `static` which apply IP configuration to existing interfaces.
|
|
*
|
|
* This function should be overwritten by subclasses.
|
|
*
|
|
* @returns {boolean}
|
|
* Returns a boolean indicating whether the underlying protocol spawns
|
|
* dynamic interfaces (`true`) or not (`false`).
|
|
*/
|
|
isVirtual: function() {
|
|
return false;
|
|
},
|
|
|
|
/**
|
|
* Checks whether this protocol is "floating".
|
|
*
|
|
* A "floating" protocol is a protocol which spawns its own interfaces
|
|
* on demand, like a virtual one but which relies on an existinf lower
|
|
* level interface to initiate the connection.
|
|
*
|
|
* An example for such a protocol is "pppoe".
|
|
*
|
|
* This function exists for backwards compatibility with older code
|
|
* but should not be used anymore.
|
|
*
|
|
* @deprecated
|
|
* @returns {boolean}
|
|
* Returns a boolean indicating whether this protocol is floating (`true`)
|
|
* or not (`false`).
|
|
*/
|
|
isFloating: function() {
|
|
return false;
|
|
},
|
|
|
|
/**
|
|
* Checks whether this logical interface is dynamic.
|
|
*
|
|
* A dynamic interface is an interface which has been created at runtime,
|
|
* e.g. as sub-interface of another interface, but which is not backed by
|
|
* any user configuration. Such dynamic interfaces cannot be edited but
|
|
* only brought down or restarted.
|
|
*
|
|
* @returns {boolean}
|
|
* Returns a boolean indicating whether this interface is dynamic (`true`)
|
|
* or not (`false`).
|
|
*/
|
|
isDynamic: function() {
|
|
return (this._ubus('dynamic') == true);
|
|
},
|
|
|
|
/**
|
|
* Checks whether this interface is an alias interface.
|
|
*
|
|
* Alias interfaces are interfaces layering on top of another interface
|
|
* and are denoted by a special `@interfacename` notation in the
|
|
* underlying `device` option.
|
|
*
|
|
* @returns {null|string}
|
|
* Returns the name of the parent interface if this logical interface
|
|
* is an alias or `null` if it is not an alias interface.
|
|
*/
|
|
isAlias: function() {
|
|
var ifnames = L.toArray(uci.get('network', this.sid, 'device')),
|
|
parent = null;
|
|
|
|
for (var i = 0; i < ifnames.length; i++)
|
|
if (ifnames[i].charAt(0) == '@')
|
|
parent = ifnames[i].substr(1);
|
|
else if (parent != null)
|
|
parent = null;
|
|
|
|
return parent;
|
|
},
|
|
|
|
/**
|
|
* Checks whether this logical interface is "empty", meaning that ut
|
|
* has no network devices attached.
|
|
*
|
|
* @returns {boolean}
|
|
* Returns `true` if this logical interface is empty, else `false`.
|
|
*/
|
|
isEmpty: function() {
|
|
if (this.isFloating())
|
|
return false;
|
|
|
|
var empty = true,
|
|
device = this._get('device');
|
|
|
|
if (device != null && device.match(/\S+/))
|
|
empty = false;
|
|
|
|
if (empty == true && getWifiNetidBySid(this.sid) != null)
|
|
empty = false;
|
|
|
|
return empty;
|
|
},
|
|
|
|
/**
|
|
* Checks whether this logical interface is configured and running.
|
|
*
|
|
* @returns {boolean}
|
|
* Returns `true` when the interface is active or `false` when it is not.
|
|
*/
|
|
isUp: function() {
|
|
return (this._ubus('up') == true);
|
|
},
|
|
|
|
/**
|
|
* Add the given network device to the logical interface.
|
|
*
|
|
* @param {LuCI.network.Protocol|LuCI.network.Device|LuCI.network.WifiDevice|LuCI.network.WifiNetwork|string} device
|
|
* The object or device name to add to the logical interface. In case the
|
|
* given argument is not a string, it is resolved though the
|
|
* {@link LuCI.network#getIfnameOf Network.getIfnameOf()} function.
|
|
*
|
|
* @returns {boolean}
|
|
* Returns `true` if the device name has been added or `false` if any
|
|
* argument was invalid, if the device was already part of the logical
|
|
* interface or if the logical interface is virtual.
|
|
*/
|
|
addDevice: function(device) {
|
|
device = ifnameOf(device);
|
|
|
|
if (device == null || this.isFloating())
|
|
return false;
|
|
|
|
var wif = getWifiSidByIfname(device);
|
|
|
|
if (wif != null)
|
|
return appendValue('wireless', wif, 'network', this.sid);
|
|
|
|
return appendValue('network', this.sid, 'device', device);
|
|
},
|
|
|
|
/**
|
|
* Remove the given network device from the logical interface.
|
|
*
|
|
* @param {LuCI.network.Protocol|LuCI.network.Device|LuCI.network.WifiDevice|LuCI.network.WifiNetwork|string} device
|
|
* The object or device name to remove from the logical interface. In case
|
|
* the given argument is not a string, it is resolved though the
|
|
* {@link LuCI.network#getIfnameOf Network.getIfnameOf()} function.
|
|
*
|
|
* @returns {boolean}
|
|
* Returns `true` if the device name has been added or `false` if any
|
|
* argument was invalid, if the device was already part of the logical
|
|
* interface or if the logical interface is virtual.
|
|
*/
|
|
deleteDevice: function(device) {
|
|
var rv = false;
|
|
|
|
device = ifnameOf(device);
|
|
|
|
if (device == null || this.isFloating())
|
|
return false;
|
|
|
|
var wif = getWifiSidByIfname(device);
|
|
|
|
if (wif != null)
|
|
rv = removeValue('wireless', wif, 'network', this.sid);
|
|
|
|
if (removeValue('network', this.sid, 'device', device))
|
|
rv = true;
|
|
|
|
return rv;
|
|
},
|
|
|
|
/**
|
|
* Returns the Linux network device associated with this logical
|
|
* interface.
|
|
*
|
|
* @returns {LuCI.network.Device}
|
|
* Returns a `Network.Device` class instance representing the
|
|
* expected Linux network device according to the configuration.
|
|
*/
|
|
getDevice: function() {
|
|
if (this.isVirtual()) {
|
|
var ifname = '%s-%s'.format(this.getProtocol(), this.sid);
|
|
_state.isTunnel[this.getProtocol() + '-' + this.sid] = true;
|
|
return Network.prototype.instantiateDevice(ifname, this);
|
|
}
|
|
else if (this.isBridge()) {
|
|
var ifname = 'br-%s'.format(this.sid);
|
|
_state.isBridge[ifname] = true;
|
|
return new Device(ifname, this);
|
|
}
|
|
else {
|
|
var ifnames = L.toArray(uci.get('network', this.sid, 'device'));
|
|
|
|
for (var i = 0; i < ifnames.length; i++) {
|
|
var m = ifnames[i].match(/^([^:/]+)/);
|
|
return ((m && m[1]) ? Network.prototype.instantiateDevice(m[1], this) : null);
|
|
}
|
|
|
|
ifname = getWifiNetidByNetname(this.sid);
|
|
|
|
return (ifname != null ? Network.prototype.instantiateDevice(ifname[0], this) : null);
|
|
}
|
|
},
|
|
|
|
/**
|
|
* Returns the layer 2 linux network device currently associated
|
|
* with this logical interface.
|
|
*
|
|
* @returns {LuCI.network.Device}
|
|
* Returns a `Network.Device` class instance representing the Linux
|
|
* network device currently associated with the logical interface.
|
|
*/
|
|
getL2Device: function() {
|
|
var ifname = this._ubus('device');
|
|
return (ifname != null ? Network.prototype.instantiateDevice(ifname, this) : null);
|
|
},
|
|
|
|
/**
|
|
* Returns the layer 3 linux network device currently associated
|
|
* with this logical interface.
|
|
*
|
|
* @returns {LuCI.network.Device}
|
|
* Returns a `Network.Device` class instance representing the Linux
|
|
* network device currently associated with the logical interface.
|
|
*/
|
|
getL3Device: function() {
|
|
var ifname = this._ubus('l3_device');
|
|
return (ifname != null ? Network.prototype.instantiateDevice(ifname, this) : null);
|
|
},
|
|
|
|
/**
|
|
* Returns a list of network sub-devices associated with this logical
|
|
* interface.
|
|
*
|
|
* @returns {null|Array<LuCI.network.Device>}
|
|
* Returns an array of of `Network.Device` class instances representing
|
|
* the sub-devices attached to this logical interface or `null` if the
|
|
* logical interface does not support sub-devices, e.g. because it is
|
|
* virtual and not a bridge.
|
|
*/
|
|
getDevices: function() {
|
|
var rv = [];
|
|
|
|
if (!this.isBridge() && !(this.isVirtual() && !this.isFloating()))
|
|
return null;
|
|
|
|
var device = uci.get('network', this.sid, 'device');
|
|
|
|
if (device && device.charAt(0) != '@') {
|
|
var m = device.match(/^([^:/]+)/);
|
|
if (m != null)
|
|
rv.push(Network.prototype.instantiateDevice(m[1], this));
|
|
}
|
|
|
|
var uciWifiIfaces = uci.sections('wireless', 'wifi-iface');
|
|
|
|
for (var i = 0; i < uciWifiIfaces.length; i++) {
|
|
if (typeof(uciWifiIfaces[i].device) != 'string')
|
|
continue;
|
|
|
|
var networks = L.toArray(uciWifiIfaces[i].network);
|
|
|
|
for (var j = 0; j < networks.length; j++) {
|
|
if (networks[j] != this.sid)
|
|
continue;
|
|
|
|
var netid = getWifiNetidBySid(uciWifiIfaces[i]['.name']);
|
|
|
|
if (netid != null)
|
|
rv.push(Network.prototype.instantiateDevice(netid[0], this));
|
|
}
|
|
}
|
|
|
|
rv.sort(deviceSort);
|
|
|
|
return rv;
|
|
},
|
|
|
|
/**
|
|
* Checks whether this logical interface contains the given device
|
|
* object.
|
|
*
|
|
* @param {LuCI.network.Protocol|LuCI.network.Device|LuCI.network.WifiDevice|LuCI.network.WifiNetwork|string} device
|
|
* The object or device name to check. In case the given argument is not
|
|
* a string, it is resolved though the
|
|
* {@link LuCI.network#getIfnameOf Network.getIfnameOf()} function.
|
|
*
|
|
* @returns {boolean}
|
|
* Returns `true` when this logical interface contains the given network
|
|
* device or `false` if not.
|
|
*/
|
|
containsDevice: function(device) {
|
|
device = ifnameOf(device);
|
|
|
|
if (device == null)
|
|
return false;
|
|
else if (this.isVirtual() && '%s-%s'.format(this.getProtocol(), this.sid) == device)
|
|
return true;
|
|
else if (this.isBridge() && 'br-%s'.format(this.sid) == device)
|
|
return true;
|
|
|
|
var name = uci.get('network', this.sid, 'device');
|
|
if (name) {
|
|
var m = name.match(/^([^:/]+)/);
|
|
if (m != null && m[1] == device)
|
|
return true;
|
|
}
|
|
|
|
var wif = getWifiSidByIfname(device);
|
|
|
|
if (wif != null) {
|
|
var networks = L.toArray(uci.get('wireless', wif, 'network'));
|
|
|
|
for (var i = 0; i < networks.length; i++)
|
|
if (networks[i] == this.sid)
|
|
return true;
|
|
}
|
|
|
|
return false;
|
|
},
|
|
|
|
/**
|
|
* Cleanup related configuration entries.
|
|
*
|
|
* This function will be invoked if an interface is about to be removed
|
|
* from the configuration and is responsible for performing any required
|
|
* cleanup tasks, such as unsetting uci entries in related configurations.
|
|
*
|
|
* It should be overwritten by protocol specific subclasses.
|
|
*
|
|
* @abstract
|
|
*
|
|
* @returns {*|Promise<*>}
|
|
* This function may return a promise which is awaited before the rest of
|
|
* the configuration is removed. Any non-promise return value and any
|
|
* resolved promise value is ignored. If the returned promise is rejected,
|
|
* the interface removal will be aborted.
|
|
*/
|
|
deleteConfiguration: function() {}
|
|
});
|
|
|
|
/**
|
|
* @class
|
|
* @memberof LuCI.network
|
|
* @hideconstructor
|
|
* @classdesc
|
|
*
|
|
* A `Network.Device` class instance represents an underlying Linux network
|
|
* device and allows querying device details such as packet statistics or MTU.
|
|
*/
|
|
Device = baseclass.extend(/** @lends LuCI.network.Device.prototype */ {
|
|
__init__: function(device, network) {
|
|
var wif = getWifiSidByIfname(device);
|
|
|
|
if (wif != null) {
|
|
var res = getWifiStateBySid(wif) || [],
|
|
netid = getWifiNetidBySid(wif) || [];
|
|
|
|
this.wif = new WifiNetwork(wif, res[0], res[1], netid[0], res[2], { ifname: device });
|
|
this.device = this.wif.getIfname();
|
|
}
|
|
|
|
this.device = this.device || device;
|
|
this.dev = Object.assign({}, _state.netdevs[this.device]);
|
|
this.network = network;
|
|
|
|
var conf;
|
|
|
|
uci.sections('network', 'device', function(s) {
|
|
if (s.name == device)
|
|
conf = s;
|
|
});
|
|
|
|
this.config = Object.assign({}, conf);
|
|
},
|
|
|
|
_devstate: function(/* ... */) {
|
|
var rv = this.dev;
|
|
|
|
for (var i = 0; i < arguments.length; i++)
|
|
if (L.isObject(rv))
|
|
rv = rv[arguments[i]];
|
|
else
|
|
return null;
|
|
|
|
return rv;
|
|
},
|
|
|
|
/**
|
|
* Get the name of the network device.
|
|
*
|
|
* @returns {string}
|
|
* Returns the name of the device, e.g. `eth0` or `wlan0`.
|
|
*/
|
|
getName: function() {
|
|
return (this.wif != null ? this.wif.getIfname() : this.device);
|
|
},
|
|
|
|
/**
|
|
* Get the MAC address of the device.
|
|
*
|
|
* @returns {null|string}
|
|
* Returns the MAC address of the device or `null` if not applicable,
|
|
* e.g. for non-ethernet tunnel devices.
|
|
*/
|
|
getMAC: function() {
|
|
var mac = this._devstate('macaddr');
|
|
return mac ? mac.toUpperCase() : null;
|
|
},
|
|
|
|
/**
|
|
* Get the MTU of the device.
|
|
*
|
|
* @returns {number}
|
|
* Returns the MTU of the device.
|
|
*/
|
|
getMTU: function() {
|
|
return this._devstate('mtu');
|
|
},
|
|
|
|
/**
|
|
* Get the IPv4 addresses configured on the device.
|
|
*
|
|
* @returns {string[]}
|
|
* Returns an array of IPv4 address strings.
|
|
*/
|
|
getIPAddrs: function() {
|
|
var addrs = this._devstate('ipaddrs');
|
|
return (Array.isArray(addrs) ? addrs : []);
|
|
},
|
|
|
|
/**
|
|
* Get the IPv6 addresses configured on the device.
|
|
*
|
|
* @returns {string[]}
|
|
* Returns an array of IPv6 address strings.
|
|
*/
|
|
getIP6Addrs: function() {
|
|
var addrs = this._devstate('ip6addrs');
|
|
return (Array.isArray(addrs) ? addrs : []);
|
|
},
|
|
|
|
/**
|
|
* Get the type of the device.
|
|
*
|
|
* @returns {string}
|
|
* Returns a string describing the type of the network device:
|
|
* - `alias` if it is an abstract alias device (`@` notation)
|
|
* - `wifi` if it is a wireless interface (e.g. `wlan0`)
|
|
* - `bridge` if it is a bridge device (e.g. `br-lan`)
|
|
* - `tunnel` if it is a tun or tap device (e.g. `tun0`)
|
|
* - `vlan` if it is a vlan device (e.g. `eth0.1`)
|
|
* - `switch` if it is a switch device (e.g.`eth1` connected to switch0)
|
|
* - `ethernet` for all other device types
|
|
*/
|
|
getType: function() {
|
|
if (this.device != null && this.device.charAt(0) == '@')
|
|
return 'alias';
|
|
else if (this.dev.devtype == 'wlan' || this.wif != null || isWifiIfname(this.device))
|
|
return 'wifi';
|
|
else if (this.dev.devtype == 'bridge' || _state.isBridge[this.device])
|
|
return 'bridge';
|
|
else if (_state.isTunnel[this.device])
|
|
return 'tunnel';
|
|
else if (this.dev.devtype == 'vlan' || this.device.indexOf('.') > -1)
|
|
return 'vlan';
|
|
else if (this.dev.devtype == 'dsa' || _state.isSwitch[this.device])
|
|
return 'switch';
|
|
else if (this.config.type == '8021q' || this.config.type == '8021ad')
|
|
return 'vlan';
|
|
else if (this.config.type == 'bridge')
|
|
return 'bridge';
|
|
else
|
|
return 'ethernet';
|
|
},
|
|
|
|
/**
|
|
* Get a short description string for the device.
|
|
*
|
|
* @returns {string}
|
|
* Returns the device name for non-wifi devices or a string containing
|
|
* the operation mode and SSID for wifi devices.
|
|
*/
|
|
getShortName: function() {
|
|
if (this.wif != null)
|
|
return this.wif.getShortName();
|
|
|
|
return this.device;
|
|
},
|
|
|
|
/**
|
|
* Get a long description string for the device.
|
|
*
|
|
* @returns {string}
|
|
* Returns a string containing the type description and device name
|
|
* for non-wifi devices or operation mode and ssid for wifi ones.
|
|
*/
|
|
getI18n: function() {
|
|
if (this.wif != null) {
|
|
return '%s: %s "%s"'.format(
|
|
_('Wireless Network'),
|
|
this.wif.getActiveMode(),
|
|
this.wif.getActiveSSID() || this.wif.getActiveBSSID() || this.wif.getID() || '?');
|
|
}
|
|
|
|
return '%s: "%s"'.format(this.getTypeI18n(), this.getName());
|
|
},
|
|
|
|
/**
|
|
* Get a string describing the device type.
|
|
*
|
|
* @returns {string}
|
|
* Returns a string describing the type, e.g. "Wireless Adapter" or
|
|
* "Bridge".
|
|
*/
|
|
getTypeI18n: function() {
|
|
switch (this.getType()) {
|
|
case 'alias':
|
|
return _('Alias Interface');
|
|
|
|
case 'wifi':
|
|
return _('Wireless Adapter');
|
|
|
|
case 'bridge':
|
|
return _('Bridge');
|
|
|
|
case 'switch':
|
|
return (_state.netdevs[this.device] && _state.netdevs[this.device].devtype == 'dsa')
|
|
? _('Switch port') : _('Ethernet Switch');
|
|
|
|
case 'vlan':
|
|
return (_state.isSwitch[this.device] ? _('Switch VLAN') : _('Software VLAN'));
|
|
|
|
case 'tunnel':
|
|
return _('Tunnel Interface');
|
|
|
|
default:
|
|
return _('Ethernet Adapter');
|
|
}
|
|
},
|
|
|
|
/**
|
|
* Get the associated bridge ports of the device.
|
|
*
|
|
* @returns {null|Array<LuCI.network.Device>}
|
|
* Returns an array of `Network.Device` instances representing the ports
|
|
* (slave interfaces) of the bridge or `null` when this device isn't
|
|
* a Linux bridge.
|
|
*/
|
|
getPorts: function() {
|
|
var br = _state.bridges[this.device],
|
|
rv = [];
|
|
|
|
if (br == null || !Array.isArray(br.ifnames))
|
|
return null;
|
|
|
|
for (var i = 0; i < br.ifnames.length; i++)
|
|
rv.push(Network.prototype.instantiateDevice(br.ifnames[i].name));
|
|
|
|
rv.sort(deviceSort);
|
|
|
|
return rv;
|
|
},
|
|
|
|
/**
|
|
* Get the bridge ID
|
|
*
|
|
* @returns {null|string}
|
|
* Returns the ID of this network bridge or `null` if this network
|
|
* device is not a Linux bridge.
|
|
*/
|
|
getBridgeID: function() {
|
|
var br = _state.bridges[this.device];
|
|
return (br != null ? br.id : null);
|
|
},
|
|
|
|
/**
|
|
* Get the bridge STP setting
|
|
*
|
|
* @returns {boolean}
|
|
* Returns `true` when this device is a Linux bridge and has `stp`
|
|
* enabled, else `false`.
|
|
*/
|
|
getBridgeSTP: function() {
|
|
var br = _state.bridges[this.device];
|
|
return (br != null ? !!br.stp : false);
|
|
},
|
|
|
|
/**
|
|
* Checks whether this device is up.
|
|
*
|
|
* @returns {boolean}
|
|
* Returns `true` when the associated device is running pr `false`
|
|
* when it is down or absent.
|
|
*/
|
|
isUp: function() {
|
|
var up = this._devstate('flags', 'up');
|
|
|
|
if (up == null)
|
|
up = (this.getType() == 'alias');
|
|
|
|
return up;
|
|
},
|
|
|
|
/**
|
|
* Checks whether this device is a Linux bridge.
|
|
*
|
|
* @returns {boolean}
|
|
* Returns `true` when the network device is present and a Linux bridge,
|
|
* else `false`.
|
|
*/
|
|
isBridge: function() {
|
|
return (this.getType() == 'bridge');
|
|
},
|
|
|
|
/**
|
|
* Checks whether this device is part of a Linux bridge.
|
|
*
|
|
* @returns {boolean}
|
|
* Returns `true` when this network device is part of a bridge,
|
|
* else `false`.
|
|
*/
|
|
isBridgePort: function() {
|
|
return (this._devstate('bridge') != null);
|
|
},
|
|
|
|
/**
|
|
* Get the amount of transmitted bytes.
|
|
*
|
|
* @returns {number}
|
|
* Returns the amount of bytes transmitted by the network device.
|
|
*/
|
|
getTXBytes: function() {
|
|
var stat = this._devstate('stats');
|
|
return (stat != null ? stat.tx_bytes || 0 : 0);
|
|
},
|
|
|
|
/**
|
|
* Get the amount of received bytes.
|
|
*
|
|
* @returns {number}
|
|
* Returns the amount of bytes received by the network device.
|
|
*/
|
|
getRXBytes: function() {
|
|
var stat = this._devstate('stats');
|
|
return (stat != null ? stat.rx_bytes || 0 : 0);
|
|
},
|
|
|
|
/**
|
|
* Get the amount of transmitted packets.
|
|
*
|
|
* @returns {number}
|
|
* Returns the amount of packets transmitted by the network device.
|
|
*/
|
|
getTXPackets: function() {
|
|
var stat = this._devstate('stats');
|
|
return (stat != null ? stat.tx_packets || 0 : 0);
|
|
},
|
|
|
|
/**
|
|
* Get the amount of received packets.
|
|
*
|
|
* @returns {number}
|
|
* Returns the amount of packets received by the network device.
|
|
*/
|
|
getRXPackets: function() {
|
|
var stat = this._devstate('stats');
|
|
return (stat != null ? stat.rx_packets || 0 : 0);
|
|
},
|
|
|
|
/**
|
|
* Get the carrier state of the network device.
|
|
*
|
|
* @returns {boolean}
|
|
* Returns true if the device has a carrier, e.g. when a cable is
|
|
* inserted into an ethernet port of false if there is none.
|
|
*/
|
|
getCarrier: function() {
|
|
var link = this._devstate('link');
|
|
return (link != null ? link.carrier || false : false);
|
|
},
|
|
|
|
/**
|
|
* Get the current link speed of the network device if available.
|
|
*
|
|
* @returns {number|null}
|
|
* Returns the current speed of the network device in Mbps. If the
|
|
* device supports no ethernet speed levels, null is returned.
|
|
* If the device supports ethernet speeds but has no carrier, -1 is
|
|
* returned.
|
|
*/
|
|
getSpeed: function() {
|
|
var link = this._devstate('link');
|
|
return (link != null ? link.speed || null : null);
|
|
},
|
|
|
|
/**
|
|
* Get the current duplex mode of the network device if available.
|
|
*
|
|
* @returns {string|null}
|
|
* Returns the current duplex mode of the network device. Returns
|
|
* either "full" or "half" if the device supports duplex modes or
|
|
* null if the duplex mode is unknown or unsupported.
|
|
*/
|
|
getDuplex: function() {
|
|
var link = this._devstate('link'),
|
|
duplex = link ? link.duplex : null;
|
|
|
|
return (duplex != 'unknown') ? duplex : null;
|
|
},
|
|
|
|
/**
|
|
* Get the primary logical interface this device is assigned to.
|
|
*
|
|
* @returns {null|LuCI.network.Protocol}
|
|
* Returns a `Network.Protocol` instance representing the logical
|
|
* interface this device is attached to or `null` if it is not
|
|
* assigned to any logical interface.
|
|
*/
|
|
getNetwork: function() {
|
|
return this.getNetworks()[0];
|
|
},
|
|
|
|
/**
|
|
* Get the logical interfaces this device is assigned to.
|
|
*
|
|
* @returns {Array<LuCI.network.Protocol>}
|
|
* Returns an array of `Network.Protocol` instances representing the
|
|
* logical interfaces this device is assigned to.
|
|
*/
|
|
getNetworks: function() {
|
|
if (this.networks == null) {
|
|
this.networks = [];
|
|
|
|
var networks = enumerateNetworks.apply(L.network);
|
|
|
|
for (var i = 0; i < networks.length; i++)
|
|
if (networks[i].containsDevice(this.device) || networks[i].getIfname() == this.device)
|
|
this.networks.push(networks[i]);
|
|
|
|
this.networks.sort(networkSort);
|
|
}
|
|
|
|
return this.networks;
|
|
},
|
|
|
|
/**
|
|
* Get the related wireless network this device is related to.
|
|
*
|
|
* @returns {null|LuCI.network.WifiNetwork}
|
|
* Returns a `Network.WifiNetwork` instance representing the wireless
|
|
* network corresponding to this network device or `null` if this device
|
|
* is not a wireless device.
|
|
*/
|
|
getWifiNetwork: function() {
|
|
return (this.wif != null ? this.wif : null);
|
|
},
|
|
|
|
/**
|
|
* Get the logical parent device of this device.
|
|
*
|
|
* In case of DSA switch ports, the parent device will be the DSA switch
|
|
* device itself, for VLAN devices, the parent refers to the base device
|
|
* etc.
|
|
*
|
|
* @returns {null|LuCI.network.Device}
|
|
* Returns a `Network.Device` instance representing the parent device or
|
|
* `null` when this device has no parent, as it is the case for e.g.
|
|
* ordinary ethernet interfaces.
|
|
*/
|
|
getParent: function() {
|
|
if (this.dev.parent)
|
|
return Network.prototype.instantiateDevice(this.dev.parent);
|
|
|
|
if ((this.config.type == '8021q' || this.config.type == '802ad') && typeof(this.config.ifname) == 'string')
|
|
return Network.prototype.instantiateDevice(this.config.ifname);
|
|
|
|
return null;
|
|
}
|
|
});
|
|
|
|
/**
|
|
* @class
|
|
* @memberof LuCI.network
|
|
* @hideconstructor
|
|
* @classdesc
|
|
*
|
|
* A `Network.WifiDevice` class instance represents a wireless radio device
|
|
* present on the system and provides wireless capability information as
|
|
* well as methods for enumerating related wireless networks.
|
|
*/
|
|
WifiDevice = baseclass.extend(/** @lends LuCI.network.WifiDevice.prototype */ {
|
|
__init__: function(name, radiostate) {
|
|
var uciWifiDevice = uci.get('wireless', name);
|
|
|
|
if (uciWifiDevice != null &&
|
|
uciWifiDevice['.type'] == 'wifi-device' &&
|
|
uciWifiDevice['.name'] != null) {
|
|
this.sid = uciWifiDevice['.name'];
|
|
}
|
|
|
|
this.sid = this.sid || name;
|
|
this._ubusdata = {
|
|
radio: name,
|
|
dev: radiostate
|
|
};
|
|
},
|
|
|
|
/* private */
|
|
ubus: function(/* ... */) {
|
|
var v = this._ubusdata;
|
|
|
|
for (var i = 0; i < arguments.length; i++)
|
|
if (L.isObject(v))
|
|
v = v[arguments[i]];
|
|
else
|
|
return null;
|
|
|
|
return v;
|
|
},
|
|
|
|
/**
|
|
* Read the given UCI option value of this wireless device.
|
|
*
|
|
* @param {string} opt
|
|
* The UCI option name to read.
|
|
*
|
|
* @returns {null|string|string[]}
|
|
* Returns the UCI option value or `null` if the requested option is
|
|
* not found.
|
|
*/
|
|
get: function(opt) {
|
|
return uci.get('wireless', this.sid, opt);
|
|
},
|
|
|
|
/**
|
|
* Set the given UCI option of this network to the given value.
|
|
*
|
|
* @param {string} opt
|
|
* The name of the UCI option to set.
|
|
*
|
|
* @param {null|string|string[]} val
|
|
* The value to set or `null` to remove the given option from the
|
|
* configuration.
|
|
*/
|
|
set: function(opt, value) {
|
|
return uci.set('wireless', this.sid, opt, value);
|
|
},
|
|
|
|
/**
|
|
* Checks whether this wireless radio is disabled.
|
|
*
|
|
* @returns {boolean}
|
|
* Returns `true` when the wireless radio is marked as disabled in `ubus`
|
|
* runtime state or when the `disabled` option is set in the corresponding
|
|
* UCI configuration.
|
|
*/
|
|
isDisabled: function() {
|
|
return this.ubus('dev', 'disabled') || this.get('disabled') == '1';
|
|
},
|
|
|
|
/**
|
|
* Get the configuration name of this wireless radio.
|
|
*
|
|
* @returns {string}
|
|
* Returns the UCI section name (e.g. `radio0`) of the corresponding
|
|
* radio configuration which also serves as unique logical identifier
|
|
* for the wireless phy.
|
|
*/
|
|
getName: function() {
|
|
return this.sid;
|
|
},
|
|
|
|
/**
|
|
* Gets a list of supported hwmodes.
|
|
*
|
|
* The hwmode values describe the frequency band and wireless standard
|
|
* versions supported by the wireless phy.
|
|
*
|
|
* @returns {string[]}
|
|
* Returns an array of valid hwmode values for this radio. Currently
|
|
* known mode values are:
|
|
* - `a` - Legacy 802.11a mode, 5 GHz, up to 54 Mbit/s
|
|
* - `b` - Legacy 802.11b mode, 2.4 GHz, up to 11 Mbit/s
|
|
* - `g` - Legacy 802.11g mode, 2.4 GHz, up to 54 Mbit/s
|
|
* - `n` - IEEE 802.11n mode, 2.4 or 5 GHz, up to 600 Mbit/s
|
|
* - `ac` - IEEE 802.11ac mode, 5 GHz, up to 6770 Mbit/s
|
|
* - `ax` - IEEE 802.11ax mode, 2.4 or 5 GHz
|
|
*/
|
|
getHWModes: function() {
|
|
var hwmodes = this.ubus('dev', 'iwinfo', 'hwmodes');
|
|
return Array.isArray(hwmodes) ? hwmodes : [ 'b', 'g' ];
|
|
},
|
|
|
|
/**
|
|
* Gets a list of supported htmodes.
|
|
*
|
|
* The htmode values describe the wide-frequency options supported by
|
|
* the wireless phy.
|
|
*
|
|
* @returns {string[]}
|
|
* Returns an array of valid htmode values for this radio. Currently
|
|
* known mode values are:
|
|
* - `HT20` - applicable to IEEE 802.11n, 20 MHz wide channels
|
|
* - `HT40` - applicable to IEEE 802.11n, 40 MHz wide channels
|
|
* - `VHT20` - applicable to IEEE 802.11ac, 20 MHz wide channels
|
|
* - `VHT40` - applicable to IEEE 802.11ac, 40 MHz wide channels
|
|
* - `VHT80` - applicable to IEEE 802.11ac, 80 MHz wide channels
|
|
* - `VHT160` - applicable to IEEE 802.11ac, 160 MHz wide channels
|
|
* - `HE20` - applicable to IEEE 802.11ax, 20 MHz wide channels
|
|
* - `HE40` - applicable to IEEE 802.11ax, 40 MHz wide channels
|
|
* - `HE80` - applicable to IEEE 802.11ax, 80 MHz wide channels
|
|
* - `HE160` - applicable to IEEE 802.11ax, 160 MHz wide channels
|
|
*/
|
|
getHTModes: function() {
|
|
var htmodes = this.ubus('dev', 'iwinfo', 'htmodes');
|
|
return (Array.isArray(htmodes) && htmodes.length) ? htmodes : null;
|
|
},
|
|
|
|
/**
|
|
* Get a string describing the wireless radio hardware.
|
|
*
|
|
* @returns {string}
|
|
* Returns the description string.
|
|
*/
|
|
getI18n: function() {
|
|
var hw = this.ubus('dev', 'iwinfo', 'hardware'),
|
|
type = L.isObject(hw) ? hw.name : null;
|
|
|
|
if (this.ubus('dev', 'iwinfo', 'type') == 'wl')
|
|
type = 'Broadcom';
|
|
|
|
return '%s 802.11%s Wireless Controller (%s)'.format(
|
|
type || 'Generic',
|
|
this.getHWModes().sort(L.naturalCompare).join(''),
|
|
this.getName());
|
|
},
|
|
|
|
/**
|
|
* A wireless scan result object describes a neighbouring wireless
|
|
* network found in the vincinity.
|
|
*
|
|
* @typedef {Object<string, number|string|LuCI.network.WifiEncryption>} WifiScanResult
|
|
* @memberof LuCI.network
|
|
*
|
|
* @property {string} ssid
|
|
* The SSID / Mesh ID of the network.
|
|
*
|
|
* @property {string} bssid
|
|
* The BSSID if the network.
|
|
*
|
|
* @property {string} mode
|
|
* The operation mode of the network (`Master`, `Ad-Hoc`, `Mesh Point`).
|
|
*
|
|
* @property {number} channel
|
|
* The wireless channel of the network.
|
|
*
|
|
* @property {number} signal
|
|
* The received signal strength of the network in dBm.
|
|
*
|
|
* @property {number} quality
|
|
* The numeric quality level of the signal, can be used in conjunction
|
|
* with `quality_max` to calculate a quality percentage.
|
|
*
|
|
* @property {number} quality_max
|
|
* The maximum possible quality level of the signal, can be used in
|
|
* conjunction with `quality` to calculate a quality percentage.
|
|
*
|
|
* @property {LuCI.network.WifiEncryption} encryption
|
|
* The encryption used by the wireless network.
|
|
*/
|
|
|
|
/**
|
|
* Trigger a wireless scan on this radio device and obtain a list of
|
|
* nearby networks.
|
|
*
|
|
* @returns {Promise<Array<LuCI.network.WifiScanResult>>}
|
|
* Returns a promise resolving to an array of scan result objects
|
|
* describing the networks found in the vincinity.
|
|
*/
|
|
getScanList: function() {
|
|
return callIwinfoScan(this.sid);
|
|
},
|
|
|
|
/**
|
|
* Check whether the wireless radio is marked as up in the `ubus`
|
|
* runtime state.
|
|
*
|
|
* @returns {boolean}
|
|
* Returns `true` when the radio device is up, else `false`.
|
|
*/
|
|
isUp: function() {
|
|
if (L.isObject(_state.radios[this.sid]))
|
|
return (_state.radios[this.sid].up == true);
|
|
|
|
return false;
|
|
},
|
|
|
|
/**
|
|
* Get the wifi network of the given name belonging to this radio device
|
|
*
|
|
* @param {string} network
|
|
* The name of the wireless network to lookup. This may be either an uci
|
|
* configuration section ID, a network ID in the form `radio#.network#`
|
|
* or a Linux network device name like `wlan0` which is resolved to the
|
|
* corresponding configuration section through `ubus` runtime information.
|
|
*
|
|
* @returns {Promise<LuCI.network.WifiNetwork>}
|
|
* Returns a promise resolving to a `Network.WifiNetwork` instance
|
|
* representing the wireless network and rejecting with `null` if
|
|
* the given network could not be found or is not associated with
|
|
* this radio device.
|
|
*/
|
|
getWifiNetwork: function(network) {
|
|
return Network.prototype.getWifiNetwork(network).then(L.bind(function(networkInstance) {
|
|
var uciWifiIface = (networkInstance.sid ? uci.get('wireless', networkInstance.sid) : null);
|
|
|
|
if (uciWifiIface == null || uciWifiIface['.type'] != 'wifi-iface' || uciWifiIface.device != this.sid)
|
|
return Promise.reject();
|
|
|
|
return networkInstance;
|
|
}, this));
|
|
},
|
|
|
|
/**
|
|
* Get all wireless networks associated with this wireless radio device.
|
|
*
|
|
* @returns {Promise<Array<LuCI.network.WifiNetwork>>}
|
|
* Returns a promise resolving to an array of `Network.WifiNetwork`
|
|
* instances respresenting the wireless networks associated with this
|
|
* radio device.
|
|
*/
|
|
getWifiNetworks: function() {
|
|
return Network.prototype.getWifiNetworks().then(L.bind(function(networks) {
|
|
var rv = [];
|
|
|
|
for (var i = 0; i < networks.length; i++)
|
|
if (networks[i].getWifiDeviceName() == this.getName())
|
|
rv.push(networks[i]);
|
|
|
|
return rv;
|
|
}, this));
|
|
},
|
|
|
|
/**
|
|
* Adds a new wireless network associated with this radio device to the
|
|
* configuration and sets its options to the provided values.
|
|
*
|
|
* @param {Object<string, string|string[]>} [options]
|
|
* The options to set for the newly added wireless network.
|
|
*
|
|
* @returns {Promise<null|LuCI.network.WifiNetwork>}
|
|
* Returns a promise resolving to a `WifiNetwork` instance describing
|
|
* the newly added wireless network or `null` if the given options
|
|
* were invalid.
|
|
*/
|
|
addWifiNetwork: function(options) {
|
|
if (!L.isObject(options))
|
|
options = {};
|
|
|
|
options.device = this.sid;
|
|
|
|
return Network.prototype.addWifiNetwork(options);
|
|
},
|
|
|
|
/**
|
|
* Deletes the wireless network with the given name associated with this
|
|
* radio device.
|
|
*
|
|
* @param {string} network
|
|
* The name of the wireless network to lookup. This may be either an uci
|
|
* configuration section ID, a network ID in the form `radio#.network#`
|
|
* or a Linux network device name like `wlan0` which is resolved to the
|
|
* corresponding configuration section through `ubus` runtime information.
|
|
*
|
|
* @returns {Promise<boolean>}
|
|
* Returns a promise resolving to `true` when the wireless network was
|
|
* successfully deleted from the configuration or `false` when the given
|
|
* network could not be found or if the found network was not associated
|
|
* with this wireless radio device.
|
|
*/
|
|
deleteWifiNetwork: function(network) {
|
|
var sid = null;
|
|
|
|
if (network instanceof WifiNetwork) {
|
|
sid = network.sid;
|
|
}
|
|
else {
|
|
var uciWifiIface = uci.get('wireless', network);
|
|
|
|
if (uciWifiIface == null || uciWifiIface['.type'] != 'wifi-iface')
|
|
sid = getWifiSidByIfname(network);
|
|
}
|
|
|
|
if (sid == null || uci.get('wireless', sid, 'device') != this.sid)
|
|
return Promise.resolve(false);
|
|
|
|
uci.delete('wireless', network);
|
|
|
|
return Promise.resolve(true);
|
|
}
|
|
});
|
|
|
|
/**
|
|
* @class
|
|
* @memberof LuCI.network
|
|
* @hideconstructor
|
|
* @classdesc
|
|
*
|
|
* A `Network.WifiNetwork` instance represents a wireless network (vif)
|
|
* configured on top of a radio device and provides functions for querying
|
|
* the runtime state of the network. Most radio devices support multiple
|
|
* such networks in parallel.
|
|
*/
|
|
WifiNetwork = baseclass.extend(/** @lends LuCI.network.WifiNetwork.prototype */ {
|
|
__init__: function(sid, radioname, radiostate, netid, netstate, hostapd) {
|
|
this.sid = sid;
|
|
this.netid = netid;
|
|
this._ubusdata = {
|
|
hostapd: hostapd,
|
|
radio: radioname,
|
|
dev: radiostate,
|
|
net: netstate
|
|
};
|
|
},
|
|
|
|
ubus: function(/* ... */) {
|
|
var v = this._ubusdata;
|
|
|
|
for (var i = 0; i < arguments.length; i++)
|
|
if (L.isObject(v))
|
|
v = v[arguments[i]];
|
|
else
|
|
return null;
|
|
|
|
return v;
|
|
},
|
|
|
|
/**
|
|
* Read the given UCI option value of this wireless network.
|
|
*
|
|
* @param {string} opt
|
|
* The UCI option name to read.
|
|
*
|
|
* @returns {null|string|string[]}
|
|
* Returns the UCI option value or `null` if the requested option is
|
|
* not found.
|
|
*/
|
|
get: function(opt) {
|
|
return uci.get('wireless', this.sid, opt);
|
|
},
|
|
|
|
/**
|
|
* Set the given UCI option of this network to the given value.
|
|
*
|
|
* @param {string} opt
|
|
* The name of the UCI option to set.
|
|
*
|
|
* @param {null|string|string[]} val
|
|
* The value to set or `null` to remove the given option from the
|
|
* configuration.
|
|
*/
|
|
set: function(opt, value) {
|
|
return uci.set('wireless', this.sid, opt, value);
|
|
},
|
|
|
|
/**
|
|
* Checks whether this wireless network is disabled.
|
|
*
|
|
* @returns {boolean}
|
|
* Returns `true` when the wireless radio is marked as disabled in `ubus`
|
|
* runtime state or when the `disabled` option is set in the corresponding
|
|
* UCI configuration.
|
|
*/
|
|
isDisabled: function() {
|
|
return this.ubus('dev', 'disabled') || this.get('disabled') == '1';
|
|
},
|
|
|
|
/**
|
|
* Get the configured operation mode of the wireless network.
|
|
*
|
|
* @returns {string}
|
|
* Returns the configured operation mode. Possible values are:
|
|
* - `ap` - Master (Access Point) mode
|
|
* - `sta` - Station (client) mode
|
|
* - `adhoc` - Ad-Hoc (IBSS) mode
|
|
* - `mesh` - Mesh (IEEE 802.11s) mode
|
|
* - `monitor` - Monitor mode
|
|
*/
|
|
getMode: function() {
|
|
return this.ubus('net', 'config', 'mode') || this.get('mode') || 'ap';
|
|
},
|
|
|
|
/**
|
|
* Get the configured SSID of the wireless network.
|
|
*
|
|
* @returns {null|string}
|
|
* Returns the configured SSID value or `null` when this network is
|
|
* in mesh mode.
|
|
*/
|
|
getSSID: function() {
|
|
if (this.getMode() == 'mesh')
|
|
return null;
|
|
|
|
return this.ubus('net', 'config', 'ssid') || this.get('ssid');
|
|
},
|
|
|
|
/**
|
|
* Get the configured Mesh ID of the wireless network.
|
|
*
|
|
* @returns {null|string}
|
|
* Returns the configured mesh ID value or `null` when this network
|
|
* is not in mesh mode.
|
|
*/
|
|
getMeshID: function() {
|
|
if (this.getMode() != 'mesh')
|
|
return null;
|
|
|
|
return this.ubus('net', 'config', 'mesh_id') || this.get('mesh_id');
|
|
},
|
|
|
|
/**
|
|
* Get the configured BSSID of the wireless network.
|
|
*
|
|
* @returns {null|string}
|
|
* Returns the BSSID value or `null` if none has been specified.
|
|
*/
|
|
getBSSID: function() {
|
|
return this.ubus('net', 'config', 'bssid') || this.get('bssid');
|
|
},
|
|
|
|
/**
|
|
* Get the names of the logical interfaces this wireless network is
|
|
* attached to.
|
|
*
|
|
* @returns {string[]}
|
|
* Returns an array of logical interface names.
|
|
*/
|
|
getNetworkNames: function() {
|
|
return L.toArray(this.ubus('net', 'config', 'network') || this.get('network'));
|
|
},
|
|
|
|
/**
|
|
* Get the internal network ID of this wireless network.
|
|
*
|
|
* The network ID is a LuCI specific identifer in the form
|
|
* `radio#.network#` to identify wireless networks by their corresponding
|
|
* radio and network index numbers.
|
|
*
|
|
* @returns {string}
|
|
* Returns the LuCI specific network ID.
|
|
*/
|
|
getID: function() {
|
|
return this.netid;
|
|
},
|
|
|
|
/**
|
|
* Get the configuration ID of this wireless network.
|
|
*
|
|
* @returns {string}
|
|
* Returns the corresponding UCI section ID of the network.
|
|
*/
|
|
getName: function() {
|
|
return this.sid;
|
|
},
|
|
|
|
/**
|
|
* Get the Linux network device name.
|
|
*
|
|
* @returns {null|string}
|
|
* Returns the current Linux network device name as resolved from
|
|
* `ubus` runtime information or `null` if this network has no
|
|
* associated network device, e.g. when not configured or up.
|
|
*/
|
|
getIfname: function() {
|
|
var ifname = this.ubus('net', 'ifname') || this.ubus('net', 'iwinfo', 'ifname');
|
|
|
|
if (ifname == null || ifname.match(/^(wifi|radio)\d/))
|
|
ifname = this.netid;
|
|
|
|
return ifname;
|
|
},
|
|
|
|
/**
|
|
* Get the Linux VLAN network device names.
|
|
*
|
|
* @returns {string[]}
|
|
* Returns the current Linux VLAN network device name as resolved
|
|
* from `ubus` runtime information or empty array if this network
|
|
* has no associated VLAN network devices.
|
|
*/
|
|
getVlanIfnames: function() {
|
|
var vlans = L.toArray(this.ubus('net', 'vlans')),
|
|
ifnames = [];
|
|
|
|
for (var i = 0; i < vlans.length; i++)
|
|
ifnames.push(vlans[i]['ifname']);
|
|
|
|
return ifnames;
|
|
},
|
|
|
|
/**
|
|
* Get the name of the corresponding wifi radio device.
|
|
*
|
|
* @returns {null|string}
|
|
* Returns the name of the radio device this network is configured on
|
|
* or `null` if it cannot be determined.
|
|
*/
|
|
getWifiDeviceName: function() {
|
|
return this.ubus('radio') || this.get('device');
|
|
},
|
|
|
|
/**
|
|
* Get the corresponding wifi radio device.
|
|
*
|
|
* @returns {null|LuCI.network.WifiDevice}
|
|
* Returns a `Network.WifiDevice` instance representing the corresponding
|
|
* wifi radio device or `null` if the related radio device could not be
|
|
* found.
|
|
*/
|
|
getWifiDevice: function() {
|
|
var radioname = this.getWifiDeviceName();
|
|
|
|
if (radioname == null)
|
|
return Promise.reject();
|
|
|
|
return Network.prototype.getWifiDevice(radioname);
|
|
},
|
|
|
|
/**
|
|
* Check whether the radio network is up.
|
|
*
|
|
* This function actually queries the up state of the related radio
|
|
* device and assumes this network to be up as well when the parent
|
|
* radio is up. This is due to the fact that OpenWrt does not control
|
|
* virtual interfaces individually but within one common hostapd
|
|
* instance.
|
|
*
|
|
* @returns {boolean}
|
|
* Returns `true` when the network is up, else `false`.
|
|
*/
|
|
isUp: function() {
|
|
var device = this.getDevice();
|
|
|
|
if (device == null)
|
|
return false;
|
|
|
|
return device.isUp();
|
|
},
|
|
|
|
/**
|
|
* Query the current operation mode from runtime information.
|
|
*
|
|
* @returns {string}
|
|
* Returns the human readable mode name as reported by `ubus` runtime
|
|
* state. Possible returned values are:
|
|
* - `Master`
|
|
* - `Ad-Hoc`
|
|
* - `Client`
|
|
* - `Monitor`
|
|
* - `Master (VLAN)`
|
|
* - `WDS`
|
|
* - `Mesh Point`
|
|
* - `P2P Client`
|
|
* - `P2P Go`
|
|
* - `Unknown`
|
|
*/
|
|
getActiveMode: function() {
|
|
var mode = this.ubus('net', 'iwinfo', 'mode') || this.ubus('net', 'config', 'mode') || this.get('mode') || 'ap';
|
|
|
|
switch (mode) {
|
|
case 'ap': return 'Master';
|
|
case 'sta': return 'Client';
|
|
case 'adhoc': return 'Ad-Hoc';
|
|
case 'mesh': return 'Mesh';
|
|
case 'monitor': return 'Monitor';
|
|
default: return mode;
|
|
}
|
|
},
|
|
|
|
/**
|
|
* Query the current operation mode from runtime information as
|
|
* translated string.
|
|
*
|
|
* @returns {string}
|
|
* Returns the translated, human readable mode name as reported by
|
|
*`ubus` runtime state.
|
|
*/
|
|
getActiveModeI18n: function() {
|
|
var mode = this.getActiveMode();
|
|
|
|
switch (mode) {
|
|
case 'Master': return _('Master');
|
|
case 'Client': return _('Client');
|
|
case 'Ad-Hoc': return _('Ad-Hoc');
|
|
case 'Mash': return _('Mesh');
|
|
case 'Monitor': return _('Monitor');
|
|
default: return mode;
|
|
}
|
|
},
|
|
|
|
/**
|
|
* Query the current SSID from runtime information.
|
|
*
|
|
* @returns {string}
|
|
* Returns the current SSID or Mesh ID as reported by `ubus` runtime
|
|
* information.
|
|
*/
|
|
getActiveSSID: function() {
|
|
return this.ubus('net', 'iwinfo', 'ssid') || this.ubus('net', 'config', 'ssid') || this.get('ssid');
|
|
},
|
|
|
|
/**
|
|
* Query the current BSSID from runtime information.
|
|
*
|
|
* @returns {string}
|
|
* Returns the current BSSID or Mesh ID as reported by `ubus` runtime
|
|
* information.
|
|
*/
|
|
getActiveBSSID: function() {
|
|
return this.ubus('net', 'iwinfo', 'bssid') || this.ubus('net', 'config', 'bssid') || this.get('bssid');
|
|
},
|
|
|
|
/**
|
|
* Query the current encryption settings from runtime information.
|
|
*
|
|
* @returns {string}
|
|
* Returns a string describing the current encryption or `-` if the the
|
|
* encryption state could not be found in `ubus` runtime information.
|
|
*/
|
|
getActiveEncryption: function() {
|
|
return formatWifiEncryption(this.ubus('net', 'iwinfo', 'encryption')) || '-';
|
|
},
|
|
|
|
/**
|
|
* A wireless peer entry describes the properties of a remote wireless
|
|
* peer associated with a local network.
|
|
*
|
|
* @typedef {Object<string, boolean|number|string|LuCI.network.WifiRateEntry>} WifiPeerEntry
|
|
* @memberof LuCI.network
|
|
*
|
|
* @property {string} mac
|
|
* The MAC address (BSSID).
|
|
*
|
|
* @property {number} signal
|
|
* The received signal strength.
|
|
*
|
|
* @property {number} [signal_avg]
|
|
* The average signal strength if supported by the driver.
|
|
*
|
|
* @property {number} [noise]
|
|
* The current noise floor of the radio. May be `0` or absent if not
|
|
* supported by the driver.
|
|
*
|
|
* @property {number} inactive
|
|
* The amount of milliseconds the peer has been inactive, e.g. due
|
|
* to powersave.
|
|
*
|
|
* @property {number} connected_time
|
|
* The amount of milliseconds the peer is associated to this network.
|
|
*
|
|
* @property {number} [thr]
|
|
* The estimated throughput of the peer, May be `0` or absent if not
|
|
* supported by the driver.
|
|
*
|
|
* @property {boolean} authorized
|
|
* Specifies whether the peer is authorized to associate to this network.
|
|
*
|
|
* @property {boolean} authenticated
|
|
* Specifies whether the peer completed authentication to this network.
|
|
*
|
|
* @property {string} preamble
|
|
* The preamble mode used by the peer. May be `long` or `short`.
|
|
*
|
|
* @property {boolean} wme
|
|
* Specifies whether the peer supports WME/WMM capabilities.
|
|
*
|
|
* @property {boolean} mfp
|
|
* Specifies whether management frame protection is active.
|
|
*
|
|
* @property {boolean} tdls
|
|
* Specifies whether TDLS is active.
|
|
*
|
|
* @property {number} [mesh llid]
|
|
* The mesh LLID, may be `0` or absent if not applicable or supported
|
|
* by the driver.
|
|
*
|
|
* @property {number} [mesh plid]
|
|
* The mesh PLID, may be `0` or absent if not applicable or supported
|
|
* by the driver.
|
|
*
|
|
* @property {string} [mesh plink]
|
|
* The mesh peer link state description, may be an empty string (`''`)
|
|
* or absent if not applicable or supported by the driver.
|
|
*
|
|
* The following states are known:
|
|
* - `LISTEN`
|
|
* - `OPN_SNT`
|
|
* - `OPN_RCVD`
|
|
* - `CNF_RCVD`
|
|
* - `ESTAB`
|
|
* - `HOLDING`
|
|
* - `BLOCKED`
|
|
* - `UNKNOWN`
|
|
*
|
|
* @property {number} [mesh local PS]
|
|
* The local powersafe mode for the peer link, may be an empty
|
|
* string (`''`) or absent if not applicable or supported by
|
|
* the driver.
|
|
*
|
|
* The following modes are known:
|
|
* - `ACTIVE` (no power save)
|
|
* - `LIGHT SLEEP`
|
|
* - `DEEP SLEEP`
|
|
* - `UNKNOWN`
|
|
*
|
|
* @property {number} [mesh peer PS]
|
|
* The remote powersafe mode for the peer link, may be an empty
|
|
* string (`''`) or absent if not applicable or supported by
|
|
* the driver.
|
|
*
|
|
* The following modes are known:
|
|
* - `ACTIVE` (no power save)
|
|
* - `LIGHT SLEEP`
|
|
* - `DEEP SLEEP`
|
|
* - `UNKNOWN`
|
|
*
|
|
* @property {number} [mesh non-peer PS]
|
|
* The powersafe mode for all non-peer neigbours, may be an empty
|
|
* string (`''`) or absent if not applicable or supported by the driver.
|
|
*
|
|
* The following modes are known:
|
|
* - `ACTIVE` (no power save)
|
|
* - `LIGHT SLEEP`
|
|
* - `DEEP SLEEP`
|
|
* - `UNKNOWN`
|
|
*
|
|
* @property {LuCI.network.WifiRateEntry} rx
|
|
* Describes the receiving wireless rate from the peer.
|
|
*
|
|
* @property {LuCI.network.WifiRateEntry} tx
|
|
* Describes the transmitting wireless rate to the peer.
|
|
*/
|
|
|
|
/**
|
|
* A wireless rate entry describes the properties of a wireless
|
|
* transmission rate to or from a peer.
|
|
*
|
|
* @typedef {Object<string, boolean|number>} WifiRateEntry
|
|
* @memberof LuCI.network
|
|
*
|
|
* @property {number} [drop_misc]
|
|
* The amount of received misc. packages that have been dropped, e.g.
|
|
* due to corruption or missing authentication. Only applicable to
|
|
* receiving rates.
|
|
*
|
|
* @property {number} packets
|
|
* The amount of packets that have been received or sent.
|
|
*
|
|
* @property {number} bytes
|
|
* The amount of bytes that have been received or sent.
|
|
*
|
|
* @property {number} [failed]
|
|
* The amount of failed tranmission attempts. Only applicable to
|
|
* transmit rates.
|
|
*
|
|
* @property {number} [retries]
|
|
* The amount of retried transmissions. Only applicable to transmit
|
|
* rates.
|
|
*
|
|
* @property {boolean} is_ht
|
|
* Specifies whether this rate is an HT (IEEE 802.11n) rate.
|
|
*
|
|
* @property {boolean} is_vht
|
|
* Specifies whether this rate is an VHT (IEEE 802.11ac) rate.
|
|
*
|
|
* @property {number} mhz
|
|
* The channel width in MHz used for the transmission.
|
|
*
|
|
* @property {number} rate
|
|
* The bitrate in bit/s of the transmission.
|
|
*
|
|
* @property {number} [mcs]
|
|
* The MCS index of the used transmission rate. Only applicable to
|
|
* HT or VHT rates.
|
|
*
|
|
* @property {number} [40mhz]
|
|
* Specifies whether the tranmission rate used 40MHz wide channel.
|
|
* Only applicable to HT or VHT rates.
|
|
*
|
|
* Note: this option exists for backwards compatibility only and its
|
|
* use is discouraged. The `mhz` field should be used instead to
|
|
* determine the channel width.
|
|
*
|
|
* @property {boolean} [short_gi]
|
|
* Specifies whether a short guard interval is used for the transmission.
|
|
* Only applicable to HT or VHT rates.
|
|
*
|
|
* @property {number} [nss]
|
|
* Specifies the number of spatial streams used by the transmission.
|
|
* Only applicable to VHT rates.
|
|
*
|
|
* @property {boolean} [he]
|
|
* Specifies whether this rate is an HE (IEEE 802.11ax) rate.
|
|
*
|
|
* @property {number} [he_gi]
|
|
* Specifies whether the guard interval used for the transmission.
|
|
* Only applicable to HE rates.
|
|
*
|
|
* @property {number} [he_dcm]
|
|
* Specifies whether dual concurrent modulation is used for the transmission.
|
|
* Only applicable to HE rates.
|
|
*/
|
|
|
|
/**
|
|
* Fetch the list of associated peers.
|
|
*
|
|
* @returns {Promise<Array<LuCI.network.WifiPeerEntry>>}
|
|
* Returns a promise resolving to an array of wireless peers associated
|
|
* with this network.
|
|
*/
|
|
getAssocList: function() {
|
|
var tasks = [];
|
|
var ifnames = [ this.getIfname() ].concat(this.getVlanIfnames());
|
|
|
|
for (var i = 0; i < ifnames.length; i++)
|
|
tasks.push(callIwinfoAssoclist(ifnames[i]));
|
|
|
|
return Promise.all(tasks).then(function(values) {
|
|
return Array.prototype.concat.apply([], values);
|
|
});
|
|
},
|
|
|
|
/**
|
|
* Query the current operating frequency of the wireless network.
|
|
*
|
|
* @returns {null|string}
|
|
* Returns the current operating frequency of the network from `ubus`
|
|
* runtime information in GHz or `null` if the information is not
|
|
* available.
|
|
*/
|
|
getFrequency: function() {
|
|
var freq = this.ubus('net', 'iwinfo', 'frequency');
|
|
|
|
if (freq != null && freq > 0)
|
|
return '%.03f'.format(freq / 1000);
|
|
|
|
return null;
|
|
},
|
|
|
|
/**
|
|
* Query the current average bitrate of all peers associated to this
|
|
* wireless network.
|
|
*
|
|
* @returns {null|number}
|
|
* Returns the average bit rate among all peers associated to the network
|
|
* as reported by `ubus` runtime information or `null` if the information
|
|
* is not available.
|
|
*/
|
|
getBitRate: function() {
|
|
var rate = this.ubus('net', 'iwinfo', 'bitrate');
|
|
|
|
if (rate != null && rate > 0)
|
|
return (rate / 1000);
|
|
|
|
return null;
|
|
},
|
|
|
|
/**
|
|
* Query the current wireless channel.
|
|
*
|
|
* @returns {null|number}
|
|
* Returns the wireless channel as reported by `ubus` runtime information
|
|
* or `null` if it cannot be determined.
|
|
*/
|
|
getChannel: function() {
|
|
return this.ubus('net', 'iwinfo', 'channel') || this.ubus('dev', 'config', 'channel') || this.get('channel');
|
|
},
|
|
|
|
/**
|
|
* Query the current wireless signal.
|
|
*
|
|
* @returns {null|number}
|
|
* Returns the wireless signal in dBm as reported by `ubus` runtime
|
|
* information or `null` if it cannot be determined.
|
|
*/
|
|
getSignal: function() {
|
|
return this.ubus('net', 'iwinfo', 'signal') || 0;
|
|
},
|
|
|
|
/**
|
|
* Query the current radio noise floor.
|
|
*
|
|
* @returns {number}
|
|
* Returns the radio noise floor in dBm as reported by `ubus` runtime
|
|
* information or `0` if it cannot be determined.
|
|
*/
|
|
getNoise: function() {
|
|
return this.ubus('net', 'iwinfo', 'noise') || 0;
|
|
},
|
|
|
|
/**
|
|
* Query the current country code.
|
|
*
|
|
* @returns {string}
|
|
* Returns the wireless country code as reported by `ubus` runtime
|
|
* information or `00` if it cannot be determined.
|
|
*/
|
|
getCountryCode: function() {
|
|
return this.ubus('net', 'iwinfo', 'country') || this.ubus('dev', 'config', 'country') || '00';
|
|
},
|
|
|
|
/**
|
|
* Query the current radio TX power.
|
|
*
|
|
* @returns {null|number}
|
|
* Returns the wireless network transmit power in dBm as reported by
|
|
* `ubus` runtime information or `null` if it cannot be determined.
|
|
*/
|
|
getTXPower: function() {
|
|
return this.ubus('net', 'iwinfo', 'txpower');
|
|
},
|
|
|
|
/**
|
|
* Query the radio TX power offset.
|
|
*
|
|
* Some wireless radios have a fixed power offset, e.g. due to the
|
|
* use of external amplifiers.
|
|
*
|
|
* @returns {number}
|
|
* Returns the wireless network transmit power offset in dBm as reported
|
|
* by `ubus` runtime information or `0` if there is no offset, or if it
|
|
* cannot be determined.
|
|
*/
|
|
getTXPowerOffset: function() {
|
|
return this.ubus('net', 'iwinfo', 'txpower_offset') || 0;
|
|
},
|
|
|
|
/**
|
|
* Calculate the current signal.
|
|
*
|
|
* @deprecated
|
|
* @returns {number}
|
|
* Returns the calculated signal level, which is the difference between
|
|
* noise and signal (SNR), divided by 5.
|
|
*/
|
|
getSignalLevel: function(signal, noise) {
|
|
if (this.getActiveBSSID() == '00:00:00:00:00:00')
|
|
return -1;
|
|
|
|
signal = signal || this.getSignal();
|
|
noise = noise || this.getNoise();
|
|
|
|
if (signal < 0 && noise < 0) {
|
|
var snr = -1 * (noise - signal);
|
|
return Math.floor(snr / 5);
|
|
}
|
|
|
|
return 0;
|
|
},
|
|
|
|
/**
|
|
* Calculate the current signal quality percentage.
|
|
*
|
|
* @returns {number}
|
|
* Returns the calculated signal quality in percent. The value is
|
|
* calculated from the `quality` and `quality_max` indicators reported
|
|
* by `ubus` runtime state.
|
|
*/
|
|
getSignalPercent: function() {
|
|
var qc = this.ubus('net', 'iwinfo', 'quality') || 0,
|
|
qm = this.ubus('net', 'iwinfo', 'quality_max') || 0;
|
|
|
|
if (qc > 0 && qm > 0)
|
|
return Math.floor((100 / qm) * qc);
|
|
|
|
return 0;
|
|
},
|
|
|
|
/**
|
|
* Get a short description string for this wireless network.
|
|
*
|
|
* @returns {string}
|
|
* Returns a string describing this network, consisting of the
|
|
* active operation mode, followed by either the SSID, BSSID or
|
|
* internal network ID, depending on which information is available.
|
|
*/
|
|
getShortName: function() {
|
|
return '%s "%s"'.format(
|
|
this.getActiveModeI18n(),
|
|
this.getActiveSSID() || this.getActiveBSSID() || this.getID());
|
|
},
|
|
|
|
/**
|
|
* Get a description string for this wireless network.
|
|
*
|
|
* @returns {string}
|
|
* Returns a string describing this network, consisting of the
|
|
* term `Wireless Network`, followed by the active operation mode,
|
|
* the SSID, BSSID or internal network ID and the Linux network device
|
|
* name, depending on which information is available.
|
|
*/
|
|
getI18n: function() {
|
|
return '%s: %s "%s" (%s)'.format(
|
|
_('Wireless Network'),
|
|
this.getActiveModeI18n(),
|
|
this.getActiveSSID() || this.getActiveBSSID() || this.getID(),
|
|
this.getIfname());
|
|
},
|
|
|
|
/**
|
|
* Get the primary logical interface this wireless network is attached to.
|
|
*
|
|
* @returns {null|LuCI.network.Protocol}
|
|
* Returns a `Network.Protocol` instance representing the logical
|
|
* interface or `null` if this network is not attached to any logical
|
|
* interface.
|
|
*/
|
|
getNetwork: function() {
|
|
return this.getNetworks()[0];
|
|
},
|
|
|
|
/**
|
|
* Get the logical interfaces this wireless network is attached to.
|
|
*
|
|
* @returns {Array<LuCI.network.Protocol>}
|
|
* Returns an array of `Network.Protocol` instances representing the
|
|
* logical interfaces this wireless network is attached to.
|
|
*/
|
|
getNetworks: function() {
|
|
var networkNames = this.getNetworkNames(),
|
|
networks = [];
|
|
|
|
for (var i = 0; i < networkNames.length; i++) {
|
|
var uciInterface = uci.get('network', networkNames[i]);
|
|
|
|
if (uciInterface == null || uciInterface['.type'] != 'interface')
|
|
continue;
|
|
|
|
networks.push(Network.prototype.instantiateNetwork(networkNames[i]));
|
|
}
|
|
|
|
networks.sort(networkSort);
|
|
|
|
return networks;
|
|
},
|
|
|
|
/**
|
|
* Get the associated Linux network device.
|
|
*
|
|
* @returns {LuCI.network.Device}
|
|
* Returns a `Network.Device` instance representing the Linux network
|
|
* device associted with this wireless network.
|
|
*/
|
|
getDevice: function() {
|
|
return Network.prototype.instantiateDevice(this.getIfname());
|
|
},
|
|
|
|
/**
|
|
* Check whether this wifi network supports deauthenticating clients.
|
|
*
|
|
* @returns {boolean}
|
|
* Returns `true` when this wifi network instance supports forcibly
|
|
* deauthenticating clients, otherwise `false`.
|
|
*/
|
|
isClientDisconnectSupported: function() {
|
|
return L.isObject(this.ubus('hostapd', 'del_client'));
|
|
},
|
|
|
|
/**
|
|
* Forcibly disconnect the given client from the wireless network.
|
|
*
|
|
* @param {string} mac
|
|
* The MAC address of the client to disconnect.
|
|
*
|
|
* @param {boolean} [deauth=false]
|
|
* Specifies whether to deauthenticate (`true`) or disassociate (`false`)
|
|
* the client.
|
|
*
|
|
* @param {number} [reason=1]
|
|
* Specifies the IEEE 802.11 reason code to disassoc/deauth the client
|
|
* with. Default is `1` which corresponds to `Unspecified reason`.
|
|
*
|
|
* @param {number} [ban_time=0]
|
|
* Specifies the amount of milliseconds to ban the client from
|
|
* reconnecting. By default, no ban time is set which allows the client
|
|
* to reassociate / reauthenticate immediately.
|
|
*
|
|
* @returns {Promise<number>}
|
|
* Returns a promise resolving to the underlying ubus call result code
|
|
* which is typically `0`, even for not existing MAC addresses.
|
|
* The promise might reject with an error in case invalid arguments
|
|
* are passed.
|
|
*/
|
|
disconnectClient: function(mac, deauth, reason, ban_time) {
|
|
if (reason == null || reason == 0)
|
|
reason = 1;
|
|
|
|
if (ban_time == 0)
|
|
ban_time = null;
|
|
|
|
return rpc.declare({
|
|
object: 'hostapd.%s'.format(this.getIfname()),
|
|
method: 'del_client',
|
|
params: [ 'addr', 'deauth', 'reason', 'ban_time' ]
|
|
})(mac, deauth, reason, ban_time);
|
|
}
|
|
});
|
|
|
|
return Network;
|
|
</code></pre>
|
|
</article>
|
|
</section>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<footer>
|
|
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Wed Nov 09 2022 20:11:12 GMT+0000 (Coordinated Universal Time)
|
|
</footer>
|
|
</div>
|
|
</div>
|
|
<script>prettyPrint();</script>
|
|
<script src="scripts/jaguar.js"></script>
|
|
</body>
|
|
</html>
|