{% extends "base.html.twig" %} {% block title %}Device detail{% endblock %} {% form_theme fwForm 'bootstrap_4_layout.html.twig' %} {% block body %}
Device ID: {{ device.devId() }}
Hostname: {{ device.hostname()|default("None") }} {% if(device.hostnameDesired) %}(to be updated: {{ device.hostnameDesired }}){% else %}{% endif %}
Status: {{ device.stats.syncStatus.description }}
Type: {{ device.devType.name }}
Data age: {{ device.stats.liveTime.description }}
Missed contacts: {{ device.stats.liveMissCount.description }}
{# Advantech and Teltonika #} {% if(device.devType.id == 2 or device.devType.id == 4 or device.devType.id == 5) %}Current OS/FW version: {{ device.osVer.version|default("Unknown") }} {% if(device.osVerDesired) %}(desired: {{ device.osVerDesired.version }}){% else %}(NO specific){% endif %}
{% endif %}| # | Name | MAC | IP Address | IPv6 Address | Collisions | Active | Cellular | Linkable | Rx/Tx Packets | Rx/Tx Bytes | Rx/Tx Errors |
|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ loop.index }} | {{ netDevice.label }} | {{ netDevice.mac }} | {% if(netDevice.ipAddr) %}{{ netDevice.ipAddr }}/{{ netDevice.ipMask }}{% else %} --- {% endif %} | {% if(netDevice.ip6Addr) %}{{ netDevice.ip6Addr }}/{{ netDevice.ip6Pref }}{% else %} --- {% endif %} | {{ netDevice.collisions }} | {% if(netDevice.active == '1') %}Yes{% else %}No{% endif %} | {% set inputName = 'cellular_' ~ netDevice.getId() %}{{ form_widget(attribute(netDevicesForm, (inputName))) }} | {% set inputName = 'linkable_' ~ netDevice.getId() %}{{ form_widget(attribute(netDevicesForm, (inputName))) }} | {{ netDevice.rxPackets }} | {{ netDevice.rxBytes }} | {{ netDevice.rxErrors }} |
| {{ netDevice.txPackets }} | {{ netDevice.txBytes }} | {{ netDevice.txErrors }} |
No data available yet.
{% else %}