From fbe18024e7d32a1302c66949c391eaafb8803821 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Sun, 17 Nov 2019 19:42:48 +0100 Subject: Import BFD implementation from current. Implementation by Christian Poessinger et al. --- op-mode-definitions/show-protocols-bfd.xml | 46 ++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 op-mode-definitions/show-protocols-bfd.xml (limited to 'op-mode-definitions') diff --git a/op-mode-definitions/show-protocols-bfd.xml b/op-mode-definitions/show-protocols-bfd.xml new file mode 100644 index 000000000..398a81d1b --- /dev/null +++ b/op-mode-definitions/show-protocols-bfd.xml @@ -0,0 +1,46 @@ + + + + + + + + + + + Show all Bidirectional Forwarding Detection (BFD) peer status + + /usr/bin/vtysh -c "show bfd peers" + + + + Show Bidirectional Forwarding Detection (BFD) peer counters + + /usr/bin/vtysh -c "show bfd peers counters" + + + + + + Show Bidirectional Forwarding Detection (BFD) peer status + + + + + /usr/bin/vtysh -c "show bfd peers" | awk -v BFD_PEER=$5 '($0 ~ peer BFD_PEER) { system("/usr/bin/vtysh -c \"show bfd " $0 "\"") }' + + + + Show Bidirectional Forwarding Detection (BFD) peer counters + + /usr/bin/vtysh -c "show bfd peers" | awk -v BFD_PEER=$5 '($0 ~ peer BFD_PEER) { system("/usr/bin/vtysh -c \"show bfd " $0 " counters\"") }' + + + + + + + + + + -- cgit v1.2.3