summaryrefslogtreecommitdiffhomepage
path: root/libs
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-03-13 17:22:52 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-03-13 17:22:52 +0000
commit8e5590037def3b905cc5b3fcb25c940ea8579b6b (patch)
tree7ecafe18c5280d44d206e6de7b7cc19ed96e801b /libs
parentbc6e9ec07ee32cb098c04f5014824789b958701e (diff)
libs/core: add luci.model.network.wifinet.id()
Diffstat (limited to 'libs')
-rw-r--r--libs/core/luasrc/model/network.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/core/luasrc/model/network.lua b/libs/core/luasrc/model/network.lua
index 128786df9..56597a285 100644
--- a/libs/core/luasrc/model/network.lua
+++ b/libs/core/luasrc/model/network.lua
@@ -1121,6 +1121,10 @@ function wifinet.network(self)
return uci_s:get("wifinet", self.sid, "network")
end
+function wifinet.id(self)
+ return self.netid
+end
+
function wifinet.name(self)
return self.sid
end