luci-base: add is_auto function
Add missing is_auto getter function. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
parent
3ffdf4160f
commit
bea3879009
1 changed files with 10 additions and 0 deletions
|
@ -1159,6 +1159,16 @@ function protocol.is_dynamic(self)
|
|||
return (self:_ubus("dynamic") == true)
|
||||
end
|
||||
|
||||
function protocol.is_auto(self)
|
||||
local auto = self:_get("auto")
|
||||
|
||||
if auto == "0" then
|
||||
return false
|
||||
else
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
||||
function protocol.is_alias(self)
|
||||
local ifn, parent = nil, nil
|
||||
|
||||
|
|
Loading…
Reference in a new issue