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
Reverse order sorted for display static routes #8794
Comments
Isn't this a duplicate of #8746? Please, keep only one of those two. Anyway, the correct approach for fixing this issue is to output staticd config using NB layer and implement |
No, this is a separate issues. |
Could you elaborate, please, on how are they separate? They are both about the sorting of static routes in the configuration and FRR just doesn't sort the routes currently. |
in #8746 FRR tries to sort by gateway but only if gateway is IP. ip route 1.1.1.1/32 lo1 ip route 1.1.1.1/32 lo2 ip route 2.2.2.2/32 3.3.3.2 ip route 2.2.2.2/32 3.3.3.1 after ip route 1.1.1.1/32 lo2 ip route 1.1.1.1/32 lo1 ip route 2.2.2.2/32 3.3.3.2 ip route 2.2.2.2/32 3.3.3.1 after ip route 1.1.1.1/32 lo1 ip route 1.1.1.1/32 lo2 ip route 2.2.2.2/32 3.3.3.2 ip route 2.2.2.2/32 3.3.3.1 |
Thanks, now I see the difference. It tries to sort the routes when the nexthop is an IP address but does it incorrectly. And it doesn't even try to sort them when the nexthop is an interface. Anyway, both problems should be solved using the NB layer (implementing |
Please merge this problem description into #8746, since the functional impact is the same (none). |
Hello!
If we have in config file some static routes:
then after starting staticd daemon every route will be added to head and in display we see:
May be need use
static_path_list_add_tail
insteadstatic_path_list_add_head
?frr/staticd/static_routes.c
Line 236 in 10ddcc3
The text was updated successfully, but these errors were encountered: