mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
Merge pull request #18164 from Pdoijode/pdoijode/staticd-nht-register
staticd: Failed to register nexthop after networking restart
This commit is contained in:
commit
5082cab809
|
@ -53,6 +53,11 @@ void zebra_stable_node_cleanup(struct route_table *table,
|
|||
/* Install static path into rib. */
|
||||
void static_install_path(struct static_path *pn)
|
||||
{
|
||||
struct static_nexthop *nh;
|
||||
|
||||
frr_each (static_nexthop_list, &pn->nexthop_list, nh)
|
||||
static_zebra_nht_register(nh, true);
|
||||
|
||||
if (static_nexthop_list_count(&pn->nexthop_list))
|
||||
static_zebra_route_add(pn, true);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue