diff --git a/html/pages/device/routing.inc.php b/html/pages/device/routing.inc.php
index dc8d968a4f..9c3eda34f2 100644
--- a/html/pages/device/routing.inc.php
+++ b/html/pages/device/routing.inc.php
@@ -47,9 +47,20 @@ if (is_file("pages/device/routing/".mres($_GET['opta']).".inc.php"))
{
if ($type != "overview")
{
- $graph_title = $type_text[$type];
- $graph_type = "device_".$type;
- include("includes/print-device-graph.php");
+ if(is_file("pages/device/routing/overview/".mres($type).".inc.php")) {
+
+ $g_i++;
+ if (!is_integer($g_i/2)) { $row_colour = $list_colour_a; } else { $row_colour = $list_colour_b; }
+
+ echo('
');
+ echo('
'.$type_text[$type].'
');
+ include("pages/device/routing/overview/".mres($type).".inc.php");
+ echo('
');
+ } else {
+ $graph_title = $type_text[$type];
+ $graph_type = "device_".$type;
+ include("includes/print-device-graph.php");
+ }
}
}
}
diff --git a/html/pages/device/routing/overview/bgp.inc.php b/html/pages/device/routing/overview/bgp.inc.php
new file mode 100644
index 0000000000..20cc47aaf1
--- /dev/null
+++ b/html/pages/device/routing/overview/bgp.inc.php
@@ -0,0 +1,14 @@
+
+AS".$device['bgpLocalAs']."");
+
+echo("
");
+
+$total = mysql_result(mysql_query("SELECT count(*) FROM `bgpPeers` WHERE `device_id` = '".$device['device_id']."'"),0);
+$up = mysql_result(mysql_query("SELECT count(*) FROM `bgpPeers` WHERE `device_id` = '".$device['device_id']."' AND `bgpPeerState` = 'established'"),0);
+$stop = mysql_result(mysql_query("SELECT count(*) FROM `bgpPeers` WHERE `device_id` = '".$device['device_id']."' AND `bgpPeerAdminStatus` = 'stop'"),0);
+
+echo("Sessions: ".$total." Up: ".$up." Down: ".($total-$up) . ($stop != 0 ? " ( Shutdown: ".$stop." )" : ""));
+
+?>
diff --git a/html/pages/device/routing/overview/ospf.inc.php b/html/pages/device/routing/overview/ospf.inc.php
new file mode 100644
index 0000000000..6051ffbb37
--- /dev/null
+++ b/html/pages/device/routing/overview/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("");
+?>