summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base
diff options
context:
space:
mode:
Diffstat (limited to 'modules/luci-base')
-rw-r--r--modules/luci-base/luasrc/model/network.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/luci-base/luasrc/model/network.lua b/modules/luci-base/luasrc/model/network.lua
index 49e1657aa..dec25a5d0 100644
--- a/modules/luci-base/luasrc/model/network.lua
+++ b/modules/luci-base/luasrc/model/network.lua
@@ -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