diff options
author | pmelange <isprotejesvalkata@gmail.com> | 2018-11-05 14:03:35 +0100 |
---|---|---|
committer | pmelange <isprotejesvalkata@gmail.com> | 2018-11-07 18:41:58 +0100 |
commit | 4fc3ab47378df1ffdf766df2c514122a0217a2de (patch) | |
tree | a999e13d4f083a1eebe5e1fe40a2864f7f7e957b /modules/luci-base | |
parent | 19b640b53b0ba8585b91a5f5fa23503e0fca76c2 (diff) |
luci-base: network.lua add ipv6-prefix-assignment support to get_status_by_address
Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
Diffstat (limited to 'modules/luci-base')
-rw-r--r-- | modules/luci-base/luasrc/model/network.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/luci-base/luasrc/model/network.lua b/modules/luci-base/luasrc/model/network.lua index 7f7397032f..49e1657aae 100644 --- a/modules/luci-base/luasrc/model/network.lua +++ b/modules/luci-base/luasrc/model/network.lua @@ -855,6 +855,14 @@ function get_status_by_address(self, addr) end end end + if s and s['ipv6-prefix-assignment'] then + local a + for _, a in ipairs(s['ipv6-prefix-assignment']) do + if a and a['local-address'] and a['local-address'].address == addr then + return net, s + end + end + end end end end |