Changeset 6367 for luci/trunk/libs/core/luasrc/model/network.lua
- Timestamp:
- 10/30/10 18:56:06 (3 years ago)
- Files:
-
- 1 modified
-
luci/trunk/libs/core/luasrc/model/network.lua (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
luci/trunk/libs/core/luasrc/model/network.lua
r6362 r6367 92 92 return s1 93 93 end 94 end95 96 function _strlist(x)97 if x == nil then98 x = ""99 elseif type(x) == "table" then100 x = table.concat(x, " ")101 end102 103 return x:gmatch("%S+")104 94 end 105 95 … … 620 610 else 621 611 local nfs = { } 622 for ifn in _strlist(self:get("ifname")) do612 for ifn in utl.imatch(self:get("ifname")) do 623 613 ifn = ifn:match("[^:]+") 624 614 nfs[ifn] = interface(ifn) … … 662 652 return ifname == ifn 663 653 else 664 for ifn in _strlist(self:get("ifname")) do654 for ifn in utl.imatch(self:get("ifname")) do 665 655 ifn = ifn:match("[^:]+") 666 656 if ifn == ifname then
