Hello!

No, it's not possible and it makes the filters non-deterministic which would break a critical invariant in BIRD's internal algorithms.

If you better clarify what you are trying to achieve, we may find another way for you to do it, or at least convert it to a viable feature request.

Thank you for your understanding
Maria

On 2024-02-10 20:56, Max Tulyev wrote:
Hi All,

is it possible to add a random number to some variable in the filter?

For example, like this:

filter myfilter
{
        if net ~ 192.168.11.0/24 then preference = preference + random(10);

...

--
Maria Matejka (she/her) | BIRD Team Leader | CZ.NIC, z.s.p.o.

Reply via email to