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 (limited to 'op-mode-definitions') 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 From bde8afbe567b2edd4bdd18a768ac23558d3c5700 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Mon, 4 Jan 2021 18:35:59 +0100 Subject: op-mode: T3178: add basic "show ipv6 ospfv3" commands - show ipv6 ospfv3 area - show ipv6 ospfv3 border-routers - show ipv6 ospfv3 interface - show ipv6 ospfv3 linkstate - show ipv6 ospfv3 neighbor - show ipv6 ospfv3 redistribute - show ipv6 ospfv3 route --- Makefile | 12 +- op-mode-definitions/show-ipv6-ospfv3.xml | 322 +++++++++++++++++++++++++++++++ 2 files changed, 328 insertions(+), 6 deletions(-) create mode 100644 op-mode-definitions/show-ipv6-ospfv3.xml (limited to 'op-mode-definitions') diff --git a/Makefile b/Makefile index 9c99b37cc..588595e42 100644 --- a/Makefile +++ b/Makefile @@ -69,17 +69,17 @@ op_mode_definitions: # XXX: delete top level op mode node.def's that now live in other packages rm -f $(OP_TMPL_DIR)/add/node.def - rm -f $(OP_TMPL_DIR)/clear/node.def rm -f $(OP_TMPL_DIR)/clear/interfaces/node.def + rm -f $(OP_TMPL_DIR)/clear/node.def + rm -f $(OP_TMPL_DIR)/delete/node.def + rm -f $(OP_TMPL_DIR)/generate/node.def + rm -f $(OP_TMPL_DIR)/monitor/node.def + rm -f $(OP_TMPL_DIR)/reset/vpn/node.def 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)/monitor/node.def - rm -f $(OP_TMPL_DIR)/generate/node.def + rm -f $(OP_TMPL_DIR)/show/node.def rm -f $(OP_TMPL_DIR)/show/system/node.def rm -f $(OP_TMPL_DIR)/show/vpn/node.def - rm -f $(OP_TMPL_DIR)/delete/node.def - rm -f $(OP_TMPL_DIR)/reset/vpn/node.def # XXX: ping must be able to recursivly call itself as the # options are provided from the script itself diff --git a/op-mode-definitions/show-ipv6-ospfv3.xml b/op-mode-definitions/show-ipv6-ospfv3.xml new file mode 100644 index 000000000..2b48067ec --- /dev/null +++ b/op-mode-definitions/show-ipv6-ospfv3.xml @@ -0,0 +1,322 @@ + + + + + + + Show IPv6 routing information + + + + + Show IPv6 Open Shortest Path First (OSPF) + + vtysh -c "show ipv6 ospf6" + + + + Show Shortest Path First tree information + + vtysh -c "show ipv6 ospf6 spf tree" + + + + Area ID (as an IPv4 notation) + + protocols ospfv3 area + + + vtysh -c "show ipv6 ospf6 area $4 spf tree" + + + + Simulate view point (Router ID) + + <x.x.x.x> + + + vtysh -c "show ipv6 ospf6 simulate spf-tree $7 $4 $5" + + + + + + Show OSPFv3 border-router (ABR and ASBR) information + + vtysh -c "show ipv6 ospf6 border-routers" + + + + Show OSPFv3 detailed border-router information + + vtysh -c "show ipv6 ospf6 border-routers detail" + + + + + + Border router ID + + <x.x.x.x> + + + vtysh -c "show ipv6 ospf6 border-routers $5" + + + + Show OSPFv3 interface information + + vtysh -c "show ipv6 ospf6 interface" + + + + Show connected prefixes to advertise + + vtysh -c "show ipv6 ospf6 interface prefix" + + + + More detailed interface prefix information + + vtysh -c "show ipv6 ospf6 interface prefix detail" + + + + + + Show interface prefix route specific information + + <h:h:h:h:h:h:h:h> <h:h:h:h:h:h:h:h/x> + + + vtysh -c "show ipv6 ospf6 interface prefix $6" + + + + More detailed information + + vtysh -c "show ipv6 ospf6 interface prefix $6 detail" + + + + Matched interface prefix information + + vtysh -c "show ipv6 ospf6 interface prefix $6 match" + + + + + + + + Specific insterface to examine + + + + + vtysh -c "show ipv6 ospf6 interface $5" + + + + Show connected prefixes to advertise + + vtysh -c "show ipv6 ospf6 interface $5 prefix" + + + + More detailed interface prefix information + + vtysh -c "show ipv6 ospf6 interface $5 prefix detail" + + + + + + Show interface prefix route specific information + + <h:h:h:h:h:h:h:h> <h:h:h:h:h:h:h:h/x> + + + vtysh -c "show ipv6 ospf6 interface $5 prefix $7" + + + + More detailed information + + vtysh -c "show ipv6 ospf6 interface $5 prefix $7 detail" + + + + Matched interface prefix information + + vtysh -c "show ipv6 ospf6 interface $5 prefix $7 match" + + + + + + + + Show OSPFv3 linkstate routing information + + + + + Show detailed linkstate information + + vtysh -c "show ipv6 ospf6 linkstate detail" + + + + Show linkstate Network information + + vtysh -c "show ipv6 ospf6 linkstate network" + + + + Show linkstate Router information + + vtysh -c "show ipv6 ospf6 linkstate router" + + + + + + Show OSPFv3 neighbor information + + vtysh -c "show ipv6 ospf6 neighbor" + + + + Show detailed neighbor information + + vtysh -c "show ipv6 ospf6 neighbor detail" + + + + Show neighbor DR choice information + + vtysh -c "show ipv6 ospf6 neighbor drchoice" + + + + + + Show OSPFv3 redistribute external information + + vtysh -c "show ipv6 ospf6 redistribute" + + + + Show OSPFv3 routing table information + + vtysh -c "show ipv6 ospf6 route" + + + + Show Type-1 External route information + + vtysh -c "show ipv6 ospf6 route external-1" + + + + Show detailed Type-1 External route information + + vtysh -c "show ipv6 ospf6 route external-1 detail" + + + + + + Show Type-2 External route information + + vtysh -c "show ipv6 ospf6 route external-2" + + + + Show detailed Type-2 External route information + + vtysh -c "show ipv6 ospf6 route external-2 detail" + + + + + + Show Inter-Area route information + + vtysh -c "show ipv6 ospf6 route inter-area" + + + + Show detailed Inter-Area route information + + vtysh -c "show ipv6 ospf6 route inter-area detail" + + + + + + Show Intra-Area route information + + vtysh -c "show ipv6 ospf6 route intra-area" + + + + Show detailed Intra-Area route information + + vtysh -c "show ipv6 ospf6 route intra-area detail" + + + + + + Show detailed route information + + vtysh -c "show ipv6 ospf6 route detail" + + + + Show route table summary + + vtysh -c "show ipv6 ospf6 route summary" + + + + + + Show specified route/prefix information + + <h:h:h:h:h:h:h:h> <h:h:h:h:h:h:h:h/x> + + + vtysh -c "show ipv6 ospf6 route $5" + + + + Show routes longer than specified prefix + + vtysh -c "show ipv6 ospf6 route $5 longer" + + + + Show routes matching specified prefix + + vtysh -c "show ipv6 ospf6 route $5 match" + + + + Detailed information + + vtysh -c "show ipv6 ospf6 route $5 match detail" + + + + + + + + + + + + -- cgit v1.2.3