Increasing bgp_local_pref fails

Maria Matějka maria.matejka at nic.cz
Wed Nov 13 10:02:33 CET 2019


Hello!

This happens when bgp_med is initially undefined. Use something like

	if defined(bgp_med) then bgp_med = 100; else bgp_med = bgp_med + 100;

Maria

On 11/12/19 11:01 PM, Benedikt Neuffer wrote:
> Hello,
> 
> I am trying to increase the MED attribute in an export filter:
> bgp_med = bgp_med + 100;
> 
> This action fails with the following error messages:
> 2019-11-12 22:54:54.522 <ERR> filters, line 18: Argument 1 of
> instruction FI_ADD must be of type T_INT, got 0x00
> 
> I have tested bird 2.0.4 and 2.0.7. The issue occurs in both versions. I
> am using gentoo with gcc 9.2.0.
> Am I missing something or is this a bug?
> 
> Regards,
> Bene
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3028 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20191113/e97dcbeb/attachment.p7s>


More information about the Bird-users mailing list