mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
web interface ospf XD FOR FENESTRO TO MAKE GREAT TEST
git-svn-id: http://www.observium.org/svn/observer/trunk@2176 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -130,6 +130,8 @@ if (device_permitted($_GET['id']) || $check_device == $_GET['id'])
|
||||
</li>';
|
||||
}
|
||||
|
||||
if ($config['enable_ospf']) { $ospf_menu = 1; }
|
||||
|
||||
if(isset($bgp_menu) || isset($ospf_menu) || isset($isis_menu) || isset($eigrp_menu) || isset($bgp_menu))
|
||||
{
|
||||
echo('<li class="' . $select['routing'] . '">
|
||||
|
@@ -9,9 +9,14 @@ if ($bgp_count) { $datas[] = 'bgp'; }
|
||||
$cef_count = mysql_result(mysql_query("select count(*) from cef_switching WHERE device_id = '" . $device['device_id'] . "'"), 0);
|
||||
if ($cef_count) { $datas[] = 'cef'; }
|
||||
|
||||
$ospf_count = mysql_result(mysql_query("select count(*) from ospf_instances WHERE device_id = '" . $device['device_id'] . "'"), 0);
|
||||
if ($ospf_count) { $datas[] = 'ospf'; }
|
||||
|
||||
|
||||
$type_text['overview'] = "Overview";
|
||||
$type_text['bgp'] = "BGP";
|
||||
$type_text['cef'] = "CEF";
|
||||
$type_text['ospf'] = "OSPF";
|
||||
|
||||
print_optionbar_start();
|
||||
|
||||
|
5
html/pages/device/routing/ospf.inc.php
Normal file
5
html/pages/device/routing/ospf.inc.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
echo("<pre>");
|
||||
print_r(mysql_fetch_assoc(mysql_query("SELECT * FROM `ospf_instances` WHERE `device_id` = '".$device['device_id']."'")));
|
||||
echo("</pre>");
|
||||
?>
|
Reference in New Issue
Block a user