diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2022-04-24 17:17:30 +0200 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2022-04-24 17:21:09 +0200 |
| commit | c006c875e7bbf58b1a8ef20419dd59faea3e0473 (patch) | |
| tree | d57904e1cc30ae6d88568cba85327328b8b207e5 | |
| parent | f75d39259cbccc5888bd152db2b64786f3eaea1d (diff) | |
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>
| -rw-r--r-- | staticd/static_zebra.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/staticd/static_zebra.c b/staticd/static_zebra.c index 9a5b4efb95..de07ad8ef3 100644 --- a/staticd/static_zebra.c +++ b/staticd/static_zebra.c @@ -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 |
