summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorjack9603301 <jack9603301@163.com>2020-08-10 21:45:58 +0800
committerjack9603301 <jack9603301@163.com>2020-08-10 21:45:58 +0800
commit0393bbebeda9d8a610accf15377a3487b4fc1ddc (patch)
treea5bf8d153581af0d83c6f7ce27f3d5b300984fa7 /op-mode-definitions
parentb39c21af1de08f87cc5c9131ae4f9afc4e9759a5 (diff)
downloadvyos-1x-0393bbebeda9d8a610accf15377a3487b4fc1ddc.tar.gz
vyos-1x-0393bbebeda9d8a610accf15377a3487b4fc1ddc.zip
tcptraceroute: T2723: Improve command line options, support execution without port
Because the ports of tcptraceroute and tcptraceroute6 do not need to be specified in this feature, modify the command line syntax
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/traceroute.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/op-mode-definitions/traceroute.xml b/op-mode-definitions/traceroute.xml
index 640f0b90c..10ee3c07e 100644
--- a/op-mode-definitions/traceroute.xml
+++ b/op-mode-definitions/traceroute.xml
@@ -30,6 +30,7 @@
<properties>
<help>Route tracing and port detection using TCP</help>
</properties>
+ <command>sudo /usr/bin/tcptraceroute "$3" </command>
<children>
<tagNode name="port">
<properties>
@@ -57,6 +58,7 @@
<properties>
<help>Use TCP/IPv6 packets to perform a traceroute</help>
</properties>
+ <command>sudo /usr/bin/tcptraceroute6 "$3" </command>
<children>
<tagNode name="port">
<properties>
@@ -103,6 +105,7 @@
<properties>
<help>Route tracing and port detection using TCP</help>
</properties>
+ <command>sudo /usr/sbin/ip vrf exec "$3" /usr/bin/tcptraceroute "$5" </command>
<children>
<tagNode name="port">
<properties>
@@ -130,6 +133,7 @@
<properties>
<help>Use TCP/IPv6 packets to perform a traceroute</help>
</properties>
+ <command>sudo /usr/sbin/ip vrf exec "$3" /usr/bin/tcptraceroute6 "$5" </command>
<children>
<tagNode name="port">
<properties>