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:
Adam Amstrong
2011-04-27 01:46:01 +00:00
parent ac299ec4fa
commit 9329a6ac9c
3 changed files with 12 additions and 0 deletions

View File

@@ -130,6 +130,8 @@ if (device_permitted($_GET['id']) || $check_device == $_GET['id'])
</li>'; </li>';
} }
if ($config['enable_ospf']) { $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) || isset($bgp_menu))
{ {
echo('<li class="' . $select['routing'] . '"> echo('<li class="' . $select['routing'] . '">

View File

@@ -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); $cef_count = mysql_result(mysql_query("select count(*) from cef_switching WHERE device_id = '" . $device['device_id'] . "'"), 0);
if ($cef_count) { $datas[] = 'cef'; } 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['overview'] = "Overview";
$type_text['bgp'] = "BGP"; $type_text['bgp'] = "BGP";
$type_text['cef'] = "CEF"; $type_text['cef'] = "CEF";
$type_text['ospf'] = "OSPF";
print_optionbar_start(); print_optionbar_start();

View 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>");
?>