summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/generate-ssh-server-key.xml.in24
-rw-r--r--op-mode-definitions/include/bgp-afi-common.xml.i40
-rw-r--r--op-mode-definitions/include/bgp-afi-ipv4-ipv6-common.xml.i243
-rw-r--r--op-mode-definitions/include/bgp-prefix-bestpath-multipath.xml.i20
-rw-r--r--op-mode-definitions/include/vtysh-generic-detail.xml.i8
-rw-r--r--op-mode-definitions/ipv6-route.xml.in2
-rw-r--r--op-mode-definitions/reset-ip-igmp.xml.in2
-rw-r--r--op-mode-definitions/reset-ip-multicast.xml.in2
-rw-r--r--op-mode-definitions/reset-mpls.xml.in4
-rw-r--r--op-mode-definitions/show-bgp.xml.in262
-rw-r--r--op-mode-definitions/show-ip-access-paths-prefix-community-lists.xml.in28
-rw-r--r--op-mode-definitions/show-ip-bgp.xml.in213
-rw-r--r--op-mode-definitions/show-ip-igmp.xml.in10
-rw-r--r--op-mode-definitions/show-ip-multicast.xml.in4
-rw-r--r--op-mode-definitions/show-ip-ospf.xml.in96
-rw-r--r--op-mode-definitions/show-ip-pim.xml.in18
-rw-r--r--op-mode-definitions/show-ip-rip.xml.in4
-rw-r--r--op-mode-definitions/show-ip-route.xml.in30
-rw-r--r--op-mode-definitions/show-ip.xml.in20
-rw-r--r--op-mode-definitions/show-ipv6-bgp.xml.in203
-rw-r--r--op-mode-definitions/show-isis.xml.in46
-rw-r--r--op-mode-definitions/show-mpls.xml.in62
-rw-r--r--op-mode-definitions/show-protocols-bfd.xml.in12
-rw-r--r--op-mode-definitions/show-route-map.xml.in4
-rw-r--r--op-mode-definitions/show-rpki.xml.in6
-rw-r--r--op-mode-definitions/show-system.xml.in4
-rw-r--r--op-mode-definitions/show-table.xml.in2
-rw-r--r--op-mode-definitions/show-version.xml.in2
-rw-r--r--op-mode-definitions/traffic-dump.xml.in4
29 files changed, 813 insertions, 562 deletions
diff --git a/op-mode-definitions/generate-ssh-server-key.xml.in b/op-mode-definitions/generate-ssh-server-key.xml.in
index a6ebf1b78..86bb1b1bd 100644
--- a/op-mode-definitions/generate-ssh-server-key.xml.in
+++ b/op-mode-definitions/generate-ssh-server-key.xml.in
@@ -2,14 +2,30 @@
<interfaceDefinition>
<node name="generate">
<properties>
- <help>Generate an object</help>
+ <help>Generate an object/key</help>
</properties>
<children>
- <node name="ssh-server-key">
+ <node name="ssh">
<properties>
- <help>Regenerate the host SSH keys and restart the SSH server</help>
+ <help>Generate SSH related keypairs</help>
</properties>
- <command>${vyos_op_scripts_dir}/generate_ssh_server_key.py</command>
+ <children>
+ <node name="server-key">
+ <properties>
+ <help>Re-generate SSH host keys and restart SSH server</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/generate_ssh_server_key.py</command>
+ </node>
+ <tagNode name="client-key">
+ <properties>
+ <help>Re-generate SSH client keypair</help>
+ <completionHelp>
+ <list>&lt;filename&gt;</list>
+ </completionHelp>
+ </properties>
+ <command>ssh-keygen -t rsa -f "$4" -N ""</command>
+ </tagNode>
+ </children>
</node>
</children>
</node>
diff --git a/op-mode-definitions/include/bgp-afi-common.xml.i b/op-mode-definitions/include/bgp-afi-common.xml.i
new file mode 100644
index 000000000..06cfc42a5
--- /dev/null
+++ b/op-mode-definitions/include/bgp-afi-common.xml.i
@@ -0,0 +1,40 @@
+<!-- included start from bgp-afi-common.xml.i -->
+<tagNode name="community">
+ <properties>
+ <help>Community number where AA and NN are (0-65535)</help>
+ <completionHelp>
+ <list>AA:NN</list>
+ </completionHelp>
+ </properties>
+ <children>
+ <leafNode name="exact-match">
+ <properties>
+ <help>Exact match of the communities</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
+ </children>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+</tagNode>
+<tagNode name="large-community">
+ <properties>
+ <help>List of large-community numbers</help>
+ <completionHelp>
+ <list>AA:BB:CC</list>
+ </completionHelp>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+</tagNode>
+<leafNode name="statistics">
+ <properties>
+ <help>RIB advertisement statistics</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+</leafNode>
+<leafNode name="summary">
+ <properties>
+ <help>Summary of BGP neighbor status</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+</leafNode>
+<!-- included end -->
diff --git a/op-mode-definitions/include/bgp-afi-ipv4-ipv6-common.xml.i b/op-mode-definitions/include/bgp-afi-ipv4-ipv6-common.xml.i
new file mode 100644
index 000000000..dc0926375
--- /dev/null
+++ b/op-mode-definitions/include/bgp-afi-ipv4-ipv6-common.xml.i
@@ -0,0 +1,243 @@
+<!-- included start from bgp-afi-ipv4-ipv6-common.xml.i -->
+<node name="community">
+ <properties>
+ <help>Display routes matching the community</help>
+ </properties>
+ <children>
+ <leafNode name="accept-own">
+ <properties>
+ <help>Should accept local VPN route if exported and imported into different VRF (well-known community)</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
+ <leafNode name="accept-own-nexthop">
+ <properties>
+ <help>Should accept VPN route with local nexthop (well-known community)</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
+ <leafNode name="blackhole">
+ <properties>
+ <help>Inform EBGP peers to blackhole traffic to prefix (well-known community)</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
+ <leafNode name="exact-match">
+ <properties>
+ <help>Exact match of the communities</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
+ <leafNode name="graceful-shutdown">
+ <properties>
+ <help>Graceful shutdown (well-known community)</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
+ <leafNode name="llgr-stale">
+ <properties>
+ <help>Staled Long-lived Graceful Restart VPN route (well-known community)</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
+ <leafNode name="local-AS">
+ <properties>
+ <help>Do not send outside local AS (well-known community)</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
+ <leafNode name="no-advertise">
+ <properties>
+ <help>Do not advertise to any peer (well-known community)</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
+ <leafNode name="no-export">
+ <properties>
+ <help>Do not export to next AS (well-known community)</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
+ <leafNode name="no-llgr">
+ <properties>
+ <help>Removed because Long-lived Graceful Restart was not enabled for VPN route (well-known community)</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
+ <leafNode name="no-peer">
+ <properties>
+ <help>Do not export to any peer (well-known community)</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
+ <leafNode name="route-filter-translated-v4">
+ <properties>
+ <help>RT translated VPNv4 route filtering (well-known community)</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
+ <leafNode name="route-filter-translated-v6">
+ <properties>
+ <help>RT translated VPNv6 route filtering (well-known community)</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
+ <leafNode name="route-filter-v4">
+ <properties>
+ <help>RT VPNv4 route filtering (well-known community)</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
+ <leafNode name="route-filter-v6">
+ <properties>
+ <help>RT VPNv6 route filtering (well-known community)</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
+ </children>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+</node>
+<tagNode name="community-list">
+ <properties>
+ <help>Display routes matching the community-list</help>
+ <completionHelp>
+ <list>1-500 name</list>
+ </completionHelp>
+ </properties>
+ <children>
+ <leafNode name="exact-match">
+ <properties>
+ <help>Show BGP routes exactly matching specified community list</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
+ </children>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+</tagNode>
+<node name="dampening">
+ <properties>
+ <help>Display detailed information about dampening</help>
+ </properties>
+ <children>
+ <leafNode name="dampened-paths">
+ <properties>
+ <help>Display paths suppressed due to dampening</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
+ <leafNode name="flap-statistics">
+ <properties>
+ <help>Display flap statistics of routes</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
+ <leafNode name="parameters">
+ <properties>
+ <help>Display detail of configured dampening parameters</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
+ </children>
+</node>
+<tagNode name="filter-list">
+ <properties>
+ <help>Display routes conforming to the filter-list</help>
+ <completionHelp>
+ <script>vtysh -c 'show bgp as-path-access-list' | grep 'AS path access list' | awk '{print $NF}'</script>
+ </completionHelp>
+ </properties>
+</tagNode>
+<node name="large-community">
+ <properties>
+ <help>Show BGP routes matching the specified large-communities</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+</node>
+<leafNode name="neighbors">
+ <properties>
+ <help>Detailed information on TCP and BGP neighbor connections</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+</leafNode>
+<tagNode name="neighbors">
+ <properties>
+ <help>Show detailed BGP IPv4 unicast neighbor information</help>
+ <completionHelp>
+ <script>vtysh -c 'show bgp summary' | awk '{print $1'} | grep -e '^[0-9a-f]'</script>
+ </completionHelp>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ <children>
+ <leafNode name="advertised-routes">
+ <properties>
+ <help>Show routes advertised to a BGP neighbor</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
+ <leafNode name="dampened-routes">
+ <properties>
+ <help>Show dampened routes received from BGP neighbor</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
+ <leafNode name="flap-statistics">
+ <properties>
+ <help>Show flap statistics of the routes learned from BGP neighbor</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
+ <leafNode name="prefix-counts">
+ <properties>
+ <help>Show detailed prefix count information for BGP neighbor</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</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>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
+ </children>
+ </node>
+ <leafNode name="received-routes">
+ <properties>
+ <help>Show received routes from BGP neighbor</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
+ <leafNode name="routes">
+ <properties>
+ <help>Show routes learned from BGP neighbor</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
+ </children>
+</tagNode>
+<tagNode name="prefix-list">
+ <properties>
+ <help>Display routes conforming to the prefix-list</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+</tagNode>
+<tagNode name="regexp">
+ <properties>
+ <help>Display routes matching the AS path regular expression</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+</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>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+</tagNode>
+<!-- included end -->
diff --git a/op-mode-definitions/include/bgp-prefix-bestpath-multipath.xml.i b/op-mode-definitions/include/bgp-prefix-bestpath-multipath.xml.i
new file mode 100644
index 000000000..224fa6b45
--- /dev/null
+++ b/op-mode-definitions/include/bgp-prefix-bestpath-multipath.xml.i
@@ -0,0 +1,20 @@
+<!-- included start from bgp-prefix-bestpath-multipath.xml.i -->
+<leafNode name="bestpath">
+ <properties>
+ <help>Display only the bestpath</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+</leafNode>
+<leafNode name="multipath">
+ <properties>
+ <help>Display only multipaths</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+</leafNode>
+<leafNode name="longer-prefixes">
+ <properties>
+ <help>Display route and more specific routes</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+</leafNode>
+<!-- included end -->
diff --git a/op-mode-definitions/include/vtysh-generic-detail.xml.i b/op-mode-definitions/include/vtysh-generic-detail.xml.i
new file mode 100644
index 000000000..5a3097a77
--- /dev/null
+++ b/op-mode-definitions/include/vtysh-generic-detail.xml.i
@@ -0,0 +1,8 @@
+<!-- included start from vtysh-generic-detail.xml.i -->
+<leafNode name="detail">
+ <properties>
+ <help>Detailed information</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+</leafNode>
+<!-- included end -->
diff --git a/op-mode-definitions/ipv6-route.xml.in b/op-mode-definitions/ipv6-route.xml.in
index 28f5b1aad..7f188fdb2 100644
--- a/op-mode-definitions/ipv6-route.xml.in
+++ b/op-mode-definitions/ipv6-route.xml.in
@@ -21,7 +21,7 @@
<properties>
<help>Show IPv6 Neighbor Discovery (ND) information</help>
</properties>
- <command>ip -f inet6 neigh list</command>
+ <command>${vyos_op_scripts_dir}/show_neigh.py --family inet6</command>
</leafNode>
</children>
diff --git a/op-mode-definitions/reset-ip-igmp.xml.in b/op-mode-definitions/reset-ip-igmp.xml.in
index 143553d33..e79c33da8 100644
--- a/op-mode-definitions/reset-ip-igmp.xml.in
+++ b/op-mode-definitions/reset-ip-igmp.xml.in
@@ -13,7 +13,7 @@
<properties>
<help>Reset IGMP interfaces</help>
</properties>
- <command>/usr/bin/vtysh -c "clear ip igmp interfaces"</command>
+ <command>vtysh -c "clear ip igmp interfaces"</command>
</leafNode>
</children>
</node>
diff --git a/op-mode-definitions/reset-ip-multicast.xml.in b/op-mode-definitions/reset-ip-multicast.xml.in
index d610add16..6cca07850 100644
--- a/op-mode-definitions/reset-ip-multicast.xml.in
+++ b/op-mode-definitions/reset-ip-multicast.xml.in
@@ -13,7 +13,7 @@
<properties>
<help>Clear multicast routing table</help>
</properties>
- <command>/usr/bin/vtysh -c "clear ip mroute"</command>
+ <command>vtysh -c "clear ip mroute"</command>
</leafNode>
</children>
</node>
diff --git a/op-mode-definitions/reset-mpls.xml.in b/op-mode-definitions/reset-mpls.xml.in
index 4e5d37d5b..829ed41ab 100644
--- a/op-mode-definitions/reset-mpls.xml.in
+++ b/op-mode-definitions/reset-mpls.xml.in
@@ -17,10 +17,10 @@
<help>Reset MPLS LDP neighbor/session</help>
<completionHelp>
<list>&lt;x.x.x.x&gt; &lt;h:h:h:h:h:h:h:h&gt;</list>
- <script>/usr/bin/vtysh -c "show mpls ldp neighbor" | awk '{print $2}' | egrep -v "ID"</script>
+ <script>vtysh -c "show mpls ldp neighbor" | awk '{print $2}' | egrep -v "ID"</script>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "clear mpls ldp neighbor $5"</command>
+ <command>vtysh -c "clear mpls ldp neighbor $5"</command>
</tagNode>
</children>
</node>
diff --git a/op-mode-definitions/show-bgp.xml.in b/op-mode-definitions/show-bgp.xml.in
new file mode 100644
index 000000000..cd0c5a9e5
--- /dev/null
+++ b/op-mode-definitions/show-bgp.xml.in
@@ -0,0 +1,262 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="show">
+ <children>
+ <node name="bgp">
+ <properties>
+ <help>BGP information</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ <children>
+ #include <include/bgp-afi-ipv4-ipv6-common.xml.i>
+ <tagNode name="ipv4">
+ <properties>
+ <help>Network in the BGP routing table to display</help>
+ <completionHelp>
+ <list>&lt;x.x.x.x&gt; &lt;x.x.x.x/x&gt; &lt;h:h:h:h:h:h:h:h&gt; &lt;h:h:h:h:h:h:h:h/x&gt;</list>
+ </completionHelp>
+ </properties>
+ <children>
+ #include <include/bgp-prefix-bestpath-multipath.xml.i>
+ </children>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </tagNode>
+ <node name="ipv4">
+ <properties>
+ <help>IPv4 Address Family</help>
+ </properties>
+ <children>
+ #include <include/bgp-afi-common.xml.i>
+ #include <include/bgp-afi-ipv4-ipv6-common.xml.i>
+ </children>
+ </node>
+ <tagNode name="ipv6">
+ <properties>
+ <help>Network in the BGP routing table to display</help>
+ <completionHelp>
+ <list>&lt;x.x.x.x&gt; &lt;x.x.x.x/x&gt; &lt;h:h:h:h:h:h:h:h&gt; &lt;h:h:h:h:h:h:h:h/x&gt;</list>
+ </completionHelp>
+ </properties>
+ <children>
+ #include <include/bgp-prefix-bestpath-multipath.xml.i>
+ </children>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </tagNode>
+ <node name="ipv6">
+ <properties>
+ <help>IPv6 Address Family</help>
+ </properties>
+ <children>
+ #include <include/bgp-afi-common.xml.i>
+ #include <include/bgp-afi-ipv4-ipv6-common.xml.i>
+ </children>
+ </node>
+ <node name="l2vpn">
+ <properties>
+ <help>Layer 2 Virtual Private Network</help>
+ </properties>
+ <children>
+ <tagNode name="evpn">
+ <properties>
+ <help>Network in the BGP routing table to display</help>
+ <completionHelp>
+ <list>&lt;x.x.x.x&gt; &lt;x.x.x.x/x&gt; &lt;h:h:h:h:h:h:h:h&gt; &lt;h:h:h:h:h:h:h:h/x&gt;</list>
+ </completionHelp>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </tagNode>
+ <node name="evpn">
+ <properties>
+ <help>Ethernet Virtual Private Network</help>
+ </properties>
+ <children>
+ #include <include/bgp-afi-common.xml.i>
+ <node name="all">
+ <properties>
+ <help>Display information about all EVPN NLRIs</help>
+ </properties>
+ <children>
+ <leafNode name="overlay">
+ <properties>
+ <help>Display BGP Overlay Information for prefixes</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
+ <leafNode name="tags">
+ <properties>
+ <help>Display BGP tags for prefixes</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
+ </children>
+ </node>
+ <node name="es">
+ <properties>
+ <help>Ethernet Segment</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ <children>
+ #include <include/vtysh-generic-detail.xml.i>
+ </children>
+ </node>
+ <node name="es-evi">
+ <properties>
+ <help>Ethernet Segment per EVI</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ <children>
+ #include <include/vtysh-generic-detail.xml.i>
+ <tagNode name="vni">
+ <properties>
+ <help>VxLAN Network Identifier</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </tagNode>
+ </children>
+ </node>
+ <leafNode name="import-rt">
+ <properties>
+ <help>Show import route target</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
+ <tagNode name="neighbors">
+ <properties>
+ <help>Show detailed BGP neighbor information</help>
+ <completionHelp>
+ <script>vtysh -c 'show bgp summary' | awk '{print $1'} | grep -e '^[0-9a-f]'</script>
+ </completionHelp>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ <children>
+ <leafNode name="advertised-routes">
+ <properties>
+ <help>Show routes advertised to a BGP neighbor</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
+ <leafNode name="routes">
+ <properties>
+ <help>Show routes learned from BGP neighbor</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
+ </children>
+ </tagNode>
+ <tagNode name="rd">
+ <properties>
+ <help>Show detailed BGP neighbor information</help>
+ <completionHelp>
+ <list>ASN:NN IPADDRESS:NN</list>
+ </completionHelp>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ <children>
+ <leafNode name="overlay">
+ <properties>
+ <help>Display BGP Overlay Information for prefixes</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
+ <leafNode name="tags">
+ <properties>
+ <help>Display BGP tags for prefixes</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
+ </children>
+ </tagNode>
+ <node name="route">
+ <properties>
+ <help>EVPN route information</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ <children>
+ #include <include/vtysh-generic-detail.xml.i>
+ <node name="type">
+ <properties>
+ <help>Specify Route type</help>
+ </properties>
+ <children>
+ <leafNode name="1">
+ <properties>
+ <help>EAD (Type-1) route</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
+ <leafNode name="2">
+ <properties>
+ <help>MAC-IP (Type-2) route</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
+ <leafNode name="3">
+ <properties>
+ <help>Multicast (Type-3) route</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
+ <leafNode name="4">
+ <properties>
+ <help>Ethernet Segment (Type-4) route</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
+ <leafNode name="5">
+ <properties>
+ <help>Prefix (Type-5) route</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
+ <leafNode name="ead">
+ <properties>
+ <help>EAD (Type-1) route</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
+ <leafNode name="es">
+ <properties>
+ <help>Ethernet Segment (Type-4) route</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
+ <leafNode name="macip">
+ <properties>
+ <help>MAC-IP (Type-2) route</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
+ <leafNode name="multicast">
+ <properties>
+ <help>Multicast (Type-3) route</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
+ <leafNode name="prefix">
+ <properties>
+ <help>Prefix (Type-5) route</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
+ </children>
+ </node>
+ <tagNode name="vni">
+ <properties>
+ <help>VXLAN Network Identifier</help>
+ <completionHelp>
+ <list>1-16777215 all</list>
+ </completionHelp>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </tagNode>
+ </children>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition>
diff --git a/op-mode-definitions/show-ip-access-paths-prefix-community-lists.xml.in b/op-mode-definitions/show-ip-access-paths-prefix-community-lists.xml.in
index a5ec65c94..d7222516a 100644
--- a/op-mode-definitions/show-ip-access-paths-prefix-community-lists.xml.in
+++ b/op-mode-definitions/show-ip-access-paths-prefix-community-lists.xml.in
@@ -11,7 +11,7 @@
<properties>
<help>Show all IP access-lists</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip access-list"</command>
+ <command>vtysh -c "show ip access-list"</command>
</leafNode>
<tagNode name="access-list">
<properties>
@@ -20,13 +20,13 @@
<path>policy access-list</path>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip access-list $4"</command>
+ <command>vtysh -c "show ip access-list $4"</command>
</tagNode>
<leafNode name="as-path-access-list">
<properties>
<help>Show all as-path-access-lists</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip as-path-access-list"</command>
+ <command>vtysh -c "show ip as-path-access-list"</command>
</leafNode>
<tagNode name="as-path-access-list">
<properties>
@@ -35,13 +35,13 @@
<path>policy as-path-list</path>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip as-path-access-list $4"</command>
+ <command>vtysh -c "show ip as-path-access-list $4"</command>
</tagNode>
<leafNode name="community-list">
<properties>
<help>Show IP community-lists</help>
</properties>
- <command>/usr/bin/vtysh -c "show bgp community-list"</command>
+ <command>vtysh -c "show bgp community-list"</command>
</leafNode>
<tagNode name="community-list">
<properties>
@@ -50,13 +50,13 @@
<path>policy community-list</path>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show bgp community-list $4 detail"</command>
+ <command>vtysh -c "show bgp community-list $4 detail"</command>
</tagNode>
<leafNode name="extcommunity-list">
<properties>
<help>Show extended IP community-lists</help>
</properties>
- <command>/usr/bin/vtysh -c "show bgp extcommunity-list"</command>
+ <command>vtysh -c "show bgp extcommunity-list"</command>
</leafNode>
<tagNode name="extcommunity-list">
<properties>
@@ -65,19 +65,19 @@
<path>policy extcommunity-list</path>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show bgp extcommunity-list $4 detail"</command>
+ <command>vtysh -c "show bgp extcommunity-list $4 detail"</command>
</tagNode>
<leafNode name="forwarding">
<properties>
<help>Show IP forwarding status</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip forwarding"</command>
+ <command>vtysh -c "show ip forwarding"</command>
</leafNode>
<leafNode name="large-community-list">
<properties>
<help>Show IP large-community-lists</help>
</properties>
- <command>/usr/bin/vtysh -c "show bgp large-community-list"</command>
+ <command>vtysh -c "show bgp large-community-list"</command>
</leafNode>
<tagNode name="large-community-list">
<properties>
@@ -86,13 +86,13 @@
<path>policy large-community-list</path>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show bgp large-community-list $4 detail"</command>
+ <command>vtysh -c "show bgp large-community-list $4 detail"</command>
</tagNode>
<leafNode name="prefix-list">
<properties>
<help>Show all IP prefix-lists</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip prefix-list"</command>
+ <command>vtysh -c "show ip prefix-list"</command>
</leafNode>
<tagNode name="prefix-list">
<properties>
@@ -101,13 +101,13 @@
<path>policy prefix-list</path>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip prefix-list $4"</command>
+ <command>vtysh -c "show ip prefix-list $4"</command>
</tagNode>
<leafNode name="protocol">
<properties>
<help>Show IP route-maps per protocol</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip protocol"</command>
+ <command>vtysh -c "show ip protocol"</command>
</leafNode>
</children>
</node>
diff --git a/op-mode-definitions/show-ip-bgp.xml.in b/op-mode-definitions/show-ip-bgp.xml.in
index a92a78266..690de0a1d 100644
--- a/op-mode-definitions/show-ip-bgp.xml.in
+++ b/op-mode-definitions/show-ip-bgp.xml.in
@@ -8,73 +8,35 @@
<properties>
<help>Show Border Gateway Protocol (BGP) information</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip bgp"</command>
+ <command>vtysh -c "show ip bgp"</command>
<children>
<leafNode name="attribute-info">
<properties>
<help>Show BGP attribute information</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip bgp attribute-info"</command>
+ <command>vtysh -c "show ip bgp attribute-info"</command>
</leafNode>
<leafNode name="cidr-only">
<properties>
<help>Display only routes with non-natural netmasks</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip bgp cidr-only"</command>
+ <command>vtysh -c "show ip bgp cidr-only"</command>
</leafNode>
- <node name="community">
- <properties>
- <help>Show BGP routes matching the communities</help>
- </properties>
- <command>/usr/bin/vtysh -c "show ip bgp community"</command>
- </node>
- <tagNode name="community">
- <properties>
- <help>Display routes matching the specified communities</help>
- <completionHelp>
- <list>&lt;AA:NN&gt; local-AS no-advertise no-export</list>
- </completionHelp>
- </properties>
- <command>/usr/bin/vtysh -c "show ip bgp community $5"</command>
- </tagNode>
<leafNode name="community-info">
<properties>
<help>List all bgp community information</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip bgp community-info"</command>
- </leafNode>
- <tagNode name="community-list">
- <properties>
- <help>Show BGP routes matching specified community list</help>
- </properties>
- <command>/usr/bin/vtysh -c "show ip bgp community-list $5"</command>
- <children>
- <leafNode name="exact-match">
- <properties>
- <help>Show BGP routes exactly matching specified community list</help>
- </properties>
- <command>/usr/bin/vtysh -c "show ip bgp community-list $5 exact-match"</command>
- </leafNode>
- </children>
- </tagNode>
- <leafNode name="dampened-paths">
- <properties>
- <help>Show dampened BGP paths</help>
- </properties>
- <command>/usr/bin/vtysh -c "show ip bgp dampening dampened-paths"</command>
+ <command>vtysh -c "show ip bgp community-info"</command>
</leafNode>
- <tagNode name="filter-list">
+ #include <include/bgp-afi-common.xml.i>
+ #include <include/bgp-afi-ipv4-ipv6-common.xml.i>
+ <tagNode name="prefix-list">
<properties>
- <help>Show BGP information for specified word</help>
+ <completionHelp>
+ <path>policy prefix-list</path>
+ </completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip bgp filter-list $5"</command>
</tagNode>
- <leafNode name="flap-statistics">
- <properties>
- <help>Show flap statistics of routes</help>
- </properties>
- <command>/usr/bin/vtysh -c "show ip bgp dampening flap-statistics"</command>
- </leafNode>
<node name="ipv4">
<properties>
<help>Show BGP IPv4 information</help>
@@ -89,13 +51,13 @@
<properties>
<help>Display only routes with non-natural netmasks</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip bgp ipv4 unicast cidr-only"</command>
+ <command>vtysh -c "show ip bgp ipv4 unicast cidr-only"</command>
</leafNode>
<node name="community"> <!-- START new code -->
<properties>
<help>Show BGP routes matching the communities</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip bgp ipv4 unicast community"</command>
+ <command>vtysh -c "show ip bgp ipv4 unicast community"</command>
</node>
<tagNode name="community">
<properties>
@@ -104,28 +66,22 @@
<list>&lt;AA:NN&gt; local-AS no-advertise no-export</list>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip bgp ipv4 unicast community $7"</command>
+ <command>vtysh -c "show ip bgp ipv4 unicast community $7"</command>
</tagNode>
<tagNode name="community-list">
<properties>
<help>Show BGP routes matching specified community list</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip bgp ipv4 unicast community-list $7"</command>
+ <command>vtysh -c "show ip bgp ipv4 unicast community-list $7"</command>
<children>
<leafNode name="exact-match">
<properties>
<help>Show BGP routes exactly matching specified community list</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip bgp ipv4 unicast community-list $7 exact-match"</command>
+ <command>vtysh -c "show ip bgp ipv4 unicast community-list $7 exact-match"</command>
</leafNode>
</children>
</tagNode>
- <tagNode name="filter-list">
- <properties>
- <help>Show BGP information for specified word</help>
- </properties>
- <command>/usr/bin/vtysh -c "show ip bgp filter-list $5"</command>
- </tagNode>
<tagNode name="neighbors">
<properties>
<help>Show detailed BGP IPv4 unicast neighbor information</help>
@@ -133,31 +89,31 @@
<script>vtysh -c "show ip bgp ipv4 unicast summary" | awk '{print $1}' | grep -oE "\b([0-9]{1,3}\.){3}[0-9]{1,3}\b"</script>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip bgp ipv4 unicast neighbors $7"</command>
+ <command>vtysh -c "show ip bgp ipv4 unicast neighbors $7"</command>
<children>
<leafNode name="advertised-routes">
<properties>
<help>Show routes advertised to a BGP neighbor</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip bgp ipv4 unicast neighbor $7 advertised-routes"</command>
+ <command>vtysh -c "show ip bgp ipv4 unicast neighbor $7 advertised-routes"</command>
</leafNode>
<leafNode name="prefix-counts">
<properties>
<help>Show detailed prefix count information</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip bgp ipv4 unicast neighbor $7 prefix-counts"</command>
+ <command>vtysh -c "show ip bgp ipv4 unicast neighbor $7 prefix-counts"</command>
</leafNode>
<leafNode name="received-routes">
<properties>
<help>Show the received routes from neighbor</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip bgp ipv4 unicast neighbor $7 received-routes"</command>
+ <command>vtysh -c "show ip bgp ipv4 unicast neighbor $7 received-routes"</command>
</leafNode>
<leafNode name="routes">
<properties>
<help>Show routes learned from neighbor</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip bgp ipv4 unicast neighbor $7 routes"</command>
+ <command>vtysh -c "show ip bgp ipv4 unicast neighbor $7 routes"</command>
</leafNode>
</children>
</tagNode>
@@ -165,31 +121,31 @@
<properties>
<help>Show BGP path information</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip bgp ipv4 unicast paths"</command>
+ <command>vtysh -c "show ip bgp ipv4 unicast paths"</command>
</leafNode>
<tagNode name="prefix-list">
<properties>
<help>Show BGP routes matching the specified prefix list</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip bgp ipv4 unicast prefix-list $7"</command>
+ <command>vtysh -c "show ip bgp ipv4 unicast prefix-list $7"</command>
</tagNode>
<tagNode name="regexp">
<properties>
<help>Show BGP routes matching the specified AS path regular expression</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip bgp ipv4 unicast regexp $5"</command>
+ <command>vtysh -c "show ip bgp ipv4 unicast regexp $5"</command>
</tagNode>
<tagNode name="route-map">
<properties>
<help>Show BGP routes matching the specified route map</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip bgp route-map $5"</command>
+ <command>vtysh -c "show ip bgp route-map $5"</command>
</tagNode>
<leafNode name="summary">
<properties>
<help>Show summary of BGP information</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip bgp summary"</command>
+ <command>vtysh -c "show ip bgp summary"</command>
</leafNode>
</children>
</node>
@@ -200,141 +156,30 @@
<list>&lt;x.x.x.x&gt; &lt;x.x.x.x/x&gt;</list>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip bgp $6"</command>
+ <command>vtysh -c "show ip bgp $6"</command>
</tagNode>
</children>
</node>
- <node name="large-community">
- <properties>
- <help>Show BGP routes matching the specified large-communities</help>
- </properties>
- <command>/usr/bin/vtysh -c "show ip bgp large-community"</command>
- </node>
<leafNode name="large-community-info">
<properties>
<help>Show BGP large-community information</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip bgp large-community-info"</command>
+ <command>vtysh -c "show ip bgp large-community-info"</command>
</leafNode>
- <tagNode name="large-community-list">
- <properties>
- <help>Show BGP routes matching the specified large-community list</help>
- </properties>
- <command>/usr/bin/vtysh -c "show ip bgp large-community-list $5"</command>
- </tagNode>
<leafNode name="memory">
<properties>
<help>Show BGP memory usage</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip bgp memory"</command>
+ <command>vtysh -c "show ip bgp memory"</command>
</leafNode>
- <tagNode name="neighbors">
- <properties>
- <help>Show detailed BGP IPv4 unicast neighbor information</help>
- <completionHelp>
- <script>vtysh -c "show ip bgp summary" | awk '{print $1}' | grep -oE "\b([0-9]{1,3}\.){3}[0-9]{1,3}\b"</script>
- </completionHelp>
- </properties>
- <command>/usr/bin/vtysh -c "show ip bgp neighbors $5"</command>
- <children>
- <leafNode name="advertised-routes">
- <properties>
- <help>Show routes advertised to a BGP neighbor</help>
- </properties>
- <command>/usr/bin/vtysh -c "show ip bgp neighbor $5 advertised-routes"</command>
- </leafNode>
- <leafNode name="dampened-routes">
- <properties>
- <help>Show dampened routes received from BGP neighbor</help>
- </properties>
- <command>/usr/bin/vtysh -c "show ip bgp 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>/usr/bin/vtysh -c "show ip bgp neighbor $5 flap-statistics"</command>
- </leafNode>
- <leafNode name="prefix-counts">
- <properties>
- <help>Show detailed prefix count information for BGP neighbor</help>
- </properties>
- <command>/usr/bin/vtysh -c "show ip bgp 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>/usr/bin/vtysh -c "show ip bgp neighbor $5 received prefix-filter"</command>
- </leafNode>
- </children>
- </node>
- <leafNode name="received-routes">
- <properties>
- <help>Show received routes from BGP neighbor</help>
- </properties>
- <command>/usr/bin/vtysh -c "show ip bgp neighbor $5 received-routes"</command>
- </leafNode>
- <leafNode name="routes">
- <properties>
- <help>Show routes learned from BGP neighbor</help>
- </properties>
- <command>/usr/bin/vtysh -c "show ip bgp neighbor $5 routes"</command>
- </leafNode>
- </children>
- </tagNode>
<leafNode name="paths">
<properties>
<help>Show BGP path information</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip bgp paths"</command>
- </leafNode>
- <tagNode name="prefix-list">
- <properties>
- <help>Show BGP routes matching the specified prefix list</help>
- </properties>
- <command>/usr/bin/vtysh -c "show ip bgp prefix-list $5"</command>
- </tagNode>
- <tagNode name="regexp">
- <properties>
- <help>Show BGP routes matching the specified AS path regular expression</help>
- </properties>
- <command>/usr/bin/vtysh -c "show ip bgp regexp $5"</command>
- </tagNode>
- <tagNode name="route-map">
- <properties>
- <help>Show BGP routes matching the specified route map</help>
- </properties>
- <command>/usr/bin/vtysh -c "show ip bgp route-map $5"</command>
- </tagNode>
- <leafNode name="statistics">
- <properties>
- <help>Show summary of BGP information</help>
- </properties>
- <command>/usr/bin/vtysh -c "show ip bgp statistics"</command>
- </leafNode>
- <leafNode name="summary">
- <properties>
- <help>Show summary of BGP information</help>
- </properties>
- <command>/usr/bin/vtysh -c "show ip bgp summary"</command>
+ <command>vtysh -c "show ip bgp paths"</command>
</leafNode>
</children>
</node>
- <tagNode name="bgp">
- <properties>
- <help>Show BGP information for specified IP address or prefix</help>
- <completionHelp>
- <list>&lt;x.x.x.x&gt; &lt;x.x.x.x/x&gt;</list>
- </completionHelp>
- </properties>
- <command>/usr/bin/vtysh -c "show ip bgp $4"</command>
- </tagNode>
</children>
</node>
</children>
diff --git a/op-mode-definitions/show-ip-igmp.xml.in b/op-mode-definitions/show-ip-igmp.xml.in
index b8f2f9107..855c5d508 100644
--- a/op-mode-definitions/show-ip-igmp.xml.in
+++ b/op-mode-definitions/show-ip-igmp.xml.in
@@ -13,31 +13,31 @@
<properties>
<help>IGMP groups information</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip igmp groups"</command>
+ <command>vtysh -c "show ip igmp groups"</command>
</leafNode>
<leafNode name="interfaces">
<properties>
<help>IGMP interfaces information</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip igmp interface"</command>
+ <command>vtysh -c "show ip igmp interface"</command>
</leafNode>
<leafNode name="join">
<properties>
<help>IGMP static join information</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip igmp join"</command>
+ <command>vtysh -c "show ip igmp join"</command>
</leafNode>
<leafNode name="sources">
<properties>
<help>IGMP sources information</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip igmp sources"</command>
+ <command>vtysh -c "show ip igmp sources"</command>
</leafNode>
<leafNode name="statistics">
<properties>
<help>IGMP statistics</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip igmp statistics"</command>
+ <command>vtysh -c "show ip igmp statistics"</command>
</leafNode>
</children>
</node>
diff --git a/op-mode-definitions/show-ip-multicast.xml.in b/op-mode-definitions/show-ip-multicast.xml.in
index 5331d2e35..80d83b424 100644
--- a/op-mode-definitions/show-ip-multicast.xml.in
+++ b/op-mode-definitions/show-ip-multicast.xml.in
@@ -25,13 +25,13 @@
<properties>
<help>IP multicast information</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip multicast"</command>
+ <command>vtysh -c "show ip multicast"</command>
</leafNode>
<leafNode name="route">
<properties>
<help>IP multicast routing table</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip mroute"</command>
+ <command>vtysh -c "show ip mroute"</command>
</leafNode>
</children>
</node>
diff --git a/op-mode-definitions/show-ip-ospf.xml.in b/op-mode-definitions/show-ip-ospf.xml.in
index 50628d18e..fc298123b 100644
--- a/op-mode-definitions/show-ip-ospf.xml.in
+++ b/op-mode-definitions/show-ip-ospf.xml.in
@@ -11,25 +11,25 @@
<properties>
<help>Show IPv4 Open Shortest Path First (OSPF) routing information</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf"</command>
+ <command>vtysh -c "show ip ospf"</command>
<children>
<leafNode name="border-routers">
<properties>
<help>Show IPv4 OSPF border-routers information</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf border-routers"</command>
+ <command>vtysh -c "show ip ospf border-routers"</command>
</leafNode>
<node name="database">
<properties>
<help>Show IPv4 OSPF database information</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database"</command>
+ <command>vtysh -c "show ip ospf database"</command>
<children>
<node name="asbr-summary">
<properties>
<help>Show IPv4 OSPF ASBR summary database</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database asbr-summary"</command>
+ <command>vtysh -c "show ip ospf database asbr-summary"</command>
<children>
<tagNode name="adv-router">
<properties>
@@ -38,7 +38,7 @@
<list>&lt;x.x.x.x&gt;</list>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database asbr-summary adv-router $7"</command>
+ <command>vtysh -c "show ip ospf database asbr-summary adv-router $7"</command>
</tagNode>
<node name="adv-router">
<properties>
@@ -54,7 +54,7 @@
<list>&lt;x.x.x.x&gt;</list>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database asbr-summary $6"</command>
+ <command>vtysh -c "show ip ospf database asbr-summary $6"</command>
<children>
<node name="adv-router">
<properties>
@@ -68,7 +68,7 @@
<list>&lt;x.x.x.x&gt;</list>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database asbr-summary $6 adv-router $8"</command>
+ <command>vtysh -c "show ip ospf database asbr-summary $6 adv-router $8"</command>
</tagNode>
<leafNode name="self-originate">
<properties>
@@ -82,7 +82,7 @@
<properties>
<help>Show IPv4 OSPF external database</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database external"</command>
+ <command>vtysh -c "show ip ospf database external"</command>
<children>
<tagNode name="adv-router">
<properties>
@@ -91,7 +91,7 @@
<list>&lt;x.x.x.x&gt;</list>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database external adv-router $7"</command>
+ <command>vtysh -c "show ip ospf database external adv-router $7"</command>
</tagNode>
<node name="adv-router">
<properties>
@@ -107,7 +107,7 @@
<list>&lt;x.x.x.x&gt;</list>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database external $6"</command>
+ <command>vtysh -c "show ip ospf database external $6"</command>
<children>
<node name="adv-router">
<properties>
@@ -121,7 +121,7 @@
<list>&lt;x.x.x.x&gt;</list>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database external $6 adv-router $8"</command>
+ <command>vtysh -c "show ip ospf database external $6 adv-router $8"</command>
</tagNode>
<leafNode name="self-originate">
<properties>
@@ -135,13 +135,13 @@
<properties>
<help>Show IPv4 OSPF max-age database</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database max-age"</command>
+ <command>vtysh -c "show ip ospf database max-age"</command>
</leafNode>
<node name="network">
<properties>
<help>Show IPv4 OSPF network database</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database network"</command>
+ <command>vtysh -c "show ip ospf database network"</command>
<children>
<tagNode name="adv-router">
<properties>
@@ -150,7 +150,7 @@
<list>&lt;x.x.x.x&gt;</list>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database network adv-router $7"</command>
+ <command>vtysh -c "show ip ospf database network adv-router $7"</command>
</tagNode>
<node name="adv-router">
<properties>
@@ -166,7 +166,7 @@
<list>&lt;x.x.x.x&gt;</list>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database network $6"</command>
+ <command>vtysh -c "show ip ospf database network $6"</command>
<children>
<node name="adv-router">
<properties>
@@ -180,7 +180,7 @@
<list>&lt;x.x.x.x&gt;</list>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database network $6 adv-router $8"</command>
+ <command>vtysh -c "show ip ospf database network $6 adv-router $8"</command>
</tagNode>
<leafNode name="self-originate">
<properties>
@@ -194,7 +194,7 @@
<properties>
<help>Show IPv4 OSPF NSSA external database</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database nssa-external"</command>
+ <command>vtysh -c "show ip ospf database nssa-external"</command>
<children>
<tagNode name="adv-router">
<properties>
@@ -203,7 +203,7 @@
<list>&lt;x.x.x.x&gt;</list>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database nssa-external adv-router $7"</command>
+ <command>vtysh -c "show ip ospf database nssa-external adv-router $7"</command>
</tagNode>
<node name="adv-router">
<properties>
@@ -219,7 +219,7 @@
<list>&lt;x.x.x.x&gt;</list>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database nssa-external $6"</command>
+ <command>vtysh -c "show ip ospf database nssa-external $6"</command>
<children>
<node name="adv-router">
<properties>
@@ -233,7 +233,7 @@
<list>&lt;x.x.x.x&gt;</list>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database nssa-external $6 adv-router $8"</command>
+ <command>vtysh -c "show ip ospf database nssa-external $6 adv-router $8"</command>
</tagNode>
<leafNode name="self-originate">
<properties>
@@ -247,7 +247,7 @@
<properties>
<help>Show IPv4 OSPF opaque-area database</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database opaque-area"</command>
+ <command>vtysh -c "show ip ospf database opaque-area"</command>
<children>
<tagNode name="adv-router">
<properties>
@@ -256,7 +256,7 @@
<list>&lt;x.x.x.x&gt;</list>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database opaque-area adv-router $7"</command>
+ <command>vtysh -c "show ip ospf database opaque-area adv-router $7"</command>
</tagNode>
<node name="adv-router">
<properties>
@@ -272,7 +272,7 @@
<list>&lt;x.x.x.x&gt;</list>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database opaque-area $6"</command>
+ <command>vtysh -c "show ip ospf database opaque-area $6"</command>
<children>
<node name="adv-router">
<properties>
@@ -286,7 +286,7 @@
<list>&lt;x.x.x.x&gt;</list>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database opaque-area $6 adv-router $8"</command>
+ <command>vtysh -c "show ip ospf database opaque-area $6 adv-router $8"</command>
</tagNode>
<leafNode name="self-originate">
<properties>
@@ -300,7 +300,7 @@
<properties>
<help>Show IPv4 OSPF opaque-as database</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database opaque-as"</command>
+ <command>vtysh -c "show ip ospf database opaque-as"</command>
<children>
<tagNode name="adv-router">
<properties>
@@ -309,7 +309,7 @@
<list>&lt;x.x.x.x&gt;</list>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database opaque-as adv-router $7"</command>
+ <command>vtysh -c "show ip ospf database opaque-as adv-router $7"</command>
</tagNode>
<node name="adv-router">
<properties>
@@ -325,7 +325,7 @@
<list>&lt;x.x.x.x&gt;</list>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database opaque-as $6"</command>
+ <command>vtysh -c "show ip ospf database opaque-as $6"</command>
<children>
<node name="adv-router">
<properties>
@@ -339,7 +339,7 @@
<list>&lt;x.x.x.x&gt;</list>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database opaque-as $6 adv-router $8"</command>
+ <command>vtysh -c "show ip ospf database opaque-as $6 adv-router $8"</command>
</tagNode>
<leafNode name="self-originate">
<properties>
@@ -353,7 +353,7 @@
<properties>
<help>Show IPv4 OSPF opaque-link database</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database opaque-link"</command>
+ <command>vtysh -c "show ip ospf database opaque-link"</command>
<children>
<tagNode name="adv-router">
<properties>
@@ -362,7 +362,7 @@
<list>&lt;x.x.x.x&gt;</list>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database opaque-link adv-router $7"</command>
+ <command>vtysh -c "show ip ospf database opaque-link adv-router $7"</command>
</tagNode>
<node name="adv-router">
<properties>
@@ -378,7 +378,7 @@
<list>&lt;x.x.x.x&gt;</list>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database opaque-link $6"</command>
+ <command>vtysh -c "show ip ospf database opaque-link $6"</command>
<children>
<node name="adv-router">
<properties>
@@ -392,7 +392,7 @@
<list>&lt;x.x.x.x&gt;</list>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database opaque-link $6 adv-router $8"</command>
+ <command>vtysh -c "show ip ospf database opaque-link $6 adv-router $8"</command>
</tagNode>
<leafNode name="self-originate">
<properties>
@@ -406,7 +406,7 @@
<properties>
<help>Show IPv4 OSPF router database</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database router"</command>
+ <command>vtysh -c "show ip ospf database router"</command>
<children>
<tagNode name="adv-router">
<properties>
@@ -415,7 +415,7 @@
<list>&lt;x.x.x.x&gt;</list>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database router adv-router $7"</command>
+ <command>vtysh -c "show ip ospf database router adv-router $7"</command>
</tagNode>
<node name="adv-router">
<properties>
@@ -431,7 +431,7 @@
<list>&lt;x.x.x.x&gt;</list>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database router $6"</command>
+ <command>vtysh -c "show ip ospf database router $6"</command>
<children>
<node name="adv-router">
<properties>
@@ -445,7 +445,7 @@
<list>&lt;x.x.x.x&gt;</list>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database router $6 adv-router $8"</command>
+ <command>vtysh -c "show ip ospf database router $6 adv-router $8"</command>
</tagNode>
<leafNode name="self-originate">
<properties>
@@ -459,13 +459,13 @@
<properties>
<help>Show IPv4 OSPF self-originate database</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database self-originate"</command>
+ <command>vtysh -c "show ip ospf database self-originate"</command>
</leafNode>
<node name="summary">
<properties>
<help>Show summary of IPv4 OSPF database</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database summary"</command>
+ <command>vtysh -c "show ip ospf database summary"</command>
<children>
<tagNode name="adv-router">
<properties>
@@ -474,7 +474,7 @@
<list>&lt;x.x.x.x&gt;</list>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database summary adv-router $7"</command>
+ <command>vtysh -c "show ip ospf database summary adv-router $7"</command>
</tagNode>
<node name="adv-router">
<properties>
@@ -490,7 +490,7 @@
<list>&lt;x.x.x.x&gt;</list>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database summary $6"</command>
+ <command>vtysh -c "show ip ospf database summary $6"</command>
<children>
<node name="adv-router">
<properties>
@@ -504,7 +504,7 @@
<list>&lt;x.x.x.x&gt;</list>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database summary $6 adv-router $8"</command>
+ <command>vtysh -c "show ip ospf database summary $6 adv-router $8"</command>
</tagNode>
<leafNode name="self-originate">
<properties>
@@ -520,7 +520,7 @@
<properties>
<help>Show IPv4 OSPF interface information</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf interface"</command>
+ <command>vtysh -c "show ip ospf interface"</command>
</node>
<tagNode name="interface">
<properties>
@@ -529,13 +529,13 @@
<script>${vyos_completion_dir}/list_interfaces.py</script>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf interface $5"</command>
+ <command>vtysh -c "show ip ospf interface $5"</command>
</tagNode>
<node name="neighbor">
<properties>
<help>Show IPv4 OSPF neighbor information</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf neighbor"</command>
+ <command>vtysh -c "show ip ospf neighbor"</command>
<children>
<tagNode name="address">
<properties>
@@ -544,13 +544,13 @@
<list>&lt;x.x.x.x&gt;</list>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf neighbor $6"</command>
+ <command>vtysh -c "show ip ospf neighbor $6"</command>
</tagNode>
<node name="detail">
<properties>
<help>Show detailed IPv4 OSPF neighbor information</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf neighbor detail"</command>
+ <command>vtysh -c "show ip ospf neighbor detail"</command>
</node>
</children>
</node>
@@ -562,13 +562,13 @@
<script>${vyos_completion_dir}/list_interfaces.py</script>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf neighbor $5"</command>
+ <command>vtysh -c "show ip ospf neighbor $5"</command>
</tagNode>
<leafNode name="route">
<properties>
<help>Show IPv4 OSPF route information</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf route"</command>
+ <command>vtysh -c "show ip ospf route"</command>
</leafNode>
</children>
</node>
diff --git a/op-mode-definitions/show-ip-pim.xml.in b/op-mode-definitions/show-ip-pim.xml.in
index 3f4edc779..fa317a944 100644
--- a/op-mode-definitions/show-ip-pim.xml.in
+++ b/op-mode-definitions/show-ip-pim.xml.in
@@ -13,55 +13,55 @@
<properties>
<help>PIM interfaces information</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip pim interface"</command>
+ <command>vtysh -c "show ip pim interface"</command>
</leafNode>
<leafNode name="join">
<properties>
<help>PIM join information</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip pim join"</command>
+ <command>vtysh -c "show ip pim join"</command>
</leafNode>
<leafNode name="neighbor">
<properties>
<help>PIM neighbor information</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip pim neighbor"</command>
+ <command>vtysh -c "show ip pim neighbor"</command>
</leafNode>
<leafNode name="nexthop">
<properties>
<help>PIM cached nexthop rpf information</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip pim nexthop"</command>
+ <command>vtysh -c "show ip pim nexthop"</command>
</leafNode>
<leafNode name="state">
<properties>
<help>PIM state information</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip pim state"</command>
+ <command>vtysh -c "show ip pim state"</command>
</leafNode>
<leafNode name="statistics">
<properties>
<help>PIM statistics</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip pim statistics"</command>
+ <command>vtysh -c "show ip pim statistics"</command>
</leafNode>
<leafNode name="rp">
<properties>
<help>PIM RP (Rendevous Point) information</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip pim rp-info"</command>
+ <command>vtysh -c "show ip pim rp-info"</command>
</leafNode>
<leafNode name="rpf">
<properties>
<help>PIM cached source rpf information</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip pim rpf"</command>
+ <command>vtysh -c "show ip pim rpf"</command>
</leafNode>
<leafNode name="upstream">
<properties>
<help>PIM upstream information</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip pim upstream"</command>
+ <command>vtysh -c "show ip pim upstream"</command>
</leafNode>
</children>
</node>
diff --git a/op-mode-definitions/show-ip-rip.xml.in b/op-mode-definitions/show-ip-rip.xml.in
index b61ab10a7..768a86ca1 100644
--- a/op-mode-definitions/show-ip-rip.xml.in
+++ b/op-mode-definitions/show-ip-rip.xml.in
@@ -11,13 +11,13 @@
<properties>
<help>Show Routing Information Protocol (RIP) information</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip rip"</command>
+ <command>vtysh -c "show ip rip"</command>
<children>
<leafNode name="status">
<properties>
<help>Show RIP protocol status</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip rip status"</command>
+ <command>vtysh -c "show ip rip status"</command>
</leafNode>
</children>
</node>
diff --git a/op-mode-definitions/show-ip-route.xml.in b/op-mode-definitions/show-ip-route.xml.in
index a98048785..729572b4a 100644
--- a/op-mode-definitions/show-ip-route.xml.in
+++ b/op-mode-definitions/show-ip-route.xml.in
@@ -11,13 +11,13 @@
<properties>
<help>Show IP routes</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip route"</command>
+ <command>vtysh -c "show ip route"</command>
<children>
<leafNode name="bgp">
<properties>
<help>Show IP BGP routes</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip route bgp"</command>
+ <command>vtysh -c "show ip route bgp"</command>
</leafNode>
<node name="cache">
<properties>
@@ -38,7 +38,7 @@
<properties>
<help>Show IP connected routes</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip route connected"</command>
+ <command>vtysh -c "show ip route connected"</command>
</leafNode>
<node name="forward">
<properties>
@@ -59,43 +59,43 @@
<properties>
<help>Show IP IS-IS routes</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip route isis"</command>
+ <command>vtysh -c "show ip route isis"</command>
</leafNode>
<leafNode name="kernel">
<properties>
<help>Show IP kernel routes</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip route kernel"</command>
+ <command>vtysh -c "show ip route kernel"</command>
</leafNode>
<leafNode name="ospf">
<properties>
<help>Show IP OSPF routes</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip route ospf"</command>
+ <command>vtysh -c "show ip route ospf"</command>
</leafNode>
<leafNode name="rip">
<properties>
<help>Show IP RIP routes</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip route rip"</command>
+ <command>vtysh -c "show ip route rip"</command>
</leafNode>
<leafNode name="static">
<properties>
<help>Show IP static routes</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip route static"</command>
+ <command>vtysh -c "show ip route static"</command>
</leafNode>
<leafNode name="summary">
<properties>
<help>Show IP routes summary</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip route summary"</command>
+ <command>vtysh -c "show ip route summary"</command>
</leafNode>
<leafNode name="supernets-only">
<properties>
<help>Show IP supernet routes</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip route supernets-only"</command>
+ <command>vtysh -c "show ip route supernets-only"</command>
</leafNode>
<node name="table">
<properties>
@@ -109,7 +109,7 @@
<list>&lt;1-200&gt;</list>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip route table $5"</command>
+ <command>vtysh -c "show ip route table $5"</command>
</tagNode>
<node name="tag">
<properties>
@@ -123,7 +123,7 @@
<list>&lt;1-4294967295&gt;</list>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip route tag $5"</command>
+ <command>vtysh -c "show ip route tag $5"</command>
</tagNode>
<node name="vrf">
<properties>
@@ -138,7 +138,7 @@
<path>vrf name</path>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip route vrf $5"</command>
+ <command>vtysh -c "show ip route vrf $5"</command>
</tagNode>
</children>
</node>
@@ -149,13 +149,13 @@
<list>&lt;x.x.x.x&gt; &lt;x.x.x.x/x&gt;</list>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip route $4"</command>
+ <command>vtysh -c "show ip route $4"</command>
<children>
<leafNode name="longer-prefixes">
<properties>
<help>Show longer prefixes of routes for specified IP address or prefix</help>
</properties>
- <command>/usr/bin/vtysh -c "show ip route $4 longer-prefixes"</command>
+ <command>vtysh -c "show ip route $4 longer-prefixes"</command>
</leafNode>
</children>
</tagNode>
diff --git a/op-mode-definitions/show-ip.xml.in b/op-mode-definitions/show-ip.xml.in
new file mode 100644
index 000000000..91564440d
--- /dev/null
+++ b/op-mode-definitions/show-ip.xml.in
@@ -0,0 +1,20 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="show">
+ <children>
+ <node name="ip">
+ <properties>
+ <help>Show IPv4 routing information</help>
+ </properties>
+ <children>
+ <node name="neighbors">
+ <properties>
+ <help>Show IPv4 Neighbor Discovery (ND) information</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/show_neigh.py --family inet</command>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition>
diff --git a/op-mode-definitions/show-ipv6-bgp.xml.in b/op-mode-definitions/show-ipv6-bgp.xml.in
deleted file mode 100644
index aad61b97a..000000000
--- a/op-mode-definitions/show-ipv6-bgp.xml.in
+++ /dev/null
@@ -1,203 +0,0 @@
-<?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>&lt;AA:NN&gt; 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>&lt;h:h:h:h:h:h:h:h&gt; &lt;h:h:h:h:h:h:h:h/x&gt;</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>&lt;h:h:h:h:h:h:h:h&gt; &lt;h:h:h:h:h:h:h:h/x&gt;</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-isis.xml.in b/op-mode-definitions/show-isis.xml.in
index 4e308730f..890d511e2 100644
--- a/op-mode-definitions/show-isis.xml.in
+++ b/op-mode-definitions/show-isis.xml.in
@@ -16,10 +16,10 @@
<properties>
<help>Show detailed information</help>
</properties>
- <command>/usr/bin/vtysh -c "show isis database detail"</command>
+ <command>vtysh -c "show isis database detail"</command>
</leafNode>
</children>
- <command>/usr/bin/vtysh -c "show isis database"</command>
+ <command>vtysh -c "show isis database"</command>
</node>
<tagNode name="database">
<properties>
@@ -28,13 +28,13 @@
<list>lsp-id detail</list>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show isis database $4"</command>
+ <command>vtysh -c "show isis database $4"</command>
</tagNode>
<leafNode name="hostname">
<properties>
<help>Show IS-IS dynamic hostname mapping</help>
</properties>
- <command>/usr/bin/vtysh -c "show isis hostname"</command>
+ <command>vtysh -c "show isis hostname"</command>
</leafNode>
<node name="interface">
<properties>
@@ -48,10 +48,10 @@
<properties>
<help>Show detailed information</help>
</properties>
- <command>/usr/bin/vtysh -c "show isis interface detail"</command>
+ <command>vtysh -c "show isis interface detail"</command>
</leafNode>
</children>
- <command>/usr/bin/vtysh -c "show isis interface"</command>
+ <command>vtysh -c "show isis interface"</command>
</node>
<tagNode name="interface">
<properties>
@@ -60,7 +60,7 @@
<script>${vyos_completion_dir}/list_interfaces.py</script>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show isis interface $4"</command>
+ <command>vtysh -c "show isis interface $4"</command>
</tagNode>
<node name="traffic-engineering">
<properties>
@@ -71,13 +71,13 @@
<properties>
<help>Show router information</help>
</properties>
- <command>/usr/bin/vtysh -c "show isis mpls-te router"</command>
+ <command>vtysh -c "show isis mpls-te router"</command>
</leafNode>
<leafNode name="interface">
<properties>
<help>Show interface information</help>
</properties>
- <command>/usr/bin/vtysh -c "show isis mpls-te interface"</command>
+ <command>vtysh -c "show isis mpls-te interface"</command>
</leafNode>
<tagNode name="interface">
<properties>
@@ -86,7 +86,7 @@
<script>${vyos_completion_dir}/list_interfaces.py</script>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show isis mpls-te interface $5"</command>
+ <command>vtysh -c "show isis mpls-te interface $5"</command>
</tagNode>
</children>
</node>
@@ -99,10 +99,10 @@
<properties>
<help>Show detailed information</help>
</properties>
- <command>/usr/bin/vtysh -c "show isis neighbor detail"</command>
+ <command>vtysh -c "show isis neighbor detail"</command>
</leafNode>
</children>
- <command>/usr/bin/vtysh -c "show isis neighbor"</command>
+ <command>vtysh -c "show isis neighbor"</command>
</node>
<tagNode name="neighbor">
<properties>
@@ -111,7 +111,7 @@
<list>system-id</list>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show isis neighbor $4"</command>
+ <command>vtysh -c "show isis neighbor $4"</command>
</tagNode>
<node name="route">
<properties>
@@ -122,16 +122,16 @@
<properties>
<help>Show level-1 routes</help>
</properties>
- <command>/usr/bin/vtysh -c "show isis route level-1"</command>
+ <command>vtysh -c "show isis route level-1"</command>
</leafNode>
<leafNode name="level-2">
<properties>
<help>Show level-2 routes</help>
</properties>
- <command>/usr/bin/vtysh -c "show isis route level-2"</command>
+ <command>vtysh -c "show isis route level-2"</command>
</leafNode>
</children>
- <command>/usr/bin/vtysh -c "show isis route"</command>
+ <command>vtysh -c "show isis route"</command>
</node>
<node name="segment-routing">
<properties>
@@ -142,13 +142,13 @@
<properties>
<help>Show node information</help>
</properties>
- <command>/usr/bin/vtysh -c "show isis segment-routing node"</command>
+ <command>vtysh -c "show isis segment-routing node"</command>
</leafNode>
<leafNode name="prefix-sids">
<properties>
<help>Show prefix segment IDs</help>
</properties>
- <command>/usr/bin/vtysh -c "show isis segment-routing prefix-sids"</command>
+ <command>vtysh -c "show isis segment-routing prefix-sids"</command>
</leafNode>
</children>
</node>
@@ -156,13 +156,13 @@
<properties>
<help>Show IS-IS SPF delay parameters</help>
</properties>
- <command>/usr/bin/vtysh -c "show isis spf-delay-ietf"</command>
+ <command>vtysh -c "show isis spf-delay-ietf"</command>
</leafNode>
<leafNode name="summary">
<properties>
<help>Show IS-IS information summary</help>
</properties>
- <command>/usr/bin/vtysh -c "show isis summary"</command>
+ <command>vtysh -c "show isis summary"</command>
</leafNode>
<node name="topology">
<properties>
@@ -173,16 +173,16 @@
<properties>
<help>Show level-1 routes</help>
</properties>
- <command>/usr/bin/vtysh -c "show isis topology level-1"</command>
+ <command>vtysh -c "show isis topology level-1"</command>
</leafNode>
<leafNode name="level-2">
<properties>
<help>Show level-2 routes</help>
</properties>
- <command>/usr/bin/vtysh -c "show isis topology level-2"</command>
+ <command>vtysh -c "show isis topology level-2"</command>
</leafNode>
</children>
- <command>/usr/bin/vtysh -c "show isis topology"</command>
+ <command>vtysh -c "show isis topology"</command>
</node>
</children>
</node>
diff --git a/op-mode-definitions/show-mpls.xml.in b/op-mode-definitions/show-mpls.xml.in
index 833ac98eb..86f6f1bcc 100644
--- a/op-mode-definitions/show-mpls.xml.in
+++ b/op-mode-definitions/show-mpls.xml.in
@@ -16,41 +16,41 @@
<properties>
<help>Label Information Base</help>
</properties>
- <command>/usr/bin/vtysh -c "show mpls ldp binding"</command>
+ <command>vtysh -c "show mpls ldp binding"</command>
<children>
<node name="detail">
<properties>
<help>Show detailed information</help>
</properties>
- <command>/usr/bin/vtysh -c "show mpls ldp binding detail"</command>
+ <command>vtysh -c "show mpls ldp binding detail"</command>
</node>
<tagNode name="neighbor">
<properties>
<help>Display labels from LDP neighbor</help>
<completionHelp>
<list>&lt;x.x.x.x&gt; &lt;h:h:h:h:h:h:h:h&gt;</list>
- <script>/usr/bin/vtysh -c "show mpls ldp neighbor" | awk '{print $2}' | egrep -v "ID"</script>
+ <script>vtysh -c "show mpls ldp neighbor" | awk '{print $2}' | egrep -v "ID"</script>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show mpls ldp binding neighbor $6"</command>
+ <command>vtysh -c "show mpls ldp binding neighbor $6"</command>
<children>
<leafNode name="detail">
<properties>
<help>Show detailed information</help>
</properties>
- <command>/usr/bin/vtysh -c "show mpls ldp binding neighbor $6 detail"</command>
+ <command>vtysh -c "show mpls ldp binding neighbor $6 detail"</command>
</leafNode>
<tagNode name="local-label">
<properties>
<help>Match locally assigned label value</help>
</properties>
- <command>/usr/bin/vtysh -c "show mpls ldp binding neighbor $6 local-label $8"</command>
+ <command>vtysh -c "show mpls ldp binding neighbor $6 local-label $8"</command>
</tagNode>
<tagNode name="remote-label">
<properties>
<help>Match remotely assigned label value</help>
</properties>
- <command>/usr/bin/vtysh -c "show mpls ldp binding neighbor $6 remote-label $8"</command>
+ <command>vtysh -c "show mpls ldp binding neighbor $6 remote-label $8"</command>
</tagNode>
</children>
</tagNode>
@@ -58,29 +58,29 @@
<properties>
<help>Match locally assigned label value</help>
</properties>
- <command>/usr/bin/vtysh -c "show mpls ldp binding local-label $6"</command>
+ <command>vtysh -c "show mpls ldp binding local-label $6"</command>
<children>
<leafNode name="detail">
<properties>
<help>Show detailed information</help>
</properties>
- <command>/usr/bin/vtysh -c "show mpls ldp binding local-label $6 detail"</command>
+ <command>vtysh -c "show mpls ldp binding local-label $6 detail"</command>
</leafNode>
<tagNode name="neighbor">
<properties>
<help>Match LDP neighbor</help>
<completionHelp>
<list>&lt;x.x.x.x&gt; &lt;h:h:h:h:h:h:h:h&gt;</list>
- <script>/usr/bin/vtysh -c "show mpls ldp neighbor" | awk '{print $2}' | egrep -v "ID"</script>
+ <script>vtysh -c "show mpls ldp neighbor" | awk '{print $2}' | egrep -v "ID"</script>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show mpls ldp binding local-label $6 neighbor $8"</command>
+ <command>vtysh -c "show mpls ldp binding local-label $6 neighbor $8"</command>
</tagNode>
<tagNode name="remote-label">
<properties>
<help>Match remotely assigned label value</help>
</properties>
- <command>/usr/bin/vtysh -c "show mpls ldp binding local-label $6 remote-label $8"</command>
+ <command>vtysh -c "show mpls ldp binding local-label $6 remote-label $8"</command>
</tagNode>
</children>
</tagNode>
@@ -88,29 +88,29 @@
<properties>
<help>Match remotely assigned label value</help>
</properties>
- <command>/usr/bin/vtysh -c "show mpls ldp binding remote-label $6"</command>
+ <command>vtysh -c "show mpls ldp binding remote-label $6"</command>
<children>
<leafNode name="detail">
<properties>
<help>Show detailed information</help>
</properties>
- <command>/usr/bin/vtysh -c "show mpls ldp binding remote-label $6 detail"</command>
+ <command>vtysh -c "show mpls ldp binding remote-label $6 detail"</command>
</leafNode>
<tagNode name="neighbor">
<properties>
<help>Match LDP neighbor</help>
<completionHelp>
<list>&lt;x.x.x.x&gt; &lt;h:h:h:h:h:h:h:h&gt;</list>
- <script>/usr/bin/vtysh -c "show mpls ldp neighbor" | awk '{print $2}' | egrep -v "ID"</script>
+ <script>vtysh -c "show mpls ldp neighbor" | awk '{print $2}' | egrep -v "ID"</script>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show mpls ldp binding remote-label $6 neighbor $8"</command>
+ <command>vtysh -c "show mpls ldp binding remote-label $6 neighbor $8"</command>
</tagNode>
<tagNode name="local-label">
<properties>
<help>Match locally assigned label value</help>
</properties>
- <command>/usr/bin/vtysh -c "show mpls ldp binding remote-label $6 local-label $8"</command>
+ <command>vtysh -c "show mpls ldp binding remote-label $6 local-label $8"</command>
</tagNode>
</children>
</tagNode>
@@ -123,13 +123,13 @@
<list>&lt;x.x.x.x/x&gt; &lt;h:h:h:h:h:h:h:h/h&gt;</list>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show mpls ldp binding $5"</command>
+ <command>vtysh -c "show mpls ldp binding $5"</command>
<children>
<leafNode name="detail">
<properties>
<help>Show detailed information</help>
</properties>
- <command>/usr/bin/vtysh -c "show mpls ldp binding $5 detail"</command>
+ <command>vtysh -c "show mpls ldp binding $5 detail"</command>
</leafNode>
</children>
</tagNode>
@@ -137,13 +137,13 @@
<properties>
<help>Discovery hello information</help>
</properties>
- <command>/usr/bin/vtysh -c "show mpls ldp discovery"</command>
+ <command>vtysh -c "show mpls ldp discovery"</command>
<children>
<leafNode name="detail">
<properties>
<help>Show detailed information</help>
</properties>
- <command>/usr/bin/vtysh -c "show mpls ldp discovery detail"</command>
+ <command>vtysh -c "show mpls ldp discovery detail"</command>
</leafNode>
</children>
</node>
@@ -151,25 +151,25 @@
<properties>
<help>LDP interface information</help>
</properties>
- <command>/usr/bin/vtysh -c "show mpls ldp interface"</command>
+ <command>vtysh -c "show mpls ldp interface"</command>
</node>
<node name="neighbor">
<properties>
<help>LDP neighbor information</help>
</properties>
- <command>/usr/bin/vtysh -c "show mpls ldp neighbor"</command>
+ <command>vtysh -c "show mpls ldp neighbor"</command>
<children>
<leafNode name="detail">
<properties>
<help>Show detailed information</help>
</properties>
- <command>/usr/bin/vtysh -c "show mpls ldp neighbor detail"</command>
+ <command>vtysh -c "show mpls ldp neighbor detail"</command>
</leafNode>
<leafNode name="capabilities">
<properties>
<help>Show neighbor capability information</help>
</properties>
- <command>/usr/bin/vtysh -c "show mpls ldp neighbor capabilities"</command>
+ <command>vtysh -c "show mpls ldp neighbor capabilities"</command>
</leafNode>
</children>
</node>
@@ -178,22 +178,22 @@
<help>LDP neighbor</help>
<completionHelp>
<list>&lt;x.x.x.x&gt; &lt;h:h:h:h:h:h:h:h&gt;</list>
- <script>/usr/bin/vtysh -c "show mpls ldp neighbor" | awk '{print $2}' | egrep -v "ID"</script>
+ <script>vtysh -c "show mpls ldp neighbor" | awk '{print $2}' | egrep -v "ID"</script>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show mpls ldp neighbor $5"</command>
+ <command>vtysh -c "show mpls ldp neighbor $5"</command>
<children>
<leafNode name="detail">
<properties>
<help>Show detailed information</help>
</properties>
- <command>/usr/bin/vtysh -c "show mpls ldp neighbor $5 detail"</command>
+ <command>vtysh -c "show mpls ldp neighbor $5 detail"</command>
</leafNode>
<leafNode name="capabilities">
<properties>
<help>Show neighbor capability information</help>
</properties>
- <command>/usr/bin/vtysh -c "show mpls ldp neighbor $5 capabilities"</command>
+ <command>vtysh -c "show mpls ldp neighbor $5 capabilities"</command>
</leafNode>
</children>
</tagNode>
@@ -203,13 +203,13 @@
<properties>
<help>Show MPLS pseudowire interfaces</help>
</properties>
- <command>/usr/bin/vtysh -c "show mpls pseudowires"</command>
+ <command>vtysh -c "show mpls pseudowires"</command>
</node>
<node name="table">
<properties>
<help>Show MPLS table</help>
</properties>
- <command>/usr/bin/vtysh -c "show mpls table"</command>
+ <command>vtysh -c "show mpls table"</command>
</node>
</children>
</node>
diff --git a/op-mode-definitions/show-protocols-bfd.xml.in b/op-mode-definitions/show-protocols-bfd.xml.in
index 3d9b67c67..886b01e51 100644
--- a/op-mode-definitions/show-protocols-bfd.xml.in
+++ b/op-mode-definitions/show-protocols-bfd.xml.in
@@ -13,13 +13,13 @@
<properties>
<help>Show all Bidirectional Forwarding Detection (BFD) peer status</help>
</properties>
- <command>/usr/bin/vtysh -c "show bfd peers"</command>
+ <command>vtysh -c "show bfd peers"</command>
<children>
<leafNode name="counters">
<properties>
<help>Show Bidirectional Forwarding Detection (BFD) peer counters</help>
</properties>
- <command>/usr/bin/vtysh -c "show bfd peers counters"</command>
+ <command>vtysh -c "show bfd peers counters"</command>
</leafNode>
</children>
</node>
@@ -27,16 +27,16 @@
<properties>
<help>Show Bidirectional Forwarding Detection (BFD) peer status</help>
<completionHelp>
- <script>/usr/bin/vtysh -c "show bfd peers" | awk '/[:blank:]*peer/ { printf "%s\n", $2 }'</script>
+ <script>vtysh -c "show bfd peers" | awk '/[:blank:]*peer/ { printf "%s\n", $2 }'</script>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show bfd peers" | awk -v BFD_PEER=$5 'BEGIN { regex = sprintf("(peer %s.*)vrf", BFD_PEER) } { if (match($0, regex, bfd_peer_value)) peer=bfd_peer_value[1] } END { if (peer) system("/usr/bin/vtysh -c \"show bfd " peer "\"") }'</command>
+ <command>vtysh -c "show bfd peers" | awk -v BFD_PEER=$5 'BEGIN { regex = sprintf("(peer %s.*)vrf", BFD_PEER) } { if (match($0, regex, bfd_peer_value)) peer=bfd_peer_value[1] } END { if (peer) system("vtysh -c \"show bfd " peer "\"") }'</command>
<children>
<leafNode name="counters">
<properties>
<help>Show Bidirectional Forwarding Detection (BFD) peer counters</help>
</properties>
- <command>/usr/bin/vtysh -c "show bfd peers" | awk -v BFD_PEER=$5 'BEGIN { regex = sprintf("(peer %s.*)vrf", BFD_PEER) } { if (match($0, regex, bfd_peer_value)) peer=bfd_peer_value[1] } END { if (peer) system("/usr/bin/vtysh -c \"show bfd " peer " counters\"") }'</command>
+ <command>vtysh -c "show bfd peers" | awk -v BFD_PEER=$5 'BEGIN { regex = sprintf("(peer %s.*)vrf", BFD_PEER) } { if (match($0, regex, bfd_peer_value)) peer=bfd_peer_value[1] } END { if (peer) system("vtysh -c \"show bfd " peer " counters\"") }'</command>
</leafNode>
</children>
</tagNode>
@@ -44,7 +44,7 @@
<properties>
<help>Show Bidirectional Forwarding Detection (BFD) peers brief</help>
</properties>
- <command>/usr/bin/vtysh -c "show bfd peers brief"</command>
+ <command>vtysh -c "show bfd peers brief"</command>
</leafNode>
</children>
</node>
diff --git a/op-mode-definitions/show-route-map.xml.in b/op-mode-definitions/show-route-map.xml.in
index 0e376757b..633b2a4cb 100644
--- a/op-mode-definitions/show-route-map.xml.in
+++ b/op-mode-definitions/show-route-map.xml.in
@@ -6,7 +6,7 @@
<properties>
<help>Show route-map information</help>
</properties>
- <command>/usr/bin/vtysh -c "show route-map"</command>
+ <command>vtysh -c "show route-map"</command>
</node>
<tagNode name="route-map">
<properties>
@@ -15,7 +15,7 @@
<path>policy route-map</path>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show route-map $3"</command>
+ <command>vtysh -c "show route-map $3"</command>
</tagNode>
</children>
</node>
diff --git a/op-mode-definitions/show-rpki.xml.in b/op-mode-definitions/show-rpki.xml.in
index d68c3b862..f593e4803 100644
--- a/op-mode-definitions/show-rpki.xml.in
+++ b/op-mode-definitions/show-rpki.xml.in
@@ -11,19 +11,19 @@
<properties>
<help>Show RPKI cache connections</help>
</properties>
- <command>/usr/bin/vtysh -c "show rpki cache-connection"</command>
+ <command>vtysh -c "show rpki cache-connection"</command>
</leafNode>
<leafNode name="cache-server">
<properties>
<help>Show RPKI cache servers information</help>
</properties>
- <command>/usr/bin/vtysh -c "show rpki cache-server"</command>
+ <command>vtysh -c "show rpki cache-server"</command>
</leafNode>
<leafNode name="prefix-table">
<properties>
<help>Show RPKI-validated prefixes</help>
</properties>
- <command>/usr/bin/vtysh -c "show rpki prefix-table"</command>
+ <command>vtysh -c "show rpki prefix-table"</command>
</leafNode>
</children>
</node>
diff --git a/op-mode-definitions/show-system.xml.in b/op-mode-definitions/show-system.xml.in
index 0623e3b62..5e9bf719e 100644
--- a/op-mode-definitions/show-system.xml.in
+++ b/op-mode-definitions/show-system.xml.in
@@ -128,7 +128,7 @@
<properties>
<help>Show memory usage of all routing protocols</help>
</properties>
- <command>/usr/bin/vtysh -c "show memory"</command>
+ <command>vtysh -c "show memory"</command>
</leafNode>
</children>
</node>
@@ -162,7 +162,7 @@
<properties>
<help>Show Quagga routing daemons</help>
</properties>
- <command>/usr/bin/vtysh -c "show daemons"</command>
+ <command>vtysh -c "show daemons"</command>
</leafNode>
<leafNode name="storage">
<properties>
diff --git a/op-mode-definitions/show-table.xml.in b/op-mode-definitions/show-table.xml.in
index b093a5de7..c7998e35d 100644
--- a/op-mode-definitions/show-table.xml.in
+++ b/op-mode-definitions/show-table.xml.in
@@ -6,7 +6,7 @@
<properties>
<help>Show routing tables</help>
</properties>
- <command>/usr/bin/vtysh -c "show zebra router table summary"</command>
+ <command>vtysh -c "show zebra router table summary"</command>
</leafNode>
</children>
</node>
diff --git a/op-mode-definitions/show-version.xml.in b/op-mode-definitions/show-version.xml.in
index 2202d27b3..f1e2e2666 100644
--- a/op-mode-definitions/show-version.xml.in
+++ b/op-mode-definitions/show-version.xml.in
@@ -24,7 +24,7 @@
<properties>
<help>Show Quagga version information</help>
</properties>
- <command>/usr/bin/vtysh -c "show version"</command>
+ <command>vtysh -c "show version"</command>
</leafNode>
</children>
</node>
diff --git a/op-mode-definitions/traffic-dump.xml.in b/op-mode-definitions/traffic-dump.xml.in
index cd0d459ca..76e3ddce5 100644
--- a/op-mode-definitions/traffic-dump.xml.in
+++ b/op-mode-definitions/traffic-dump.xml.in
@@ -16,7 +16,7 @@
</completionHelp>
</properties>
<children>
- <tagNode name="verbose">
+ <node name="verbose">
<command>sudo tcpdump -vvv -ne -i $4</command>
<properties>
<help>Provide more detailed packets for each monitored traffic</help>
@@ -43,7 +43,7 @@
</children>
</tagNode>
</children>
- </tagNode>
+ </node>
<tagNode name="filter">
<command>sudo tcpdump -n -i $4 "${@:6}"</command>
<properties>