From c23885f6a776db74aa728b1efcd1bf644dde626d Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 20 Jan 2016 16:55:15 +0100 Subject: luci-base: add luci.sys.net.host_hints() and regenerate documentation Signed-off-by: Jo-Philipp Wich --- documentation/api/modules/luci.model.uci.html | 8 ++++--- documentation/api/modules/luci.sys.net.html | 32 +++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 3 deletions(-) (limited to 'documentation/api') diff --git a/documentation/api/modules/luci.model.uci.html b/documentation/api/modules/luci.model.uci.html index cf75aebcc..c84d1eb0e 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.

Return value:

-UCI value +table. If the option was not found, you will simply get + an empty table. @@ -1200,7 +1201,8 @@ Boolean whether operation succeeded
-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.
  • - value: UCI value + value: value or table. Raw values will become a single item table.
  • diff --git a/documentation/api/modules/luci.sys.net.html b/documentation/api/modules/luci.sys.net.html index 4a049e230..09cef175f 100644 --- a/documentation/api/modules/luci.sys.net.html +++ b/documentation/api/modules/luci.sys.net.html @@ -241,6 +241,13 @@ Return information about available network interfaces. Determine the names of available network interfaces. + + host_hints () + + +Returns a two-dimensional table of host hints. + + ipv4_hints () @@ -393,6 +400,31 @@ Table containing all current interface names +
    host_hints ()
    +
    + + +Returns a two-dimensional table of host hints. + + + + + + + + +

    Return value:

    +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". + + + +
    + + + +
    ipv4_hints ()
    -- cgit v1.2.3