From e0ff3f330790f41be3bbd05ed28327cb2e38e52c Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Mon, 4 Jan 2021 17:14:14 +0100 Subject: op-mode: T3178: split IPv6 commands into individual files --- op-mode-definitions/show-ipv6-bgp.xml | 203 ++++++++++++++ op-mode-definitions/show-ipv6-prefix-list.xml | 92 +++++++ op-mode-definitions/show-ipv6-route.xml | 117 ++++++++ op-mode-definitions/show-ipv6.xml | 370 -------------------------- 4 files changed, 412 insertions(+), 370 deletions(-) create mode 100644 op-mode-definitions/show-ipv6-bgp.xml create mode 100644 op-mode-definitions/show-ipv6-prefix-list.xml create mode 100644 op-mode-definitions/show-ipv6-route.xml diff --git a/op-mode-definitions/show-ipv6-bgp.xml b/op-mode-definitions/show-ipv6-bgp.xml new file mode 100644 index 000000000..aad61b97a --- /dev/null +++ b/op-mode-definitions/show-ipv6-bgp.xml @@ -0,0 +1,203 @@ + + + + + + + Show IPv6 routing information + + + + + 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 + + <h:h:h:h:h:h:h:h> <h:h:h:h:h:h:h:h/x> + + + vtysh -c "show bgp ipv6 $4" + + + + Show route and more specific routes + + <h:h:h:h:h:h:h:h> <h:h:h:h:h:h:h:h/x> + + + vtysh -c "show bgp ipv6 $4 longer-prefixes" + + + + + + + + diff --git a/op-mode-definitions/show-ipv6-prefix-list.xml b/op-mode-definitions/show-ipv6-prefix-list.xml new file mode 100644 index 000000000..e003ad110 --- /dev/null +++ b/op-mode-definitions/show-ipv6-prefix-list.xml @@ -0,0 +1,92 @@ + + + + + + + Show IPv6 routing information + + + + + Show IPv6 prefix-lists + + vtysh -c "show ipv6 prefix-list" + + + + Show detail of IPv6 prefix-lists + + vtysh -c "show ipv6 prefix-list detail" + + + + Show detail of specified IPv6 prefix-list + + vtysh -c "show ipv6 prefix-list detail $5" + + + + Show summary of IPv6 prefix-lists + + vtysh -c "show ipv6 prefix-list summary" + + + + Show summary of specified IPv6 prefix-list + + vtysh -c "show ipv6 prefix-list summary $5" + + + + + + Show specified IPv6 prefix-list + + WORD + + + vtysh -c "show ipv6 prefix-list $4" + + + + Show select prefix of specified IPv6 prefix-list + + <h:h:h:h:h:h:h:h/x> + + + vtysh -c "show ipv6 prefix-list $4 $5" + + + + Show first-match from select prefix of named IPv6 prefix-list + + vtysh -c "show ipv6 prefix-list $4 $5 first-match" + + + + Show longer match of select prefix from named IPv6 prefix-list + + vtysh -c "show ipv6 prefix-list $4 $5 longer" + + + + + + Show specified sequence from specified IPv6 prefix-list + + vtysh -c "show ipv6 prefix-list $4 seq" + + + + Show specified sequence from specified IPv6 prefix-list + + vtysh -c "show ipv6 prefix-list $4 seq $6" + + + + + + + + diff --git a/op-mode-definitions/show-ipv6-route.xml b/op-mode-definitions/show-ipv6-route.xml new file mode 100644 index 000000000..fafd615ea --- /dev/null +++ b/op-mode-definitions/show-ipv6-route.xml @@ -0,0 +1,117 @@ + + + + + + + Show IPv6 routing information + + + + + Show IPv6 routes of given address or prefix + + <h:h:h:h:h:h:h:h> <h:h:h:h:h:h:h:h/x> + + + + + + Show longer prefixes of routes for given address or prefix + + vtysh -c "show ipv6 route $4 longer-prefixes" + + + vtysh -c "show ipv6 route $4" + + + + Show IPv6 routes + + vtysh -c "show ipv6 route" + + + + Show IPv6 BGP routes + + vtysh -c "show ipv6 route bgp" + + + + Show IPv6 connected routes + + vtysh -c "show ipv6 route connected" + + + + Show IPv6 IS-IS routes + + vtysh -c "show ipv6 route isis" + + + + Show IPv6 Kernel routes + + vtysh -c "show ipv6 route kernel" + + + + Show IPv6 OSPF routes + + vtysh -c "show ipv6 route ospf6" + + + + Show IPv6 RIPNG routes + + vtysh -c "show ipv6 route ripng" + + + + Show IPv6 static routes + + vtysh -c "show ipv6 route static" + + + + Show IPv6 routes summary + + vtysh -c "show ipv6 route summary" + + + + Show IPv6 routes in policy tables + + vtysh -c "show ipv6 route table all" + + + + Show IPv6 routes in specific policy table + + protocols static table + + + vtysh -c "show ipv6 route table $5" + + + + Show IPv6 routes in VRFs + + vtysh -c "show ipv6 route vrf all" + + + + Show IPv6 routes in specific VRF + + vrf name + + + vtysh -c "show ipv6 route vrf $5" + + + + + + + + diff --git a/op-mode-definitions/show-ipv6.xml b/op-mode-definitions/show-ipv6.xml index 357e4e979..a59c8df0c 100644 --- a/op-mode-definitions/show-ipv6.xml +++ b/op-mode-definitions/show-ipv6.xml @@ -22,195 +22,6 @@ vtysh -c "show ipv6 access-list $4" - - - 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 - - <h:h:h:h:h:h:h:h> <h:h:h:h:h:h:h:h/x> - - - vtysh -c "show bgp ipv6 $4" - - - - Show route and more specific routes - - <h:h:h:h:h:h:h:h> <h:h:h:h:h:h:h:h/x> - - - vtysh -c "show bgp ipv6 $4 longer-prefixes" - - - Show IPv6 forwarding status @@ -231,187 +42,6 @@ - - - Show IPv6 prefix-lists - - vtysh -c "show ipv6 prefix-list" - - - - Show detail of IPv6 prefix-lists - - vtysh -c "show ipv6 prefix-list detail" - - - - Show detail of specified IPv6 prefix-list - - vtysh -c "show ipv6 prefix-list detail $5" - - - - Show summary of IPv6 prefix-lists - - vtysh -c "show ipv6 prefix-list summary" - - - - Show summary of specified IPv6 prefix-list - - vtysh -c "show ipv6 prefix-list summary $5" - - - - - - Show specified IPv6 prefix-list - - WORD - - - vtysh -c "show ipv6 prefix-list $4" - - - - Show select prefix of specified IPv6 prefix-list - - <h:h:h:h:h:h:h:h/x> - - - vtysh -c "show ipv6 prefix-list $4 $5" - - - - Show first-match from select prefix of named IPv6 prefix-list - - vtysh -c "show ipv6 prefix-list $4 $5 first-match" - - - - Show longer match of select prefix from named IPv6 prefix-list - - vtysh -c "show ipv6 prefix-list $4 $5 longer" - - - - - - Show specified sequence from specified IPv6 prefix-list - - vtysh -c "show ipv6 prefix-list $4 seq" - - - - Show specified sequence from specified IPv6 prefix-list - - vtysh -c "show ipv6 prefix-list $4 seq $6" - - - - - - Show IPv6 routes of given address or prefix - - <h:h:h:h:h:h:h:h> <h:h:h:h:h:h:h:h/x> - - - - - - Show longer prefixes of routes for given address or prefix - - vtysh -c "show ipv6 route $4 longer-prefixes" - - - vtysh -c "show ipv6 route $4" - - - - Show IPv6 routes - - vtysh -c "show ipv6 route" - - - - Show IPv6 BGP routes - - vtysh -c "show ipv6 route bgp" - - - - Show IPv6 connected routes - - vtysh -c "show ipv6 route connected" - - - - Show IPv6 IS-IS routes - - vtysh -c "show ipv6 route isis" - - - - Show IPv6 Kernel routes - - vtysh -c "show ipv6 route kernel" - - - - Show IPv6 OSPF routes - - vtysh -c "show ipv6 route ospf6" - - - - Show IPv6 RIPNG routes - - vtysh -c "show ipv6 route ripng" - - - - Show IPv6 static routes - - vtysh -c "show ipv6 route static" - - - - Show IPv6 routes summary - - vtysh -c "show ipv6 route summary" - - - - Show IPv6 routes in policy tables - - vtysh -c "show ipv6 route table all" - - - - Show IPv6 routes in specific policy table - - protocols static table - - - vtysh -c "show ipv6 route table $5" - - - - Show IPv6 routes in VRFs - - vtysh -c "show ipv6 route vrf all" - - - - Show IPv6 routes in specific VRF - - vrf name - - - vtysh -c "show ipv6 route vrf $5" - - - -- cgit v1.2.3