From c17f0cd2a67894afff836ff201e004e751a7e3da Mon Sep 17 00:00:00 2001 From: Peter Tavenier Date: Fri, 3 Oct 2025 13:27:30 +0200 Subject: [PATCH] Juniper LLDP local port index exception --- includes/discovery/discovery-protocols.inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/discovery/discovery-protocols.inc.php b/includes/discovery/discovery-protocols.inc.php index 1f144eb24d58..a7d11a9880f2 100644 --- a/includes/discovery/discovery-protocols.inc.php +++ b/includes/discovery/discovery-protocols.inc.php @@ -351,6 +351,8 @@ function ($v) { $ifName = $lldp_local[$entry_key]['lldpLocPortDesc']; } elseif ($device['os'] == 'routeros') { $ifIndex = $entry_key; + } elseif ($device['os'] == 'junos') { + $ifIndex = $entry_key; } elseif (isset($dot1d_array) && isset($dot1d_array[$entry_key]) && is_numeric($dot1d_array[$entry_key]['dot1dBasePortIfIndex'])) { $ifIndex = $dot1d_array[$entry_key]['dot1dBasePortIfIndex']; } else {