Ask Your Question

How to write to BGP Peers

asked 2015-11-21 10:41:00 -0700

kagouros gravatar image


I installed the BGP-packages and connected to a Juniper Router in both directions (or so I thought). If I look at the RIB through RESTCONF I see the routes that the router exports through BGP. When I now try to put a route in the table using a POST request to http://myodl:8181/restconf/config/bgp...

I neither see it when querying http://myodl:8181/restconf/operationa...

nor does it show up on the router. I also monitored the BGP traffic between OpenDaylight and the router and there is no BGP Update message from ODL towards the router. Should this be at all possible?

Also I saw that the bgp-flowspec rule I have on the router is not learnt by OpenDayLight

Any help welcome,


edit retag flag offensive close merge delete


Hi Konstantin, Yes, your expectations are right, it is possible to do it with ODL. What ODL version are you using? What was the response for your "POST" request? Is your ODL "application peer" configured? Milos

Milos Fabian ( 2015-11-24 03:55:12 -0700 )edit

I get the 207 partial content as the documentation suggests. If I try to add a route two times, I get a 'data exists'. If You mean by 'application peer' that I configured ODL to talk to the router, yes I did, cause I do see the routes, that the router is exporting via BGP. Thanks, Konstantin

kagouros ( 2015-11-24 06:19:15 -0700 )edit

OK that might be it. I have a bgp-peer but not an application peer. I that module definition on the same level as the bgp-peer, i.e. do I define the module as an xml node on the same level?

kagouros ( 2015-11-25 09:52:47 -0700 )edit

The manual says to configure the application peer instead of the regular one. So do I need one or two? Also: Do I need to device the rib named in <application-app-rib> the same way as the one under <target-rib>

kagouros ( 2015-11-26 08:36:21 -0700 )edit

1 answer

Sort by » oldest newest most voted

answered 2015-12-05 14:46:13 -0700

kagouros gravatar image

OK I finally managed to find the error!

In the URL I posted to i used example-bgp-rib instead of example-app-rib as target. Next stop: Get the Juniper Box to play bgp-flowspec with me :D

Thanks for the support,


edit flag offensive delete publish link more


Great! Ok, now back to the Flowspec - Is router sending some flowspec routes to the ODL? Is ODL peer configured with flowspec capability?

Milos Fabian ( 2015-12-09 12:52:39 -0700 )edit

Actually it should be both. However running a log:tail on ODL after activating this hammers out exceptions. I would like to push routes from ODL over there.

kagouros ( 2015-12-09 12:56:07 -0700 )edit

OK now that I am documenting it it is not working again… I have a BGP-Peer where flowspec works find in both directions. I also learn the v4-routes but pushing one show the route in the adj-rib-in of the peer entry of the ODL host only. Any clue?

kagouros ( 2016-01-24 07:37:20 -0700 )edit

So the pushed route is visible in application peer's adj-rib-in but not in the loc-rib nor peer's adj-rib-out? Any exceptions in a log?

Milos Fabian ( 2016-01-24 13:13:52 -0700 )edit

Yes this is what is happening There are no exceptions but the message 'advertised empty attributes' behind something that looks like the description of the route puzzled me.

kagouros ( 2016-01-24 14:06:10 -0700 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]


Asked: 2015-11-21 10:41:00 -0700

Seen: 186 times

Last updated: Dec 05 '15