Add random number

Brandon Zhi Brandon at huize.asia
Sun Feb 11 11:04:18 CET 2024


I think the only usage for random number is for loading balance.

*Brandon Zhi*
HUIZE LTD
www.huize.asia  <https://huize.asia/>| www.ixp.su | Twitter

This e-mail and any attachments or any reproduction of this e-mail in
whatever manner are confidential and for the use of the addressee(s) only.
HUIZE LTD can’t take any liability and guarantee of the text of the email
message and virus.


Maria Matejka via Bird-users <bird-users at network.cz>于2024年2月11日 周日06:03写道:

> 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/20240211/05d8a30a/attachment.htm>


More information about the Bird-users mailing list