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:
parent
19b640b53b
commit
4fc3ab4737
1 changed files with 8 additions and 0 deletions
|
@ -855,6 +855,14 @@ function get_status_by_address(self, addr)
|
||||||
end
|
end
|
||||||
end
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue