linking-utils: fallback to role priority 0 if none is defined

See #682
This commit is contained in:
George Kiagiadakis 2024-06-27 17:10:04 +03:00
parent dc6694fb84
commit fe42d931da

View file

@ -27,7 +27,7 @@ function lutils.clear_flags (self, si_id)
end
function getprio (link)
return tonumber (link.properties ["policy.role-based.priority"])
return tonumber (link.properties ["policy.role-based.priority"]) or 0
end
function getplugged (link)