diff --git a/html/pages/device.inc.php b/html/pages/device.inc.php index f5436962fe..4a1184c110 100644 --- a/html/pages/device.inc.php +++ b/html/pages/device.inc.php @@ -130,6 +130,8 @@ if (device_permitted($_GET['id']) || $check_device == $_GET['id']) '; } + if ($config['enable_ospf']) { $ospf_menu = 1; } + if(isset($bgp_menu) || isset($ospf_menu) || isset($isis_menu) || isset($eigrp_menu) || isset($bgp_menu)) { echo('
  • diff --git a/html/pages/device/routing.inc.php b/html/pages/device/routing.inc.php index 4af353351c..dc8d968a4f 100644 --- a/html/pages/device/routing.inc.php +++ b/html/pages/device/routing.inc.php @@ -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(); diff --git a/html/pages/device/routing/ospf.inc.php b/html/pages/device/routing/ospf.inc.php new file mode 100644 index 0000000000..6051ffbb37 --- /dev/null +++ b/html/pages/device/routing/ospf.inc.php @@ -0,0 +1,5 @@ +"); +print_r(mysql_fetch_assoc(mysql_query("SELECT * FROM `ospf_instances` WHERE `device_id` = '".$device['device_id']."'"))); +echo(""); +?>