Skip to content

Commit

Permalink
come on people it is 2015... added 40G and 100G speed options for phy…
Browse files Browse the repository at this point in the history
… interfaces
  • Loading branch information
fooelisa committed Jan 16, 2015
1 parent 7fc3b2f commit 65678b2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions application/Entities/PhysicalInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ class PhysicalInterface
10 => '10 Mbps',
100 => '100 Mbps',
1000 => '1 Gbps',
10000 => '10 Gbps'
40000 => '40 Gbps'
10000 => '10 Gbps',
40000 => '40 Gbps',
100000 => '100 Gbps'
);

Expand Down
4 changes: 3 additions & 1 deletion application/views/_skins/example/public/member-details.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@
{$pi = $pi.0}
{if count( $vi->getPhysicalInterfaces() ) > 1}{count( $vi->getPhysicalInterfaces() )}*{/if}{if
$pi->getSpeed() eq 100}FE{elseif $pi->getSpeed() eq 1000}GE{elseif
$pi->getSpeed() eq 10000}10GE{else}{$pi->getSpeed()}
$pi->getSpeed() eq 10000}10GE{elseif
$pi->getSpeed() eq 40000}40GE{elseif
$pi->getSpeed() eq 100000}100GE{else}{$pi->getSpeed()}
{/if}
{if not $vi@last} + {/if}
{/foreach}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
{$data.$cid.ports = $data.$cid.ports|cat:'GE'}
{elseif $pi->getSpeed() eq 10000}
{$data.$cid.ports = $data.$cid.ports|cat:'10GE'}
{elseif $pi->getSpeed() eq 40000}
{$data.$cid.ports = $data.$cid.ports|cat:'40GE'}
{elseif $pi->getSpeed() eq 100000}
{$data.$cid.ports = $data.$cid.ports|cat:'100GE'}
{else}
{$data.$cid.ports = $data.$cid.ports|cat:$pi->getSpeed()}
{/if}
Expand Down

0 comments on commit 65678b2

Please sign in to comment.