Skip to content

Commit

Permalink
[BF] Fix #222 - Port status displayed incorrectly for LAGs
Browse files Browse the repository at this point in the history
  • Loading branch information
barryo committed Jun 29, 2015
1 parent 8772169 commit 14497bf
Showing 1 changed file with 13 additions and 18 deletions.
31 changes: 13 additions & 18 deletions application/views/customer/overview-tabs/ports/physintstatus.phtml
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
{if count( $vi->getPhysicalInterfaces() )}
{$pi = $vi->getPhysicalInterfaces()}
{$pi = $pi[0]}

{if not $pi->statusIsConnected()}
<a href="{genUrl controller='physical-interface' action='edit' id=$pi->getId() vintid=$vi->getId()}">
{if $pi->statusIsQuarantine()}
<span class="label label-warning">IN QUARANTINE</span>
{elseif $pi->statusIsDisabled()}
<span class="label label-important">DISABLED</span>
{elseif $pi->statusIsNotConnected()}
<span class="label label-important">NOT CONNECTED</span>
{elseif $pi->statusIsAwaitingXConnect()}
<span class="label label-warning">AWAITING XCONNECT</span>
{else}
<span class="label label-inverse">UNKNOWN STATE</span>
{/if}
</a>
{if not $pi->statusIsConnected()}
<a href="{genUrl controller='physical-interface' action='edit' id=$pi->getId() vintid=$vi->getId()}">
{if $pi->statusIsQuarantine()}
<span class="label label-warning">IN QUARANTINE</span>
{elseif $pi->statusIsDisabled()}
<span class="label label-important">DISABLED</span>
{elseif $pi->statusIsNotConnected()}
<span class="label label-important">NOT CONNECTED</span>
{elseif $pi->statusIsAwaitingXConnect()}
<span class="label label-warning">AWAITING XCONNECT</span>
{else}
<span class="label label-inverse">UNKNOWN STATE</span>
{/if}
</a>
{/if}

0 comments on commit 14497bf

Please sign in to comment.