Skip to content

Commit

Permalink
fix: empty routing menu where only CEF is present (#5225)
Browse files Browse the repository at this point in the history
  • Loading branch information
aldemira authored and laf committed Dec 22, 2016
1 parent b7e08b1 commit 0cfff9b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions AUTHORS.md
Expand Up @@ -160,6 +160,7 @@ LibreNMS contributors:
- Martin Zatloukal <slezi2@pvfree.net> (erotel)
- Matthew Schwen <mschwen@gmail.com> (mattschwen)
- Joel Cant <joel@linuxmod.co.uk> (NerdBlender
- Aldemir Akpinar <aldemir.akpinar@gmail.com> (aldemir_a)

[1]: http://observium.org/ "Observium web site"
Observium was written by:
Expand Down
10 changes: 10 additions & 0 deletions html/includes/print-menubar.php
Expand Up @@ -490,6 +490,16 @@
<li><a href="routing/protocol=bgp/type=internal/graph=NULL/"><i class="fa fa-external-link fa-rotate-180 fa-fw fa-lg" aria-hidden="true"></i> BGP Internal</a></li>');
}

// CEF info
if ($_SESSION['userlevel'] >= '5' && $routing_count['cef']) {
if ($separator) {
echo(' <li role="presentation" class="divider"></li>');
$separator = 0;
}
echo('<li><a href="routing/protocol=cef/"><i class="fa fa-exchange fa-fw fa-lg" aria-hidden="true"></i> Cisco CEF </a></li>');
$separator++;
}

// Do Alerts at the bottom
if ($bgp_alerts) {
echo('
Expand Down

0 comments on commit 0cfff9b

Please sign in to comment.