mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 13:27:53 +00: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. */
|
/* Install static path into rib. */
|
||||||
void static_install_path(struct static_path *pn)
|
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))
|
if (static_nexthop_list_count(&pn->nexthop_list))
|
||||||
static_zebra_route_add(pn, true);
|
static_zebra_route_add(pn, true);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user