Open JamesTuMarines opened 5 months ago
The PIPE location can be controlled by env name if I recall how I did it correctly (and if it does not now it could). This name could be passed via another env variable and changed by the forking version of ExaBGP. This would be a feature and is not available ATM.
Hi @thomas-mangin,
Thank you for the hint. I created two env files and set the different exabgp.api.pipename for two configuration files.
cat exabgp_rtbh.env
[exabgp.api]
pipename = 'exabgp_rtbh'
cat exabgp_clean.env
[exabgp.api]
pipename = 'exabgp_clean'
Run exabgp like this.
exabgp -e /root/exabgp_rtbh.env /root/exabgp_rtbh.conf
exabgp -e /root/exabgp_clean.env /root/exabgp_clean.conf
Run the API like this. I wrote a script to run the command about 500 times and no random output anymore. I think the problem is solved now.
env exabgp.api.pipename=exabgp_rtbh exabgpcli show neighbor summary
env exabgp.api.pipename=exabgp_clean exabgpcli show neighbor summary
However, if I tried to run exabgpcli with --env and it shows timeout. Did I run the API in the wrong way?
exabgpcli --env exabgp_rtbh.env show nei sum
command: show neighbor summary
could not send command to ExaBGP (command timeout)
Thank you.
What I suggested requires code change. What you suggested should have worked for me. Please use ./sbin/exabgp env -d
to check if the settings are correctly loaded.
Hi @thomas-mangin
I tried the command and it shows this.
09:56:26 | 5783 | configuration | one of the arguments passed as configuration is not a file (env)
Is what I should expect?
Thank you.
The command I gave you is for master, for 4.2, it may be -di
- and no need for env
?
Oh, I see I understand what you mean.
The output is like this.
[root@localhost ~]# exabgp --di --env /root/exabgp_clean.env
[exabgp.api]
pipename = 'exabgp_clean'
Hi Team,
I run exabgp with two different configuration files but both configuration files use different named pipes.
When I run the command "exabgpcli show neighbor summary" to see the status of all the neighbors, it randomly sends the command to different pipes so I can only get half of the result I want.
Is there a way that I can control which pipe that exabgpcli sends to?
Thank you.
Exabgp Version
[root@localhost ~]# exabgpcli version exabgp 4.2.21
PIPE Files created like this
Configuration File 1 exabgp_clean.conf
Configuration File 2 exabgp_rtbh.conf