blob: 7c7e32c7612d58190a4fccdb80446f5e0e108da9 [file] [log] [blame]
Bhavesh72ead492018-07-19 16:29:18 +05301<!--
2~ Copyright 2018-present Open Networking Foundation
3~
4~ Licensed under the Apache License, Version 2.0 (the "License");
5~ you may not use this file except in compliance with the License.
6~ You may obtain a copy of the License at
7~
8~ http://www.apache.org/licenses/LICENSE-2.0
9~
10~ Unless required by applicable law or agreed to in writing, software
11~ distributed under the License is distributed on an "AS IS" BASIS,
12~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13~ See the License for the specific language governing permissions and
14~ limitations under the License.
15-->
16<div id="ov-host">
17 <div class="tabular-header">
18 <h2>Hosts ({{tableData.length}} total)</h2>
19 <div class="ctrl-btns">
20 <div class="refresh" (click)="toggleRefresh()">
21 <!-- See icon.theme.css for the defintions of the classes active and refresh-->
22 <onos-icon classes="{{ autoRefresh?'active refresh':'refresh' }}" iconId="refresh" iconSize="42" toolTip="{{ autoRefreshTip }}"></onos-icon>
23 </div>
24 </div>
25 </div>
26 <div class="summary-list" onosTableResize>
27 <div class="table-header">
28 <table>
29 <tr>
30 <td colId="type" class="table-icon"></td>
31 <td colId="name" (click)="onSort('name')">Friendly Name
32 <onos-icon classes="active-sort" [iconSize]="10" [iconId]="sortIcon('name')"></onos-icon>
33 </td>
34 <td colId="id" (click)="onSort('id')">Host ID
35 <onos-icon classes="active-sort" [iconSize]="10" [iconId]="sortIcon('id')"></onos-icon>
36 </td>
37 <td colId="mac" (click)="onSort('mac')">MAC Address
38 <onos-icon classes="active-sort" [iconSize]="10" [iconId]="sortIcon('mac')"></onos-icon>
39 </td>
40 <td colId="vlan" (click)="onSort('vlan')">VLAN ID
41 <onos-icon classes="active-sort" [iconSize]="10" [iconId]="sortIcon('vlan')"></onos-icon>
42 </td>
43 <td colId="configured" (click)="onSort('configured')">Configured
44 <onos-icon classes="active-sort" [iconSize]="10" [iconId]="sortIcon('configured')"></onos-icon>
45 </td>
46 <td colId="ips" (click)="onSort('ips')">IP Addresses
47 <onos-icon classes="active-sort" [iconSize]="10" [iconId]="sortIcon('ips')"></onos-icon>
48 </td>
49 <td colId="location" (click)="onSort('location')">Location
50 <onos-icon classes="active-sort" [iconSize]="10" [iconId]="sortIcon('location')"></onos-icon>
51 </td>
52 </tr>
53 </table>
54 </div>
55 <div class="table-body">
56 <table>
57 <tr *ngIf="tableData.length === 0" class="no-data">
58 <td colspan="8">{{ annots.noRowsMsg }}</td>
59 </tr>
60 <tr *ngFor="let host of tableData" (click)="selectCallback($event, host)" [ngClass]="{selected: host.id === selId, 'data-change': isChanged(host.id)}">
61 <td class="table-icon">
62 <onos-icon classes="{{host._iconid_type? 'active-type':undefined}}" iconId="{{host._iconid_type}}"></onos-icon>
63 </td>
64 <td>{{host.name}}</td>
65 <td>{{host.id}}</td>
66 <td>{{host.mac}}</td>
67 <td>{{host.vlan}}</td>
68 <td>{{host.configured}}</td>
69 <td>{{host.ips}}</td>
70 <td>{{host.location}}</td>
71 </tr>
72 </table>
73 </div>
74 </div>
75 <onos-hostdetails class="floatpanels" id="{{ selId }}" (closeEvent)="deselectRow($event)"></onos-hostdetails>
76</div>