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

bgpd: Allow views to 'pretend' resolve nexthops #147

Closed
wants to merge 1 commit into from

Conversation

donaldsharp
Copy link
Member

Views are supposed to be independent tables
that have no connection to routing tables.
Since View's are 'independent' there is
no way to do 'real' nexthop resolution since
connected routes and interfaces are associated
with a particular table (or really vrf).
So when we have a bgp instance assume that
nexthops specified are actually valid,
since we are propagating what our neighbors are telling
us.

Signed-off-by: Donald Sharp sharpd@cumulusnetworks.com

Views are supposed to be independent tables
that have no connection to routing tables.
Since View's are 'independent' there is
no way to do 'real' nexthop resolution since
connected routes and interfaces are associated
with a particular table (or really vrf).
So when we have a bgp instance assume that
nexthops specified are actually valid,
since we are propagating what our neighbors are telling
us.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
@NetDEF-CI
Copy link
Collaborator

Continous Integration Result: SUCCESSFUL

Congratulations, this patch passed basic tests

Tested-by: NetDEF / OpenSourceRouting.org CI System

CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-184/

This is a comment from an EXPERIMENTAL automated CI system.
For questions and feedback in regards to this CI system, please feel free to email
Martin Winter - mwinter (at) opensourcerouting.org.

@eqvinox
Copy link
Contributor

eqvinox commented Feb 7, 2017

Seems good for stable; I'd hope we could do something better for master (i.e. using the default VRF for views), but that'd be a large change which is a bit much for stable... and I don't think it's a huge issue if 2.0 just thinks all nexthops are always reachable in non-default views. Might even be a feature? :D

@eqvinox
Copy link
Contributor

eqvinox commented Feb 7, 2017

So I think we should apply this on both stable and master, and if someone feels they want something better on master they can go do that on top... and if no one feels so, I don't really care either.

@donaldsharp
Copy link
Member Author

I actually started down the path of using default vrf for views but ran into several issues that I felt were going to make it quite challenging:

  1. the api for nexthop lookup has no ability to differentiate between different views in the same vrf
  2. the code wants to differentiate views into their own tables but there is no good mechanism to map multiple views to 1 table.

@eqvinox
Copy link
Contributor

eqvinox commented Feb 7, 2017

Applied on stable/2.0.

@donaldsharp donaldsharp closed this Feb 7, 2017
@donaldsharp donaldsharp deleted the bgp_nexthop_fun branch November 30, 2017 14:46
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

Successfully merging this pull request may close these issues.

None yet

3 participants