Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The neighbors/$ID/routes endpoint returns "not_exported" routes for neighbors with different ID #10

Open
vgiotsas opened this issue Nov 13, 2017 · 1 comment

Comments

@vgiotsas
Copy link

vgiotsas commented Nov 13, 2017

When querying the routes of a neighbor with a specific ID the response may contain "not_exported" routes from neighbors with a different neighbor ID. For instance, consider the following query:

https://lg.ecix.net/api/routeservers/0/neighbours/ID481_AS6805/routes

The output is (you can view it formated here):

{"api":{"version":"1.10.2","cache_status":{"cached_at":"0001-01-01T00:00:00Z","orig_ttl":0},"result_from_cache":true,"ttl":"2017-11-13T01:59:03.303863254Z"},"imported":[],"filtered":[],"not_exported":[{"id":"192.33.14.0/24","neighbour_id":"ID7839_AS29140","network":"192.33.14.0/24","interface":"unknown interface","gateway":"194.9.117.78","metric":100,"bgp":{"origin":"IGP","as_path":[29140,26415,26415],"next_hop":"194.9.117.78","communities":[[65000,0],[29140,4009],[29140,4000],[29140,26415],[65011,15],[9033,3051]],"large_communities":[[9033,65667,5]],"local_pref":100,"med":1025},"age":132916790672143,"type":["BGP","unicast","univ"],"details":{"age":"2017-11-11 13:00:03","bgp":{"aggregator":"217.31.95.196 AS26415","as_path":["29140","26415","26415"],"communities":[[65000,0],[29140,4009],[29140,4000],[29140,26415],[65011,15],[9033,3051]],"large_communities":[[9033,65667,5]],"local_pref":"100","med":"1025","next_hop":"194.9.117.78","origin":"IGP"},"from_protocol":"ID7839_AS29140","gateway":"194.9.117.78","interface":null,"learnt_from":"","metric":100,"network":"192.33.14.0/24","primary":true,"type":["BGP","unicast","univ"]}},{"id":"192.58.128.0/24","neighbour_id":"ID7839_AS29140","network":"192.58.128.0/24","interface":"unknown interface","gateway":"194.9.117.78","metric":100,"bgp":{"origin":"IGP","as_path":[29140,26415,26415],"next_hop":"194.9.117.78","communities":[[65000,0],[29140,4009],[29140,4000],[29140,26415],[65011,15],[9033,3051]],"large_communities":[[9033,65667,5]],"local_pref":100,"med":1025},"age":132916790683682,"type":["BGP","unicast","univ"],"details":{"age":"2017-11-11 13:00:03","bgp":{"aggregator":"217.31.95.196 AS26415","as_path":["29140","26415","26415"],"communities":[[65000,0],[29140,4009],[29140,4000],[29140,26415],[65011,15],[9033,3051]],"large_communities":[[9033,65667,5]],"local_pref":"100","med":"1025","next_hop":"194.9.117.78","origin":"IGP"},"from_protocol":"ID7839_AS29140","gateway":"194.9.117.78","interface":null,"learnt_from":"","metric":100,"network":"192.58.128.0/24","primary":true,"type":["BGP","unicast","univ"]}},{"id":"194.122.82.0/24","neighbour_id":"ID6721_AS36040","network":"194.122.82.0/24","interface":"unknown interface","gateway":"194.9.117.71","metric":100,"bgp":{"origin":"IGP","as_path":[36040],"next_hop":"194.9.117.71","communities":[[65011,1],[9033,3051]],"large_communities":[[9033,65667,1]],"local_pref":100,"med":0},"age":14268655790680338,"type":["BGP","unicast","univ"],"details":{"age":"2017-05-31 22:24:24","bgp":{"aggregator":"194.122.82.1 AS36040","as_path":["36040"],"communities":[[65011,1],[9033,3051]],"large_communities":[[9033,65667,1]],"local_pref":"100","med":"0","next_hop":"194.9.117.71","origin":"IGP"},"from_protocol":"ID6721_AS36040","gateway":"194.9.117.71","interface":null,"learnt_from":"","metric":100,"network":"194.122.82.0/24","primary":true,"type":["BGP","unicast","univ"]}}]}

If I understand correctly, the not_exported routes should only pertain to the queried neighbor.

@stefanplug
Copy link

Hey!

Thanks for the issue! So the no_export should show what routes were not exported TO that peer, so you would expect that the routes were sent by different peers.

We did however notice that your url did contains non_exported routes, but on the peer page: https://lg.ecix.net/alice/routeservers/0/protocols/ID481_AS6805/routes

There is nothing... so there is something fishy going on there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants