diff options
| author | Karen Schoener <karen@voltanet.io> | 2020-12-08 09:44:27 -0500 |
|---|---|---|
| committer | Karen Schoener <karen@volta.io> | 2020-12-09 08:41:42 -0500 |
| commit | cb135cc94303d2581987645f124bd6d4cecd80a6 (patch) | |
| tree | 5dd374ddd2105b3a82439ec1c4e8ea686b5e55d0 /ospfd/ospf_ldp_sync.h | |
| parent | b64e1733746a2cabb5b25b283407c095fc1c8c3a (diff) | |
isisd, ospfd: IGPs detect LDP down via zapi client close message
When ldp-sync is configured, IGPs take action if the LDP process goes down.
Currently, IGPs detect the LDP process is down if they do not receive a
periodic 'hello' message from LDP within 1 second.
Intermittently, this heartbeat mechanism causes false topotest failures.
When the failure occurs, LDP is busy receiving messages from zebra for a
few seconds. During this time, LDP does not send the expected periodic
message.
With this change, IGPs detect LDP down via zapi client close message.
Signed-off-by: Karen Schoener <karen@voltanet.io>
Diffstat (limited to 'ospfd/ospf_ldp_sync.h')
| -rw-r--r-- | ospfd/ospf_ldp_sync.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ospfd/ospf_ldp_sync.h b/ospfd/ospf_ldp_sync.h index d4efa55311..418ca4e5b6 100644 --- a/ospfd/ospf_ldp_sync.h +++ b/ospfd/ospf_ldp_sync.h @@ -50,6 +50,8 @@ extern void ospf_ldp_sync_if_write_config(struct vty *vty, extern int ospf_ldp_sync_state_update(struct ldp_igp_sync_if_state state); extern int ospf_ldp_sync_announce_update(struct ldp_igp_sync_announce announce); extern int ospf_ldp_sync_hello_update(struct ldp_igp_sync_hello hello); +extern void +ospf_ldp_sync_handle_client_close(struct zapi_client_close_info *info); extern void ospf_ldp_sync_state_req_msg(struct interface *ifp); extern void ospf_ldp_sync_init(void); extern void ospf_ldp_sync_gbl_exit(struct ospf *ospf, bool remove); |
