summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-06-23 11:34:30 +0200
committerChristian Poessinger <christian@poessinger.com>2019-06-23 11:34:56 +0200
commit921849da85c634fb34d331c318992697db6449e7 (patch)
tree132c047dd74a66a1bed870225a5994a60e65e5b5 /op-mode-definitions
parent7d5b78242859540955006e11d8ca08b463244950 (diff)
downloadvyos-1x-921849da85c634fb34d331c318992697db6449e7.tar.gz
vyos-1x-921849da85c634fb34d331c318992697db6449e7.zip
bfd: T1183: support show of individual BFD peer
vyos@vyos:~$ show protocols bfd peer BFD Peers: peer 172.18.1.2 interface eth0.701 ID: 3762227714 Remote ID: 3787683864 Status: up Uptime: 24 minute(s), 54 second(s) Diagnostics: ok Remote diagnostics: ok Local timers: Receive interval: 300ms Transmission interval: 300ms Echo transmission interval: 50ms Remote timers: Receive interval: 300ms Transmission interval: 300ms Echo transmission interval: 50ms peer 172.18.0.2 interface eth0.700 ID: 3132309989 Remote ID: 859733951 Status: up Uptime: 25 minute(s), 24 second(s) Diagnostics: ok Remote diagnostics: ok Local timers: Receive interval: 300ms Transmission interval: 300ms Echo transmission interval: 50ms Remote timers: Receive interval: 300ms Transmission interval: 300ms Echo transmission interval: 50ms vyos@vyos:~$ show protocols bfd peer Possible completions: <Enter> Execute the current command 172.18.0.2 Show Bidirectional Forwarding Detection (BFD) peer status 172.18.1.2 vyos@vyos:~$ show protocols bfd peer 1 172.18.0.2 172.18.1.2 vyos@vyos:~$ show protocols bfd peer 172.18.0.2 BFD Peer: peer 172.18.0.2 interface eth0.700 ID: 3132309989 Remote ID: 859733951 Status: up Uptime: 25 minute(s), 29 second(s) Diagnostics: ok Remote diagnostics: ok Local timers: Receive interval: 300ms Transmission interval: 300ms Echo transmission interval: 50ms Remote timers: Receive interval: 300ms Transmission interval: 300ms Echo transmission interval: 50ms
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/show-protocols-bfd.xml11
1 files changed, 10 insertions, 1 deletions
diff --git a/op-mode-definitions/show-protocols-bfd.xml b/op-mode-definitions/show-protocols-bfd.xml
index 052e6a700..3c682d6f7 100644
--- a/op-mode-definitions/show-protocols-bfd.xml
+++ b/op-mode-definitions/show-protocols-bfd.xml
@@ -8,10 +8,19 @@
<children>
<node name="peer">
<properties>
- <help>Show Bidirectional Forwarding Detection (BFD) Status</help>
+ <help>Show all Bidirectional Forwarding Detection (BFD) peer status</help>
</properties>
<command>/usr/bin/vtysh -c "show bfd peers"</command>
</node>
+ <tagNode name="peer">
+ <properties>
+ <help>Show Bidirectional Forwarding Detection (BFD) peer status</help>
+ <completionHelp>
+ <script>/usr/bin/vtysh -c "show bfd peer" | grep peer | awk '{print $2}'</script>
+ </completionHelp>
+ </properties>
+ <command>/usr/bin/vtysh -c "show bfd peer $5"</command>
+ </tagNode>
</children>
</node>
</children>