diff --git a/html/pages/device.inc.php b/html/pages/device.inc.php index 0ae25ced4..f5436962f 100644 --- a/html/pages/device.inc.php +++ b/html/pages/device.inc.php @@ -153,6 +153,7 @@ if (device_permitted($_GET['id']) || $check_device == $_GET['id']) if ($_SESSION['userlevel'] >= "5" && mysql_result(mysql_query("SELECT count(*) FROM links AS L, ports AS I WHERE I.device_id = '".$device['device_id']."' AND I.interface_id = L.local_interface_id"),0)) { + $discovery_links = TRUE; echo('
Map
diff --git a/html/pages/device/ports.inc.php b/html/pages/device/ports.inc.php
index 096c20d8a..1a809c160 100644
--- a/html/pages/device/ports.inc.php
+++ b/html/pages/device/ports.inc.php
@@ -9,6 +9,7 @@ print_optionbar_start();
$menu_options = array('basic' => 'Basic',
'details' => 'Details',
+ 'neighbours' => 'Neighbours',
'arp' => 'ARP Table',
'adsl' => 'ADSL');
@@ -55,7 +56,7 @@ if ($_GET['optc'] == thumbs)
{
$timeperiods = array('-1day','-1week','-1month','-1year');
$from = '-1day';
- echo("| Port | Traffic | Sync Speed | Attainable Speed | Attenuation | SNR Margin | Output Powers |
|---|
| Local Port | +Remote Port | +Remote Device | ++ | |
|---|---|---|---|---|
| ".generate_port_link($neighbour)." ".$neighbour['ifAlias']." | ");
+
+ if(is_numeric($neighbour['remote_interface_id']) && $neighbour['remote_interface_id'])
+ {
+ $remote_port = get_port_by_id($neighbour['remote_interface_id']);
+ $remote_device = device_by_id_cache($remote_port['device_id']);
+ echo("".generate_port_link($remote_port)." ".$remote_port['ifAlias']." | ");
+ echo("".generate_device_link($remote_device)." ".$remote_device['hardware']." | ");
+ } else {
+ echo("".$neighbour['remote_port']." | "); + echo("".$neighbour['remote_hostname']."
+ ".$neighbour['remote_platform']." | ");
+ }
+ $i++;
+}
+
+echo("