mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fixes to BGP global page
git-svn-id: http://www.observium.org/svn/observer/trunk@2871 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -59,7 +59,7 @@ function generate_device_url($device, $vars=array())
|
||||
return generate_url(array('page' => 'device', 'device' => $device['device_id']), $vars);
|
||||
}
|
||||
|
||||
function generate_device_link($device, $text=0, $vars=array(), $start=0, $end=0)
|
||||
function generate_device_link($device, $text=NULL, $vars=array(), $start=0, $end=0)
|
||||
{
|
||||
global $config;
|
||||
|
||||
@@ -92,10 +92,10 @@ function generate_device_link($device, $text=0, $vars=array(), $start=0, $end=0)
|
||||
if ($device['os']) { $contents .= mres($config['os'][$device['os']]['text']); }
|
||||
if ($device['version']) { $contents .= " ".mres($device['version']); }
|
||||
if ($device['features']) { $contents .= " (".mres($device['features']).")"; }
|
||||
# if ($device['hardware']) { $contents .= " - ".$device['hardware']; }
|
||||
if ($device['hardware']) { $contents .= " - ".$device['hardware']; }
|
||||
if (isset($device['location'])) { $contents .= "<br />" . htmlentities($device['location']); }
|
||||
$contents .= "</div>";
|
||||
|
||||
# if (isset($device['location'])) { $contents .= "" . htmlentities($device['location'])."<br />"; }
|
||||
foreach ($graphs as $entry)
|
||||
{
|
||||
$graph = $entry['graph'];
|
||||
|
||||
@@ -442,7 +442,7 @@ if ($_SESSION['userlevel'] >= '5' && ($routing_count['bgp']+$routing_count['ospf
|
||||
{ ## FIXME link below broken!
|
||||
echo('
|
||||
<li><hr width=140></li>
|
||||
<li><a href="routing/protocol=bgp/alerts/"><img src="images/16/link_error.png" border="0" align="absmiddle" /> Alerted BGP (' . $bgp_alerts . ')</a></li>
|
||||
<li><a href="routing/protocol=bgp/state=down/"><img src="images/16/link_error.png" border="0" align="absmiddle" /> Alerted BGP (' . $bgp_alerts . ')</a></li>
|
||||
');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user