From e7dd8c17d527aeb31b93b966c59a311f7506b906 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Mon, 4 Jan 2021 16:46:58 +0100 Subject: smoketest: bgp: enable description test --- smoketest/scripts/cli/test_protocols_bgp.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/smoketest/scripts/cli/test_protocols_bgp.py b/smoketest/scripts/cli/test_protocols_bgp.py index 941d7828f..984419e76 100755 --- a/smoketest/scripts/cli/test_protocols_bgp.py +++ b/smoketest/scripts/cli/test_protocols_bgp.py @@ -44,8 +44,7 @@ neighbor_config = { 'cap_strict' : '', }, '192.0.2.3' : { -# XXX: not available in current Perl backend -# 'description' : 'foo bar baz', + 'description' : 'foo bar baz', 'remote_as' : '200', 'passive' : '', 'multi_hop' : '5', -- cgit v1.2.3 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 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 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 From 939546c4213d3123babf54133698266688fd8c9f Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Mon, 4 Jan 2021 17:58:35 +0000 Subject: mirror: T3089: bugfix is_mirror_intf code path --- python/vyos/ifconfig/interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/vyos/ifconfig/interface.py b/python/vyos/ifconfig/interface.py index 163ab2f6a..35a964110 100644 --- a/python/vyos/ifconfig/interface.py +++ b/python/vyos/ifconfig/interface.py @@ -1019,7 +1019,7 @@ class Interface(Control): if 'is_mirror_intf' in self._config: source_if = next(iter(self._config['is_mirror_intf'])) - config = self._config['is_mirror_intf'][source_if] + config = self._config['is_mirror_intf'][source_if].get('mirror', None) # Remove existing mirroring rules delete_tc_cmd = f'tc qdisc del dev {source_if} handle ffff: ingress; ' -- cgit v1.2.3 From 7efa32fdf3b188f0bf302253a4721a0331ddef97 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Mon, 4 Jan 2021 20:42:31 +0100 Subject: op-mode: T3178: add part 1 of "show ipv6 ospfv3 database" commands --- op-mode-definitions/show-ipv6-ospfv3.xml | 455 +++++++++++++++++++++++++++++++ 1 file changed, 455 insertions(+) diff --git a/op-mode-definitions/show-ipv6-ospfv3.xml b/op-mode-definitions/show-ipv6-ospfv3.xml index 2b48067ec..36bb5b40e 100644 --- a/op-mode-definitions/show-ipv6-ospfv3.xml +++ b/op-mode-definitions/show-ipv6-ospfv3.xml @@ -62,6 +62,461 @@ vtysh -c "show ipv6 ospf6 border-routers $5" + + + Show OSPFv3 Link state database information + + vtysh -c "show ipv6 ospf6 database" + + + + Search by Advertising Router ID + + <x.x.x.x> + + + + + + Search by Link state ID + + <x.x.x.x> + + + + + + Show details of LSAs + + vtysh -c "show ipv6 ospf6 database adv-router $6 linkstate-id $8 detail" + + + + Show dump of LSAs + + vtysh -c "show ipv6 ospf6 database adv-router $6 linkstate-id $8 dump" + + + + Show LSAs internal information + + vtysh -c "show ipv6 ospf6 database adv-router $6 linkstate-id $8 internal" + + + + + + + + Search by Any Link state Type + + + + + Search by Link state ID + + <x.x.x.x> + + + + + + Show details of LSAs + + vtysh -c "show ipv6 ospf6 database * * $7 detail" + + + + Show dump of LSAs + + vtysh -c "show ipv6 ospf6 database * * $7 dump" + + + + Show LSAs internal information + + vtysh -c "show ipv6 ospf6 database * * $7 internal" + + + + + + + + Search by Link state ID + + <x.x.x.x> + + + vtysh -c "show ipv6 ospf6 database * $6" + + + + Show details of LSAs + + vtysh -c "show ipv6 ospf6 database * $6 detail" + + + + Show dump of LSAs + + vtysh -c "show ipv6 ospf6 database * $6 dump" + + + + Show LSAs internal information + + vtysh -c "show ipv6 ospf6 database * $6 internal" + + + + Search by Advertising Router ID + + <x.x.x.x> + + + vtysh -c "show ipv6 ospf6 database * $6 $7" + + + + Show details of LSAs + + vtysh -c "show ipv6 ospf6 database * $6 $7 detail" + + + + Show dump of LSAs + + vtysh -c "show ipv6 ospf6 database * $6 $7 dump" + + + + Show LSAs internal information + + vtysh -c "show ipv6 ospf6 database * $6 $7 internal" + + + + + + + + + + + + + Show AS-External LSAs + + vtysh -c "show ipv6 ospf6 database as-external" + + + + Search by Advertising Router ID + + <x.x.x.x> + + + + + + Search by Link state ID + + <x.x.x.x> + + + + + + Show dump of LSAs + + vtysh -c "show ipv6 ospf6 database as-external adv-router $7 linkstate-id $9 dump" + + + + Show LSAs internal information + + vtysh -c "show ipv6 ospf6 database as-external adv-router $7 linkstate-id $9 internal" + + + + + + + + Search by Advertising Router ID + + <x.x.x.x> + + + vtysh -c "show ipv6 ospf6 database as-external * $7" + + + + Show details of LSAs + + vtysh -c "show ipv6 ospf6 database as-external * $7 detail" + + + + Show dump of LSAs + + vtysh -c "show ipv6 ospf6 database as-external * $7 dump" + + + + Show LSAs internal information + + vtysh -c "show ipv6 ospf6 database as-external * $7 internal" + + + + + + Show details of LSAs + + vtysh -c "show ipv6 ospf6 database as-external detail" + + + + Show dump of LSAs + + vtysh -c "show ipv6 ospf6 database as-external dump" + + + + Show LSAs internal information + + vtysh -c "show ipv6 ospf6 database as-external internal" + + + + Search by Link state ID + + <x.x.x.x> + + + + + + Show details of LSAs + + vtysh -c "show ipv6 ospf6 database as-external linkstate-id $7 detail" + + + + Show dump of LSAs + + vtysh -c "show ipv6 ospf6 database as-external linkstate-id $7 dump" + + + + Show LSAs internal information + + vtysh -c "show ipv6 ospf6 database as-external linkstate-id $7 internal" + + + + + + Show Self-originated LSAs + + vtysh -c "show ipv6 ospf6 database as-external self-originated" + + + + Show details of LSAs + + vtysh -c "show ipv6 ospf6 database as-external self-originated detail" + + + + Show dump of LSAs + + vtysh -c "show ipv6 ospf6 database as-external self-originated dump" + + + + Show LSAs internal information + + vtysh -c "show ipv6 ospf6 database as-external self-originated internal" + + + + Search by Link state ID + + <x.x.x.x> + + + + + + Show details of LSAs + + vtysh -c "show ipv6 ospf6 database as-external self-originated linkstate-id $8 detail" + + + + Show dump of LSAs + + vtysh -c "show ipv6 ospf6 database as-external self-originated linkstate-id $8 dump" + + + + Show LSAs internal information + + vtysh -c "show ipv6 ospf6 database as-external self-originated linkstate-id $8 internal" + + + + + + + + + + Search by Advertising Router IDs + + <x.x.x.x> + + + + + + Show details of LSAs + + vtysh -c "show ipv6 ospf6 database as-external $6 detail" + + + + Show dump of LSAs + + vtysh -c "show ipv6 ospf6 database as-external $6 dump" + + + + Show LSAs internal information + + vtysh -c "show ipv6 ospf6 database as-external $6 internal" + + + + Show Self-originated LSAs + + vtysh -c "show ipv6 ospf6 database as-external $6 self-originated" + + + + Show details of LSAs + + vtysh -c "show ipv6 ospf6 database as-external $6 self-originated detail" + + + + Show dump of LSAs + + vtysh -c "show ipv6 ospf6 database as-external $6 self-originated dump" + + + + Show LSAs internal information + + vtysh -c "show ipv6 ospf6 database as-external $6 self-originated internal" + + + + + + Search by Advertising Router ID + + <x.x.x.x> + + + + + + Show dump of LSAs + + echo vtysh -c "show ipv6 ospf6 database as-external $6 $7 dump" + + + + Show LSAs internal information + + echo vtysh -c "show ipv6 ospf6 database as-external $6 $7 internal" + + + + + + + + Show details of LSAs + + vtysh -c "show ipv6 ospf6 database detail" + + + + Show dump of LSAs + + vtysh -c "show ipv6 ospf6 database dump" + + + + Search by Link state ID + + <x.x.x.x> + + + + + + Show details of LSAs + + vtysh -c "show ipv6 ospf6 database linkstate-id $6 detail" + + + + Show dump of LSAs + + vtysh -c "show ipv6 ospf6 database linkstate-id $6 dump" + + + + Show LSAs internal information + + vtysh -c "show ipv6 ospf6 database linkstate-id $6 internal" + + + + + + Show Self-originated LSAs + + vtysh -c "show ipv6 ospf6 database self-originated" + + + + Show details of LSAs + + vtysh -c "show ipv6 ospf6 database self-originated detail" + + + + Show dump of LSAs + + vtysh -c "show ipv6 ospf6 database self-originated dump" + + + + Show LSAs internal information + + vtysh -c "show ipv6 ospf6 database self-originated internal" + + + + + Show OSPFv3 interface information -- cgit v1.2.3 From 83ae420601e255497c7b849ecefcac96648fced8 Mon Sep 17 00:00:00 2001 From: sever-sever Date: Tue, 5 Jan 2021 11:54:10 +0000 Subject: vpn-op-mode: T2639: Sorting vpn ipsec sa --- src/op_mode/show_ipsec_sa.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/op_mode/show_ipsec_sa.py b/src/op_mode/show_ipsec_sa.py index e319cc38d..b7927fcc2 100755 --- a/src/op_mode/show_ipsec_sa.py +++ b/src/op_mode/show_ipsec_sa.py @@ -107,5 +107,6 @@ for sa in sas: sa_data.append(data) headers = ["Connection", "State", "Uptime", "Bytes In/Out", "Packets In/Out", "Remote address", "Remote ID", "Proposal"] +sa_data = sorted(sa_data, key=lambda peer: peer[0]) output = tabulate.tabulate(sa_data, headers) print(output) -- cgit v1.2.3