luci-base: network.lua add ipv6-prefix-assignment support to get_status_by_address

Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
This commit is contained in:
pmelange 2018-11-05 14:03:35 +01:00
parent 19b640b53b
commit 4fc3ab4737

View file

@ -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