From 12b0b31bb312df3dc1982e8a0659523667b68102 Mon Sep 17 00:00:00 2001 From: pmelange Date: Mon, 5 Nov 2018 14:03:35 +0100 Subject: [PATCH] luci-base: network.lua add ipv6-prefix-assignment support to get_status_by_address Signed-off-by: pmelange --- modules/luci-base/luasrc/model/network.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/luci-base/luasrc/model/network.lua b/modules/luci-base/luasrc/model/network.lua index cce559aab..840940a9f 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 -- 2.25.1