Fix Port Channels take 2 (#16246)

* Resubmit of #16227

* Add missing new files
This commit is contained in:
Tony Murray
2024-07-26 08:45:34 -05:00
committed by GitHub
parent e45dd59f77
commit b41d1b7ffb
20 changed files with 749 additions and 148 deletions

View File

@@ -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>