From dd11b6ed9814d748ff4a39b01468169b18cc361b Mon Sep 17 00:00:00 2001 From: "Pavel D. Kuzin" Date: Fri, 31 Dec 2021 00:12:56 +0300 Subject: [PATCH] routing-instance selection --- htdocs/index.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/htdocs/index.php b/htdocs/index.php index 4f8949c..eab7202 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -461,6 +461,15 @@ function load() { { $exec = 'show route advertising-protocol bgp '.$exec_exp[1].' table '.$table; } + else if (preg_match("/^traceroute (ip|ipv6) ([\d\.A-Fa-f:\/]+)$/", $exec, $exec_exp)) + { + if ($routing_instance){ + $exec = 'traceroute '.$exec_exp[1].' routing-instance '.$routing_instance.' '.$exec_exp[2]; + }else{ + $exec = 'traceroute '.$exec_exp[1].' '.$exec_exp[2]; + } + } + } if ($command == 'graph')