These are chat archives for Exa-Networks/exabgp

1st
Feb 2018
Thomas Mangin
@thomas-mangin
Feb 01 2018 13:01
not on 3.4 - 4.0 as a cli
Job Snijders
@job
Feb 01 2018 20:23
allo allo
Thomas Mangin
@thomas-mangin
Feb 01 2018 20:23
brb
Job Snijders
@job
Feb 01 2018 20:24
if i've written some hexadecimals in a qa/ci file, how do i make exabgp tell those bits to another bgp speaker
exabgp doesnt understand the bits, but i need to test the other speaker
Thomas Mangin
@thomas-mangin
Feb 01 2018 20:24
need more details to understand ..
Job Snijders
@job
Feb 01 2018 20:33

```vurt# cat qa/ci/conf-explicitwithdraw.msg

1:raw:FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF:002D:02:00000016800F13000180788000000000DADC000000826440002A
1:raw:FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF:0017:02:00000000
```

Thomas Mangin
@thomas-mangin
Feb 01 2018 20:33
ok - there is a program
./qa/sbin/bgp
Job Snijders
@job
Feb 01 2018 20:33
so i created this file, which contains a specific withdraw i want to send to another bgp speaker
how do i make it send this withdraw after the open dance etc has been done
Thomas Mangin
@thomas-mangin
Feb 01 2018 20:34
the best way to call it is via ./qa/bin/functional
you write an exabgp conf file
(make it empty as you do not want to use exabgp)
and have your test file with the same name
then run ./qa/bin/functional all
and you get the id of your test
then if you run ./qa/bin/functional server <id>
then it call the bgp server with your test file
Job Snijders
@job
Feb 01 2018 20:36
great
thanks
Thomas Mangin
@thomas-mangin
Feb 01 2018 20:36
it will bind to a port unique for the test
if you run ./qa/bin/functional client <id> it call the exabgp file with the same test name
otherwise you can run it by hand
in the ./qa/ci folder
you have two file
the .ci (which says which exabgp file to run)
and the .msg which says what BGP message we expect
Job Snijders
@job
Feb 01 2018 20:39
and how do i send?
can i send arbitrary stuff using this mechanism?
Thomas Mangin
@thomas-mangin
Feb 01 2018 20:39
from exabgp ?
Job Snijders
@job
Feb 01 2018 20:40
or from sbin/bgp or bin/functional
Thomas Mangin
@thomas-mangin
Feb 01 2018 20:40
to send arbitary stuff you can use exabgp generic attribute format which allows to just give the binary of what you want to send
Job Snijders
@job
Feb 01 2018 20:40
ah
maybe that is easier
thanks
i forgot you had that feature :)
Thomas Mangin
@thomas-mangin
Feb 01 2018 20:40
not sure I 100% answered your question ..
Job Snijders
@job
Feb 01 2018 20:41
i think you did
will let you know how it goes
Job Snijders
@job
Feb 01 2018 21:43
@thomas-mangin what is the format for the config for generic attribute?
[length flags data ] ?
Thomas Mangin
@thomas-mangin
Feb 01 2018 21:44
hum .. good question .. I would need to look at the code to know …
Job Snijders
@job
Feb 01 2018 21:45
haha
maybe [type flags data]
Job Snijders
@job
Feb 01 2018 21:55
yeah, [type flags data]
Thomas Mangin
@thomas-mangin
Feb 01 2018 21:55
:-)