From b1f91de44dffa2145b9fe8235a3ff2e4925610f1 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Tue, 9 Feb 2021 22:22:21 +0100 Subject: xml: op-mode: remove absolute path from vtysh (cherry picked from commit 46b749388e0198f0cb3eb5eca1bd1d6e940b2702) --- op-mode-definitions/show-protocols-bfd.xml.in | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'op-mode-definitions/show-protocols-bfd.xml.in') diff --git a/op-mode-definitions/show-protocols-bfd.xml.in b/op-mode-definitions/show-protocols-bfd.xml.in index 3d9b67c67..886b01e51 100644 --- a/op-mode-definitions/show-protocols-bfd.xml.in +++ b/op-mode-definitions/show-protocols-bfd.xml.in @@ -13,13 +13,13 @@ Show all Bidirectional Forwarding Detection (BFD) peer status - /usr/bin/vtysh -c "show bfd peers" + vtysh -c "show bfd peers" Show Bidirectional Forwarding Detection (BFD) peer counters - /usr/bin/vtysh -c "show bfd peers counters" + vtysh -c "show bfd peers counters" @@ -27,16 +27,16 @@ Show Bidirectional Forwarding Detection (BFD) peer status - + - /usr/bin/vtysh -c "show bfd peers" | awk -v BFD_PEER=$5 'BEGIN { regex = sprintf("(peer %s.*)vrf", BFD_PEER) } { if (match($0, regex, bfd_peer_value)) peer=bfd_peer_value[1] } END { if (peer) system("/usr/bin/vtysh -c \"show bfd " peer "\"") }' + vtysh -c "show bfd peers" | awk -v BFD_PEER=$5 'BEGIN { regex = sprintf("(peer %s.*)vrf", BFD_PEER) } { if (match($0, regex, bfd_peer_value)) peer=bfd_peer_value[1] } END { if (peer) system("vtysh -c \"show bfd " peer "\"") }' Show Bidirectional Forwarding Detection (BFD) peer counters - /usr/bin/vtysh -c "show bfd peers" | awk -v BFD_PEER=$5 'BEGIN { regex = sprintf("(peer %s.*)vrf", BFD_PEER) } { if (match($0, regex, bfd_peer_value)) peer=bfd_peer_value[1] } END { if (peer) system("/usr/bin/vtysh -c \"show bfd " peer " counters\"") }' + vtysh -c "show bfd peers" | awk -v BFD_PEER=$5 'BEGIN { regex = sprintf("(peer %s.*)vrf", BFD_PEER) } { if (match($0, regex, bfd_peer_value)) peer=bfd_peer_value[1] } END { if (peer) system("vtysh -c \"show bfd " peer " counters\"") }' @@ -44,7 +44,7 @@ Show Bidirectional Forwarding Detection (BFD) peers brief - /usr/bin/vtysh -c "show bfd peers brief" + vtysh -c "show bfd peers brief" -- cgit v1.2.3