Skip to content

Commit

Permalink
routing-instance selection
Browse files Browse the repository at this point in the history
  • Loading branch information
mirackle-spb committed Dec 30, 2021
1 parent c1c7ef4 commit dd11b6e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions htdocs/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit dd11b6e

Please sign in to comment.