mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix Port Channels take 2 (#16246)
* Resubmit of #16227 * Add missing new files
This commit is contained in:
@@ -102,25 +102,25 @@
|
||||
<div>{{ $port->ifMtu ? __('port.mtu_label', ['mtu' => $port->ifMtu]) : '' }}</div>
|
||||
</td>
|
||||
<td @if($collapsing)class="tw-hidden md:tw-table-cell"@endif>
|
||||
<x-expandable height="4em">
|
||||
<x-expandable height="5.8em">
|
||||
@foreach($data['neighbors'][$port->port_id] as $port_id => $neighbor)
|
||||
<div>
|
||||
@php
|
||||
$np = $data['neighbor_ports']->get($neighbor['port_id']);
|
||||
$np = $data['neighbor_ports']?->get($neighbor['port_id']) ?? \App\Models\Port::find($neighbor['port_id']);
|
||||
@endphp
|
||||
@if($np)
|
||||
@if(isset($neighbor['link']))
|
||||
<i class="fa fa-link fa-lg" aria-hidden="true"></i>
|
||||
<i class="fa fa-link" aria-hidden="true"></i>
|
||||
@elseif(isset($neighbor['pseudowire']))
|
||||
<i class="fa fa-arrows-left-right fa-lg" aria-hidden="true"></i>
|
||||
@elseif(isset($neighbor['stack_low']))
|
||||
<i class="fa fa-expand fa-lg" aria-hidden="true"></i>
|
||||
@elseif(isset($neighbor['stack_high']))
|
||||
<i class="fa fa-compress fa-lg" aria-hidden="true"></i>
|
||||
<i class="fa fa-arrows-left-right" aria-hidden="true"></i>
|
||||
@elseif(isset($neighbor['stack_parent']))
|
||||
<i class="fa fa-expand" aria-hidden="true"></i>
|
||||
@elseif(isset($neighbor['stack_child']))
|
||||
<i class="fa fa-compress" aria-hidden="true"></i>
|
||||
@elseif(isset($neighbor['pagp']))
|
||||
<i class="fa fa-cube fa-lg tw-text-green-600" aria-hidden="true"></i>
|
||||
<i class="fa fa-cube tw-text-green-600" aria-hidden="true"></i>
|
||||
@else
|
||||
<i class="fa fa-arrow-right fa-lg" aria-hidden="true"></i>
|
||||
<i class="fa fa-arrow-right" aria-hidden="true"></i>
|
||||
@endif
|
||||
|
||||
<x-port-link :port="$np"></x-port-link>
|
||||
|
Reference in New Issue
Block a user