Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add huawei Graph #44

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Adiciona pesquisa para anuncios huawei
  • Loading branch information
davinunes committed Oct 30, 2022
commit a7719986907724548dc4f56526c1968e44b83807
5 changes: 3 additions & 2 deletions htdocs/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@
'bgp' => 'display bgp routing-table %s',
'advertised-routes' => 'display bgp routing-table peer %s advertised-routes | no-more',
'bgp-within' => 'display bgp routing-table community | include %s',
'received-routes' => 'display bgp routing-table peer %s | no-more',
'received-routes' => 'display bgp routing-table peer %s received-routes | no-more',
'routes' => 'display bgp routing-table peer %s received-routes active | no-more',
'summary' => 'display bgp peer',
'ping' => 'ping %s',
Expand Down Expand Up @@ -1023,6 +1023,7 @@ function parse_out($output, $check = FALSE)
$asinfo = get_asinfo("AS".$asn);
$estilo = $status == "Established" ? 'style="background-color: bisque;"' : "";
$pesquisar = $status == "Established" ? link_command("advertised-routes", $peer, $name = 'Anuncios', $return_uri = FALSE) : "";
$pesquisar_recebidas = $prefixos > 0 ? link_command("received-routes", $peer, $name = $prefixos, $return_uri = FALSE) : "$prefixos";

if(sizeof(explode("h",$uptime))>1){
$horasb = explode("h",$uptime)[0];
Expand Down Expand Up @@ -1052,7 +1053,7 @@ function parse_out($output, $check = FALSE)
<td>$enviado</td>
<td>$status</td>
<td style='text-align: right;'>$uptime</td>
<td>$prefixos</td>
<td>$pesquisar_recebidas</td>
<td>$OutQ</td>
</tr>";

Expand Down