2023-02-08 13:17:09 +01:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2016-11-09 14:15:34 +01:00
|
|
|
/*
|
2017-05-13 10:25:29 +02:00
|
|
|
* Common definitions for watchfrr API socket.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2016 David Lamparter for NetDEF, Inc.
|
2016-11-09 14:15:34 +01:00
|
|
|
*/
|
|
|
|
|
2017-01-04 02:13:02 +01:00
|
|
|
#ifndef FRR_WATCHFRR_H
|
|
|
|
#define FRR_WATCHFRR_H
|
2016-11-09 14:15:34 +01:00
|
|
|
|
2018-09-27 04:18:48 +02:00
|
|
|
#include "lib/memory.h"
|
|
|
|
|
|
|
|
DECLARE_MGROUP(WATCHFRR);
|
|
|
|
|
2021-10-05 02:32:25 +02:00
|
|
|
/*
|
|
|
|
* This is the name of the pathspace we are in `-N XXX`
|
|
|
|
* If the default then this is NULL
|
|
|
|
*/
|
|
|
|
extern const char *pathspace;
|
|
|
|
|
2017-01-04 02:13:02 +01:00
|
|
|
extern void watchfrr_vty_init(void);
|
2016-11-09 14:15:34 +01:00
|
|
|
|
|
|
|
extern pid_t integrated_write_pid;
|
|
|
|
extern void integrated_write_sigchld(int status);
|
2018-11-30 17:56:42 +01:00
|
|
|
|
|
|
|
struct vty;
|
|
|
|
extern void watchfrr_status(struct vty *vty);
|
|
|
|
|
2018-03-20 20:07:36 +01:00
|
|
|
/*
|
|
|
|
* Check if all daemons we are monitoring are in the DAEMON_UP state.
|
|
|
|
*
|
|
|
|
* Returns:
|
|
|
|
* True if they are all DAEMON_UP, false otherwise.
|
|
|
|
*/
|
|
|
|
extern bool check_all_up(void);
|
2016-11-09 14:15:34 +01:00
|
|
|
|
2019-09-16 19:47:50 +02:00
|
|
|
extern void watchfrr_set_ignore_daemon(struct vty *vty, const char *dname,
|
|
|
|
bool ignore);
|
2017-01-13 14:10:00 +01:00
|
|
|
#endif /* FRR_WATCHFRR_H */
|