These are chat archives for Exa-Networks/exabgp

22nd
Jun 2017
Alexander Lazarev
@gummeah
Jun 22 2017 14:13
Hey guys. Are there any good examples how do I interact with exabgp in terms of getting output from 'show' commands? Its returning output back to stdin of the process running command, right?
Thomas Mangin
@thomas-mangin
Jun 22 2017 14:13
You run the show command.
get output back
on 4.0 you get a done message when done
Alexander Lazarev
@gummeah
Jun 22 2017 14:19
So. Am i getting this right: I write command 'show routes\n' in stdout of process and result is returning into stdin of the process?
Thomas Mangin
@thomas-mangin
Jun 22 2017 14:19
yes
remember if you want to do things right, you will need to use non-blocking IO
but simpler read/write cycles are fine
Alexander Lazarev
@gummeah
Jun 22 2017 15:34
Figured out how to do that in bash. I guess I need to learn more about stdin stdout in python. Thanks.