blob: 034b63b77ff7dd707fb2e735de802cfb6f48160f [file] [log] [blame]
<!--
~ Copyright 2018-present Open Networking Foundation
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<div id="device-details-panel" class="floatpanel" [@deviceDetailsState]="id!=='' && !closed">
<div class="container">
<div class="top">
<div class="close-btn">
<onos-icon class="close-btn" classes="active-close" iconId="close" iconSize="20" (click)="close()"></onos-icon>
</div>
<div class="dev-icon">
<onos-icon classes="{{detailsData._iconid_type? 'details-icon':undefined}}" iconId="{{detailsData._iconid_type}}" [iconSize]="40"></onos-icon>
</div>
<h2 class="editable clickable">{{detailsData.id}}</h2>
<div class="top-content">
<div class="top-tables">
<div class="left">
<table>
<tbody>
<tr>
<td class="label" width="110">URI :</td>
<td class="value" width="80">{{detailsData.id}}</td>
</tr>
<tr>
<td class="label" width="110">Type :</td>
<td class="value" width="80">{{detailsData.type}}</td>
</tr>
<tr>
<td class="label" width="110">Master ID :</td>
<td class="value" width="80">{{detailsData.masterid}}</td>
</tr>
<tr>
<td class="label" width="110">Chassis ID :</td>
<td class="value" width="80">{{detailsData.chassisid}}</td>
</tr>
<tr>
<td class="label" width="110">Vendor :</td>
<td class="value" width="80">{{detailsData.mfr}}</td>
</tr>
</tbody>
</table>
</div>
<div class="right">
<table>
<tbody>
<tr>
<td class="label" width="110">H/W Version :</td>
<td class="value" width="80">{{detailsData.hw}}</td>
</tr>
<tr>
<td class="label" width="110">S/W Version :</td>
<td class="value" width="80">{{detailsData.sw}}</td>
</tr>
<tr>
<td class="label" width="110">Protocol :</td>
<td class="value" width="80">{{detailsData.protocol}}</td>
</tr>
<tr>
<td class="label" width="110">Serial # :</td>
<td class="value" width="80">{{detailsData.serial}}</td>
</tr>
<tr>
<td class="label" width="110">Pipeconf :</td>
<td class="value" width="80">{{detailsData.pipeconf}}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<hr>
</div>
<div class="bottom">
<h2 class="ports-title">Ports</h2>
<table>
<thead>
<tr>
<th>Enabled</th>
<th>ID</th>
<th>Speed</th>
<th>Type</th>
<th>Egress Links</th>
<th>Name</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let port of detailsData.ports">
<td>{{port.enabled}}</td>
<td>{{port.id}}</td>
<td>{{port.speed}}</td>
<td>{{port.type}}</td>
<td>{{port.elinks_dest}}</td>
<td>{{port.name}}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>