{{ $port->ifIndex }}
{{ $port->getLabel() }} @if($data['tab'] != 'basic') @foreach($port->transceivers as $transceiver) @php $transceiver->setRelation('port', $port); // save a query @endphp @if(array_filter($transceiver->only(['type', 'vendor', 'model', 'revision', 'serial', 'data', 'ddm', 'encoding', 'cable', 'distance', 'wavelength', 'connector'])))
@endif
@endforeach @endif
@if($port->ifInErrors_delta > 0 || $port->ifOutErrors_delta > 0) @endif @if($port->getLabel() !== $port->getDescription()) {{ $port->getDescription() }} @endif
@if($data['tab'] != 'basic') @foreach($port->ipv4 as $ipv4)
{{ $ipv4->ipv4_address }}/{{ $ipv4->ipv4_prefixlen }}
@endforeach @foreach($port->ipv6 as $ipv6)
{{ $ipv6->ipv6_compressed }}/{{ $ipv6->ipv6_prefixlen }}
@endforeach @endif @if($port->portSecurity) @endif @forelse($port->groups as $group)
{{ $group->name }}
@empty
{{ __('Default') }}
@endforelse
{{ \LibreNMS\Util\Number::formatSi($port->ifInOctets_rate * 8, 2, 0, 'bps') }}
{{ \LibreNMS\Util\Number::formatSi($port->ifOutOctets_rate * 8, 2, 0, 'bps') }}
{{ \LibreNMS\Util\Number::formatBi($port->ifInUcastPkts_rate, 2, 0, 'pps') }}
{{ \LibreNMS\Util\Number::formatBi($port->ifOutUcastPkts_rate, 2, 0, 'pps') }}
@if($port->ifSpeed)
{{ \LibreNMS\Util\Number::formatSi($port->ifSpeed, 2, 0, 'bps') }}
@endif @if($port->ifDuplex != 'unknown')
{{ $port->ifDuplex }}
@endif @if($port->vlans->isNotEmpty())
@if($port->vlans->count() > 1) {{ __('port.vlan_count', ['count' => $port->vlans->count()]) }} @elseif($port->vlans->count() == 1 || $port->ifVlan) {{ __('port.vlan_label', ['label' => $port->vlans->first()->vlan ?: $port->ifVlan]) }} @endif
@endif @if($port->ifVrf)
{{ __('port.vrf_label', ['name' => $port->vrf?->vrf_name]) }}
@endif @if($port->adsl)
{{ $port->adsl->adslLineCoding }}/{{ \LibreNMS\Util\Rewrite::dslLineType($port->adsl->adslLineType) }}
{{ __('port.xdsl.sync_stat', ['down' => \LibreNMS\Util\Number::formatSi($port->adsl->adslAtucChanCurrTxRate, 2, 0, 'bps'), 'up' => \LibreNMS\Util\Number::formatSi($port->adsl->adslAturChanCurrTxRate, 2, 0, 'bps')]) }}
{{ __('port.xdsl.attainable_stat', ['down' => \LibreNMS\Util\Number::formatSi($port->adsl->adslAtucCurrAttainableRate, 2, 0, 'bps'), 'up' => \LibreNMS\Util\Number::formatSi($port->adsl->adslAturCurrAttainableRate, 2, 0, 'bps')]) }}
{{ __('port.xdsl.attenuation_stat', ['down' => $port->adsl->adslAtucCurrAtn . 'dB', 'up' => $port->adsl->adslAturCurrAtn . 'dB']) }}
{{ __('port.xdsl.snr_stat', ['down' => $port->adsl->adslAtucCurrSnrMgn . 'dB','up' => $port->adsl->adslAturCurrSnrMgn . 'dB']) }}
@elseif($port->vdsl)
{{ __('port.xdsl.sync_stat', ['down' => \LibreNMS\Util\Number::formatSi($port->vdsl->xdsl2ChStatusActDataRateXtuc, 2, 0, 'bps'), 'up' => \LibreNMS\Util\Number::formatSi($port->vdsl->xdsl2ChStatusActDataRateXtur, 2, 0, 'bps')]) }}
{{ __('port.xdsl.attainable_stat', ['down' => \LibreNMS\Util\Number::formatSi($port->vdsl->xdsl2LineStatusAttainableRateDs, 2, 0, 'bps'), 'up' => \LibreNMS\Util\Number::formatSi($port->vdsl->xdsl2LineStatusAttainableRateUs, 2, 0, 'bps')]) }}
@else
{{ \LibreNMS\Util\Rewrite::normalizeIfType($port->ifType) }}
@endif
{{ $port->ifPhysAddress }}
{{ $port->ifMtu ? __('port.mtu_label', ['mtu' => $port->ifMtu]) : '' }}
@foreach($data['neighbors'][$port->port_id] as $port_id => $neighbor)
@php $np = $data['neighbor_ports']?->get($neighbor['port_id']) ?? \App\Models\Port::find($neighbor['port_id']); @endphp @if($np) @if(isset($neighbor['link'])) @elseif(isset($neighbor['pseudowire'])) @elseif(isset($neighbor['stack_parent'])) @elseif(isset($neighbor['stack_child'])) @elseif(isset($neighbor['pagp'])) @else @endif on @isset($neighbor['ipv6_network']) v6 @endisset @isset($neighbor['ipv4_network']) v4 @endisset @endif
@endforeach