From ee41ead1a8946a7b1c6b4fe6a7d65112493f626e Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 2 Jan 2021 18:15:23 +0000 Subject: op-mode: T3178: add "show ipv6 access-list|ripng" commands --- Makefile | 1 - op-mode-definitions/clear-ipv6.xml | 2 +- op-mode-definitions/show-ipv6-bgp.xml | 200 ---------------------------- op-mode-definitions/show-ipv6.xml | 238 ++++++++++++++++++++++++++++++++++ 4 files changed, 239 insertions(+), 202 deletions(-) delete mode 100644 op-mode-definitions/show-ipv6-bgp.xml create mode 100644 op-mode-definitions/show-ipv6.xml diff --git a/Makefile b/Makefile index 4574e2ea3..3d6a9eb40 100644 --- a/Makefile +++ b/Makefile @@ -74,7 +74,6 @@ op_mode_definitions: rm -f $(OP_TMPL_DIR)/set/node.def rm -f $(OP_TMPL_DIR)/show/node.def rm -f $(OP_TMPL_DIR)/show/interfaces/node.def - rm -f $(OP_TMPL_DIR)/show/ipv6/node.def rm -f $(OP_TMPL_DIR)/show/ipv6/route/node.def rm -f $(OP_TMPL_DIR)/monitor/node.def rm -f $(OP_TMPL_DIR)/generate/node.def diff --git a/op-mode-definitions/clear-ipv6.xml b/op-mode-definitions/clear-ipv6.xml index f26ab4046..c062102fc 100644 --- a/op-mode-definitions/clear-ipv6.xml +++ b/op-mode-definitions/clear-ipv6.xml @@ -17,7 +17,7 @@ Clear prefix-list statistics or status for specified word - <WORD> + WORD vtysh -c "$*" diff --git a/op-mode-definitions/show-ipv6-bgp.xml b/op-mode-definitions/show-ipv6-bgp.xml deleted file mode 100644 index 72e441029..000000000 --- a/op-mode-definitions/show-ipv6-bgp.xml +++ /dev/null @@ -1,200 +0,0 @@ - - - - - - - - - Show Border Gateway Protocol (BGP) information - - /usr/bin/vtysh -c "show bgp ipv6" - - - - Show summary of BGP neighbor status - - /usr/bin/vtysh -c "show bgp ipv6 summary" - - - - Show routes matching AS path regular expression - - /usr/bin/vtysh -c "show bgp ipv6 regexp $5" - - - - Show routes matching the IPv6 prefix-list name - - policy prefix-list6 - - - /usr/bin/vtysh -c "show bgp ipv6 prefix-list $5" - - - - Show detailed information on TCP and BGP neighbor connections for given address - - - - - /usr/bin/vtysh -c "show bgp ipv6 neighbor $5" - - - - Show routes advertised to a BGP neighbor - - /usr/bin/vtysh -c "show bgp ipv6 neighbor $5 advertised-routes" - - - - Show routes filtered from a BGP neighbor - - /usr/bin/vtysh -c "show bgp ipv6 neighbor $5 filtered-routes" - - - - Show dampened routes received from BGP neighbor - - /usr/bin/vtysh -c "show bgp ipv6 neighbor $5 dampened-routes" - - - - Show flap statistics of the routes learned from BGP neighbor - - /usr/bin/vtysh -c "show bgp ipv6 neighbor $5 flap-statistics" - - - - Show detailed prefix count information for BGP neighbor - - /usr/bin/vtysh -c "show bgp ipv6 neighbor $5 prefix-counts" - - - - Show information received from BGP neighbor - - - - - Show prefixlist filter - - /usr/bin/vtysh -c "show bgp ipv6 neighbor $5 received prefix-filter" - - - - - - Show received routes from BGP neighbor - - /usr/bin/vtysh -c "show bgp ipv6 neighbor $5 received-routes" - - - - Show routes learned from BGP neighbor - - /usr/bin/vtysh -c "show bgp ipv6 neighbor $5 routes" - - - - - - Show routes matching the large-community-list number or name - - /usr/bin/vtysh -c "show bgp ipv6 large-community-list $5" - - - - Show routes matching the large-community-list number or name - - /usr/bin/vtysh -c "show bgp ipv6 large-community-list $5 exact-match" - - - - - - Show routes matching the large-community-list number or name - - /usr/bin/vtysh -c "show bgp ipv6 large-community-list $5" - - - - Show routes matching the large-community-list number or name - - /usr/bin/vtysh -c "show bgp ipv6 large-community-list $5 exact-match" - - - - - - Show routes conforming to regular expression access list name - - /usr/bin/vtysh -c "show bgp ipv6 filter-list $5" - - - - Show BGP information for specified community number - - <AA:NN> local-AS no-advertise no-export - - - /usr/bin/vtysh -c "show bgp ipv6 community $5" - - - - Show routes from community that exactly matches the community number - - /usr/bin/vtysh -c "show bgp ipv6 community $5 exact-match" - - - - - - Show routes matching the community-list number or name - - /usr/bin/vtysh -c "show bgp ipv6 community-list $5" - - - - Show routes exactly matching the community-list name or number - - /usr/bin/vtysh -c "show bgp ipv6 community-list $5 exact-match" - - - - - - Show BGP routes matching the specified route map - - policy route-map - - - /usr/bin/vtysh -c "show bgp ipv6 route-map $5" - - - - - - Show BGP information for specified IP address or prefix - - <X:X::X:X> <X:X::X:X/x> - - - /usr/bin/vtysh -c "show bgp ipv6 $4" - - - - Show route and more specific routes - - <X:X::X:X> <X:X::X:X/x> - - - /usr/bin/vtysh -c "show bgp ipv6 $4 longer-prefixes" - - - - - - - - diff --git a/op-mode-definitions/show-ipv6.xml b/op-mode-definitions/show-ipv6.xml new file mode 100644 index 000000000..be84640eb --- /dev/null +++ b/op-mode-definitions/show-ipv6.xml @@ -0,0 +1,238 @@ + + + + + + + Show IPv6 routing information + + + + + Show all IPv6 access-lists + + vtysh -c "show ipv6 access-list" + + + + Show specified IPv6 access-list + + WORD + + + vtysh -c "show ipv6 access-list $4" + + + + Show IPv6 forwarding status + + vtysh -c "show ipv6 forwarding" + + + + Show RIPNG protocol information + + vtysh -c "show ipv6 ripng" + + + + Show RIPNG protocol status + + vtysh -c "show ipv6 ripng status" + + + + + + Show Border Gateway Protocol (BGP) information + + vtysh -c "show bgp ipv6" + + + + Show summary of BGP neighbor status + + vtysh -c "show bgp ipv6 summary" + + + + Show routes matching AS path regular expression + + vtysh -c "show bgp ipv6 regexp $5" + + + + Show routes matching the IPv6 prefix-list name + + policy prefix-list6 + + + vtysh -c "show bgp ipv6 prefix-list $5" + + + + Show detailed information on TCP and BGP neighbor connections for given address + + + + + vtysh -c "show bgp ipv6 neighbor $5" + + + + Show routes advertised to a BGP neighbor + + vtysh -c "show bgp ipv6 neighbor $5 advertised-routes" + + + + Show routes filtered from a BGP neighbor + + vtysh -c "show bgp ipv6 neighbor $5 filtered-routes" + + + + Show dampened routes received from BGP neighbor + + vtysh -c "show bgp ipv6 neighbor $5 dampened-routes" + + + + Show flap statistics of the routes learned from BGP neighbor + + vtysh -c "show bgp ipv6 neighbor $5 flap-statistics" + + + + Show detailed prefix count information for BGP neighbor + + vtysh -c "show bgp ipv6 neighbor $5 prefix-counts" + + + + Show information received from BGP neighbor + + + + + Show prefixlist filter + + vtysh -c "show bgp ipv6 neighbor $5 received prefix-filter" + + + + + + Show received routes from BGP neighbor + + vtysh -c "show bgp ipv6 neighbor $5 received-routes" + + + + Show routes learned from BGP neighbor + + vtysh -c "show bgp ipv6 neighbor $5 routes" + + + + + + Show routes matching the large-community-list number or name + + vtysh -c "show bgp ipv6 large-community-list $5" + + + + Show routes matching the large-community-list number or name + + vtysh -c "show bgp ipv6 large-community-list $5 exact-match" + + + + + + Show routes matching the large-community-list number or name + + vtysh -c "show bgp ipv6 large-community-list $5" + + + + Show routes matching the large-community-list number or name + + vtysh -c "show bgp ipv6 large-community-list $5 exact-match" + + + + + + Show routes conforming to regular expression access list name + + vtysh -c "show bgp ipv6 filter-list $5" + + + + Show BGP information for specified community number + + <AA:NN> local-AS no-advertise no-export + + + vtysh -c "show bgp ipv6 community $5" + + + + Show routes from community that exactly matches the community number + + vtysh -c "show bgp ipv6 community $5 exact-match" + + + + + + Show routes matching the community-list number or name + + vtysh -c "show bgp ipv6 community-list $5" + + + + Show routes exactly matching the community-list name or number + + vtysh -c "show bgp ipv6 community-list $5 exact-match" + + + + + + Show BGP routes matching the specified route map + + policy route-map + + + vtysh -c "show bgp ipv6 route-map $5" + + + + + + Show BGP information for specified IP address or prefix + + <X:X::X:X> <X:X::X:X/x> + + + vtysh -c "show bgp ipv6 $4" + + + + Show route and more specific routes + + <X:X::X:X> <X:X::X:X/x> + + + vtysh -c "show bgp ipv6 $4 longer-prefixes" + + + + + + + + -- cgit v1.2.3