diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2016-01-20 16:55:15 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2016-01-20 16:56:25 +0100 |
commit | c23885f6a776db74aa728b1efcd1bf644dde626d (patch) | |
tree | 6df0b0a71a3bc9e694ef382c1d7b92b7b161b892 /documentation | |
parent | e0988b089be0e33d64c62339cfdd90755b6dbd79 (diff) |
luci-base: add luci.sys.net.host_hints() and regenerate documentation
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'documentation')
-rw-r--r-- | documentation/api/modules/luci.model.uci.html | 8 | ||||
-rw-r--r-- | documentation/api/modules/luci.sys.net.html | 32 |
2 files changed, 37 insertions, 3 deletions
diff --git a/documentation/api/modules/luci.model.uci.html b/documentation/api/modules/luci.model.uci.html index cf75aebccb..c84d1eb0eb 100644 --- a/documentation/api/modules/luci.model.uci.html +++ b/documentation/api/modules/luci.model.uci.html @@ -903,7 +903,8 @@ Get an option or list and return values as table. <h3>Return value:</h3> -UCI value +table. If the option was not found, you will simply get + an empty table. @@ -1200,7 +1201,8 @@ Boolean whether operation succeeded <dd> -Set given values as list. +Set given values as list. Setting a list option to an empty list +has the same effect as deleting the option. @@ -1220,7 +1222,7 @@ Set given values as list. </li> <li> - value: UCI value + value: value or table. Raw values will become a single item table. </li> </ul> diff --git a/documentation/api/modules/luci.sys.net.html b/documentation/api/modules/luci.sys.net.html index 4a049e2307..09cef175f9 100644 --- a/documentation/api/modules/luci.sys.net.html +++ b/documentation/api/modules/luci.sys.net.html @@ -242,6 +242,13 @@ Determine the names of available network interfaces.</td> </tr> <tr> + <td class="name" nowrap><a href="#net.host_hints">host_hints</a> ()</td> + <td class="summary"> + +Returns a two-dimensional table of host hints.</td> + </tr> + + <tr> <td class="name" nowrap><a href="#net.ipv4_hints">ipv4_hints</a> ()</td> <td class="summary"> @@ -393,6 +400,31 @@ Table containing all current interface names +<dt><a name="net.host_hints"></a><strong>host_hints</strong> ()</dt> +<dd> + + +Returns a two-dimensional table of host hints. + + + + + + + + +<h3>Return value:</h3> +Table of table containing known hosts from various sources, + indexed by mac address. Each subtable contains at least one + of the fields "name", "ipv4" or "ipv6". + + + +</dd> + + + + <dt><a name="net.ipv4_hints"></a><strong>ipv4_hints</strong> ()</dt> <dd> |