libs/core: add luci.model.network.wifinet.id()
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 13 Mar 2011 17:22:52 +0000 (17:22 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 13 Mar 2011 17:22:52 +0000 (17:22 +0000)
libs/core/luasrc/model/network.lua

index 128786d..56597a2 100644 (file)
@@ -1121,6 +1121,10 @@ function wifinet.network(self)
        return uci_s:get("wifinet", self.sid, "network")
 end
 
        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
 function wifinet.name(self)
        return self.sid
 end