I setup Exabgp and it's work with static route without any problem.
I need to use API for send remote route records to exabgp. I searched whole net about a simple documentation about this but I don't find any simple example about how I send request to exabgp api
from exabgp.conf :
process parsed-route-backend {
parse-routes;
peer-updates;
run /home/injector/go/bin/bgpapi;
}
When I try access from web I can see api page from
http://10.4.4.9:8080
I use a PHP code to send simple command but it doesn't work
$postData = array(
'neighbor' =>
array('ip' => '10.4.4.3','state' => 'Down','reason' => ''),
);
$ch = curl_init('
http://10.4.4.9:8080/api/');
curl_setopt_array($ch, array(
CURLOPT_POST => TRUE,
CURLOPT_RETURNTRANSFER => TRUE,
CURLOPT_POSTFIELDS => json_encode($postData)
));
Do you help me about a simple example for sending a route to exabgp