diff --git a/html/includes/print-interface.inc.php b/html/includes/print-interface.inc.php
index a9792d496c..a20ed8358a 100644
--- a/html/includes/print-interface.inc.php
+++ b/html/includes/print-interface.inc.php
@@ -143,7 +143,7 @@ if (strpos($port['label'], "oopback") === false && !$graph_type)
unset($br);
- if ($port_details)
+ if ($port_details && $config['enable_port_relationship'] === TRUE)
{ // Show which other devices are on the same subnet as this interface
foreach (dbFetchRows("SELECT `ipv4_network_id` FROM `ipv4_addresses` WHERE `port_id` = ? AND `ipv4_address` NOT LIKE '127.%'", array($port['port_id'])) as $net)
{
@@ -187,7 +187,7 @@ if (strpos($port['label'], "oopback") === false && !$graph_type)
}
}
- if ($port_details)
+ if ($port_details && $config['enable_port_relationship'] === TRUE)
{
foreach ($int_links as $int_link)
{
@@ -208,7 +208,7 @@ if (strpos($port['label'], "oopback") === false && !$graph_type)
# unset($int_links, $int_links_v6, $int_links_v4, $int_links_phys, $br);
}
-if ($port_details)
+if ($port_details && $config['enable_port_relationship'] === TRUE)
{
foreach (dbFetchRows("SELECT * FROM `pseudowires` WHERE `port_id` = ?", array($port['port_id'])) as $pseudowire)
{
diff --git a/includes/defaults.inc.php b/includes/defaults.inc.php
index 30ed7df075..b7f6f186d1 100644
--- a/includes/defaults.inc.php
+++ b/includes/defaults.inc.php
@@ -637,6 +637,7 @@ $config['dateformat']['compact'] = "Y-m-d H:i:s";
$config['dateformat']['time'] = "H:i:s";
$config['enable_clear_discovery'] = 1;// Set this to 0 if you want to disable the web option to rediscover devices
+$config['enable_port_relationship'] = TRUE;// Set this to false to not display neighbour relationships for ports
$config['enable_footer'] = 1;// Set this to 0 if you want to disable the footer copyright in the web interface
$config['api_demo'] = 0;// Set this to 1 if you want to disable some untrusting features for the API