staticd: redo VRF_DEFAULT NHT registers on connect

Other VRFs get VRF_ADD notifications from zebra which triggers
static_fixup_vrf_ids, but since the default VRF is implicit we need to
make that same call on connect.

This should fix problems with staticd being started before (or
concurrent with and thus racing) zebra.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
David Lamparter 2022-04-24 17:17:30 +02:00
parent f75d39259c
commit c006c875e7
1 changed files with 3 additions and 0 deletions

View File

@ -176,9 +176,12 @@ static int route_notify_owner(ZAPI_CALLBACK_ARGS)
return 0;
}
static void zebra_connected(struct zclient *zclient)
{
zclient_send_reg_requests(zclient, VRF_DEFAULT);
static_fixup_vrf_ids(vrf_info_lookup(VRF_DEFAULT));
}
/* API to check whether the configured nexthop address is