diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-08-16 18:22:39 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-08-16 18:22:39 +0200 |
commit | 57aad3a59f9f50d44702cca96a8b6069256caf5e (patch) | |
tree | 391aa55e5eef03ef27df7c0aa5811996120bc9bc /op-mode-definitions/traceroute.xml | |
parent | 888163e95c89201ee28c0745508e1ba50c444164 (diff) | |
parent | 399bc459b94d4b918364d1e6b168d1842c8445b5 (diff) | |
download | vyos-1x-57aad3a59f9f50d44702cca96a8b6069256caf5e.tar.gz vyos-1x-57aad3a59f9f50d44702cca96a8b6069256caf5e.zip |
Merge branch 'T2723' of https://github.com/jack9603301/vyos-1x into current
* 'T2723' of https://github.com/jack9603301/vyos-1x:
tcptraceroute: T2723: Modify port description
tcptraceroute: T2723: Improve command line options, support execution without port
tcptraceroute: T2723: Support VRF
tcptraceroute: T2723: Fix the problem that tcptraceroute6 cannot be executed
Diffstat (limited to 'op-mode-definitions/traceroute.xml')
-rw-r--r-- | op-mode-definitions/traceroute.xml | 56 |
1 files changed, 48 insertions, 8 deletions
diff --git a/op-mode-definitions/traceroute.xml b/op-mode-definitions/traceroute.xml index efbaaeb2f..6a44fc25b 100644 --- a/op-mode-definitions/traceroute.xml +++ b/op-mode-definitions/traceroute.xml @@ -26,22 +26,23 @@ </properties> <command>/usr/bin/traceroute -4 "$3"</command> <children> - <tagNode name="tcp"> + <node name="tcp"> <properties> <help>Route tracing and port detection using TCP</help> </properties> + <command>sudo /usr/bin/tcptraceroute "$3" </command> <children> <tagNode name="port"> <properties> - <help>Perform operations on TCP ports</help> + <help>TCP port to connect to for path tracing</help> <completionHelp> <list>0-65535</list> </completionHelp> </properties> - <command>sudo /usr/sbin/tcptraceroute "$3" $6</command> + <command>sudo /usr/bin/tcptraceroute "$3" $6</command> </tagNode> </children> - </tagNode> + </node> </children> </tagNode> <tagNode name="ipv6"> @@ -53,22 +54,23 @@ </properties> <command>/usr/bin/traceroute -6 "$3"</command> <children> - <tagNode name="tcp"> + <node name="tcp"> <properties> <help>Use TCP/IPv6 packets to perform a traceroute</help> </properties> + <command>sudo /usr/bin/tcptraceroute6 "$3" </command> <children> <tagNode name="port"> <properties> - <help>Perform operations on TCP ports</help> + <help>TCP port to connect to for path tracing</help> <completionHelp> <list>0-65535</list> </completionHelp> </properties> - <command>sudo /usr/sbin/tcptraceroute6 "$3" $6</command> + <command>sudo /usr/bin/tcptraceroute6 "$3" $6</command> </tagNode> </children> - </tagNode> + </node> </children> </tagNode> <tagNode name="vrf"> @@ -98,6 +100,25 @@ </completionHelp> </properties> <command>sudo /usr/sbin/ip vrf exec "$3" /usr/bin/traceroute -4 "$5"</command> + <children> + <node name="tcp"> + <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> + <help>TCP port to connect to for path tracing</help> + <completionHelp> + <list>0-65535</list> + </completionHelp> + </properties> + <command>sudo /usr/sbin/ip vrf exec "$3" /usr/bin/tcptraceroute "$5" $8</command> + </tagNode> + </children> + </node> + </children> </tagNode> <tagNode name="ipv6"> <properties> @@ -107,6 +128,25 @@ </completionHelp> </properties> <command>sudo /usr/sbin/ip vrf exec "$3" /usr/bin/traceroute -6 "$5"</command> + <children> + <node name="tcp"> + <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> + <help>TCP port to connect to for path tracing</help> + <completionHelp> + <list>0-65535</list> + </completionHelp> + </properties> + <command>sudo /usr/sbin/ip vrf exec "$3" /usr/bin/tcptraceroute6 "$5" $8</command> + </tagNode> + </children> + </node> + </children> </tagNode> </children> </tagNode> |