]> git.puffer.fish Git - mirror/frr.git/commit
staticd: Fix static routes that are not added in RIB after Null0 or vrf routes 4070/head
authorAdrian Ban <AdrianBan@users.noreply.github.com>
Tue, 2 Apr 2019 15:25:50 +0000 (17:25 +0200)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 3 Apr 2019 13:53:58 +0000 (09:53 -0400)
commit24a4626c0ba13bef09844a74331c40d9e7029545
treee39e087aca5095c223a5eeb95dd31395950a63aa
parentf7af9a93e95f2bc47acd72b85e1522dc0e1ed801
staticd: Fix static routes that are not added in RIB after Null0 or vrf routes

When you add a static route like:

ip route 10.0.0.0/24 Null0
ip route 192.168.7.0/24 99.99.99.99 nexthop-vrf EVA

all routes after this command will be ignored by staticd and are not inserted in RIB.
This is the cause of return instead of continue in the for loop in static_nht_update_safi() function that is stopping the search in the routes list and is returning in the previous function without calling static_zebra_route_add() function.

This patch is fixing this issue.

Signed-off-by: Adrian Ban <bugs@abtelcom.ro>
staticd/static_nht.c