fix: empty routing menu where only CEF is present (#5225)

This commit is contained in:
Aldemir Akpinar
2016-12-22 15:51:06 +02:00
committed by Neil Lathwood
parent b7e08b1e40
commit 0cfff9b122
2 changed files with 11 additions and 0 deletions

View File

@ -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:

View File

@ -490,6 +490,16 @@ if ($_SESSION['userlevel'] >= '5' && $routing_count['bgp']) {
<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('