From d06fd05748aeeb6edba7c6b0e74ba448d9b2e73a Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Mon, 16 Mar 2020 22:35:17 +0100 Subject: vrf: T31: add traceroute support inside VRF context --- op-mode-definitions/traceroute.xml | 46 +++++++++++++++++++++++++++++++++----- 1 file changed, 40 insertions(+), 6 deletions(-) (limited to 'op-mode-definitions/traceroute.xml') diff --git a/op-mode-definitions/traceroute.xml b/op-mode-definitions/traceroute.xml index 85f6047c1..d16e9e3b8 100644 --- a/op-mode-definitions/traceroute.xml +++ b/op-mode-definitions/traceroute.xml @@ -12,9 +12,8 @@ <hostname> <x.x.x.x> <h:h:h:h:h:h:h:h> - /usr/bin/traceroute $2 + traceroute $2 - Track network path to <hostname|IPv4 address> @@ -22,9 +21,8 @@ <hostname> <x.x.x.x> - /usr/bin/traceroute -4 $3 + traceroute -4 $3 - Track network path to <hostname|IPv6 address> @@ -32,11 +30,47 @@ <hostname> <h:h:h:h:h:h:h:h> - /usr/bin/traceroute -6 $3 + traceroute -6 $3 + + + + Track network path to specified node via given VRF instance + + vrf name + + + + + + Track network path to specified node + + <hostname> <x.x.x.x> <h:h:h:h:h:h:h:h> + + + sudo ip vrf exec "$3" traceroute "$4" + + + + Track network path to <hostname|IPv4 address> + + <hostname> <x.x.x.x> + + + sudo ip vrf exec "$3" traceroute -4 "$5" + + + + Track network path to <hostname|IPv6 address> + + <hostname> <h:h:h:h:h:h:h:h> + + + sudo ip vrf exec "$3" traceroute -6 "$5" + + - -- cgit v1.2.3