summaryrefslogtreecommitdiffstats
path: root/bfdd/bfd.h
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@opensourcerouting.org>2020-08-18 22:00:33 +0200
committerRafael Zalamena <rzalamena@opensourcerouting.org>2020-11-24 11:54:07 +0100
commit400632a9a2edbdac79befb5574480db661f33213 (patch)
tree8202fa8ee0857f701e4439a64b2f5d82bbc710a1 /bfdd/bfd.h
parentbfdd: integrate distributed BFD (diff)
downloadfrr-400632a9a2edbdac79befb5574480db661f33213.tar.xz
frr-400632a9a2edbdac79befb5574480db661f33213.zip
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 <rzalamena@opensourcerouting.org>
Diffstat (limited to 'bfdd/bfd.h')
-rw-r--r--bfdd/bfd.h12
1 files changed, 12 insertions, 0 deletions
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_ */