]> git.proxmox.com Git - mirror_frr.git/blame - ospfd/ospf_bfd.h
Merge pull request #13649 from donaldsharp/unlock_the_node_or_else
[mirror_frr.git] / ospfd / ospf_bfd.h
CommitLineData
acddc0ed 1// SPDX-License-Identifier: GPL-2.0-or-later
7f342629
DS
2/**
3 * ospf_bfd.h: OSPF BFD definitions and structures
4 *
5 * @copyright Copyright (C) 2015 Cumulus Networks, Inc.
7f342629
DS
6 */
7
8#ifndef _ZEBRA_OSPF_BFD_H
9#define _ZEBRA_OSPF_BFD_H
10
659f4e40 11#include "ospfd/ospf_interface.h"
68fe91d6 12#include "json.h"
13
cd9d0537 14extern void ospf_bfd_init(struct event_loop *tm);
7f342629 15
d62a17ae 16extern void ospf_bfd_write_config(struct vty *vty,
659f4e40 17 const struct ospf_if_params *params);
7f342629 18
d62a17ae 19extern void ospf_bfd_trigger_event(struct ospf_neighbor *nbr, int old_state,
20 int state);
7f342629 21
659f4e40
RZ
22/**
23 * Legacy information: it is the peers who actually have this information
24 * and the protocol should not need to know about timers.
25 */
26extern void ospf_interface_bfd_show(struct vty *vty,
27 const struct interface *ifp,
28 struct json_object *json);
68fe91d6 29
659f4e40
RZ
30/**
31 * Disables interface BFD configuration and remove settings from all peers.
32 */
33extern void ospf_interface_disable_bfd(struct interface *ifp,
34 struct ospf_if_params *oip);
68fe91d6 35
659f4e40
RZ
36/**
37 * Create/update BFD session for this OSPF neighbor.
38 */
39extern void ospf_neighbor_bfd_apply(struct ospf_neighbor *nbr);
68fe91d6 40
7f342629 41#endif /* _ZEBRA_OSPF_BFD_H */