mirror of https://github.com/FRRouting/frr.git
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:
parent
f75d39259c
commit
c006c875e7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue