blob: e8e13c53244fe071fe4a76fd0f598c469be207b9 [file] [log] [blame]
prai9d445962018-07-27 13:27:43 +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-processor">
Sean Condon95fb5742019-04-02 12:16:55 +010017 <onos-loading [theme]="'light'" [running]="loadingIconShown"></onos-loading>
prai9d445962018-07-27 13:27:43 +053018 <div class="tabular-header">
19 <h2>
20 Packet Processors ({{tableData.length}} Processors total)
21 </h2>
22 <div class="ctrl-btns">
23 <div class="refresh" (click)="toggleRefresh()">
24 <onos-icon classes="{{ autoRefresh?'active refresh':'refresh' }}" iconId="refresh" iconSize="42" toolTip="{{ autoRefreshTip }}"></onos-icon>
25 </div>
26 </div>
27 </div>
28 <div class="summary-list">
29 <div class="table-header">
30 <table onosTableResize>
31 <tr>
32 <td class="priority" colId="priority" [ngStyle]="{width: '80px'}">Priority </td>
33 <td colId="type" [ngStyle]="{width: '80px'}">Type </td>
34 <td colId="processor" [ngStyle]="{width: '500px'}">Class </td>
35 <td class="number" colId="packets" [ngStyle]="{width: '100px'}">Packets </td>
36 <td class="number" colId="avgMillis" [ngStyle]="{width: '100px'}">Average (ms) </td>
37
38 </tr>
39 </table>
40 </div>
41 <div class="table-body">
42 <table onosTableResize id-prop="id">
43 <tr class="table-body" *ngIf="tableData.length === 0" class="no-data">
44 <td colspan="5">{{annots.noRowsMsg}}</td>
45 </tr>
46
47 <tr *ngFor="let processor of tableData" [ngClass]="{'data-change': isChanged(processor.id)}">
48 <td class="priority" [ngStyle]="{width: '80px'}">{{processor.priority}}</td>
49 <td [ngStyle]="{width: '80px'}">{{processor.type}}</td>
50 <td [ngStyle]="{width: '500px'}">{{processor.processor}}</td>
51 <td class="number" [ngStyle]="{width: '100px'}">{{processor.packets}}</td>
52 <td class="number" [ngStyle]="{width: '100px'}">{{processor.avgMillis}}</td>
53 </tr>
54 </table>
55 </div>
56 </div>
Sean Condon95fb5742019-04-02 12:16:55 +010057</div>