Skip to content

[ExaBGP] How to send the routes using the API

Yoshiyuki Yamauchi edited this page Jun 22, 2015 · 2 revisions

You can send the routes using the ExaBGP API.

USAGE

Using examples/mrt2exabgp.py, you can convert to ExaBGP API format
Optional arugments is here:
-A: convert to ExaBGP API format

EXAMPLE

Create ExaBGP configuration: vim /etc/exabgp_api.conf
Example here (please fix this configuration to your network):

group full_route {
    neighbor 127.0.0.1 {
        router-id 127.0.0.2;
        local-address 127.0.0.2;
        local-as 64512;
        peer-as 65000;
        graceful-restart;

        process mrtparse {
            run /usr/bin/pypy ~/mrtparse/example/mrt2exabgp.py -4 192.168.1.254 -A ~/Downloads/latest-bview.gz;
        }
    }
}

Run ExaBGP:

$ /usr/bin/exabgp /etc/exabgp_api.conf