From 0284d6796298bca0b06385ef9e8dd7565a7551b7 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 1 Aug 2021 12:30:53 +0200 Subject: op-mode: bgp: T1513: extend "show bgp" command tree Add the following new commands: * show bgp mac hash * show bgp martian next-hop * show bgp memory * show bgp next-hop * show bgp next-hop detail * show bgp next-hop ip * show bgp next-hop ip detail * show bgp statistics * show bgp statistics-all * show bgp wide * show bgp cidr-only * show bgp cidr-only wide * show bgp ipv4 wide * show bgp ipv6 wide --- op-mode-definitions/include/bgp/afi-common.xml.i | 19 +++++- .../include/vtysh-generic-wide.xml.i | 8 +++ op-mode-definitions/show-bgp.xml.in | 75 ++++++++++++++++++++++ 3 files changed, 100 insertions(+), 2 deletions(-) create mode 100644 op-mode-definitions/include/vtysh-generic-wide.xml.i diff --git a/op-mode-definitions/include/bgp/afi-common.xml.i b/op-mode-definitions/include/bgp/afi-common.xml.i index e48482282..7fc59f3b0 100644 --- a/op-mode-definitions/include/bgp/afi-common.xml.i +++ b/op-mode-definitions/include/bgp/afi-common.xml.i @@ -31,10 +31,25 @@ ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - + Summary of BGP neighbor status ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - + + + + Show only sessions in Established state + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show only sessions not in Established state + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + +#include diff --git a/op-mode-definitions/include/vtysh-generic-wide.xml.i b/op-mode-definitions/include/vtysh-generic-wide.xml.i new file mode 100644 index 000000000..acc68b4c0 --- /dev/null +++ b/op-mode-definitions/include/vtysh-generic-wide.xml.i @@ -0,0 +1,8 @@ + + + + Increase table width for longer prefixes + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + diff --git a/op-mode-definitions/show-bgp.xml.in b/op-mode-definitions/show-bgp.xml.in index 36e7062df..c33a9dacf 100644 --- a/op-mode-definitions/show-bgp.xml.in +++ b/op-mode-definitions/show-bgp.xml.in @@ -8,7 +8,81 @@ ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + Display only routes with non-natural netmasks + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + #include + + #include + + + MAC address + + + + + MAC address database + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + + + martian next-hops + + + + + martian next-hop database + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + + + Global BGP memory statistics + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show BGP nexthop table + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + #include + + + + + IPv4/IPv6 nexthop address + + <x.x.x.x> <h:h:h:h:h:h:h:h> + + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + #include + + + + + BGP RIB advertisement statistics + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Display number of prefixes for all afi/safi + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + Show BGP VRF information @@ -28,6 +102,7 @@ #include + #include -- cgit v1.2.3