Only show STP blocked icon if port is UP

This commit is contained in:
Oliver Gorwits
2014-03-25 21:08:43 +00:00
parent 563f6d3a86
commit 2cc8b41fb0
2 changed files with 2 additions and 1 deletions

View File

@@ -18,6 +18,7 @@
* Suggest installation of perl-core RPM (arguably Red Hat's bug not ours!)
* FATAL warnings considered harmful
* Only show STP blocked icon if port is UP
2.024004 - 2014-03-04

View File

@@ -20,7 +20,7 @@
<td class="nd_center-cell nd_devport-icon">
[% IF row.up_admin != 'up' %]
<i class="icon-remove"></i>
[% ELSIF row.stp == 'blocking' %]
[% ELSIF row.up == 'up' AND row.stp == 'blocking' AND NOT row.vlan_count > 1 %]
<i class="icon-fullscreen text-info"></i>
[% ELSIF row.has_column_loaded('is_free') AND row.is_free %]
<i class="icon-arrow-down text-success"></i>