mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix port neighbors unknown local port (#16128)
Fix issue when somehow the local port is unknown. Likely this is faulty polling or snmp implementation.
This commit is contained in:
@@ -25,6 +25,7 @@ return [
|
||||
'links' => 'Neighbors',
|
||||
'xdsl' => 'xDSL',
|
||||
],
|
||||
'unknown_port' => 'Unknown Port',
|
||||
'vlan_count' => 'VLANs: :count',
|
||||
'vlan_label' => 'VLAN: :label',
|
||||
'xdsl' => [
|
||||
|
@@ -10,9 +10,14 @@
|
||||
</thead>
|
||||
@foreach($data['links'] as $link)
|
||||
<tr>
|
||||
<td><x-port-link :port="$link->port"></x-port-link>
|
||||
@if($link->port->getLabel() !== $link->port->getDescription() )
|
||||
<br />{{ $link->port->getDescription() }}
|
||||
<td>
|
||||
@if($link->port)
|
||||
<x-port-link :port="$link->port"></x-port-link>
|
||||
@if($link->port->getLabel() !== $link->port->getDescription() )
|
||||
<br />{{ $link->port->getDescription() }}
|
||||
@endif
|
||||
@else
|
||||
{{ __('port.unknown_port') }}
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
|
Reference in New Issue
Block a user