Sean Condon | 50e61a6 | 2019-12-19 14:28:06 +0000 | [diff] [blame^] | 1 | <!-- |
| 2 | ~ Copyright 2019-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 | |
| 17 | <div id="pipeconf-details-panel" class="floatpanel" |
| 18 | [@pipeconfDetailsState]="id!=='' && !closed"> |
| 19 | <div class="container"> |
| 20 | <div class="top"> |
| 21 | <div class="close-btn"> |
| 22 | <onos-icon class="close-btn" classes="active-close" |
| 23 | iconId="close" iconSize="20" |
| 24 | (click)="close()"></onos-icon> |
| 25 | </div> |
| 26 | <h2>{{id}}</h2> |
| 27 | <div class="top-content"> |
| 28 | <div class="top-tables"> |
| 29 | <div class="left"> |
| 30 | <table> |
| 31 | <tbody> |
| 32 | <tr> |
| 33 | <td class="label" width="110">Name :</td> |
| 34 | <td class="value" |
| 35 | width="80">{{pipeconfTable?.name}}</td> |
| 36 | <td class="label" width="110">Support Aging : |
| 37 | </td> |
| 38 | <td class="value" |
| 39 | width="80">{{pipeconfTable?.supportAging}}</td> |
| 40 | </tr> |
| 41 | <tr> |
| 42 | <td class="label" width="110">Has counters : |
| 43 | </td> |
| 44 | <td class="value" |
| 45 | width="80">{{pipeconfTable?.hasCounters}}</td> |
| 46 | <td class="label" width="110">Max entries :</td> |
| 47 | <td class="value" |
| 48 | width="80">{{pipeconfTable?.maxSize}}</td> |
| 49 | </tr> |
| 50 | </tbody> |
| 51 | </table> |
| 52 | </div> |
| 53 | </div> |
| 54 | </div> |
| 55 | <hr> |
| 56 | </div> |
| 57 | <div class="bottom"> |
| 58 | <h2 class="match-title">Match fields</h2> |
| 59 | <table> |
| 60 | <thead> |
| 61 | <th>Field</th> |
| 62 | <th>Match type</th> |
| 63 | <th>Bit width</th> |
| 64 | </thead> |
| 65 | <tbody> |
| 66 | <tr *ngFor="let mf of pipeconfTable?.matchFields"> |
| 67 | <td>{{mf.field}}</td> |
| 68 | <td>{{mf.matchType}}</td> |
| 69 | <td>{{mf.bitWidth}}</td> |
| 70 | </tr> |
| 71 | </tbody> |
| 72 | </table> |
| 73 | </div> |
| 74 | <div class="bottom"> |
| 75 | <h2 class="action-title">Actions</h2> |
| 76 | <table> |
| 77 | <thead> |
| 78 | <th>Action</th> |
| 79 | <th>Parameter</th> |
| 80 | </thead> |
| 81 | <tbody> |
| 82 | <tr *ngFor="let actionKey of pipeconfTable?.actions"> |
| 83 | <td>{{actionKey}}</td> |
| 84 | <td><p *ngFor="let param of actionDetails(actionKey).params">{{param.name}}:{{param.bitWidth}}</p></td> |
| 85 | </tr> |
| 86 | </tbody> |
| 87 | </table> |
| 88 | </div> |
| 89 | </div> |
| 90 | </div> |