mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: empty routing menu where only CEF is present (#5225)
This commit is contained in:
committed by
Neil Lathwood
parent
b7e08b1e40
commit
0cfff9b122
@ -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:
|
||||
|
@ -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('
|
||||
|
Reference in New Issue
Block a user