blob: 011aacfed06b118cfad0352f7fa000c7b45823fa [file] [log] [blame]
Sean Condonafe47c22019-12-19 14:28:06 +00001<!--
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>
Sean Condon8a8bc4b2020-05-21 16:14:54 +010033 <td class="label" width="110">Name</td>
Sean Condonafe47c22019-12-19 14:28:06 +000034 <td class="value"
35 width="80">{{pipeconfTable?.name}}</td>
Sean Condon8a8bc4b2020-05-21 16:14:54 +010036 <td class="label" width="110">Support Aging</td>
Sean Condonafe47c22019-12-19 14:28:06 +000037 <td class="value"
38 width="80">{{pipeconfTable?.supportAging}}</td>
39 </tr>
40 <tr>
Sean Condon8a8bc4b2020-05-21 16:14:54 +010041 <td class="label" width="110">Has counters</td>
Sean Condonafe47c22019-12-19 14:28:06 +000042 <td class="value"
43 width="80">{{pipeconfTable?.hasCounters}}</td>
Sean Condon8a8bc4b2020-05-21 16:14:54 +010044 <td class="label" width="110">Max entries</td>
Sean Condonafe47c22019-12-19 14:28:06 +000045 <td class="value"
46 width="80">{{pipeconfTable?.maxSize}}</td>
47 </tr>
48 </tbody>
49 </table>
50 </div>
51 </div>
52 </div>
53 <hr>
54 </div>
55 <div class="bottom">
56 <h2 class="match-title">Match fields</h2>
57 <table>
58 <thead>
59 <th>Field</th>
60 <th>Match type</th>
61 <th>Bit width</th>
62 </thead>
63 <tbody>
64 <tr *ngFor="let mf of pipeconfTable?.matchFields">
65 <td>{{mf.field}}</td>
66 <td>{{mf.matchType}}</td>
67 <td>{{mf.bitWidth}}</td>
68 </tr>
69 </tbody>
70 </table>
71 </div>
72 <div class="bottom">
73 <h2 class="action-title">Actions</h2>
74 <table>
75 <thead>
76 <th>Action</th>
77 <th>Parameter</th>
78 </thead>
79 <tbody>
80 <tr *ngFor="let actionKey of pipeconfTable?.actions">
81 <td>{{actionKey}}</td>
82 <td><p *ngFor="let param of actionDetails(actionKey).params">{{param.name}}:{{param.bitWidth}}</p></td>
83 </tr>
84 </tbody>
85 </table>
86 </div>
87 </div>
88</div>