mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
This reverts commit d3d34a7f4d
.
This commit is contained in:
@@ -286,9 +286,11 @@ foreach ($list as $items) {
|
|||||||
$device_id1 = $items['local_device_id'].':'.$items['remote_device_id'];
|
$device_id1 = $items['local_device_id'].':'.$items['remote_device_id'];
|
||||||
$device_id2 = $items['remote_device_id'].':'.$items['local_device_id'];
|
$device_id2 = $items['remote_device_id'].':'.$items['local_device_id'];
|
||||||
|
|
||||||
// Ensure only one link exists between any two ports.
|
// Ensure only one link exists between any two ports, or any two devices.
|
||||||
if (!array_key_exists($link_id1, $link_assoc_seen) &&
|
if (!array_key_exists($link_id1, $link_assoc_seen) &&
|
||||||
!array_key_exists($link_id2, $link_assoc_seen)) {
|
!array_key_exists($link_id2, $link_assoc_seen) &&
|
||||||
|
!array_key_exists($device_id1, $device_assoc_seen) &&
|
||||||
|
!array_key_exists($device_id2, $device_assoc_seen)) {
|
||||||
$local_port = cleanPort($local_port);
|
$local_port = cleanPort($local_port);
|
||||||
$remote_port = cleanPort($remote_port);
|
$remote_port = cleanPort($remote_port);
|
||||||
$links[] = array_merge(
|
$links[] = array_merge(
|
||||||
|
Reference in New Issue
Block a user