From: pmelange Date: Mon, 5 Nov 2018 13:03:35 +0000 (+0100) Subject: luci-base: network.lua add ipv6-prefix-assignment support to get_status_by_address X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=12b0b31bb312df3dc1982e8a0659523667b68102;p=project%2Fluci.git luci-base: network.lua add ipv6-prefix-assignment support to get_status_by_address Signed-off-by: pmelange --- diff --git a/modules/luci-base/luasrc/model/network.lua b/modules/luci-base/luasrc/model/network.lua index cce559aab1..840940a9fe 100644 --- a/modules/luci-base/luasrc/model/network.lua +++ b/modules/luci-base/luasrc/model/network.lua @@ -852,6 +852,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