diff --git a/html/includes/topnav.inc.php b/html/includes/topnav.inc.php
index 9c6a0a788..3064a0d74 100644
--- a/html/includes/topnav.inc.php
+++ b/html/includes/topnav.inc.php
@@ -1,6 +1,8 @@
-
= '10') { dbFetchCell("TRUNCATE TABLE `syslog`"); } ?>
@@ -14,7 +12,7 @@
-
diff --git a/includes/common.php b/includes/common.php
index ac8c33836..731f4448d 100644
--- a/includes/common.php
+++ b/includes/common.php
@@ -120,6 +120,13 @@ function get_port_by_ifIndex($device_id, $ifIndex)
return dbFetchRow("SELECT * FROM `ports` WHERE `device_id` = ? AND `ifIndex` = ?", array($device_id, $ifIndex));
}
+function get_all_devices($device, $type = "")
+{
+ global $cache;
+
+ # FIXME respect $type (server, network, etc) -- needs an array fill in topnav.
+ return array_keys($cache['devices']['hostname']);
+}
function port_by_id_cache($port_id)
{