diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-12-15 22:15:58 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-12-15 22:15:58 +0100 |
commit | 6f9ba4e577a6470372a478310ea0c49a6400b8e6 (patch) | |
tree | 7e78c947da79c7225fd0762cf744dcb80110b6ad /op-mode-definitions | |
parent | a6f951ed7f4669b7601f5f7e6c37451ed855d40b (diff) | |
download | vyos-1x-6f9ba4e577a6470372a478310ea0c49a6400b8e6.tar.gz vyos-1x-6f9ba4e577a6470372a478310ea0c49a6400b8e6.zip |
op-mode: bfd: T4073: "show protocols bfd peer <ip>" returned invalid session data
Due to the AWK regex pattern data from a different peer was returned as
the first match was shown.
Diffstat (limited to 'op-mode-definitions')
-rw-r--r-- | op-mode-definitions/show-bfd.xml.in | 50 |
1 files changed, 49 insertions, 1 deletions
diff --git a/op-mode-definitions/show-bfd.xml.in b/op-mode-definitions/show-bfd.xml.in index 7339c92a2..39e42e6ec 100644 --- a/op-mode-definitions/show-bfd.xml.in +++ b/op-mode-definitions/show-bfd.xml.in @@ -2,7 +2,55 @@ <interfaceDefinition> <node name="show"> <children> - #include <include/bfd-common.xml.i> + <node name="bfd"> + <properties> + <help>Show Bidirectional Forwarding Detection (BFD)</help> + </properties> + <children> + <node name="peer"> + <properties> + <help>Show all Bidirectional Forwarding Detection (BFD) peer status</help> + </properties> + </node> + <tagNode name="peer"> + <properties> + <help>Show Bidirectional Forwarding Detection (BFD) peer status</help> + <completionHelp> + <script>vtysh -c "show bfd peers" | awk '/[:blank:]*peer/ { printf "%s\n", $2 }'</script> + </completionHelp> + </properties> + <command>vtysh -c "show bfd peers" | sed -n "/peer $4 /,/^$/p"</command> + <children> + <leafNode name="counters"> + <properties> + <help>Show Bidirectional Forwarding Detection (BFD) peer counters</help> + </properties> + <command>vtysh -c "show bfd peers counters" | sed -n "/peer $4 /,/^$/p"</command> + </leafNode> + </children> + </tagNode> + <node name="peers"> + <properties> + <help>Show Bidirectional Forwarding Detection peers</help> + </properties> + <command>vtysh -c "show bfd peers"</command> + <children> + <leafNode name="counters"> + <properties> + <help>Show Bidirectional Forwarding Detection (BFD) peer counters</help> + </properties> + <command>vtysh -c "show bfd peers counters"</command> + </leafNode> + <leafNode name="brief"> + <properties> + <help>Show Bidirectional Forwarding Detection (BFD) peers brief</help> + </properties> + <command>vtysh -c "show bfd peers brief"</command> + </leafNode> + </children> + </node> + </children> + </node> </children> </node> </interfaceDefinition> |