diff options
author | Daniil Baturin <daniil@vyos.io> | 2021-01-05 15:51:51 +0200 |
---|---|---|
committer | Daniil Baturin <daniil@vyos.io> | 2021-01-05 15:51:51 +0200 |
commit | ce3b0de1ab7bc026ecf66a9966ec59473fea53f7 (patch) | |
tree | ce83bceeb52e498030d4061251d64b6a6981eb6c | |
parent | 9c93220286674fc590f8674506ec9adaae388652 (diff) | |
parent | c1423c71feae84a063f1674ed34d5981e685d6eb (diff) | |
download | vyos-1x-ce3b0de1ab7bc026ecf66a9966ec59473fea53f7.tar.gz vyos-1x-ce3b0de1ab7bc026ecf66a9966ec59473fea53f7.zip |
Merge branch 'current' into equuleus
-rw-r--r-- | Makefile | 12 | ||||
-rw-r--r-- | op-mode-definitions/show-ipv6-bgp.xml | 203 | ||||
-rw-r--r-- | op-mode-definitions/show-ipv6-ospfv3.xml | 777 | ||||
-rw-r--r-- | op-mode-definitions/show-ipv6-prefix-list.xml | 92 | ||||
-rw-r--r-- | op-mode-definitions/show-ipv6-route.xml | 117 | ||||
-rw-r--r-- | op-mode-definitions/show-ipv6.xml | 370 | ||||
-rw-r--r-- | python/vyos/ifconfig/interface.py | 2 | ||||
-rwxr-xr-x | smoketest/scripts/cli/test_protocols_bgp.py | 3 | ||||
-rwxr-xr-x | src/op_mode/show_ipsec_sa.py | 1 |
9 files changed, 1198 insertions, 379 deletions
@@ -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-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 @@ +<?xml version="1.0"?> +<interfaceDefinition> + <node name="show"> + <children> + <node name="ipv6"> + <properties> + <help>Show IPv6 routing information</help> + </properties> + <children> + <node name="bgp"> + <properties> + <help>Show Border Gateway Protocol (BGP) information</help> + </properties> + <command>vtysh -c "show bgp ipv6"</command> + <children> + <leafNode name="summary"> + <properties> + <help>Show summary of BGP neighbor status</help> + </properties> + <command>vtysh -c "show bgp ipv6 summary"</command> + </leafNode> + <tagNode name="regexp"> + <properties> + <help>Show routes matching AS path regular expression</help> + </properties> + <command>vtysh -c "show bgp ipv6 regexp $5"</command> + </tagNode> + <tagNode name="prefix-list"> + <properties> + <help>Show routes matching the IPv6 prefix-list name</help> + <completionHelp> + <path>policy prefix-list6</path> + </completionHelp> + </properties> + <command>vtysh -c "show bgp ipv6 prefix-list $5"</command> + </tagNode> + <tagNode name="neighbors"> + <properties> + <help>Show detailed information on TCP and BGP neighbor connections for given address</help> + <completionHelp> + <script>vtysh -c "show bgp ipv6 summary" | awk '{print $1}' | grep -oE "\b([0-9a-f]{1,4}\:{0,2}){0,20}\b"</script> + </completionHelp> + </properties> + <command>vtysh -c "show bgp ipv6 neighbor $5"</command> + <children> + <leafNode name="advertised-routes"> + <properties> + <help>Show routes advertised to a BGP neighbor</help> + </properties> + <command>vtysh -c "show bgp ipv6 neighbor $5 advertised-routes"</command> + </leafNode> + <leafNode name="filtered-routes"> + <properties> + <help>Show routes filtered from a BGP neighbor</help> + </properties> + <command>vtysh -c "show bgp ipv6 neighbor $5 filtered-routes"</command> + </leafNode> + <leafNode name="dampened-routes"> + <properties> + <help>Show dampened routes received from BGP neighbor</help> + </properties> + <command>vtysh -c "show bgp ipv6 neighbor $5 dampened-routes"</command> + </leafNode> + <leafNode name="flap-statistics"> + <properties> + <help>Show flap statistics of the routes learned from BGP neighbor</help> + </properties> + <command>vtysh -c "show bgp ipv6 neighbor $5 flap-statistics"</command> + </leafNode> + <leafNode name="prefix-counts"> + <properties> + <help>Show detailed prefix count information for BGP neighbor</help> + </properties> + <command>vtysh -c "show bgp ipv6 neighbor $5 prefix-counts"</command> + </leafNode> + <node name="received"> + <properties> + <help>Show information received from BGP neighbor</help> + </properties> + <children> + <leafNode name="prefix-filter"> + <properties> + <help>Show prefixlist filter</help> + </properties> + <command>vtysh -c "show bgp ipv6 neighbor $5 received prefix-filter"</command> + </leafNode> + </children> + </node> + <leafNode name="received-routes"> + <properties> + <help>Show received routes from BGP neighbor</help> + </properties> + <command>vtysh -c "show bgp ipv6 neighbor $5 received-routes"</command> + </leafNode> + <leafNode name="routes"> + <properties> + <help>Show routes learned from BGP neighbor</help> + </properties> + <command>vtysh -c "show bgp ipv6 neighbor $5 routes"</command> + </leafNode> + </children> + </tagNode> + <tagNode name="large-community"> + <properties> + <help>Show routes matching the large-community-list number or name</help> + </properties> + <command>vtysh -c "show bgp ipv6 large-community-list $5"</command> + <children> + <node name="exact-match"> + <properties> + <help>Show routes matching the large-community-list number or name</help> + </properties> + <command>vtysh -c "show bgp ipv6 large-community-list $5 exact-match"</command> + </node> + </children> + </tagNode> + <tagNode name="large-community-list"> + <properties> + <help>Show routes matching the large-community-list number or name</help> + </properties> + <command>vtysh -c "show bgp ipv6 large-community-list $5"</command> + <children> + <node name="exact-match"> + <properties> + <help>Show routes matching the large-community-list number or name</help> + </properties> + <command>vtysh -c "show bgp ipv6 large-community-list $5 exact-match"</command> + </node> + </children> + </tagNode> + <tagNode name="filter-list"> + <properties> + <help>Show routes conforming to regular expression access list name</help> + </properties> + <command>vtysh -c "show bgp ipv6 filter-list $5"</command> + </tagNode> + <tagNode name="community"> + <properties> + <help>Show BGP information for specified community number</help> + <completionHelp> + <list><AA:NN> local-AS no-advertise no-export</list> + </completionHelp> + </properties> + <command>vtysh -c "show bgp ipv6 community $5"</command> + <children> + <node name="exact-match"> + <properties> + <help>Show routes from community that exactly matches the community number</help> + </properties> + <command>vtysh -c "show bgp ipv6 community $5 exact-match"</command> + </node> + </children> + </tagNode> + <tagNode name="community-list"> + <properties> + <help>Show routes matching the community-list number or name</help> + </properties> + <command>vtysh -c "show bgp ipv6 community-list $5"</command> + <children> + <node name="exact-match"> + <properties> + <help>Show routes exactly matching the community-list name or number</help> + </properties> + <command>vtysh -c "show bgp ipv6 community-list $5 exact-match"</command> + </node> + </children> + </tagNode> + <tagNode name="route-map"> + <properties> + <help>Show BGP routes matching the specified route map</help> + <completionHelp> + <path>policy route-map</path> + </completionHelp> + </properties> + <command>vtysh -c "show bgp ipv6 route-map $5"</command> + </tagNode> + </children> + </node> + <tagNode name="bgp"> + <properties> + <help>Show BGP information for specified IP address or prefix</help> + <completionHelp> + <list><h:h:h:h:h:h:h:h> <h:h:h:h:h:h:h:h/x></list> + </completionHelp> + </properties> + <command>vtysh -c "show bgp ipv6 $4"</command> + <children> + <node name="longer-prefixes"> + <properties> + <help>Show route and more specific routes</help> + <completionHelp> + <list><h:h:h:h:h:h:h:h> <h:h:h:h:h:h:h:h/x></list> + </completionHelp> + </properties> + <command>vtysh -c "show bgp ipv6 $4 longer-prefixes"</command> + </node> + </children> + </tagNode> + </children> + </node> + </children> + </node> +</interfaceDefinition> diff --git a/op-mode-definitions/show-ipv6-ospfv3.xml b/op-mode-definitions/show-ipv6-ospfv3.xml new file mode 100644 index 000000000..36bb5b40e --- /dev/null +++ b/op-mode-definitions/show-ipv6-ospfv3.xml @@ -0,0 +1,777 @@ +<?xml version="1.0"?> +<interfaceDefinition> + <node name="show"> + <children> + <node name="ipv6"> + <properties> + <help>Show IPv6 routing information</help> + </properties> + <children> + <node name="ospfv3"> + <properties> + <help>Show IPv6 Open Shortest Path First (OSPF)</help> + </properties> + <command>vtysh -c "show ipv6 ospf6"</command> + <children> + <node name="area"> + <properties> + <help>Show Shortest Path First tree information</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 spf tree"</command> + </node> + <tagNode name="area"> + <properties> + <help>Area ID (as an IPv4 notation)</help> + <completionHelp> + <path>protocols ospfv3 area</path> + </completionHelp> + </properties> + <command>vtysh -c "show ipv6 ospf6 area $4 spf tree"</command> + <children> + <tagNode name="router"> + <properties> + <help> Simulate view point (Router ID)</help> + <completionHelp> + <list><x.x.x.x></list> + </completionHelp> + </properties> + <command>vtysh -c "show ipv6 ospf6 simulate spf-tree $7 $4 $5"</command> + </tagNode> + </children> + </tagNode> + <node name="border-routers"> + <properties> + <help>Show OSPFv3 border-router (ABR and ASBR) information</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 border-routers"</command> + <children> + <node name="detail"> + <properties> + <help>Show OSPFv3 detailed border-router information</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 border-routers detail"</command> + </node> + </children> + </node> + <tagNode name="border-routers"> + <properties> + <help>Border router ID</help> + <completionHelp> + <list><x.x.x.x></list> + </completionHelp> + </properties> + <command>vtysh -c "show ipv6 ospf6 border-routers $5"</command> + </tagNode> + <node name="database"> + <properties> + <help>Show OSPFv3 Link state database information</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database"</command> + <children> + <tagNode name="adv-router"> + <properties> + <help>Search by Advertising Router ID</help> + <completionHelp> + <list><x.x.x.x></list> + </completionHelp> + </properties> + <children> + <tagNode name="linkstate-id"> + <properties> + <help>Search by Link state ID</help> + <completionHelp> + <list><x.x.x.x></list> + </completionHelp> + </properties> + <children> + <node name="detail"> + <properties> + <help>Show details of LSAs</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database adv-router $6 linkstate-id $8 detail"</command> + </node> + <node name="dump"> + <properties> + <help>Show dump of LSAs</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database adv-router $6 linkstate-id $8 dump"</command> + </node> + <node name="internal"> + <properties> + <help>Show LSAs internal information</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database adv-router $6 linkstate-id $8 internal"</command> + </node> + </children> + </tagNode> + </children> + </tagNode> + <node name="any"> + <properties> + <help>Search by Any Link state Type</help> + </properties> + <children> + <tagNode name="any"> + <properties> + <help>Search by Link state ID</help> + <completionHelp> + <list><x.x.x.x></list> + </completionHelp> + </properties> + <children> + <node name="detail"> + <properties> + <help>Show details of LSAs</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database * * $7 detail"</command> + </node> + <node name="dump"> + <properties> + <help>Show dump of LSAs</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database * * $7 dump"</command> + </node> + <node name="internal"> + <properties> + <help>Show LSAs internal information</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database * * $7 internal"</command> + </node> + </children> + </tagNode> + </children> + </node> + <tagNode name="any"> + <properties> + <help>Search by Link state ID</help> + <completionHelp> + <list><x.x.x.x></list> + </completionHelp> + </properties> + <command>vtysh -c "show ipv6 ospf6 database * $6"</command> + <children> + <node name="detail"> + <properties> + <help>Show details of LSAs</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database * $6 detail"</command> + </node> + <node name="dump"> + <properties> + <help>Show dump of LSAs</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database * $6 dump"</command> + </node> + <node name="internal"> + <properties> + <help>Show LSAs internal information</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database * $6 internal"</command> + </node> + <node name="node.tag"> + <properties> + <help>Search by Advertising Router ID</help> + <completionHelp> + <list><x.x.x.x></list> + </completionHelp> + </properties> + <command>vtysh -c "show ipv6 ospf6 database * $6 $7"</command> + <children> + <node name="detail"> + <properties> + <help>Show details of LSAs</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database * $6 $7 detail"</command> + </node> + <node name="dump"> + <properties> + <help>Show dump of LSAs</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database * $6 $7 dump"</command> + </node> + <node name="internal"> + <properties> + <help>Show LSAs internal information</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database * $6 $7 internal"</command> + </node> + </children> + </node> + </children> + </tagNode> + + + + + + <node name="as-external"> + <properties> + <help>Show AS-External LSAs</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database as-external"</command> + <children> + <tagNode name="adv-router"> + <properties> + <help>Search by Advertising Router ID</help> + <completionHelp> + <list><x.x.x.x></list> + </completionHelp> + </properties> + <children> + <tagNode name="linkstate-id"> + <properties> + <help>Search by Link state ID</help> + <completionHelp> + <list><x.x.x.x></list> + </completionHelp> + </properties> + <children> + <node name="dump"> + <properties> + <help>Show dump of LSAs</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database as-external adv-router $7 linkstate-id $9 dump"</command> + </node> + <node name="internal"> + <properties> + <help>Show LSAs internal information</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database as-external adv-router $7 linkstate-id $9 internal"</command> + </node> + </children> + </tagNode> + </children> + </tagNode> + <tagNode name="any"> + <properties> + <help>Search by Advertising Router ID</help> + <completionHelp> + <list><x.x.x.x></list> + </completionHelp> + </properties> + <command>vtysh -c "show ipv6 ospf6 database as-external * $7"</command> + <children> + <node name="detail"> + <properties> + <help>Show details of LSAs</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database as-external * $7 detail"</command> + </node> + <node name="dump"> + <properties> + <help>Show dump of LSAs</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database as-external * $7 dump"</command> + </node> + <node name="internal"> + <properties> + <help>Show LSAs internal information</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database as-external * $7 internal"</command> + </node> + </children> + </tagNode> + <node name="detail"> + <properties> + <help>Show details of LSAs</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database as-external detail"</command> + </node> + <node name="dump"> + <properties> + <help>Show dump of LSAs</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database as-external dump"</command> + </node> + <node name="internal"> + <properties> + <help>Show LSAs internal information</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database as-external internal"</command> + </node> + <tagNode name="linkstate-id"> + <properties> + <help>Search by Link state ID</help> + <completionHelp> + <list><x.x.x.x></list> + </completionHelp> + </properties> + <children> + <node name="detail"> + <properties> + <help>Show details of LSAs</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database as-external linkstate-id $7 detail"</command> + </node> + <node name="dump"> + <properties> + <help>Show dump of LSAs</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database as-external linkstate-id $7 dump"</command> + </node> + <node name="internal"> + <properties> + <help>Show LSAs internal information</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database as-external linkstate-id $7 internal"</command> + </node> + </children> + </tagNode> + <node name="self-originated"> + <properties> + <help>Show Self-originated LSAs</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database as-external self-originated"</command> + <children> + <node name="detail"> + <properties> + <help>Show details of LSAs</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database as-external self-originated detail"</command> + </node> + <node name="dump"> + <properties> + <help>Show dump of LSAs</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database as-external self-originated dump"</command> + </node> + <node name="internal"> + <properties> + <help>Show LSAs internal information</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database as-external self-originated internal"</command> + </node> + <tagNode name="linkstate-id"> + <properties> + <help>Search by Link state ID</help> + <completionHelp> + <list><x.x.x.x></list> + </completionHelp> + </properties> + <children> + <node name="detail"> + <properties> + <help>Show details of LSAs</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database as-external self-originated linkstate-id $8 detail"</command> + </node> + <node name="dump"> + <properties> + <help>Show dump of LSAs</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database as-external self-originated linkstate-id $8 dump"</command> + </node> + <node name="internal"> + <properties> + <help>Show LSAs internal information</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database as-external self-originated linkstate-id $8 internal"</command> + </node> + </children> + </tagNode> + </children> + </node> + </children> + </node> + <tagNode name="as-external"> + <properties> + <help>Search by Advertising Router IDs</help> + <completionHelp> + <list><x.x.x.x></list> + </completionHelp> + </properties> + <children> + <node name="detail"> + <properties> + <help>Show details of LSAs</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database as-external $6 detail"</command> + </node> + <node name="dump"> + <properties> + <help>Show dump of LSAs</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database as-external $6 dump"</command> + </node> + <node name="internal"> + <properties> + <help>Show LSAs internal information</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database as-external $6 internal"</command> + </node> + <node name="self-originated"> + <properties> + <help>Show Self-originated LSAs</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database as-external $6 self-originated"</command> + <children> + <node name="detail"> + <properties> + <help>Show details of LSAs</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database as-external $6 self-originated detail"</command> + </node> + <node name="dump"> + <properties> + <help>Show dump of LSAs</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database as-external $6 self-originated dump"</command> + </node> + <node name="internal"> + <properties> + <help>Show LSAs internal information</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database as-external $6 self-originated internal"</command> + </node> + </children> + </node> + <node name="node.tag"> + <properties> + <help>Search by Advertising Router ID</help> + <completionHelp> + <list><x.x.x.x></list> + </completionHelp> + </properties> + <children> + <node name="dump"> + <properties> + <help>Show dump of LSAs</help> + </properties> + <command>echo vtysh -c "show ipv6 ospf6 database as-external $6 $7 dump"</command> + </node> + <node name="internal"> + <properties> + <help>Show LSAs internal information</help> + </properties> + <command>echo vtysh -c "show ipv6 ospf6 database as-external $6 $7 internal"</command> + </node> + </children> + </node> + </children> + </tagNode> + <node name="detail"> + <properties> + <help>Show details of LSAs</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database detail"</command> + </node> + <node name="dump"> + <properties> + <help>Show dump of LSAs</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database dump"</command> + </node> + <tagNode name="linkstate-id"> + <properties> + <help>Search by Link state ID</help> + <completionHelp> + <list><x.x.x.x></list> + </completionHelp> + </properties> + <children> + <node name="detail"> + <properties> + <help>Show details of LSAs</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database linkstate-id $6 detail"</command> + </node> + <node name="dump"> + <properties> + <help>Show dump of LSAs</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database linkstate-id $6 dump"</command> + </node> + <node name="internal"> + <properties> + <help>Show LSAs internal information</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database linkstate-id $6 internal"</command> + </node> + </children> + </tagNode> + <node name="self-originated"> + <properties> + <help>Show Self-originated LSAs</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database self-originated"</command> + <children> + <node name="detail"> + <properties> + <help>Show details of LSAs</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database self-originated detail"</command> + </node> + <node name="dump"> + <properties> + <help>Show dump of LSAs</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database self-originated dump"</command> + </node> + <node name="internal"> + <properties> + <help>Show LSAs internal information</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 database self-originated internal"</command> + </node> + </children> + </node> + </children> + </node> + <node name="interface"> + <properties> + <help>Show OSPFv3 interface information</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 interface"</command> + <children> + <node name="prefix"> + <properties> + <help>Show connected prefixes to advertise</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 interface prefix"</command> + <children> + <node name="detail"> + <properties> + <help>More detailed interface prefix information</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 interface prefix detail"</command> + </node> + </children> + </node> + <tagNode name="prefix"> + <properties> + <help>Show interface prefix route specific information</help> + <completionHelp> + <list><h:h:h:h:h:h:h:h> <h:h:h:h:h:h:h:h/x></list> + </completionHelp> + </properties> + <command>vtysh -c "show ipv6 ospf6 interface prefix $6"</command> + <children> + <node name="detail"> + <properties> + <help>More detailed information</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 interface prefix $6 detail"</command> + </node> + <node name="match"> + <properties> + <help>Matched interface prefix information</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 interface prefix $6 match"</command> + </node> + </children> + </tagNode> + </children> + </node> + <tagNode name="interface"> + <properties> + <help>Specific insterface to examine</help> + <completionHelp> + <script>${vyos_completion_dir}/list_interfaces.py</script> + </completionHelp> + </properties> + <command>vtysh -c "show ipv6 ospf6 interface $5"</command> + <children> + <node name="prefix"> + <properties> + <help>Show connected prefixes to advertise</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 interface $5 prefix"</command> + <children> + <node name="detail"> + <properties> + <help>More detailed interface prefix information</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 interface $5 prefix detail"</command> + </node> + </children> + </node> + <tagNode name="prefix"> + <properties> + <help>Show interface prefix route specific information</help> + <completionHelp> + <list><h:h:h:h:h:h:h:h> <h:h:h:h:h:h:h:h/x></list> + </completionHelp> + </properties> + <command>vtysh -c "show ipv6 ospf6 interface $5 prefix $7"</command> + <children> + <node name="detail"> + <properties> + <help>More detailed information</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 interface $5 prefix $7 detail"</command> + </node> + <node name="match"> + <properties> + <help>Matched interface prefix information</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 interface $5 prefix $7 match"</command> + </node> + </children> + </tagNode> + </children> + </tagNode> + <node name="linkstate"> + <properties> + <help>Show OSPFv3 linkstate routing information</help> + </properties> + <children> + <node name="detail"> + <properties> + <help>Show detailed linkstate information</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 linkstate detail"</command> + </node> + <node name="network"> + <properties> + <help>Show linkstate Network information</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 linkstate network"</command> + </node> + <node name="router"> + <properties> + <help>Show linkstate Router information</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 linkstate router"</command> + </node> + </children> + </node> + <node name="neighbor"> + <properties> + <help>Show OSPFv3 neighbor information</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 neighbor"</command> + <children> + <node name="detail"> + <properties> + <help>Show detailed neighbor information</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 neighbor detail"</command> + </node> + <node name="drchoice"> + <properties> + <help>Show neighbor DR choice information</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 neighbor drchoice"</command> + </node> + </children> + </node> + <node name="redistribute"> + <properties> + <help>Show OSPFv3 redistribute external information</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 redistribute"</command> + </node> + <node name="route"> + <properties> + <help>Show OSPFv3 routing table information</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 route"</command> + <children> + <node name="external-1"> + <properties> + <help>Show Type-1 External route information</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 route external-1"</command> + <children> + <node name="detail"> + <properties> + <help>Show detailed Type-1 External route information</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 route external-1 detail"</command> + </node> + </children> + </node> + <node name="external-2"> + <properties> + <help>Show Type-2 External route information</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 route external-2"</command> + <children> + <node name="detail"> + <properties> + <help>Show detailed Type-2 External route information</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 route external-2 detail"</command> + </node> + </children> + </node> + <node name="inter-area"> + <properties> + <help>Show Inter-Area route information</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 route inter-area"</command> + <children> + <node name="detail"> + <properties> + <help>Show detailed Inter-Area route information</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 route inter-area detail"</command> + </node> + </children> + </node> + <node name="intra-area"> + <properties> + <help>Show Intra-Area route information</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 route intra-area"</command> + <children> + <node name="detail"> + <properties> + <help>Show detailed Intra-Area route information</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 route intra-area detail"</command> + </node> + </children> + </node> + <node name="detail"> + <properties> + <help>Show detailed route information</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 route detail"</command> + </node> + <node name="summary"> + <properties> + <help>Show route table summary</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 route summary"</command> + </node> + </children> + </node> + <tagNode name="route"> + <properties> + <help>Show specified route/prefix information</help> + <completionHelp> + <list><h:h:h:h:h:h:h:h> <h:h:h:h:h:h:h:h/x></list> + </completionHelp> + </properties> + <command>vtysh -c "show ipv6 ospf6 route $5"</command> + <children> + <node name="longer"> + <properties> + <help>Show routes longer than specified prefix</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 route $5 longer"</command> + </node> + <node name="match"> + <properties> + <help>Show routes matching specified prefix</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 route $5 match"</command> + <children> + <node name="detail"> + <properties> + <help>Detailed information</help> + </properties> + <command>vtysh -c "show ipv6 ospf6 route $5 match detail"</command> + </node> + </children> + </node> + </children> + </tagNode> + </children> + </node> + </children> + </node> + </children> + </node> +</interfaceDefinition> 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 @@ +<?xml version="1.0"?> +<interfaceDefinition> + <node name="show"> + <children> + <node name="ipv6"> + <properties> + <help>Show IPv6 routing information</help> + </properties> + <children> + <node name="prefix-list"> + <properties> + <help>Show IPv6 prefix-lists</help> + </properties> + <command>vtysh -c "show ipv6 prefix-list"</command> + <children> + <node name="detail"> + <properties> + <help>Show detail of IPv6 prefix-lists</help> + </properties> + <command>vtysh -c "show ipv6 prefix-list detail"</command> + </node> + <tagNode name="detail"> + <properties> + <help>Show detail of specified IPv6 prefix-list</help> + </properties> + <command>vtysh -c "show ipv6 prefix-list detail $5"</command> + </tagNode> + <node name="summary"> + <properties> + <help>Show summary of IPv6 prefix-lists</help> + </properties> + <command>vtysh -c "show ipv6 prefix-list summary"</command> + </node> + <tagNode name="summary"> + <properties> + <help>Show summary of specified IPv6 prefix-list</help> + </properties> + <command>vtysh -c "show ipv6 prefix-list summary $5"</command> + </tagNode> + </children> + </node> + <tagNode name="prefix-list"> + <properties> + <help>Show specified IPv6 prefix-list</help> + <completionHelp> + <list>WORD</list> + </completionHelp> + </properties> + <command>vtysh -c "show ipv6 prefix-list $4"</command> + <children> + <node name="node.tag"> + <properties> + <help>Show select prefix of specified IPv6 prefix-list</help> + <completionHelp> + <list><h:h:h:h:h:h:h:h/x></list> + </completionHelp> + </properties> + <command>vtysh -c "show ipv6 prefix-list $4 $5"</command> + <children> + <node name="first-match"> + <properties> + <help>Show first-match from select prefix of named IPv6 prefix-list</help> + </properties> + <command>vtysh -c "show ipv6 prefix-list $4 $5 first-match"</command> + </node> + <node name="longer"> + <properties> + <help>Show longer match of select prefix from named IPv6 prefix-list</help> + </properties> + <command>vtysh -c "show ipv6 prefix-list $4 $5 longer"</command> + </node> + </children> + </node> + <node name="seq"> + <properties> + <help>Show specified sequence from specified IPv6 prefix-list</help> + </properties> + <command>vtysh -c "show ipv6 prefix-list $4 seq"</command> + </node> + <tagNode name="seq"> + <properties> + <help>Show specified sequence from specified IPv6 prefix-list</help> + </properties> + <command>vtysh -c "show ipv6 prefix-list $4 seq $6"</command> + </tagNode> + </children> + </tagNode> + </children> + </node> + </children> + </node> +</interfaceDefinition> 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 @@ +<?xml version="1.0"?> +<interfaceDefinition> + <node name="show"> + <children> + <node name="ipv6"> + <properties> + <help>Show IPv6 routing information</help> + </properties> + <children> + <tagNode name="route"> + <properties> + <help>Show IPv6 routes of given address or prefix</help> + <completionHelp> + <list><h:h:h:h:h:h:h:h> <h:h:h:h:h:h:h:h/x></list> + </completionHelp> + </properties> + <children> + <node name="longer-prefixes"> + <properties> + <help>Show longer prefixes of routes for given address or prefix</help> + </properties> + <command>vtysh -c "show ipv6 route $4 longer-prefixes"</command> + </node> + </children> + <command>vtysh -c "show ipv6 route $4"</command> + </tagNode> + <node name="route"> + <properties> + <help>Show IPv6 routes</help> + </properties> + <command>vtysh -c "show ipv6 route"</command> + <children> + <node name="bgp"> + <properties> + <help>Show IPv6 BGP routes</help> + </properties> + <command>vtysh -c "show ipv6 route bgp"</command> + </node> + <node name="connected"> + <properties> + <help>Show IPv6 connected routes</help> + </properties> + <command>vtysh -c "show ipv6 route connected"</command> + </node> + <node name="isis"> + <properties> + <help>Show IPv6 IS-IS routes</help> + </properties> + <command>vtysh -c "show ipv6 route isis"</command> + </node> + <node name="kernel"> + <properties> + <help>Show IPv6 Kernel routes</help> + </properties> + <command>vtysh -c "show ipv6 route kernel"</command> + </node> + <node name="ospfv3"> + <properties> + <help>Show IPv6 OSPF routes</help> + </properties> + <command>vtysh -c "show ipv6 route ospf6"</command> + </node> + <node name="ripng"> + <properties> + <help>Show IPv6 RIPNG routes</help> + </properties> + <command>vtysh -c "show ipv6 route ripng"</command> + </node> + <node name="static"> + <properties> + <help>Show IPv6 static routes</help> + </properties> + <command>vtysh -c "show ipv6 route static"</command> + </node> + <node name="summary"> + <properties> + <help>Show IPv6 routes summary</help> + </properties> + <command>vtysh -c "show ipv6 route summary"</command> + </node> + <node name="table"> + <properties> + <help>Show IPv6 routes in policy tables</help> + </properties> + <command>vtysh -c "show ipv6 route table all"</command> + </node> + <tagNode name="table"> + <properties> + <help>Show IPv6 routes in specific policy table</help> + <completionHelp> + <path>protocols static table</path> + </completionHelp> + </properties> + <command>vtysh -c "show ipv6 route table $5"</command> + </tagNode> + <node name="vrf"> + <properties> + <help>Show IPv6 routes in VRFs</help> + </properties> + <command>vtysh -c "show ipv6 route vrf all"</command> + </node> + <tagNode name="vrf"> + <properties> + <help>Show IPv6 routes in specific VRF</help> + <completionHelp> + <path>vrf name</path> + </completionHelp> + </properties> + <command>vtysh -c "show ipv6 route vrf $5"</command> + </tagNode> + </children> + </node> + </children> + </node> + </children> + </node> +</interfaceDefinition> 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 @@ </properties> <command>vtysh -c "show ipv6 access-list $4"</command> </tagNode> - <node name="bgp"> - <properties> - <help>Show Border Gateway Protocol (BGP) information</help> - </properties> - <command>vtysh -c "show bgp ipv6"</command> - <children> - <leafNode name="summary"> - <properties> - <help>Show summary of BGP neighbor status</help> - </properties> - <command>vtysh -c "show bgp ipv6 summary"</command> - </leafNode> - <tagNode name="regexp"> - <properties> - <help>Show routes matching AS path regular expression</help> - </properties> - <command>vtysh -c "show bgp ipv6 regexp $5"</command> - </tagNode> - <tagNode name="prefix-list"> - <properties> - <help>Show routes matching the IPv6 prefix-list name</help> - <completionHelp> - <path>policy prefix-list6</path> - </completionHelp> - </properties> - <command>vtysh -c "show bgp ipv6 prefix-list $5"</command> - </tagNode> - <tagNode name="neighbors"> - <properties> - <help>Show detailed information on TCP and BGP neighbor connections for given address</help> - <completionHelp> - <script>vtysh -c "show bgp ipv6 summary" | awk '{print $1}' | grep -oE "\b([0-9a-f]{1,4}\:{0,2}){0,20}\b"</script> - </completionHelp> - </properties> - <command>vtysh -c "show bgp ipv6 neighbor $5"</command> - <children> - <leafNode name="advertised-routes"> - <properties> - <help>Show routes advertised to a BGP neighbor</help> - </properties> - <command>vtysh -c "show bgp ipv6 neighbor $5 advertised-routes"</command> - </leafNode> - <leafNode name="filtered-routes"> - <properties> - <help>Show routes filtered from a BGP neighbor</help> - </properties> - <command>vtysh -c "show bgp ipv6 neighbor $5 filtered-routes"</command> - </leafNode> - <leafNode name="dampened-routes"> - <properties> - <help>Show dampened routes received from BGP neighbor</help> - </properties> - <command>vtysh -c "show bgp ipv6 neighbor $5 dampened-routes"</command> - </leafNode> - <leafNode name="flap-statistics"> - <properties> - <help>Show flap statistics of the routes learned from BGP neighbor</help> - </properties> - <command>vtysh -c "show bgp ipv6 neighbor $5 flap-statistics"</command> - </leafNode> - <leafNode name="prefix-counts"> - <properties> - <help>Show detailed prefix count information for BGP neighbor</help> - </properties> - <command>vtysh -c "show bgp ipv6 neighbor $5 prefix-counts"</command> - </leafNode> - <node name="received"> - <properties> - <help>Show information received from BGP neighbor</help> - </properties> - <children> - <leafNode name="prefix-filter"> - <properties> - <help>Show prefixlist filter</help> - </properties> - <command>vtysh -c "show bgp ipv6 neighbor $5 received prefix-filter"</command> - </leafNode> - </children> - </node> - <leafNode name="received-routes"> - <properties> - <help>Show received routes from BGP neighbor</help> - </properties> - <command>vtysh -c "show bgp ipv6 neighbor $5 received-routes"</command> - </leafNode> - <leafNode name="routes"> - <properties> - <help>Show routes learned from BGP neighbor</help> - </properties> - <command>vtysh -c "show bgp ipv6 neighbor $5 routes"</command> - </leafNode> - </children> - </tagNode> - <tagNode name="large-community"> - <properties> - <help>Show routes matching the large-community-list number or name</help> - </properties> - <command>vtysh -c "show bgp ipv6 large-community-list $5"</command> - <children> - <node name="exact-match"> - <properties> - <help>Show routes matching the large-community-list number or name</help> - </properties> - <command>vtysh -c "show bgp ipv6 large-community-list $5 exact-match"</command> - </node> - </children> - </tagNode> - <tagNode name="large-community-list"> - <properties> - <help>Show routes matching the large-community-list number or name</help> - </properties> - <command>vtysh -c "show bgp ipv6 large-community-list $5"</command> - <children> - <node name="exact-match"> - <properties> - <help>Show routes matching the large-community-list number or name</help> - </properties> - <command>vtysh -c "show bgp ipv6 large-community-list $5 exact-match"</command> - </node> - </children> - </tagNode> - <tagNode name="filter-list"> - <properties> - <help>Show routes conforming to regular expression access list name</help> - </properties> - <command>vtysh -c "show bgp ipv6 filter-list $5"</command> - </tagNode> - <tagNode name="community"> - <properties> - <help>Show BGP information for specified community number</help> - <completionHelp> - <list><AA:NN> local-AS no-advertise no-export</list> - </completionHelp> - </properties> - <command>vtysh -c "show bgp ipv6 community $5"</command> - <children> - <node name="exact-match"> - <properties> - <help>Show routes from community that exactly matches the community number</help> - </properties> - <command>vtysh -c "show bgp ipv6 community $5 exact-match"</command> - </node> - </children> - </tagNode> - <tagNode name="community-list"> - <properties> - <help>Show routes matching the community-list number or name</help> - </properties> - <command>vtysh -c "show bgp ipv6 community-list $5"</command> - <children> - <node name="exact-match"> - <properties> - <help>Show routes exactly matching the community-list name or number</help> - </properties> - <command>vtysh -c "show bgp ipv6 community-list $5 exact-match"</command> - </node> - </children> - </tagNode> - <tagNode name="route-map"> - <properties> - <help>Show BGP routes matching the specified route map</help> - <completionHelp> - <path>policy route-map</path> - </completionHelp> - </properties> - <command>vtysh -c "show bgp ipv6 route-map $5"</command> - </tagNode> - </children> - </node> - <tagNode name="bgp"> - <properties> - <help>Show BGP information for specified IP address or prefix</help> - <completionHelp> - <list><h:h:h:h:h:h:h:h> <h:h:h:h:h:h:h:h/x></list> - </completionHelp> - </properties> - <command>vtysh -c "show bgp ipv6 $4"</command> - <children> - <node name="longer-prefixes"> - <properties> - <help>Show route and more specific routes</help> - <completionHelp> - <list><h:h:h:h:h:h:h:h> <h:h:h:h:h:h:h:h/x></list> - </completionHelp> - </properties> - <command>vtysh -c "show bgp ipv6 $4 longer-prefixes"</command> - </node> - </children> - </tagNode> <node name="forwarding"> <properties> <help>Show IPv6 forwarding status</help> @@ -231,187 +42,6 @@ </node> </children> </node> - <node name="prefix-list"> - <properties> - <help>Show IPv6 prefix-lists</help> - </properties> - <command>vtysh -c "show ipv6 prefix-list"</command> - <children> - <node name="detail"> - <properties> - <help>Show detail of IPv6 prefix-lists</help> - </properties> - <command>vtysh -c "show ipv6 prefix-list detail"</command> - </node> - <tagNode name="detail"> - <properties> - <help>Show detail of specified IPv6 prefix-list</help> - </properties> - <command>vtysh -c "show ipv6 prefix-list detail $5"</command> - </tagNode> - <node name="summary"> - <properties> - <help>Show summary of IPv6 prefix-lists</help> - </properties> - <command>vtysh -c "show ipv6 prefix-list summary"</command> - </node> - <tagNode name="summary"> - <properties> - <help>Show summary of specified IPv6 prefix-list</help> - </properties> - <command>vtysh -c "show ipv6 prefix-list summary $5"</command> - </tagNode> - </children> - </node> - <tagNode name="prefix-list"> - <properties> - <help>Show specified IPv6 prefix-list</help> - <completionHelp> - <list>WORD</list> - </completionHelp> - </properties> - <command>vtysh -c "show ipv6 prefix-list $4"</command> - <children> - <node name="node.tag"> - <properties> - <help>Show select prefix of specified IPv6 prefix-list</help> - <completionHelp> - <list><h:h:h:h:h:h:h:h/x></list> - </completionHelp> - </properties> - <command>vtysh -c "show ipv6 prefix-list $4 $5"</command> - <children> - <node name="first-match"> - <properties> - <help>Show first-match from select prefix of named IPv6 prefix-list</help> - </properties> - <command>vtysh -c "show ipv6 prefix-list $4 $5 first-match"</command> - </node> - <node name="longer"> - <properties> - <help>Show longer match of select prefix from named IPv6 prefix-list</help> - </properties> - <command>vtysh -c "show ipv6 prefix-list $4 $5 longer"</command> - </node> - </children> - </node> - <node name="seq"> - <properties> - <help>Show specified sequence from specified IPv6 prefix-list</help> - </properties> - <command>vtysh -c "show ipv6 prefix-list $4 seq"</command> - </node> - <tagNode name="seq"> - <properties> - <help>Show specified sequence from specified IPv6 prefix-list</help> - </properties> - <command>vtysh -c "show ipv6 prefix-list $4 seq $6"</command> - </tagNode> - </children> - </tagNode> - <tagNode name="route"> - <properties> - <help>Show IPv6 routes of given address or prefix</help> - <completionHelp> - <list><h:h:h:h:h:h:h:h> <h:h:h:h:h:h:h:h/x></list> - </completionHelp> - </properties> - <children> - <node name="longer-prefixes"> - <properties> - <help>Show longer prefixes of routes for given address or prefix</help> - </properties> - <command>vtysh -c "show ipv6 route $4 longer-prefixes"</command> - </node> - </children> - <command>vtysh -c "show ipv6 route $4"</command> - </tagNode> - <node name="route"> - <properties> - <help>Show IPv6 routes</help> - </properties> - <command>vtysh -c "show ipv6 route"</command> - <children> - <node name="bgp"> - <properties> - <help>Show IPv6 BGP routes</help> - </properties> - <command>vtysh -c "show ipv6 route bgp"</command> - </node> - <node name="connected"> - <properties> - <help>Show IPv6 connected routes</help> - </properties> - <command>vtysh -c "show ipv6 route connected"</command> - </node> - <node name="isis"> - <properties> - <help>Show IPv6 IS-IS routes</help> - </properties> - <command>vtysh -c "show ipv6 route isis"</command> - </node> - <node name="kernel"> - <properties> - <help>Show IPv6 Kernel routes</help> - </properties> - <command>vtysh -c "show ipv6 route kernel"</command> - </node> - <node name="ospfv3"> - <properties> - <help>Show IPv6 OSPF routes</help> - </properties> - <command>vtysh -c "show ipv6 route ospf6"</command> - </node> - <node name="ripng"> - <properties> - <help>Show IPv6 RIPNG routes</help> - </properties> - <command>vtysh -c "show ipv6 route ripng"</command> - </node> - <node name="static"> - <properties> - <help>Show IPv6 static routes</help> - </properties> - <command>vtysh -c "show ipv6 route static"</command> - </node> - <node name="summary"> - <properties> - <help>Show IPv6 routes summary</help> - </properties> - <command>vtysh -c "show ipv6 route summary"</command> - </node> - <node name="table"> - <properties> - <help>Show IPv6 routes in policy tables</help> - </properties> - <command>vtysh -c "show ipv6 route table all"</command> - </node> - <tagNode name="table"> - <properties> - <help>Show IPv6 routes in specific policy table</help> - <completionHelp> - <path>protocols static table</path> - </completionHelp> - </properties> - <command>vtysh -c "show ipv6 route table $5"</command> - </tagNode> - <node name="vrf"> - <properties> - <help>Show IPv6 routes in VRFs</help> - </properties> - <command>vtysh -c "show ipv6 route vrf all"</command> - </node> - <tagNode name="vrf"> - <properties> - <help>Show IPv6 routes in specific VRF</help> - <completionHelp> - <path>vrf name</path> - </completionHelp> - </properties> - <command>vtysh -c "show ipv6 route vrf $5"</command> - </tagNode> - </children> - </node> </children> </node> </children> 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; ' 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', 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) |