Add random number

Maria Matejka maria.matejka at nic.cz
Sat Feb 10 22:55:32 CET 2024


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20240210/f929872f/attachment.htm>


More information about the Bird-users mailing list