filter-utils: Allow smart filters to have as target filters that are not smart

Filters that are not smart should be treated as regular client/device nodes,
therfore, smart filters should be able to use them as a target.
This commit is contained in:
Julian Bouzas 2024-05-17 10:30:56 -04:00
parent 78dd8b1d8f
commit fa67121665

View file

@ -135,8 +135,9 @@ local function getFilterSmartTarget (metadata, node, om)
goto skip_target
end
-- Target nodes are only meant to be device nodes, without link-group
if n_target.properties ["node.link-group"] ~= nil then
-- Target nodes cannot be smart filters
if n_target.properties ["node.link-group"] ~= nil and
getFilterSmart (metadata, n_target) then
goto skip_target
end