-
Notifications
You must be signed in to change notification settings - Fork 51
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
set_local_pref not flexible enough #99
Comments
But when creating a new route-map (let's call it rm11), the first route-map order should be set to 10. Or it will not be linked to the neighbor due to the bgpd.mako condition.
Then afterward, the user can create other rm11 route-map with different order. |
Hello,
Could you provide a minimal example for each of the issues that you noted ? Then, it would be easier to understand what the problem is and I will be able to provide feedback on your suggested solution ;-) |
Hi,
The set_local_pref function from bgp.py aims to change the local-preference attribute if the route matches the community or an AccessList.
ipmininet/ipmininet/router/config/bgp.py
Line 151 in 693f3b7
To do so, the function creates a route-map in the router and links this route-map with the "from_peer" neighbor.
However, I noticed some problems:
What I suggest as a solution and that I applied in the project is to give more flexibility to this function :
With those two new parameters, the user can now define a succession of route-maps to define multiple local-pref matching some communities and finally set a default local-pref so that these route maps do not block others route.
If this solution is accepted, I can do a pull request for my implementation to solve these issues. If a better solution is proposed, I am willing to volunteer for the implementation of that one.
The text was updated successfully, but these errors were encountered: