From 400632a9a2edbdac79befb5574480db661f33213 Mon Sep 17 00:00:00 2001 From: Rafael Zalamena Date: Tue, 18 Aug 2020 17:00:33 -0300 Subject: bfdd: distributed BFD show commands Show BFD sessions updated counters by asking the data plane for this information and show data plane statistics. Signed-off-by: Rafael Zalamena --- bfdd/bfd.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'bfdd/bfd.h') diff --git a/bfdd/bfd.h b/bfdd/bfd.h index 8b06ccdd0..d6e762c52 100644 --- a/bfdd/bfd.h +++ b/bfdd/bfd.h @@ -794,4 +794,16 @@ int bfd_dplane_update_session(const struct bfd_session *bs); */ int bfd_dplane_delete_session(struct bfd_session *bs); +/** + * Asks the data plane for updated counters and update the session data + * structure. + * + * \param bs the BFD session that needs updating. + * + * \returns `0` on success otherwise `-1` on failure. + */ +int bfd_dplane_update_session_counters(struct bfd_session *bs); + +void bfd_dplane_show_counters(struct vty *vty); + #endif /* _BFD_H_ */ -- cgit v1.2.3