From 096c77340b2a6a72edbed660fe4fb000aca9275f Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Fri, 1 May 2020 10:34:19 +0200 Subject: op-mode: monitor: traceroute: T2411: add VRF awareness --- op-mode-definitions/traceroute.xml | 41 ++++++++++++++++++++++++++++++-------- 1 file changed, 33 insertions(+), 8 deletions(-) diff --git a/op-mode-definitions/traceroute.xml b/op-mode-definitions/traceroute.xml index 43fba3cdd..1aea8eef6 100644 --- a/op-mode-definitions/traceroute.xml +++ b/op-mode-definitions/traceroute.xml @@ -7,7 +7,7 @@ <hostname> <x.x.x.x> <h:h:h:h:h:h:h:h> - /usr/bin/traceroute $2 + /usr/bin/traceroute "$2" @@ -18,7 +18,7 @@ <hostname> <x.x.x.x> - /usr/bin/traceroute -4 $3 + /usr/bin/traceroute -4 "$3" @@ -27,21 +27,21 @@ <hostname> <h:h:h:h:h:h:h:h> - /usr/bin/traceroute -6 $3 + /usr/bin/traceroute -6 "$3" - Track network path to specified node via given VRF instance + Track network path to specified node via given VRF vrf name - - Track network path to specified node via given VRF instance + Track network path to specified node via given VRF <hostname> <x.x.x.x> <h:h:h:h:h:h:h:h> @@ -74,13 +74,38 @@ - Monitor the path to a destination in realtime + Monitor path to destination in realtime <hostname> <x.x.x.x> <h:h:h:h:h:h:h:h> - /usr/bin/mtr $3 + /usr/bin/mtr "$3" + + + + + Monitor path to destination in realtime via given VRF + + vrf name + + + + + + + Track network path to specified node via given VRF + + <hostname> <x.x.x.x> <h:h:h:h:h:h:h:h> + + + sudo /usr/sbin/ip vrf exec "$4" /usr/bin/mtr "$5" + + + + + -- cgit v1.2.3