@@ -38,15 +38,19 @@ <h4><i class="fa fa-clock-o"></i> Boot date</h4>
38
38
< br />
39
39
< h4 > < i class ="fa fa-wifi "> </ i > Network</ h4 >
40
40
< div class ="health-network-wrap ">
41
- {% for nic in status['network_io'] %}
42
- {% if nic != 'lo' %}
43
- {% set nic_stats = status.network_stats[nic] %}
44
- < p class ="health-info "> stats: speed={{ nic_stats.speed}}MB, duplex={{ nic_stats.duplex}}, mtu={{ nic_stats.mtu}}, up={{ "yes" if nic_stats.isup else "no" }}</ p >
45
- {% set nic_io = status.network_io[nic] %}
46
- < p class ="health-info "> incoming: bytes={{ nic_io.bytes_recv }}, pkts={{ nic_io.packets_recv }}, err={{ nic_io.errin }}, drops={{ nic_io.dropin }}</ p >
47
- < p class ="health-info "> outgoing: bytes={{ nic_io.bytes_sent }}, pkts={{ nic_io.packets_sent }}, err={{ nic_io.errout }}, drops={{ nic_io.dropout }}</ p >
48
- {% endif %}
49
- {% endfor %}
41
+ {% if not 'network_io' in status %}
42
+ < p class ="health-info "> N/A</ p >
43
+ {% else %}
44
+ {% for nic in status['network_io'] %}
45
+ {% if nic != 'lo' %}
46
+ {% set nic_stats = status.network_stats[nic] %}
47
+ < p class ="health-info "> stats: speed={{ nic_stats.speed}}MB, duplex={{ nic_stats.duplex}}, mtu={{ nic_stats.mtu}}, up={{ "yes" if nic_stats.isup else "no" }}</ p >
48
+ {% set nic_io = status.network_io[nic] %}
49
+ < p class ="health-info "> incoming: bytes={{ nic_io.bytes_recv }}, pkts={{ nic_io.packets_recv }}, err={{ nic_io.errin }}, drops={{ nic_io.dropin }}</ p >
50
+ < p class ="health-info "> outgoing: bytes={{ nic_io.bytes_sent }}, pkts={{ nic_io.packets_sent }}, err={{ nic_io.errout }}, drops={{ nic_io.dropout }}</ p >
51
+ {% endif %}
52
+ {% endfor %}
53
+ {% endif %}
50
54
</ div >
51
55
</ div >
52
56
0 commit comments