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