Changeset 214

Show
Ignore:
Timestamp:
08/03/08 23:18:16 (4 months ago)
Author:
pwh
Message:
  • Bridge Management: When viewing a root bridge, display a suitable message explaining why there is no root port.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • nethorus/app/views/bridge_management/show_bridge.html.erb

    r200 r214  
    2727 </tr> 
    2828 <tr> 
    29   <th>Root port</th><td><%=h @bridge.dot1d_stp_root_port %>: <%= @bridge.stp_ports.find(:first, :conditions => { :dot1d_base_port => @bridge.dot1d_stp_root_port }).l2_interface.ifdescr_short %></td> 
     29  <th>Root port</th> 
     30  <td> 
     31    <% if @bridge.dot1d_stp_root_port == 0 %> 
     32      This is a root bridge and has no root port. 
     33    <% else %> 
     34      <%=h @bridge.dot1d_stp_root_port %>: <%= @bridge.stp_ports.find(:first, :conditions => { :dot1d_base_port => @bridge.dot1d_stp_root_port }).l2_interface.ifdescr_short %></td> 
     35    <% end %> 
     36  </td> 
    3037 </tr> 
    3138</table>