These are chat archives for Exa-Networks/exabgp

30th
May 2018
Sebastian Wiesinger
@sebastianw
May 30 2018 11:16
Hello all
I'm trying to find out how to announce multiple NLRI with exabgp 4 via API
this is giving me a hard time
I try something like this:
announce attributes as-path [ 1371 618 12445 5510 1592 52748 10002 28342 50599 19635 ] community [ no-export ] next-hop self nlri 52.124.146.0/24 52.124.156.0/24 52.124.161.0/24
and I get this error back:
11:17:53 | 19795 | reactor | async | add-remove | problem with function 11:17:53 | 19795 | reactor | async | add-remove | 'Iterator' object has no attribute 'afi'
For the life of me I can't figure out the right syntax for this
any help would be appreciated
Thomas Mangin
@thomas-mangin
May 30 2018 11:58
Took your exact command use used it with the qa example api-attributes and it generated a route for me of FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF:0061:02:000000464001010040022A020A0000055B0000026A0000309D00001586000006380000CE0C0000271200006EB60000C5A700004CB34003047F00000140050400000064C00804FFFFFF0118347C92
Sebastian Wiesinger
@sebastianw
May 30 2018 11:58
hmm
Thomas Mangin
@thomas-mangin
May 30 2018 11:58
what version are you running ?
Sebastian Wiesinger
@sebastianw
May 30 2018 11:58
let me check, I use the one from pip install ..
ExaBGP : 4.0.6-daa3d6ba Python : 3.5.3 (default, Jan 19 2017, 14:11:04) [GCC 6.3.0 20170118] Uname : Linux grml2 4.9.0-1-grml-amd64 #1 SMP Debian 4.9.29-1+grml.1 (2017-05-24) x86_64
Thomas Mangin
@thomas-mangin
May 30 2018 11:59
There was nothing since 4.0.6 in master to explain this difference
Sebastian Wiesinger
@sebastianw
May 30 2018 11:59
hm
Thomas Mangin
@thomas-mangin
May 30 2018 11:59
Could you please run exabgp with the -d option
and … a secret one - 10 second need the name
Sebastian Wiesinger
@sebastianw
May 30 2018 12:00
okay, have to go to a quick meeting, bee back in 10-20 mins
Thomas Mangin
@thomas-mangin
May 30 2018 12:01
env exabgp.debug.configuration=1 exabgp.debug.pdb=1 exabgp -d ...
NP
Sebastian Wiesinger
@sebastianw
May 30 2018 12:26
okay, so I ran it
12:26:17 | 20080 | reactor | async | add-remove | problem with function 12:26:17 | 20080 | reactor | async | add-remove | 'Iterator' object has no attribute 'afi' 12:26:17 | 20080 | configuration | . attributes | 'as-path' '[' '54596' ']' 'community' '[' 'no-export' ']' 'next-hop' 'self' 'nlri' '2.64.0.0/13' '2.72.0.0/15' '2.72.0.0/16'
Sebastian Wiesinger
@sebastianw
May 30 2018 12:48
that's all I get
Thomas Mangin
@thomas-mangin
May 30 2018 12:56
:-(
could you try to not use next-hop self but use the IP to see if the issue is there
Sebastian Wiesinger
@sebastianw
May 30 2018 12:58
I will but my test machines just died and I have to get them back first :) I'll report back when I can
Thomas Mangin
@thomas-mangin
May 30 2018 12:58
ok - no issue
otherwise as said - works for me :-(
Sebastian Wiesinger
@sebastianw
May 30 2018 13:00
yeah
maybe I'll just test it with the master branch
Sebastian Wiesinger
@sebastianw
May 30 2018 13:49
@thomas-mangin changing next-hop self to the ip address did the trick. works now
Thomas Mangin
@thomas-mangin
May 30 2018 16:20
ok - will look into that