mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
don't show routing tab if there are no ospf instances found (and no bgp)
git-svn-id: http://www.observium.org/svn/observer/trunk@2191 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@ -130,9 +130,13 @@ if (device_permitted($_GET['id']) || $check_device == $_GET['id'])
|
||||
</li>';
|
||||
}
|
||||
|
||||
if ($config['enable_ospf']) { $ospf_menu = 1; }
|
||||
if ($config['enable_ospf'])
|
||||
{
|
||||
$ospf_count = mysql_result(mysql_query("select count(*) from ospf_instances WHERE device_id = '" . $device['device_id'] . "'"), 0);
|
||||
if ($ospf_count) { $ospf_menu = 1; }
|
||||
}
|
||||
|
||||
if(isset($bgp_menu) || isset($ospf_menu) || isset($isis_menu) || isset($eigrp_menu) || isset($bgp_menu))
|
||||
if (isset($bgp_menu) || isset($ospf_menu) || isset($isis_menu) || isset($eigrp_menu))
|
||||
{
|
||||
echo('<li class="' . $select['routing'] . '">
|
||||
<a href="device/' . $device['device_id'] . '/routing/">
|
||||
|
Reference in New Issue
Block a user